Hi Callers of ufshcd_reset_and_restore() and ufshcd_err_handler() expect them to return in an operational state. However, the code does not check the state before exiting. Here are a couple of patches to correct that. Adrian Hunter (2): scsi: ufs: Do not exit ufshcd_reset_and_restore() unless operational or dead scsi: ufs: Do not exit ufshcd_err_handler() unless operational or dead drivers/scsi/ufs/ufshcd.c | 66 ++++++++++++++++++++++++++++++++++------------- 1 file changed, 48 insertions(+), 18 deletions(-) Regards Adrian