qcacmn: Controll target sleep in hif

Reduce the api footprint of hif and make hif responsible for controlling
its own timer as part of suspend resume.

Change-Id: I256161a8d147e99811f018c995081684f2bd0167
CRs-Fixed: 986480
This commit is contained in:
Houston Hoffman
2016-03-14 21:11:48 -07:00
committed by Vishwajith Upendra
父節點 00d42aeb8e
當前提交 e61d4e1382
共有 5 個文件被更改,包括 3 次插入34 次删除

查看文件

@@ -110,24 +110,6 @@ void hif_shut_down_device(struct hif_opaque_softc *scn)
hif_stop(scn);
}
/**
* hif_cancel_deferred_target_sleep() - cancel deferred target sleep
*
* This function cancels the defered target sleep
*
* @scn: hif_opaque_softc
*
* Return: void
*/
void hif_cancel_deferred_target_sleep(struct hif_opaque_softc *hif_ctx)
{
struct hif_softc *scn = HIF_GET_SOFTC(hif_ctx);
hif_pci_cancel_deferred_target_sleep(scn);
}
/**
* hif_get_target_id(): hif_get_target_id
*

查看文件

@@ -2251,6 +2251,8 @@ static int hif_bus_suspend_link_up(struct hif_softc *scn)
return -EINVAL;
}
hif_pci_cancel_deferred_target_sleep(scn);
return 0;
}
@@ -2297,7 +2299,6 @@ static int hif_bus_resume_link_up(struct hif_softc *scn)
static int hif_bus_suspend_link_down(struct hif_softc *scn)
{
struct pci_dev *pdev;
struct hif_opaque_softc *hif_hdl = GET_HIF_OPAQUE_HDL(scn);
struct hif_pci_softc *sc = HIF_GET_PCI_SOFTC(scn);
int status = 0;
@@ -2312,7 +2313,7 @@ static int hif_bus_suspend_link_down(struct hif_softc *scn)
}
/* Stop the HIF Sleep Timer */
hif_cancel_deferred_target_sleep(hif_hdl);
hif_pci_cancel_deferred_target_sleep(scn);
qdf_atomic_set(&scn->link_suspended, 1);