Re: [PATCH 2/3] usbnet: add method for reporting speed without MDIO

2021-01-11 Thread Oliver Neukum
Am Donnerstag, den 07.01.2021, 20:27 +0100 schrieb Andrew Lunn: > On Thu, Jan 07, 2021 at 12:35:17PM +0100, Oliver Neukum wrote: > > Hi Oliver > > > +++ b/include/linux/usb/usbnet.h > > @@ -53,6 +53,8 @@ struct usbnet { > > u32 hard_mtu; /* count any extra framing */

Re: [PATCH 2/3] usbnet: add method for reporting speed without MDIO

2021-01-07 Thread Andrew Lunn
On Thu, Jan 07, 2021 at 12:35:17PM +0100, Oliver Neukum wrote: Hi Oliver > +++ b/include/linux/usb/usbnet.h > @@ -53,6 +53,8 @@ struct usbnet { > u32 hard_mtu; /* count any extra framing */ > size_t rx_urb_size;/* size for rx urbs */ >

[PATCH 2/3] usbnet: add method for reporting speed without MDIO

2021-01-07 Thread Oliver Neukum
The old method for reporting network speed upwards assumed that a device uses MDIO and uses the generic phy functions based on that. Add a a primitive internal version not making the assumption reporting back directly what the status operations record. Signed-off-by: Oliver Neukum Tested-by: Rola