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 14:56:41 +0000 (16:56 +0200)
commitaf3d7f9e266bb03b103b197f3909c213bcb81362
tree9389f83fb040c50f5a25653806720ff40600d29c
parent446eed9c855e83dfcd3237388912171a8a9c761a
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