i2c: img-scb: Clear line and interrupt status before starting a transfer
authorSifan Naeem <sifan.naeem@imgtec.com>
Thu, 10 Sep 2015 14:50:06 +0000 (15:50 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Sat, 10 Oct 2015 07:39:45 +0000 (08:39 +0100)
commit1ed6faedfc9741cca2d97b25ab73902ba7177093
tree6198033da1ed980428b5e61d08923b4f58c0d988
parent0f0a3189978c1bd38a36f97577c38fef861ebff5
i2c: img-scb: Clear line and interrupt status before starting a transfer

Clear line status and all generated interrupts from the interrupt
status register before starting a transfer, as we may have
unserviced interrupts from previous transfers that might be
handled in the context of the new transfer.

Fixes: commit 27bce457d588 ("i2c: img-scb: Add Imagination Technologies I2C SCB driver")
Signed-off-by: Sifan Naeem <sifan.naeem@imgtec.com>
Acked-by: James Hogan <james.hogan@imgtec.com>
Reviewed-by: James Hartley <james.hartley@imgtec.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-img-scb.c