qcacmn: Remove service ready callback for smartlog enable

Remove service ready callback for smartlog enable.

Change-Id: I1d2807b0ec59b4f38bb8e2ac5365f3b57cf37437
This commit is contained in:
Chaitanya Kiran Godavarthi
2019-02-01 00:27:34 +05:30
committed by nshrivas
parent e0b3414ea7
commit 6df18d4da8
5 changed files with 8 additions and 32 deletions

View File

@@ -279,9 +279,6 @@ struct target_ops {
struct wlan_objmgr_psoc *psoc, struct wlan_objmgr_psoc *psoc,
struct target_psoc_info *tgt_hdl, struct target_psoc_info *tgt_hdl,
uint8_t *evt_buf); uint8_t *evt_buf);
void (*smart_log_enable)
(struct wlan_objmgr_psoc *psoc,
struct target_psoc_info *tgt_info, uint8_t *event);
void (*eapol_minrate_enable) void (*eapol_minrate_enable)
(struct wlan_objmgr_psoc *psoc, (struct wlan_objmgr_psoc *psoc,
struct target_psoc_info *tgt_info, uint8_t *event); struct target_psoc_info *tgt_info, uint8_t *event);
@@ -2118,24 +2115,5 @@ static inline int32_t target_psoc_get_num_hw_modes
return tgt_hdl->info.service_ext_param.num_hw_modes; return tgt_hdl->info.service_ext_param.num_hw_modes;
} }
/**
* target_if_smart_log enable() - Enable Smart Logs
* @psoc: psoc object
* @tgt_hdl: target_psoc_info pointer
* @evt_buf: Service ready Event buffer received from FW
*
* API to enable Smart Logs
*
* Return: none
*/
static inline void target_if_smart_log_enable
(struct wlan_objmgr_psoc *psoc,
struct target_psoc_info *tgt_hdl,
uint8_t *evt_buf)
{
if ((tgt_hdl->tif_ops) && (tgt_hdl->tif_ops->smart_log_enable))
tgt_hdl->tif_ops->smart_log_enable(psoc, tgt_hdl, evt_buf);
}
#endif #endif

View File

@@ -177,7 +177,6 @@ static int init_deinit_service_ready_event_handler(ol_scn_t scn_handle,
target_if_debug("Wait for EXT message"); target_if_debug("Wait for EXT message");
} }
target_if_smart_log_enable(psoc, tgt_hdl, event);
exit: exit:
return err_code; return err_code;
} }

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2018 The Linux Foundation. All rights reserved. * Copyright (c) 2018-2019 The Linux Foundation. All rights reserved.
* *
* Permission to use, copy, modify, and/or distribute this software for * Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the * any purpose with or without fee is hereby granted, provided that the
@@ -140,12 +140,12 @@ void fwdbg_set_report_size(struct common_dbglog_handle *dbg_handle,
} }
int fwdbg_smartlog_init(struct common_dbglog_handle *dbg_handle, void *soc) int fwdbg_smartlog_init(struct common_dbglog_handle *dbg_handle, void *icp)
{ {
struct dbglog_info *dbg_info = handle2info(dbg_handle); struct dbglog_info *dbg_info = handle2info(dbg_handle);
if (dbg_info->ops->smartlog_init) if (dbg_info->ops->smartlog_init)
return dbg_info->ops->smartlog_init(soc); return dbg_info->ops->smartlog_init(icp);
return 0; return 0;
} }

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2018 The Linux Foundation. All rights reserved. * Copyright (c) 2018-2019 The Linux Foundation. All rights reserved.
* *
* Permission to use, copy, modify, and/or distribute this software for * Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the * any purpose with or without fee is hereby granted, provided that the
@@ -172,11 +172,11 @@ void fwdbg_set_report_size(struct common_dbglog_handle *dbg_handle,
/** /**
* fwdbg_smartlog_init() - initialize smart logging feature * fwdbg_smartlog_init() - initialize smart logging feature
* @dbg_handle: Debug module handle * @dbg_handle: Debug module handle
* @soc: soc handler * @ic: ic handler
* *
* Return: 0 Success * Return: 0 Success
*/ */
int fwdbg_smartlog_init(struct common_dbglog_handle *dbg_handle, void *soc); int fwdbg_smartlog_init(struct common_dbglog_handle *dbg_handle, void *icp);
/** /**
* fwdbg_smartlog_deinit() - uninitializes smart logging feature * fwdbg_smartlog_deinit() - uninitializes smart logging feature
@@ -199,5 +199,4 @@ void fwdbg_smartlog_deinit(struct common_dbglog_handle *dbg_handle, void *sc);
ssize_t fwdbg_smartlog_dump(struct common_dbglog_handle *dbg_handle, ssize_t fwdbg_smartlog_dump(struct common_dbglog_handle *dbg_handle,
struct device *dev, struct device *dev,
struct device_attribute *attr, char *buf); struct device_attribute *attr, char *buf);
#endif /* _FW_DBGLOG_API_H_ */ #endif /* _FW_DBGLOG_API_H_ */

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2018 The Linux Foundation. All rights reserved. * Copyright (c) 2018-2019 The Linux Foundation. All rights reserved.
* *
* Permission to use, copy, modify, and/or distribute this software for * Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the * any purpose with or without fee is hereby granted, provided that the
@@ -41,7 +41,7 @@ void (*dbglog_module_log_enable)(ol_scn_t scn,
void (*dbglog_init)(void *scn); void (*dbglog_init)(void *scn);
void (*dbglog_set_report_size)(ol_scn_t scn, uint16_t size); void (*dbglog_set_report_size)(ol_scn_t scn, uint16_t size);
void (*dbglog_free)(void *soc); void (*dbglog_free)(void *soc);
int (*smartlog_init)(void *sc); int (*smartlog_init)(void *icp);
void (*smartlog_deinit)(void *sc); void (*smartlog_deinit)(void *sc);
ssize_t (*smartlog_dump)(struct device *dev, ssize_t (*smartlog_dump)(struct device *dev,
struct device_attribute *attr, char *buf); struct device_attribute *attr, char *buf);