]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
scsi: ufs: core: Retry START_STOP on UNIT_ATTENTION
authorJaegeuk Kim <jaegeuk@kernel.org>
Fri, 1 Oct 2021 18:20:14 +0000 (11:20 -0700)
committerAndrea Righi <andrea.righi@canonical.com>
Tue, 4 Jan 2022 08:49:24 +0000 (09:49 +0100)
commit5227a008166708679df5c38257cc654731d2aba8
tree21249b690d41b700bd821ec365d4d18bb90ab083
parente0da4e561006c9b65afda55285bc2e0f139cc8c9
scsi: ufs: core: Retry START_STOP on UNIT_ATTENTION

BugLink: https://bugs.launchpad.net/bugs/1956302
commit af21c3fd5b3ec540a97b367a70b26616ff7e0c55 upstream.

Commit 57d104c153d3 ("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.

Link: https://lore.kernel.org/r/20211001182015.1347587-2-jaegeuk@kernel.org
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>
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
drivers/scsi/ufs/ufshcd.c