Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cc58da05 authored by Mohammed Siddiq's avatar Mohammed Siddiq
Browse files

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: default avatarMohammed Siddiq <msiddiq@codeaurora.org>
parent 77e9e8d6
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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);

	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);