From bf59b53218bb0d3e7c9b69a3a8e3c17a3e2bcbc2 Mon Sep 17 00:00:00 2001 From: Michal Swiatkowski Date: Tue, 12 Aug 2025 06:23:27 +0200 Subject: ice: allow calling custom send function in fwlog Fwlog code needs to communicate with FW. In ice it is done through admin queue command. Allow indirect calling the send function to move the specific admin queue send function from fwlog core code. Reviewed-by: Przemek Kitszel Signed-off-by: Michal Swiatkowski Tested-by: Rinitha S (A Contingent worker at Intel) Reviewed-by: Simon Horman Signed-off-by: Tony Nguyen --- drivers/net/ethernet/intel/ice/ice_debugfs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'drivers/net/ethernet/intel/ice/ice_debugfs.c') diff --git a/drivers/net/ethernet/intel/ice/ice_debugfs.c b/drivers/net/ethernet/intel/ice/ice_debugfs.c index 1e036bc128c5..9235ae099e17 100644 --- a/drivers/net/ethernet/intel/ice/ice_debugfs.c +++ b/drivers/net/ethernet/intel/ice/ice_debugfs.c @@ -350,14 +350,14 @@ ice_debugfs_enable_write(struct file *filp, const char __user *buf, else hw->fwlog.cfg.options &= ~ICE_FWLOG_OPTION_ARQ_ENA; - ret = ice_fwlog_set(hw, &hw->fwlog.cfg); + ret = ice_fwlog_set(&hw->fwlog, &hw->fwlog.cfg); if (ret) goto enable_write_error; if (enable) - ret = ice_fwlog_register(hw, &hw->fwlog); + ret = ice_fwlog_register(&hw->fwlog); else - ret = ice_fwlog_unregister(hw, &hw->fwlog); + ret = ice_fwlog_unregister(&hw->fwlog); if (ret) goto enable_write_error; -- cgit v1.2.3