Message ID | 20210616190759.2832033-1-mw@semihalf.com |
---|---|
Headers | show |
Series | ACPI MDIO support for Marvell controllers | expand |
On Wed, Jun 16, 2021 at 09:07:55PM +0200, Marcin Wojtas wrote: > Utilize the newly added helper routine > for registering the MDIO bus via fwnode_ > interface. You need to add depends on FWNODE_MDIO Andrew
On Wed, Jun 16, 2021 at 09:07:57PM +0200, Marcin Wojtas wrote: > This patch introducing ACPI support for the mvmdio driver by adding > acpi_match_table with two entries: > > * "MRVL0100" for the SMI operation > * "MRVL0101" for the XSMI mode > > Also clk enabling is skipped, because the tables do not contain > such data and clock maintenance relies on the firmware. This last part seems to be no longer true. Andrew
On Wed, Jun 16, 2021 at 09:07:59PM +0200, Marcin Wojtas wrote: > The 'has_phy' field from struct mvpp2_port is no longer used. > Remove it. > > Signed-off-by: Marcin Wojtas <mw@semihalf.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Andrew
śr., 16 cze 2021 o 21:51 Andrew Lunn <andrew@lunn.ch> napisał(a): > > On Wed, Jun 16, 2021 at 09:07:57PM +0200, Marcin Wojtas wrote: > > This patch introducing ACPI support for the mvmdio driver by adding > > acpi_match_table with two entries: > > > > * "MRVL0100" for the SMI operation > > * "MRVL0101" for the XSMI mode > > > > Also clk enabling is skipped, because the tables do not contain > > such data and clock maintenance relies on the firmware. > > This last part seems to be no longer true. > Well, it is still relies on firmware (no clocks are passed via ACPI), but skipping this enablement is hidden in the internals of devm_clk_bulk_get_optional() and clk_bulk_prepare_enable(). Best regards, Marcin
śr., 16 cze 2021 o 21:35 Andrew Lunn <andrew@lunn.ch> napisał(a): > > On Wed, Jun 16, 2021 at 09:07:55PM +0200, Marcin Wojtas wrote: > > Utilize the newly added helper routine > > for registering the MDIO bus via fwnode_ > > interface. > > You need to add depends on FWNODE_MDIO > Do you mean something like this? --- a/drivers/net/ethernet/freescale/Kconfig +++ b/drivers/net/ethernet/freescale/Kconfig @@ -68,8 +68,8 @@ config FSL_PQ_MDIO config FSL_XGMAC_MDIO tristate "Freescale XGMAC MDIO" select PHYLIB - depends on OF - select OF_MDIO + depends on ACPI || OF + select FWNODE_MDIO help Best regards, Marcin
On Thu, Jun 17, 2021 at 01:39:40AM +0200, Marcin Wojtas wrote: > śr., 16 cze 2021 o 21:35 Andrew Lunn <andrew@lunn.ch> napisał(a): > > > > On Wed, Jun 16, 2021 at 09:07:55PM +0200, Marcin Wojtas wrote: > > > Utilize the newly added helper routine > > > for registering the MDIO bus via fwnode_ > > > interface. > > > > You need to add depends on FWNODE_MDIO > > > > Do you mean something like this? > > --- a/drivers/net/ethernet/freescale/Kconfig > +++ b/drivers/net/ethernet/freescale/Kconfig > @@ -68,8 +68,8 @@ config FSL_PQ_MDIO > config FSL_XGMAC_MDIO > tristate "Freescale XGMAC MDIO" > select PHYLIB > - depends on OF > - select OF_MDIO > + depends on ACPI || OF > + select FWNODE_MDIO > help You should not need depends on ACPI || OF. FWNODE_MDIO implies that. And there are no direct calls to of_ functions, so you can drop the depends on OF. Andrew
czw., 17 cze 2021 o 14:28 Andrew Lunn <andrew@lunn.ch> napisał(a): > > On Thu, Jun 17, 2021 at 01:39:40AM +0200, Marcin Wojtas wrote: > > śr., 16 cze 2021 o 21:35 Andrew Lunn <andrew@lunn.ch> napisał(a): > > > > > > On Wed, Jun 16, 2021 at 09:07:55PM +0200, Marcin Wojtas wrote: > > > > Utilize the newly added helper routine > > > > for registering the MDIO bus via fwnode_ > > > > interface. > > > > > > You need to add depends on FWNODE_MDIO > > > > > > > Do you mean something like this? > > > > --- a/drivers/net/ethernet/freescale/Kconfig > > +++ b/drivers/net/ethernet/freescale/Kconfig > > @@ -68,8 +68,8 @@ config FSL_PQ_MDIO > > config FSL_XGMAC_MDIO > > tristate "Freescale XGMAC MDIO" > > select PHYLIB > > - depends on OF > > - select OF_MDIO > > + depends on ACPI || OF > > + select FWNODE_MDIO > > help > > You should not need depends on ACPI || OF. FWNODE_MDIO implies > that. And there are no direct calls to of_ functions, so you can drop > the depends on OF. > Ok, I'll leave: depends on FWNODE_MDIO only. Thanks, Marcin