i2c: mediatek: disable zero-length transfers for mt8183
authorHsin-Yi Wang <hsinyi@chromium.org>
Thu, 22 Aug 2019 09:45:17 +0000 (17:45 +0800)
committerWolfram Sang <wsa@the-dreams.de>
Fri, 30 Aug 2019 13:06:17 +0000 (15:06 +0200)
commitabf4923e97c3abbbd1e59f0e13c7c214c93c6aaa
tree5ac8f53cec3b930d635647eac147c0abd1059969
parentb3d604d405166edfd4e1e6053409b85008f4f56d
i2c: mediatek: disable zero-length transfers for mt8183

Quoting from mt8183 datasheet, the number of transfers to be
transferred in one transaction should be set to bigger than 1,
so we should forbid zero-length transfer and update functionality.

Reported-by: Alexandru M Stan <amstan@chromium.org>
Signed-off-by: Hsin-Yi Wang <hsinyi@chromium.org>
Reviewed-by: Qii Wang <qii.wang@mediatek.com>
[wsa: shortened commit message a little]
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-mt65xx.c