From 3564520a5ef0ad521c99961048287261c46527be Mon Sep 17 00:00:00 2001 From: Subhash Jadavani Date: Wed, 10 Feb 2016 11:29:27 -0800 Subject: 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 --- drivers/scsi/ufs/ufs-qcom-ice.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'drivers') 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) -- cgit v1.2.3