OSDN Git Service

scsi: ufs: fix multiple ufs spec violation
authorDolev Raviv <draviv@codeaurora.org>
Fri, 23 Dec 2016 02:40:07 +0000 (18:40 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 5 Jan 2017 23:10:03 +0000 (18:10 -0500)
commite7d38257a40f880c6625fac33956d5e99dcd63a6
treec5ec688be7a6cfbfe4d9e0adfa3eb80944389d71
parent7ff5ab4736333431311a4cbbfb574b155758b08c
scsi: ufs: fix multiple ufs spec violation

When a command to a W-LU is timed out via scsi, error handling
will treat it as any other LU and send commands such as
START_STOP with wrong format or task abort. Those commands are
illegal for W-LU according to the UFS spec.
To solve it, when an error is recognized those steps are skipped
and the last step, reset and restore process, is initiated.

Signed-off-by: Dolev Raviv <draviv@codeaurora.org>
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufshcd.c