RE: [PATCH net-next] lan78xx: Lan7801 Support for Fixed PHY

2018-04-25 Thread RaghuramChary.Jallipalli
Hi Florian, > It still is completely unnecessary, you can do something like the following: > > struct phy_device *phydev = netdev->phydev; > > phy_disconnect(phydev); > if (phy_is_pseudo_fixed_link(phydev)) > fixed_phy_unregister(phydev); > > while netdev->phydev

Re: [PATCH net-next] lan78xx: Lan7801 Support for Fixed PHY

2018-04-25 Thread Florian Fainelli
On 04/25/2018 10:04 AM, raghuramchary.jallipa...@microchip.com wrote: > Hi Andrew, >>> dev->fixedphy stores the fixed phydev, which will be passed to the >>> fixed_phy_unregister routine , so I think phy_is_pseudo_fixed_link check >> is not necessary. >> >> I'm saying you can get rid of dev->f

RE: [PATCH net-next] lan78xx: Lan7801 Support for Fixed PHY

2018-04-25 Thread RaghuramChary.Jallipalli
Hi Andrew, > > > > > dev->fixedphy stores the fixed phydev, which will be passed to the > > fixed_phy_unregister routine , so I think phy_is_pseudo_fixed_link check > is not necessary. > > I'm saying you can get rid of dev->fixedphy, and just use > netdev->phydev, and phy_is_pseudo_fixed_link(netd

Re: [PATCH net-next] lan78xx: Lan7801 Support for Fixed PHY

2018-04-25 Thread Andrew Lunn
> OK. Will modify to netdev_dbg() > > > > + dev->interface = PHY_INTERFACE_MODE_RGMII; > > > + dev->fixedphy = phydev; > > > > You can use > > > > if (!phy_is_pseudo_fixed_link(phydev)) > > > > to determine is a PHY is a fixed phy. I think you can then do withou

RE: [PATCH net-next] lan78xx: Lan7801 Support for Fixed PHY

2018-04-24 Thread RaghuramChary.Jallipalli
Hi Andrew, > > +#define DRIVER_VERSION "1.0.7" > > Hi Raghuram > > Driver version strings a pretty pointless. You might want to remove it. > OK, will remove it. > > + netdev_info(dev->net, "Registered FIXED PHY\n"); > > There are too many detdev_info() messages here. May

Re: [PATCH net-next] lan78xx: Lan7801 Support for Fixed PHY

2018-04-23 Thread Andrew Lunn
> #define DRIVER_AUTHOR"WOOJUNG HUH " > #define DRIVER_DESC "LAN78XX USB 3.0 Gigabit Ethernet Devices" > #define DRIVER_NAME "lan78xx" > -#define DRIVER_VERSION "1.0.6" > +#define DRIVER_VERSION "1.0.7" Hi Raghuram Driver version strings a pretty pointless. You might want