cnss2: Notify WLAN host driver when SMMU fault is detected

Notify WLAN host drive FW down as soon as SMMU fault happens so
that it can do necessary cleanup as earlier as possible.

Change-Id: Ie34243de296d35ced3f2c1a1e4d50a6c551ae88d
Signed-off-by: Yue Ma <yuem@codeaurora.org>
This commit is contained in:
Yue Ma 2020-07-11 11:26:03 -07:00 • committed by Gerrit - the friendly Code Review server
commit e9ffae75af

View file

@ -3363,6 +3363,7 @@ static int cnss_pci_smmu_fault_handler(struct iommu_domain *domain,
return -ENODEV;
}
cnss_pci_update_status(pci_priv, CNSS_FW_DOWN);
cnss_force_fw_assert(&pci_priv->pci_dev->dev);
/* IOMMU driver requires non-zero return value to print debug info. */