[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <8ac80d7b-340b-4b3f-b854-98a6a3c1fe41@linux.intel.com>
Date: Mon, 8 Apr 2024 14:32:24 +0300
From: "naamax.meir" <naamax.meir@...ux.intel.com>
To: Bjorn Helgaas <helgaas@...nel.org>,
Jesse Brandeburg <jesse.brandeburg@...el.com>,
Tony Nguyen <anthony.l.nguyen@...el.com>,
"David S . Miller" <davem@...emloft.net>, Eric Dumazet
<edumazet@...gle.com>, Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>
Cc: Sasha Neftin <sasha.neftin@...el.com>, netdev@...r.kernel.org,
"Rafael J . Wysocki" <rafael.j.wysocki@...el.com>,
linux-kernel@...r.kernel.org, Bjorn Helgaas <bhelgaas@...gle.com>,
intel-wired-lan@...ts.osuosl.org, Zheng Yan <zheng.z.yan@...el.com>,
Konstantin Khlebnikov <khlebnikov@...nvz.org>,
Heiner Kallweit <hkallweit1@...il.com>
Subject: Re: [Intel-wired-lan] [PATCH 3/3] igc: Remove redundant runtime
resume for ethtool ops
On 3/26/2024 00:29, Bjorn Helgaas wrote:
> From: Bjorn Helgaas <bhelgaas@...gle.com>
>
> 8c5ad0dae93c ("igc: Add ethtool support") added ethtool_ops.begin() and
> .complete(), which used pm_runtime_get_sync() to resume suspended devices
> before any ethtool_ops callback and allow suspend after it completed.
>
> Subsequently, f32a21376573 ("ethtool: runtime-resume netdev parent before
> ethtool ioctl ops") added pm_runtime_get_sync() in the dev_ethtool() path,
> so the device is resumed before any ethtool_ops callback even if the driver
> didn't supply a .begin() callback.
>
> Remove the .begin() and .complete() callbacks, which are now redundant
> because dev_ethtool() already resumes the device.
>
> Signed-off-by: Bjorn Helgaas <bhelgaas@...gle.com>
> ---
> drivers/net/ethernet/intel/igc/igc_ethtool.c | 17 -----------------
> 1 file changed, 17 deletions(-)
Tested-by: Naama Meir <naamax.meir@...ux.intel.com>
Powered by blists - more mailing lists