fsi: scom: Reset the FSI2PIB engine for any error
authorEddie James <eajames@linux.ibm.com>
Mon, 29 Mar 2021 15:13:44 +0000 (10:13 -0500)
committerJoel Stanley <joel@jms.id.au>
Fri, 4 Jun 2021 04:49:48 +0000 (14:19 +0930)
commita5c317dac5567206ca7b6bc9d008dd6890c8bced
treec7c25ebb99d427466e4343859c6a1cd1983dd603
parent4134cb9165786761b28eef4c6b945f13bf54d623
fsi: scom: Reset the FSI2PIB engine for any error

The error bits in the FSI2PIB status are only cleared by a reset. So
the driver needs to perform a reset after seeing any of the FSI2PIB
errors, otherwise subsequent operations will also look like failures.

Fixes: 6b293258cded ("fsi: scom: Major overhaul")
Signed-off-by: Eddie James <eajames@linux.ibm.com>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Link: https://lore.kernel.org/r/20210329151344.14246-1-eajames@linux.ibm.com
Signed-off-by: Joel Stanley <joel@jms.id.au>
drivers/fsi/fsi-scom.c