mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04:00
cnss2: Add link status check before dumping MHI registers
Add link status check before dumping MHI registers to avoid NOC errors while accessing the registers. Change-Id: I907ee4ea348589a9228fad5b52d8d27587225352 Signed-off-by: Mohammed Siddiq <msiddiq@codeaurora.org>
This commit is contained in:
parent
77e9e8d645
commit
cc58da05f8
1 changed files with 4 additions and 1 deletions
|
|
@ -4756,7 +4756,10 @@ int cnss_pci_force_fw_assert_hdlr(struct cnss_pci_data *pci_priv)
|
|||
return -EINVAL;
|
||||
|
||||
cnss_auto_resume(&pci_priv->pci_dev->dev);
|
||||
mhi_debug_reg_dump(pci_priv->mhi_ctrl);
|
||||
|
||||
if (!cnss_pci_check_link_status(pci_priv))
|
||||
mhi_debug_reg_dump(pci_priv->mhi_ctrl);
|
||||
|
||||
cnss_pci_dump_misc_reg(pci_priv);
|
||||
cnss_pci_dump_shadow_reg(pci_priv);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue