[Skiboot] [PATCH] p8-i2c: Limit number of retry attempts
Stewart Smith
stewart at linux.vnet.ibm.com
Wed Nov 22 07:36:15 AEDT 2017
Oliver O'Halloran <oohall at gmail.com> writes:
> Current we will attempt to start an I2C transaction until it succeeds.
> In the event that the OCC does not release the lock on an I2C bus this
> results in an async token being held forever and the kernel thread that
> started the transaction will block forever while waiting for an async
> completion message. Fix this by limiting the number of attempts to
> start the transaction.
>
> Signed-off-by: Oliver O'Halloran <oohall at gmail.com>
> ---
> hw/p8-i2c.c | 12 ++++++++++--
> include/i2c.h | 1 +
> 2 files changed, 11 insertions(+), 2 deletions(-)
Thanks, merged to master as of c2e404aedd52da91fdf605e24b9d1ae7894974c5.
--
Stewart Smith
OPAL Architect, IBM.
More information about the Skiboot
mailing list