mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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: 9f4a8a2d7f fsi/sbefifo: Add driver for the SBE FIFO
Reviewed-by: Joel Stanley <[email protected]>
Tested-by: Alistair Popple <[email protected]>
Signed-off-by: Eddie James <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
17c20f329a
commit
7ce98fb6c5
1 changed files with 2 additions and 2 deletions
|
|
@ -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) {
|
||||
case SBE_STATE_UNKNOWN:
|
||||
return -ESHUTDOWN;
|
||||
case SBE_STATE_DMT:
|
||||
return -EBUSY;
|
||||
case SBE_STATE_IPLING:
|
||||
case SBE_STATE_ISTEP:
|
||||
case SBE_STATE_MPIPL:
|
||||
case SBE_STATE_DMT:
|
||||
return -EBUSY;
|
||||
case SBE_STATE_RUNTIME:
|
||||
case SBE_STATE_DUMP: /* Not sure about that one */
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue