Skip to content

Commit 738a269

Browse files
grygoriySdavem330
authored andcommitted
phy: ti: gmii-sel: simplify config dependencies between net drivers and gmii phy
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 <[email protected]> Acked-by: Kishon Vijay Abraham I <[email protected]> Tested-by: Murali Karicheri <[email protected]> Tested-by: Peter Ujfalusi <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 5bb7357 commit 738a269

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

drivers/net/ethernet/ti/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ config TI_CPSW
5353
select MFD_SYSCON
5454
select PAGE_POOL
5555
select REGMAP
56+
imply PHY_TI_GMII_SEL
5657
---help---
5758
This driver supports TI's CPSW Ethernet Switch.
5859

drivers/phy/ti/Kconfig

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,8 @@ config TWL4030_USB
106106

107107
config PHY_TI_GMII_SEL
108108
tristate
109-
default y if TI_CPSW=y || TI_CPSW_SWITCHDEV=y
110-
depends on TI_CPSW || TI_CPSW_SWITCHDEV || COMPILE_TEST
111109
select GENERIC_PHY
112110
select REGMAP
113-
default m
114111
help
115112
This driver supports configuring of the TI CPSW Port mode depending on
116113
the Ethernet PHY connected to the CPSW Port.

0 commit comments

Comments
 (0)