qcacmn: Add support to register hif recovery notifier

Add support to register hif recovery notifier to log
hang event data.

Change-Id: I7e7ce2bacc88f00e68c2c347c3a578f377f8214f
CRs-Fixed: 2649147
This commit is contained in:
Yeshwanth Sriram Guntuka
2020-03-27 14:42:44 +05:30
committed by nshrivas
parent 1167fc9bd4
commit 8cf020f44a
4 changed files with 98 additions and 5 deletions

View File

@@ -4219,10 +4219,9 @@ int ce_get_index_info(struct hif_softc *scn, void *ce_state,
return hif_state->ce_services->ce_get_index_info(scn, ce_state, info);
}
void hif_log_ce_info(struct hif_opaque_softc *hif_ctx, uint8_t *data,
void hif_log_ce_info(struct hif_softc *scn, uint8_t *data,
unsigned int *offset)
{
struct hif_softc *scn = HIF_GET_SOFTC(hif_ctx);
struct hang_event_info info = {0};
static uint32_t tracked_ce = BIT(CE_ID_1) | BIT(CE_ID_2) |
BIT(CE_ID_3) | BIT(CE_ID_4) | BIT(CE_ID_9) | BIT(CE_ID_10);