qcacmn: Add support for QCA6290 platform

Add support for QCA6290 platform and introduced an hif api to enable,
disable polled mode.

Change-Id: I16e210fef93251b33928788cf873117249c2d70f
Esse commit está contido em:
Balamurugan Mahalingam
2018-01-29 19:15:02 +05:30
commit de snandini
commit 3ab3633184
5 arquivos alterados com 26 adições e 1 exclusões

Ver arquivo

@@ -490,6 +490,9 @@ QDF_STATUS hif_diag_write_mem(struct hif_opaque_softc *hif_ctx,
typedef void (*fastpath_msg_handler)(void *, qdf_nbuf_t *, uint32_t);
void hif_enable_polled_mode(struct hif_opaque_softc *hif_ctx);
bool hif_is_polled_mode_enabled(struct hif_opaque_softc *hif_ctx);
/*
* Set the FASTPATH_mode_on flag in sc, for use by data path
*/

Ver arquivo

@@ -1214,7 +1214,8 @@ struct CE_handle *ce_init(struct hif_softc *scn,
/* epping */
/* poll timer */
if ((CE_state->attr_flags & CE_ATTR_ENABLE_POLL)) {
if ((CE_state->attr_flags & CE_ATTR_ENABLE_POLL) ||
scn->polled_mode_on) {
qdf_timer_init(scn->qdf_dev,
&CE_state->poll_timer,
ce_poll_timeout,
@@ -1274,6 +1275,14 @@ void hif_enable_fastpath(struct hif_opaque_softc *hif_ctx)
scn->fastpath_mode_on = true;
}
void hif_enable_polled_mode(struct hif_opaque_softc *hif_ctx)
{
struct hif_softc *scn = HIF_GET_SOFTC(hif_ctx);
HIF_DBG("%s, Enabling polled mode", __func__);
scn->polled_mode_on = true;
}
/**
* hif_is_fastpath_mode_enabled - API to query if fasthpath mode is enabled
* @hif_ctx: HIF Context
@@ -1289,6 +1298,13 @@ bool hif_is_fastpath_mode_enabled(struct hif_opaque_softc *hif_ctx)
return scn->fastpath_mode_on;
}
bool hif_is_polled_mode_enabled(struct hif_opaque_softc *hif_ctx)
{
struct hif_softc *scn = HIF_GET_SOFTC(hif_ctx);
return scn->polled_mode_on;
}
/**
* hif_get_ce_handle - API to get CE handle for FastPath mode
* @hif_ctx: HIF Context

Ver arquivo

@@ -168,6 +168,7 @@ struct hif_softc {
qdf_dma_addr_t paddr_rri_on_ddr;
int linkstate_vote;
bool fastpath_mode_on;
bool polled_mode_on;
atomic_t tasklet_from_intr;
int htc_htt_tx_endpoint;
qdf_dma_addr_t mem_pa;

Ver arquivo

@@ -3689,6 +3689,10 @@ int hif_configure_irq(struct hif_softc *scn)
struct hif_pci_softc *sc = HIF_GET_PCI_SOFTC(scn);
HIF_TRACE("%s: E", __func__);
if (scn->polled_mode_on) {
scn->request_irq_done = false;
return 0;
}
hif_init_reschedule_tasklet_work(sc);