Re: [PATCH 01/16] net: phy: adin: add support for Analog Devices PHYs

2019-08-06 Thread Ardelean, Alexandru
On Mon, 2019-08-05 at 22:54 +0200, Heiner Kallweit wrote: > [External] > > On 05.08.2019 18:54, Alexandru Ardelean wrote: > > This change adds support for Analog Devices Industrial Ethernet PHYs. > > Particularly the PHYs this driver adds support for: > > * ADIN1200 - Robust, Industrial, Low

Re: [PATCH 01/16] net: phy: adin: add support for Analog Devices PHYs

2019-08-06 Thread Ardelean, Alexandru
On Mon, 2019-08-05 at 17:17 +0200, Andrew Lunn wrote: > [External] > > > +static struct phy_driver adin_driver[] = { > > + { > > + .phy_id = PHY_ID_ADIN1200, > > + .name = "ADIN1200", > > + .phy_id_mask= 0xfff0, > > + .features

Re: [PATCH 01/16] net: phy: adin: add support for Analog Devices PHYs

2019-08-06 Thread Ardelean, Alexandru
On Mon, 2019-08-05 at 16:16 +0200, Andrew Lunn wrote: > [External] > > > +static int adin_config_init(struct phy_device *phydev) > > +{ > > + int rc; > > + > > + rc = genphy_config_init(phydev); > > + if (rc < 0) > > + return rc; > > + > > + return 0; > > +} > > Why not just >

Re: [PATCH 01/16] net: phy: adin: add support for Analog Devices PHYs

2019-08-05 Thread Heiner Kallweit
On 05.08.2019 18:54, Alexandru Ardelean wrote: > This change adds support for Analog Devices Industrial Ethernet PHYs. > Particularly the PHYs this driver adds support for: > * ADIN1200 - Robust, Industrial, Low Power 10/100 Ethernet PHY > * ADIN1300 - Robust, Industrial, Low Latency 10/100/1000

Re: [PATCH 01/16] net: phy: adin: add support for Analog Devices PHYs

2019-08-05 Thread Andrew Lunn
> +static struct phy_driver adin_driver[] = { > + { > + .phy_id = PHY_ID_ADIN1200, > + .name = "ADIN1200", > + .phy_id_mask= 0xfff0, > + .features = PHY_BASIC_FEATURES, Do you need this? If the device implements

Re: [PATCH 01/16] net: phy: adin: add support for Analog Devices PHYs

2019-08-05 Thread Andrew Lunn
> +static int adin_config_init(struct phy_device *phydev) > +{ > + int rc; > + > + rc = genphy_config_init(phydev); > + if (rc < 0) > + return rc; > + > + return 0; > +} Why not just return genphy_config_init(phydev); Andrew

[PATCH 01/16] net: phy: adin: add support for Analog Devices PHYs

2019-08-05 Thread Alexandru Ardelean
This change adds support for Analog Devices Industrial Ethernet PHYs. Particularly the PHYs this driver adds support for: * ADIN1200 - Robust, Industrial, Low Power 10/100 Ethernet PHY * ADIN1300 - Robust, Industrial, Low Latency 10/100/1000 Gigabit Ethernet PHY The 2 chips are pin &