i2c: riic: fix restart condition
authorChris Brandt <chris.brandt@renesas.com>
Mon, 6 Mar 2017 20:20:51 +0000 (15:20 -0500)
committerWolfram Sang <wsa@the-dreams.de>
Wed, 8 Mar 2017 16:54:59 +0000 (17:54 +0100)
commit2501c1bb054290679baad0ff7f4f07c714251f4c
treeaafd15bac171add9d968c62ffa5895ee91eebf71
parentc1ae3cfa0e89fa1a7ecc4c99031f5e9ae99d9201
i2c: riic: fix restart condition

While modifying the driver to use the STOP interrupt, the completion of the
intermediate transfers need to wake the driver back up in order to initiate
the next transfer (restart condition). Otherwise you get never ending
interrupts and only the first transfer sent.

Fixes: 71ccea095ea1 ("i2c: riic: correctly finish transfers")
Reported-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Chris Brandt <chris.brandt@renesas.com>
Tested-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-riic.c