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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jul 2021 15:00:17 +0000 (17:00 +0200)
commit6594ac2b44cc88638c0d27dec0fdae3567fcbb2d
treeb6e04915cf67408eb7e9a4f59ecd6c162b148066
parentf27107344ce9c6d5b87ee028cdf947632b56d083
fsi: scom: Reset the FSI2PIB engine for any error

[ Upstream commit a5c317dac5567206ca7b6bc9d008dd6890c8bced ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/fsi/fsi-scom.c