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:Bart Van Assche <bvanassche@acm.org> Signed-off-by:
Jaegeuk Kim <jaegeuk@kernel.org> Signed-off-by:
Martin K. Petersen <martin.petersen@oracle.com> Change-Id: I7e639d89ae9fbd5ff0f1b3a6e5cbe77682ebefc0 Bug: 207618707 Signed-off-by:
Bart Van Assche <bvanassche@google.com>
Loading
Please sign in to comment