]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit15972820cf3c89c964c871094a242b3be3222848
tree5ac8f53cec3b930d635647eac147c0abd1059969
parent8a82cf4236c98f2709c7bf1f41723cd192be6d68
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