瀏覽代碼

cnss2: Add code to notify mhi about link down

Add code to notify mhi about link down.In scenario of link down
recovery failure with SSR enabled, cnss-daemon posts a QMI req
during subsystem shutdown execution, the mhi layer tries to access
doorbell register to process the qmi msg but it leads to NOC error
as pci link is down. So added code to notify mhi about link down
to avoid NOC error.

Change-Id: I3ccc2cbda37e271f14f3821bb055db3107dac228
Manikandan Mohan 3 年之前
父節點
當前提交
51894fbfb9
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      cnss2/pci.c

+ 2 - 0
cnss2/pci.c

@@ -1653,6 +1653,8 @@ static void cnss_pci_handle_linkdown(struct cnss_pci_data *pci_priv)
 	}
 	pci_priv->pci_link_down_ind = true;
 	spin_unlock_irqrestore(&pci_link_down_lock, flags);
+	/* Notify MHI about link down*/
+	mhi_report_error(pci_priv->mhi_ctrl);
 
 	if (pci_dev->device == QCA6174_DEVICE_ID)
 		disable_irq(pci_dev->irq);