]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: rcar: use correct length when unmapping DMA
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Sun, 28 May 2017 07:52:17 +0000 (09:52 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 15 Jun 2017 13:51:44 +0000 (15:51 +0200)
commit8b308073cf01ed7ff2a7c0a3d4ce2bab0db350b3
treee8908263e64d2fe4564b5293711745f9f04a31db
parentd3add402c89192df5bac6bd430c3865ad409843b
i2c: rcar: use correct length when unmapping DMA

Because we need to transfer some bytes with PIO, the msg length is not
the length of the DMA buffer. Use the correct value which we used when
doing the mapping.

Fixes: 672dc6fb307919 ("i2c: rcar: add DMA support")
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-rcar.c