phy: ti: gmii-sel: simplify config dependencies between net drivers and gmii phy
authorGrygorii Strashko <grygorii.strashko@ti.com>
Mon, 23 Mar 2020 22:52:44 +0000 (00:52 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Mar 2020 03:01:13 +0000 (20:01 -0700)
The phy-gmii-sel can be only auto selected in Kconfig and now the pretty
complex Kconfig dependencies are defined for phy-gmii-sel driver, which
also need to be updated every time phy-gmii-sel is re-used for any new
networking driver.

Simplify Kconfig definition for phy-gmii-sel PHY driver - drop all
dependencies and from networking drivers and rely on using 'imply
PHY_TI_GMII_SEL' in Kconfig definitions for networking drivers instead.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Acked-by: Kishon Vijay Abraham I <kishon@ti.com>
Tested-by: Murali Karicheri <m-karicheri2@ti.com>
Tested-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/Kconfig
drivers/phy/ti/Kconfig

index bf98e0fa7d8be8ccf2c4b4cb60b1a70df073e276..8a6ca16eee3b6998122a4d2baae004e313f82a96 100644 (file)
@@ -53,6 +53,7 @@ config TI_CPSW
        select MFD_SYSCON
        select PAGE_POOL
        select REGMAP
+       imply PHY_TI_GMII_SEL
        ---help---
          This driver supports TI's CPSW Ethernet Switch.
 
index 6dbe9d0b9ff3af2977018c256d09af8b036f93ed..15a3bcf32308603597a9ae5d177c2091e20a6dcd 100644 (file)
@@ -106,11 +106,8 @@ config TWL4030_USB
 
 config PHY_TI_GMII_SEL
        tristate
-       default y if TI_CPSW=y || TI_CPSW_SWITCHDEV=y
-       depends on TI_CPSW || TI_CPSW_SWITCHDEV || COMPILE_TEST
        select GENERIC_PHY
        select REGMAP
-       default m
        help
          This driver supports configuring of the TI CPSW Port mode depending on
          the Ethernet PHY connected to the CPSW Port.