Commit 7ce98fb6 authored by Eddie James's avatar Eddie James Committed by Greg Kroah-Hartman

fsi: sbefifo: Don't fail operations when in SBE IPL state

SBE fifo operations should be allowed while the SBE is in any of the
"IPL" states. Operations should succeed in this state.

Fixes: 9f4a8a2d fsi/sbefifo: Add driver for the SBE FIFO
Reviewed-by: default avatarJoel Stanley <joel@jms.id.au>
Tested-by: default avatarAlistair Popple <alistair@popple.id.au>
Signed-off-by: default avatarEddie James <eajames@linux.ibm.com>
Link: https://lore.kernel.org/r/1561575415-3282-1-git-send-email-eajames@linux.ibm.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 17c20f32
...@@ -289,11 +289,11 @@ static int sbefifo_check_sbe_state(struct sbefifo *sbefifo) ...@@ -289,11 +289,11 @@ static int sbefifo_check_sbe_state(struct sbefifo *sbefifo)
switch ((sbm & CFAM_SBM_SBE_STATE_MASK) >> CFAM_SBM_SBE_STATE_SHIFT) { switch ((sbm & CFAM_SBM_SBE_STATE_MASK) >> CFAM_SBM_SBE_STATE_SHIFT) {
case SBE_STATE_UNKNOWN: case SBE_STATE_UNKNOWN:
return -ESHUTDOWN; return -ESHUTDOWN;
case SBE_STATE_DMT:
return -EBUSY;
case SBE_STATE_IPLING: case SBE_STATE_IPLING:
case SBE_STATE_ISTEP: case SBE_STATE_ISTEP:
case SBE_STATE_MPIPL: case SBE_STATE_MPIPL:
case SBE_STATE_DMT:
return -EBUSY;
case SBE_STATE_RUNTIME: case SBE_STATE_RUNTIME:
case SBE_STATE_DUMP: /* Not sure about that one */ case SBE_STATE_DUMP: /* Not sure about that one */
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment