i2c: img-scb: add handle for stop detected interrupt
authorSifan Naeem <sifan.naeem@imgtec.com>
Thu, 19 Nov 2015 09:35:15 +0000 (09:35 +0000)
committerWolfram Sang <wsa@the-dreams.de>
Sat, 2 Jan 2016 21:04:30 +0000 (22:04 +0100)
commitdd29207e6ccf6ae705dc01c6db73f3a8cb641400
tree13dccb4768eb5ed1ad05ad812b93096ece7b2c85
parenta8c5a8d8c9caa150f0e1faab3884ba48d9cd99fe
i2c: img-scb: add handle for stop detected interrupt

Stop Detected interrupt is triggered when a Stop bit is detected on
the bus, which indicates the end of the current transfer.

When the end of a transfer is indicated by the Stop Detected interrupt,
drain the FIFO and signal completion for the transaction.

Signed-off-by: Sifan Naeem <sifan.naeem@imgtec.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-img-scb.c