[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZI4zGF4MUSclEJK_@pidgin.makrotopia.org>
Date: Sun, 18 Jun 2023 00:26:32 +0200
From: Daniel Golle <daniel@...rotopia.org>
To: Simon Horman <simon.horman@...igine.com>
Cc: Arnd Bergmann <arnd@...nel.org>, Andrew Lunn <andrew@...n.ch>,
Heiner Kallweit <hkallweit1@...il.com>,
Arnd Bergmann <arnd@...db.de>,
Russell King <linux@...linux.org.uk>,
"David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>,
Matthias Brugger <matthias.bgg@...il.com>,
AngeloGioacchino Del Regno
<angelogioacchino.delregno@...labora.com>,
Ramón Nordin Rodriguez
<ramon.nordin.rodriguez@...roamp.se>,
Parthiban Veerasooran <Parthiban.Veerasooran@...rochip.com>,
Frank Sae <Frank.Sae@...or-comm.com>,
Michael Walle <michael@...le.cc>,
Piergiorgio Beruto <piergiorgio.beruto@...il.com>,
Vladimir Oltean <vladimir.oltean@....com>,
Jonathan Lemon <jonathan.lemon@...il.com>,
Randy Dunlap <rdunlap@...radead.org>, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-mediatek@...ts.infradead.org
Subject: Re: [PATCH] net: phy: mediatek: fix compile-test dependencies
On Fri, Jun 16, 2023 at 01:47:35PM +0200, Simon Horman wrote:
> On Fri, Jun 16, 2023 at 11:29:54AM +0200, Arnd Bergmann wrote:
> > From: Arnd Bergmann <arnd@...db.de>
> >
> > The new phy driver attempts to select a driver from another subsystem,
> > but that fails when the NVMEM subsystem is disabled:
> >
> > WARNING: unmet direct dependencies detected for NVMEM_MTK_EFUSE
> > Depends on [n]: NVMEM [=n] && (ARCH_MEDIATEK [=n] || COMPILE_TEST [=y]) && HAS_IOMEM [=y]
> > Selected by [y]:
> > - MEDIATEK_GE_SOC_PHY [=y] && NETDEVICES [=y] && PHYLIB [=y] && (ARM64 && ARCH_MEDIATEK [=n] || COMPILE_TEST [=y])
> >
> > I could not see an actual compile time dependency, so presumably this
> > is only needed for for working correctly but not technically a dependency
>
> nit: for for -> for
> or
> for for working correctly -> for correct operation
>
> > on that particular nvmem driver implementation, so it would likely
> > be safe to remove the select for compile testing.
> >
> > To keep the spirit of the original 'select', just replace this with a
> > 'depends on' that ensures that the driver will work but does not get in
> > the way of build testing.
> >
> > Fixes: 98c485eaf509b ("net: phy: add driver for MediaTek SoC built-in GE PHYs")
> > Signed-off-by: Arnd Bergmann <arnd@...db.de>
>
> I don't know the answer to the question of if this dependency is needed or
> not. But I do agree that it does what it says on the box.
It's not needed to build or load the driver, but the PHY won't function
at all without reading values from the SoCs efuse, and for that the
nvmem driver is required.
Using a simple dependency instead of select will fix it.
Reviewed-by: Daniel Golle <daniel@...rotopia.org>
>
> Reviewed-by: Simon Horman <simon.horman@...igine.com>
>
>
Powered by blists - more mailing lists