scsi: ufs: handle errors from PHY_ADAPTER_ERROR register
authorDolev Raviv <draviv@codeaurora.org>
Thu, 24 Nov 2016 00:32:32 +0000 (16:32 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 29 Nov 2016 17:06:56 +0000 (12:06 -0500)
commitfb7b45f0462f144e1924a357995552f24f0c9d0c
tree95d1686959d5d24c03fdd766207be705463c5616
parent7caf489b99a42a9017ef3d733912aea8794677e7
scsi: ufs: handle errors from PHY_ADAPTER_ERROR register

The PHY_ADAPTER_ERROR status register indicates PHY lane errors
reported by the M-PHY layer. In some occasions the controller
can recover from such errors. When the error is not recoverable,
a stuck DB error will occur. Since the stuck DB error is spotted
separately, no action other than clearing the register is necessary.

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
drivers/scsi/ufs/ufshci.h