]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: rcar: fix MNR interrupt handling
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Mon, 1 Sep 2014 21:15:26 +0000 (01:15 +0400)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 2 Sep 2014 10:28:15 +0000 (12:28 +0200)
commit18a9e5d1d751f03817c0de657eada3c82bd0561a
treee113a2153307feb3b3c02859d742f0a036eded7f
parentc2dea2904d38f5f9f9f866476cafdab22b452972
i2c: rcar: fix MNR interrupt handling

Sometimes the MNR and MST interrupts happen simultaneously  (stop  automatically
follows NACK, according to the manuals) and in such case the ID_NACK flag  isn't
set since the MST interrupt handling precedes MNR and all interrupts are cleared
and disabled then, so that MNR interrupt is never noticed -- this causes NACK'ed
transfers to be falsely reported as successful. Exchanging MNR and  MST handlers
fixes this issue, however the MNR bit  somehow  gets set again even after  being
explicitly cleared, so I decided to completely suppress handling of all disabled
interrupts (which is a good thing anyway)...

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Cc: stable@vger.kernel.org
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-rcar.c