qcacld-3.0: Don't set unload flags before unregister_driver when unloading
Don't set unload flags earlier before unregister_driver when driver unloading to avoid runtime resume failure. And set this flags earlier before wait_for_ops in the pld_pcie_remove to give chance SSR will be skipped if unloading is in progress. Change-Id: I084db32b436148932a2a90e3e1dcb1122f4303b5 CRs-Fixed: 2589413
Šī revīzija ir iekļauta:

revīziju iesūtīja
nshrivas

vecāks
dde47fa72d
revīzija
db568a828c
@@ -29,6 +29,7 @@
|
||||
#include "pld_internal.h"
|
||||
#include "pld_pcie.h"
|
||||
#include "osif_psoc_sync.h"
|
||||
#include <cds_api.h>
|
||||
|
||||
#ifdef CONFIG_PCI
|
||||
|
||||
@@ -91,6 +92,10 @@ static void pld_pcie_remove(struct pci_dev *pdev)
|
||||
return;
|
||||
|
||||
osif_psoc_sync_unregister(&pdev->dev);
|
||||
|
||||
cds_set_driver_loaded(false);
|
||||
cds_set_unload_in_progress(true);
|
||||
|
||||
osif_psoc_sync_wait_for_ops(psoc_sync);
|
||||
|
||||
pld_context = pld_get_global_context();
|
||||
|
Atsaukties uz šo jaunā problēmā
Block a user