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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 24 Nov 2019 07:19:08 +0000 (08:19 +0100)
commit2008d0e3d364ab6237bedf5c401afcde09826e8d
treedc26141327ae222c707a063f5e337c34c8389b6a
parent976e944e005f555e90d92e504a38f8231551925b
i2c: mediatek: modify threshold passed to i2c_get_dma_safe_msg_buf()

commit bc1a7f75c85e226e82f183d30d75c357f92b6029 upstream.

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

Fixes: fc66b39fe36a ("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>
Cc: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/i2c/busses/i2c-mt65xx.c