Commit ad6c8a4
scsi: ufs: Use generic error code in ufshcd_set_dev_pwr_mode()
The return value of ufshcd_set_dev_pwr_mode() is passed to device PM
core. However, the function currently returns a SCSI result which the PM
core doesn't understand. This might lead to unexpected behaviors in
userland; a platform reset was observed in Android.
Use a generic error code for SSU failures.
Link: https://lore.kernel.org/r/1642743182-54098-1-git-send-email-kwmad.kim@samsung.com
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Kiwoong Kim <kwmad.kim@samsung.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>1 parent 012d98d commit ad6c8a4
1 file changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8613 | 8613 | | |
8614 | 8614 | | |
8615 | 8615 | | |
8616 | | - | |
| 8616 | + | |
8617 | 8617 | | |
8618 | 8618 | | |
8619 | 8619 | | |
| |||
8667 | 8667 | | |
8668 | 8668 | | |
8669 | 8669 | | |
8670 | | - | |
8671 | | - | |
| 8670 | + | |
| 8671 | + | |
| 8672 | + | |
| 8673 | + | |
| 8674 | + | |
8672 | 8675 | | |
8673 | 8676 | | |
8674 | 8677 | | |
| |||
0 commit comments