qcacmn: Add hif_needs_bmi api
Since the logic requires device knowledge and could become more complicated, provice a hif api tho check. Change-Id: I6fbb8234a6c0a639afdd9a9a409688889e492bd7 CRs-Fixed: 986480
This commit is contained in:

committed by
Vishwajith Upendra

parent
f303f91734
commit
26352594d9
@@ -490,6 +490,7 @@ void hif_get_hw_info(struct hif_opaque_softc *scn, u32 *version, u32 *revision,
|
|||||||
void hif_lro_flush_cb_register(struct hif_opaque_softc *scn,
|
void hif_lro_flush_cb_register(struct hif_opaque_softc *scn,
|
||||||
void (handler)(void *), void *data);
|
void (handler)(void *), void *data);
|
||||||
void hif_lro_flush_cb_deregister(struct hif_opaque_softc *scn);
|
void hif_lro_flush_cb_deregister(struct hif_opaque_softc *scn);
|
||||||
|
bool hif_needs_bmi(struct hif_opaque_softc *scn);
|
||||||
struct hif_target_info *hif_get_target_info_handle(struct hif_opaque_softc *
|
struct hif_target_info *hif_get_target_info_handle(struct hif_opaque_softc *
|
||||||
scn);
|
scn);
|
||||||
struct hif_config_info *hif_get_ini_handle(struct hif_opaque_softc *scn);
|
struct hif_config_info *hif_get_ini_handle(struct hif_opaque_softc *scn);
|
||||||
|
@@ -791,6 +791,18 @@ end:
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* hif_needs_bmi() - return true if the soc needs bmi through the driver
|
||||||
|
* @hif_ctx: hif context
|
||||||
|
*
|
||||||
|
* Return: true if the soc needs driver bmi otherwise false
|
||||||
|
*/
|
||||||
|
bool hif_needs_bmi(struct hif_opaque_softc *hif_ctx)
|
||||||
|
{
|
||||||
|
struct hif_softc *hif_sc = HIF_GET_SOFTC(hif_ctx);
|
||||||
|
return hif_sc->bus_type != QDF_BUS_TYPE_SNOC;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Target info and ini parameters are global to the driver
|
* Target info and ini parameters are global to the driver
|
||||||
* Hence these structures are exposed to all the modules in
|
* Hence these structures are exposed to all the modules in
|
||||||
|
Reference in New Issue
Block a user