* [PATCH] net: phy: mdio-sun4i: don't select REGULATOR
@ 2014-09-05 22:28 Beniamino Galvani
2014-09-07 23:12 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Beniamino Galvani @ 2014-09-05 22:28 UTC (permalink / raw)
To: Florian Fainelli
Cc: Maxime Ripard, Arnd Bergmann, netdev, linux-kernel,
Beniamino Galvani
The mdio-sun4i driver automatically selects REGULATOR and
REGULATOR_FIXED_VOLTAGE because it uses the regulator API. But a
driver selecting a subsystem increases the chance of generating
circular Kconfig dependencies, especially when other drivers depend on
the selected symbol.
Since the regulator API functions are replaced with no-ops when
REGULATOR is disabled, the driver can be built successfully even
without regulator support and so those 'select' dependencies can be
safely dropped.
Suggested-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Beniamino Galvani <b.galvani@gmail.com>
---
drivers/net/phy/Kconfig | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/net/phy/Kconfig b/drivers/net/phy/Kconfig
index 28437ab..14afa4f 100644
--- a/drivers/net/phy/Kconfig
+++ b/drivers/net/phy/Kconfig
@@ -159,8 +159,6 @@ config MDIO_OCTEON
config MDIO_SUN4I
tristate "Allwinner sun4i MDIO interface support"
depends on ARCH_SUNXI
- select REGULATOR
- select REGULATOR_FIXED_VOLTAGE
help
This driver supports the MDIO interface found in the network
interface units of the Allwinner SoC that have an EMAC (A10,
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] net: phy: mdio-sun4i: don't select REGULATOR
2014-09-05 22:28 [PATCH] net: phy: mdio-sun4i: don't select REGULATOR Beniamino Galvani
@ 2014-09-07 23:12 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2014-09-07 23:12 UTC (permalink / raw)
To: b.galvani; +Cc: f.fainelli, maxime.ripard, arnd, netdev, linux-kernel
From: Beniamino Galvani <b.galvani@gmail.com>
Date: Sat, 6 Sep 2014 00:28:23 +0200
> The mdio-sun4i driver automatically selects REGULATOR and
> REGULATOR_FIXED_VOLTAGE because it uses the regulator API. But a
> driver selecting a subsystem increases the chance of generating
> circular Kconfig dependencies, especially when other drivers depend on
> the selected symbol.
>
> Since the regulator API functions are replaced with no-ops when
> REGULATOR is disabled, the driver can be built successfully even
> without regulator support and so those 'select' dependencies can be
> safely dropped.
>
> Suggested-by: Arnd Bergmann <arnd@arndb.de>
> Signed-off-by: Beniamino Galvani <b.galvani@gmail.com>
Applied to net-next, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-09-07 23:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-05 22:28 [PATCH] net: phy: mdio-sun4i: don't select REGULATOR Beniamino Galvani
2014-09-07 23:12 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox