cnss2: Add PCIe's link resume failed event
Add BUS_EVENT_PCIE_LINK_RESUME_FAIL type to bus event type. Change-Id: If13f53ed9f2c6968eed5e11343cc493e740d82bd CRs-Fixed: 3646812
Цей коміт міститься в:
@@ -782,6 +782,9 @@ static struct cnss_print_optimize print_optimize;
|
||||
static int cnss_pci_update_fw_name(struct cnss_pci_data *pci_priv);
|
||||
static void cnss_pci_suspend_pwroff(struct pci_dev *pci_dev);
|
||||
static bool cnss_should_suspend_pwroff(struct pci_dev *pci_dev);
|
||||
static void cnss_pci_update_link_event(struct cnss_pci_data *pci_priv,
|
||||
enum cnss_bus_event_type type,
|
||||
void *data);
|
||||
|
||||
|
||||
#if IS_ENABLED(CONFIG_MHI_BUS_MISC)
|
||||
@@ -1463,6 +1466,8 @@ int cnss_resume_pci_link(struct cnss_pci_data *pci_priv)
|
||||
ret = cnss_set_pci_link(pci_priv, PCI_LINK_UP);
|
||||
if (ret) {
|
||||
ret = -EAGAIN;
|
||||
cnss_pci_update_link_event(pci_priv,
|
||||
BUS_EVENT_PCI_LINK_RESUME_FAIL, NULL);
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
Посилання в новій задачі
Заблокувати користувача