qcacmn: Implement hif_dummy_map_ce_to_irq
Implement hif_dummy_map_ce_to_irq to prevent runtime errors on new platforms that do not use hif_map_ce_to_irq. Change-Id: I9e3da22e237c351ecc9919e69d8d68a656ef7cc9 CRs-Fixed: 2028145
This commit is contained in:

committed by
Sandeep Puligilla

parent
2e59ee0145
commit
07d24be439
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2016 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2016-2017 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
|
||||
*
|
||||
@@ -355,3 +355,12 @@ int hif_dummy_bus_reset_resume(struct hif_softc *hif_ctx)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
int hif_dummy_map_ce_to_irq(struct hif_softc *scn, int ce_id)
|
||||
{
|
||||
HIF_ERROR("%s: hif_map_ce_to_irq is not implemented on this platform",
|
||||
__func__);
|
||||
QDF_BUG(0);
|
||||
return -(1);
|
||||
}
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2016 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2016-2017 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
|
||||
*
|
||||
@@ -62,4 +62,5 @@ void hif_dummy_clear_stats(struct hif_softc *hif_ctx);
|
||||
void hif_dummy_set_bundle_mode(struct hif_softc *hif_ctx,
|
||||
bool enabled, int rx_bundle_cnt);
|
||||
int hif_dummy_bus_reset_resume(struct hif_softc *hif_ctx);
|
||||
int hif_dummy_map_ce_to_irq(struct hif_softc *scn, int ce_id);
|
||||
|
||||
|
@@ -66,6 +66,7 @@ static void hif_intialize_default_ops(struct hif_softc *hif_sc)
|
||||
bus_ops->hif_bus_late_resume = &hif_dummy_bus_resume;
|
||||
bus_ops->hif_grp_irq_disable = &hif_dummy_grp_irq_disable;
|
||||
bus_ops->hif_grp_irq_enable = &hif_dummy_grp_irq_enable;
|
||||
bus_ops->hif_map_ce_to_irq = &hif_dummy_map_ce_to_irq;
|
||||
}
|
||||
|
||||
#define NUM_OPS (sizeof(struct hif_bus_ops) / sizeof(void *))
|
||||
|
Reference in New Issue
Block a user