diff options
| author | Adrian Hunter <[email protected]> | 2021-10-02 18:45:49 +0300 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2021-10-04 22:20:38 -0400 |
| commit | 54a4045342a8bffabde1827bfd6d86b63163111d (patch) | |
| tree | 8836fa69593da49e64e2e0862b9ba4cc69c70250 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | edc0596cc04bf0ac3a69c66e994d3ff8b650ff71 (diff) | |
scsi: ufs: core: Do not exit ufshcd_reset_and_restore() unless operational or dead
Callers of ufshcd_reset_and_restore() expect it to return in an operational
state. However, the code only checks direct errors and so the ufshcd_state
may not be UFSHCD_STATE_OPERATIONAL due to error interrupts.
Fix by also checking ufshcd_state, still allowing non-fatal errors which
are left for the error handler to deal with.
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Avri altman <[email protected]>
Signed-off-by: Adrian Hunter <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions