]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
i2c: mediatek: Fixup i2c ack error interrupt handling
authorEddie Huang <eddie.huang@mediatek.com>
Thu, 6 Aug 2015 07:22:11 +0000 (15:22 +0800)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 11 Aug 2015 14:54:47 +0000 (16:54 +0200)
commit28c0a8433dd56146627d00907ad99084654741e8
tree2de4da36b6357c5f6f85229e0368e2e39c5ab351
parentea89ef1f7bf7c71b4f533a6ffb3f6f124890b37b
i2c: mediatek: Fixup i2c ack error interrupt handling

When occur i2c ack error, i2c controller generate two interrupts,
first is the ack error interrupt, then the complete interrupt.
i2c interrupt handler should keep the two interrupt value, and only
call complete() for the complete interrupt.

Signed-off-by: Liguo Zhang <liguo.zhang@mediatek.com>
Signed-off-by: Eddie Huang <eddie.huang@mediatek.com>
Reviewed-by: Daniel Kurtz <djkurtz@chromium.org>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-mt65xx.c