scsi: ufs: print TSTBUS_UTP_HCI testbus data
This change adds supports to print TESTBUS_UTP_HCI testbus data. Change-Id: I586a9f8cb6b38c546f1ec9e2f7e83ad2d1ad0625 Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org> Signed-off-by: Can Guo <cang@codeaurora.org>
This commit is contained in:
parent
cedd6dde99
commit
8250f4a796
1 changed files with 23 additions and 0 deletions
|
@ -2711,6 +2711,27 @@ static void ufs_qcom_print_unipro_testbus(struct ufs_hba *hba)
|
||||||
kfree(testbus);
|
kfree(testbus);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void ufs_qcom_print_utp_hci_testbus(struct ufs_hba *hba)
|
||||||
|
{
|
||||||
|
struct ufs_qcom_host *host = ufshcd_get_variant(hba);
|
||||||
|
u32 *testbus = NULL;
|
||||||
|
int i, nminor = 32, testbus_len = nminor * sizeof(u32);
|
||||||
|
|
||||||
|
testbus = kmalloc(testbus_len, GFP_KERNEL);
|
||||||
|
if (!testbus)
|
||||||
|
return;
|
||||||
|
|
||||||
|
host->testbus.select_major = TSTBUS_UTP_HCI;
|
||||||
|
for (i = 0; i <= nminor; i++) {
|
||||||
|
host->testbus.select_minor = i;
|
||||||
|
ufs_qcom_testbus_config(host);
|
||||||
|
testbus[i] = ufshcd_readl(hba, UFS_TEST_BUS);
|
||||||
|
}
|
||||||
|
print_hex_dump(KERN_ERR, "UTP_HCI_TEST_BUS ", DUMP_PREFIX_OFFSET,
|
||||||
|
16, 4, testbus, testbus_len, false);
|
||||||
|
kfree(testbus);
|
||||||
|
}
|
||||||
|
|
||||||
static void ufs_qcom_dump_dbg_regs(struct ufs_hba *hba, bool no_sleep)
|
static void ufs_qcom_dump_dbg_regs(struct ufs_hba *hba, bool no_sleep)
|
||||||
{
|
{
|
||||||
struct ufs_qcom_host *host = ufshcd_get_variant(hba);
|
struct ufs_qcom_host *host = ufshcd_get_variant(hba);
|
||||||
|
@ -2729,6 +2750,8 @@ static void ufs_qcom_dump_dbg_regs(struct ufs_hba *hba, bool no_sleep)
|
||||||
usleep_range(1000, 1100);
|
usleep_range(1000, 1100);
|
||||||
ufs_qcom_print_unipro_testbus(hba);
|
ufs_qcom_print_unipro_testbus(hba);
|
||||||
usleep_range(1000, 1100);
|
usleep_range(1000, 1100);
|
||||||
|
ufs_qcom_print_utp_hci_testbus(hba);
|
||||||
|
usleep_range(1000, 1100);
|
||||||
ufs_qcom_phy_dbg_register_dump(phy);
|
ufs_qcom_phy_dbg_register_dump(phy);
|
||||||
usleep_range(1000, 1100);
|
usleep_range(1000, 1100);
|
||||||
ufs_qcom_ice_print_regs(host);
|
ufs_qcom_ice_print_regs(host);
|
||||||
|
|
Loading…
Add table
Reference in a new issue