| Date | Mon, 16 Oct 2023 16:59:24 +0200 | From | Andrew Lunn <> | Subject | Re: [PATCH net-next v4 4/9] net: dsa: microchip: ksz9477: add Wake on LAN support |
| |
> +int ksz9477_set_wol(struct ksz_device *dev, int port, > + struct ethtool_wolinfo *wol) > +{ > + u8 pme_conf, pme_ctrl = 0; > + int ret; > + > + if (wol->wolopts & ~WAKE_PHY) > + return -EINVAL;
EOPNOTSUPP might be better here. I'm assuming there is no other way WoL can be supported, since this is a combined MAC/PHY device.
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Andrew
|