]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: img-scb: do dummy writes before fifo access
authorSifan Naeem <sifan.naeem@imgtec.com>
Thu, 10 Sep 2015 14:50:02 +0000 (15:50 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Sat, 10 Oct 2015 07:38:06 +0000 (08:38 +0100)
commit0d0cffbfb5170b2b7fc4dfbd71b9ce3d52427ea1
tree951f72f9c42c8829ece13c40d95ea16344f7f1e0
parent4456863e7fa0dc92f0010eafc8a36642741508a3
i2c: img-scb: do dummy writes before fifo access

Move scb_wr_rd_fence to before reading from fifo and writing to
fifo to make sure the the first read/write is done after the required
number of cycles.

Fixes: commit 868b09c46ef8 ("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