On Thu, Dec 16, 2021 at 12:07:49PM +0200, Adrian Hunter wrote: > From: Jaegeuk Kim <jaegeuk@xxxxxxxxxx> > > 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@xxxxxxxxxx > Cc: Adrian Hunter <adrian.hunter@xxxxxxxxx> > Reviewed-by: Bart Van Assche <bvanassche@xxxxxxx> > Signed-off-by: Jaegeuk Kim <jaegeuk@xxxxxxxxxx> > Signed-off-by: Martin K. Petersen <martin.petersen@xxxxxxxxxx> > [Adrian: For stable] > Signed-off-by: Adrian Hunter <adrian.hunter@xxxxxxxxx> > --- > drivers/scsi/ufs/ufshcd.c | 12 +++++++++--- > 1 file changed, 9 insertions(+), 3 deletions(-) Now queued up, thanks. greg k-h