Commit ad6511e6 authored by Jaegeuk Kim's avatar Jaegeuk Kim Committed by Bart Van Assche
Browse files

BACKPORT: FROMGIT: scsi: ufs: core: Retry START_STOP on UNIT_ATTENTION

Commit 57d104c1 ("ufs: add UFS power management support") made the UFS
driver submit a REQUEST SENSE command before submitting a power management
command to a WLUN to clear the POWER ON unit attention. Instead of
submitting a REQUEST SENSE command before submitting a power management
command, retry the power management command until it succeeds.

This is the preparation to get rid of all UNIT ATTENTION code which should
be handled by users.

Bug: 194712579
Link: https://lore.kernel.org/r/20211001182015.1347587-2-jaegeuk@kernel.org
(cherry picked from commit af21c3fd
    git://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git

 for-next)
Cc: Adrian Hunter <adrian.hunter@intel.com>
Reviewed-by: default avatarBart Van Assche <bvanassche@acm.org>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
Change-Id: I7e639d89ae9fbd5ff0f1b3a6e5cbe77682ebefc0
Bug: 207618707
Signed-off-by: default avatarBart Van Assche <bvanassche@google.com>
parent 0632e694
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment