]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: at91: disable TXRDY interrupt after sending data
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>
Mon, 22 Jul 2019 18:55:27 +0000 (20:55 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 1 Aug 2019 20:24:16 +0000 (22:24 +0200)
commit73fa166006df9f6b42294bd21c6529c7fa6f2f71
tree894ef1f43b93686b8c9f7fdc9a789ba660b305d1
parentb785a49e91e970cecd24da0727f54dbb0d5c2322
i2c: at91: disable TXRDY interrupt after sending data

Driver was not disabling TXRDY interrupt after last TX byte.
This caused interrupt storm until transfer timeouts for slow
or broken device on the bus. The patch fixes the interrupt storm
on my SAMA5D2-based board.

Cc: stable@vger.kernel.org # 5.2.x
[v5.2 introduced file split; the patch should apply to i2c-at91.c before the split]
Fixes: d17d987e80e1 ("i2c: at91: add new driver")
Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Acked-by: Ludovic Desroches <ludovic.desroches@microchip.com>
Tested-by: Raag Jadav <raagjadav@gmail.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-at91-master.c