i2c-cht-wc: Ack read irqs after reading the data register
authorHans de Goede <hdegoede@redhat.com>
Mon, 14 Aug 2017 20:17:25 +0000 (22:17 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 17 Aug 2017 19:53:02 +0000 (21:53 +0200)
commit8de60c636e353806d43be6313987f36b03cdbf86
tree8a707165ba2b0bb083b28189b9766954edf241c1
parenta5a46bd008b5a87f726859c90ab25a69e6cf9473
i2c-cht-wc: Ack read irqs after reading the data register

Testing has shown that writing 1 to clear the read-complete irq does
not work until the data register has been read first.

This commit fixes the driver to read the data register first, halving the
amount of interrupts in most cases since we mostly read on this i2c bus.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-cht-wc.c