On Thu, Dec 16, 2021 at 12:07:49PM +0200, Adrian Hunter wrote:
From: Jaegeuk Kim jaegeuk@kernel.org
commit af21c3fd5b3ec540a97b367a70b26616ff7e0c55 upstream.
Note for stable: This patch is required if commit edc0596cc04bf ("scsi: ufs: core: Stop clearing UNIT ATTENTIONS") has been cherry-picked.
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 [Adrian: For stable] Signed-off-by: Adrian Hunter adrian.hunter@intel.com
drivers/scsi/ufs/ufshcd.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-)
Now queued up, thanks.
greg k-h