[PATCH RFC net-next 3/7] net: stmmac: remove redundant WoL option validation
Andrew Lunn
andrew at lunn.ch
Mon Jul 28 10:06:19 PDT 2025
On Mon, Jul 28, 2025 at 04:45:42PM +0100, Russell King (Oracle) wrote:
> The core ethtool API validates the WoL options passed from userspace
> against the support which the driver reports from its get_wol() method,
> returning EINVAL if an unsupported mode is requested.
>
> Therefore, there is no need for stmmac to implement its own validation.
> Remove this unnecessary code.
>
> See ethnl_set_wol() in net/ethtool/wol.c and ethtool_set_wol() in
> net/ethtool/ioctl.c.
>
> Signed-off-by: Russell King (Oracle) <rmk+kernel at armlinux.org.uk>
Reviewed-by: Andrew Lunn <andrew at lunn.ch>
Andrew
More information about the linux-arm-kernel
mailing list