]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: mediatek: modify threshold passed to i2c_get_dma_safe_msg_buf()
authorHsin-Yi Wang <hsinyi@chromium.org>
Fri, 15 Feb 2019 09:02:02 +0000 (17:02 +0800)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 12 Mar 2019 13:09:15 +0000 (14:09 +0100)
commit4fa7d80ba30bfdad138c945322b247ba5cded0d3
tree1ec5d5103ce20805a6f168e8cf81ba2c5e18c35c
parentfee38845b64d24497b5cd2fc7244191b2ee8a6c0
i2c: mediatek: modify threshold passed to i2c_get_dma_safe_msg_buf()

DMA with zero-length transfers doesn't make sense and this HW doesn't
support them at all, so increase the threshold.

Fixes: fa694f0e60e4 ("i2c: mediatek: Use DMA safe buffers for i2c transactions")
Signed-off-by: Hsin-Yi Wang <hsinyi@chromium.org>
[wsa: reworded commit message]
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-mt65xx.c