[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aYGw80IvE0TG7WOx@smile.fi.intel.com>
Date: Tue, 3 Feb 2026 10:25:23 +0200
From: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
To: Ethan Nelson-Moore <enelsonmoore@...il.com>
Cc: linux-usb@...r.kernel.org, netdev@...r.kernel.org,
Vadim Fedorenko <vadim.fedorenko@...ux.dev>,
Andrew Lunn <andrew@...n.ch>, Andrew Lunn <andrew+netdev@...n.ch>,
"David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>,
Peter Korsgaard <peter@...sgaard.com>,
Steve Glendinning <steve.glendinning@...well.net>,
Oliver Neukum <oneukum@...e.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Oleksij Rempel <o.rempel@...gutronix.de>,
Max Schulze <max.schulze@...ine.de>,
Krzysztof HaĆasa <khalasa@...p.pl>
Subject: Re: [PATCH net-next v4] net: usb: introduce usbnet_mii_ioctl helper
function
On Mon, Feb 02, 2026 at 05:34:55PM -0800, Ethan Nelson-Moore wrote:
> Many USB network drivers use identical code to pass ioctl
> requests on to the MII layer. Reduce code duplication by
> refactoring this code into a helper function.
Reviewed-by: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
...
> extern void usbnet_set_msglevel(struct net_device *, u32);
> extern void usbnet_set_rx_mode(struct net_device *net);
> extern void usbnet_get_drvinfo(struct net_device *, struct ethtool_drvinfo *);
> +extern int usbnet_mii_ioctl(struct net_device *net, struct ifreq *rq, int cmd);
Do we still need to populate 'extern'? Can we get rid of this redundancy?
> extern int usbnet_nway_reset(struct net_device *net);
> extern int usbnet_manage_power(struct usbnet *, int);
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists