[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160921210335.GG1513@katana>
Date: Wed, 21 Sep 2016 23:03:35 +0200
From: Wolfram Sang <wsa@...-dreams.de>
To: Jan Glauber <jglauber@...ium.com>
Cc: linux-kernel@...r.kernel.org, linux-i2c@...r.kernel.org
Subject: Re: [PATCH 5/5] i2c: octeon,thunderx: Limit register access retries
On Wed, Sep 21, 2016 at 08:51:06AM +0200, Jan Glauber wrote:
> Do not infinitely retry register readq and writeq operations
> in order to not lock up the CPU in case the TWSI gets stuck.
>
> Return -EIO in case of a failed data read. For all other
> cases just return so subsequent operations will fail
> and trigger the recovery.
>
> Signed-off-by: Jan Glauber <jglauber@...ium.com>
I didn't really check, but have you considered using
readq_poll_timeout() from iopoll.h?
Download attachment "signature.asc" of type "application/pgp-signature" (820 bytes)
Powered by blists - more mailing lists