summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorSubhash Jadavani <subhashj@codeaurora.org>2016-02-10 11:29:27 -0800
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 21:25:43 -0700
commit3564520a5ef0ad521c99961048287261c46527be (patch)
treed3c44b8d3fb8798d48b9153c67f3017b96a3140f /drivers
parentcd30513be1024a4e7765b3e5fa8d325e435e3332 (diff)
scsi: ufs-qcom-ice: add support to print UFS ICE debug registers
We dump out the register information in case of UFS errors and ICE debug registers are also generally needed to debug these errors. This change calls into ICE driver's debug ops to print out the ICE register dump in error scenarios. CRs-Fixed: 960214 Change-Id: Ifed25208fab588985603bf418b4e77d90d13c440 Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/scsi/ufs/ufs-qcom-ice.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/scsi/ufs/ufs-qcom-ice.c b/drivers/scsi/ufs/ufs-qcom-ice.c
index 8e541925596e..5fde42e80b48 100644
--- a/drivers/scsi/ufs/ufs-qcom-ice.c
+++ b/drivers/scsi/ufs/ufs-qcom-ice.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014-2015, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2014-2016, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@@ -54,6 +54,9 @@ void ufs_qcom_ice_print_regs(struct ufs_qcom_host *qcom_host)
(REG_UFS_QCOM_ICE_CTRL_INFO_2_n + 8 * i)));
}
+ if (qcom_host->ice.pdev && qcom_host->ice.vops &&
+ qcom_host->ice.vops->debug)
+ qcom_host->ice.vops->debug(qcom_host->ice.pdev);
}
static void ufs_qcom_ice_error_cb(void *host_ctrl, u32 error)