fsi: scom: Don't abort operations for minor errors

The scom driver currently fails out of operations if certain system
errors are flagged in the status register; system checkstop, special
attention, or recoverable error. These errors won't impact the ability
of the scom engine to perform operations, so the driver should continue
under these conditions.
Also, don't do a PIB reset for these conditions, since it won't help.

Fixes: 6b293258cded ("fsi: scom: Major overhaul")
Signed-off-by: Eddie James <eajames@linux.ibm.com>
Cc: stable <stable@vger.kernel.org>
Acked-by: Jeremy Kerr <jk@ozlabs.org>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Joel Stanley <joel@jms.id.au>
Link: https://lore.kernel.org/r/20190827041249.13381-1-jk@ozlabs.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by Eddie James and committed by Greg Kroah-Hartman 8919dfcb 468e0ffa

Changed files
+1 -7
drivers
+1 -7
drivers/fsi/fsi-scom.c
··· 38 38 #define SCOM_STATUS_PIB_RESP_MASK 0x00007000 39 39 #define SCOM_STATUS_PIB_RESP_SHIFT 12 40 40 41 - #define SCOM_STATUS_ANY_ERR (SCOM_STATUS_ERR_SUMMARY | \ 42 - SCOM_STATUS_PROTECTION | \ 41 + #define SCOM_STATUS_ANY_ERR (SCOM_STATUS_PROTECTION | \ 43 42 SCOM_STATUS_PARITY | \ 44 43 SCOM_STATUS_PIB_ABORT | \ 45 44 SCOM_STATUS_PIB_RESP_MASK) ··· 250 251 /* Return -EBUSY on PIB abort to force a retry */ 251 252 if (status & SCOM_STATUS_PIB_ABORT) 252 253 return -EBUSY; 253 - if (status & SCOM_STATUS_ERR_SUMMARY) { 254 - fsi_device_write(scom->fsi_dev, SCOM_FSI2PIB_RESET_REG, &dummy, 255 - sizeof(uint32_t)); 256 - return -EIO; 257 - } 258 254 return 0; 259 255 } 260 256