qcacmn: Fix for wifi reload

Disable the PCI during wifi down.
Pass correct values when target awake is checked.

Change-Id: Iaf8e03056d6cfdba19350adac9085e6ac2d4e58c
Acked-by: Venkateswara Swamy Bandaru <vbandaru@codeaurora.org>
CRs-Fixed: 1009050
This commit is contained in:
Houston Hoffman
2016-05-10 17:07:36 -07:00
committed by Gerrit - the friendly Code Review server
parent fb698efe55
commit f241eb09ae

View File

@@ -392,7 +392,7 @@ bool hif_targ_is_awake(struct hif_softc *scn, void *__iomem *mem)
return false;
val = hif_read32_mb(mem + PCIE_LOCAL_BASE_ADDRESS
+ RTC_STATE_ADDRESS);
return RTC_STATE_V_GET(val) == RTC_STATE_V_ON;
return (RTC_STATE_V_GET(val) & RTC_STATE_V_ON) == RTC_STATE_V_ON;
}
#endif
@@ -2410,6 +2410,7 @@ void hif_pci_disable_bus(struct hif_softc *scn)
HOST_GROUP0_MASK);
}
hif_pci_device_reset(sc);
mem = (void __iomem *)sc->mem;
if (mem) {
pci_disable_msi(pdev);