OSDN Git Service

scsi: ufs: add host state prints in failure cases
authorGilad Broner <gbroner@codeaurora.org>
Sat, 4 Feb 2017 00:57:28 +0000 (16:57 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 7 Feb 2017 23:04:12 +0000 (18:04 -0500)
commit6ba65588381d59ee412b7cb83752d582df731d5c
treefa5344c63b7194c9d38fd4d1896636c1fb51cdc7
parenta3cd5ec55f6c72834f812f9150deb38ddc019782
scsi: ufs: add host state prints in failure cases

Whenever some UFS failure occurs the driver prints the UFS
registers in order to help with analysis of the failure.
However this may not be sufficient in some cases, so having
the host controller state as it is represented and managed in
the driver will contribute to analysis efforts.
Added prints of various fields in the hba struct which may be
of interest.

Signed-off-by: Gilad Broner <gbroner@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