[PATCH] i2c: uniphier-f: fix misdetection of incomplete STOP condition
Wolfram Sang
wsa at the-dreams.de
Fri Sep 23 05:12:45 PDT 2016
On Fri, Sep 23, 2016 at 09:04:01PM +0900, Masahiro Yamada wrote:
> Currently, the status register FI2C_SR is checked immediately after
> a STOP condition is issued in case of the deferred STOP condition.
> It takes typically 5-10 usec until the corresponding bits in the
> register are set, so the error check for "stop condition was not
> completed" is very likely to be false positive.
>
> Add wait code to relax the status register check.
>
> Signed-off-by: Masahiro Yamada <yamada.masahiro at socionext.com>
Use readl_poll_timeout?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20160923/fdca9ba0/attachment.sig>
More information about the linux-arm-kernel
mailing list