Skip to content

Commit dba235f

Browse files
grygoriyStmlind
authored andcommitted
net: ethernet: ti: cpsw: deprecate cpsw-phy-sel driver
Deprecate cpsw-phy-sel driver as it's been replaced with new TI phy-gmii-sel PHY driver. Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com> Acked-by: David S. Miller <davem@davemloft.net> Signed-off-by: Tony Lindgren <tony@atomide.com>
1 parent bae2bf9 commit dba235f

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

drivers/net/ethernet/ti/Kconfig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,11 @@ config TI_DAVINCI_CPDMA
4949
will be called davinci_cpdma. This is recommended.
5050

5151
config TI_CPSW_PHY_SEL
52-
bool
52+
bool "TI CPSW Phy mode Selection (DEPRECATED)"
53+
default n
5354
---help---
5455
This driver supports configuring of the phy mode connected to
55-
the CPSW.
56+
the CPSW. DEPRECATED: use PHY_TI_GMII_SEL.
5657

5758
config TI_CPSW_ALE
5859
tristate "TI CPSW ALE Support"
@@ -64,7 +65,6 @@ config TI_CPSW
6465
depends on ARCH_DAVINCI || ARCH_OMAP2PLUS || COMPILE_TEST
6566
select TI_DAVINCI_CPDMA
6667
select TI_DAVINCI_MDIO
67-
select TI_CPSW_PHY_SEL
6868
select TI_CPSW_ALE
6969
select MFD_SYSCON
7070
select REGMAP

drivers/net/ethernet/ti/cpsw.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,13 @@
2121
((mac)[2] << 16) | ((mac)[3] << 24))
2222
#define mac_lo(mac) (((mac)[4] << 0) | ((mac)[5] << 8))
2323

24+
#if IS_ENABLED(CONFIG_TI_CPSW_PHY_SEL)
2425
void cpsw_phy_sel(struct device *dev, phy_interface_t phy_mode, int slave);
26+
#else
27+
static inline
28+
void cpsw_phy_sel(struct device *dev, phy_interface_t phy_mode, int slave)
29+
{}
30+
#endif
2531
int ti_cm_get_macid(struct device *dev, int slave, u8 *mac_addr);
2632

2733
#endif /* __CPSW_H__ */

0 commit comments

Comments
 (0)