Skip to content

Commit 112adbe

Browse files
committed
net: phy: broadcom: update dependency condition
The broadcom PHY driver only has to depend upon PTP_1588_CLOCK_OPTIONAL if NETWORK_PHY_TIMESTAMPING is enabled. The PTP functionality is stubbed in this case. Reflect this circumstance in the dependence condition. This allows to build the driver as a built-in module even if PTP is built as a module. This is required to include the broadcom PHY module regardless of the built-setting of the PTP subsystem. On ath79 (and probably more) targets with Broadcom PHY, Gigabit operation is currently broken as the PHY driver is only built as a module in case all kernel-packages are built. Due to this circumstance, affected devices fall back to using the generic PHY driver. Signed-off-by: David Bauer <[email protected]> (cherry picked from commit cbce32e30c29dc69907c6f4c0ab79dd5d9a8fb28)
1 parent 3ecfc24 commit 112adbe

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
From 1be3688b3eaa7ea2d9e19bd29ae6a6a51c121a0b Mon Sep 17 00:00:00 2001
2+
From: David Bauer <[email protected]>
3+
Date: Sat, 16 Nov 2024 22:36:15 +0100
4+
Subject: [PATCH] net: phy: broadcom: update dependency condition
5+
6+
The broadcom PHY driver only has to depend upon PTP_1588_CLOCK_OPTIONAL
7+
if NETWORK_PHY_TIMESTAMPING is enabled. The PTP functionality is stubbed
8+
in this case.
9+
10+
Reflect this circumstance in the dependence condition. This allows to
11+
build the driver as a built-in module even if PTP is built as a module.
12+
13+
This is required to include the broadcom PHY module regardless of the
14+
built-setting of the PTP subsystem. On ath79 (and probably more)
15+
targets with Broadcom PHY, Gigabit operation is currently broken as the
16+
PHY driver is only built as a module in case all kernel-packages are
17+
built. Due to this circumstance, affected devices fall back to using the
18+
generic PHY driver.
19+
20+
Signed-off-by: David Bauer <[email protected]>
21+
---
22+
drivers/net/phy/Kconfig | 2 +-
23+
1 file changed, 1 insertion(+), 1 deletion(-)
24+
25+
--- a/drivers/net/phy/Kconfig
26+
+++ b/drivers/net/phy/Kconfig
27+
@@ -113,7 +113,7 @@ config BROADCOM_PHY
28+
tristate "Broadcom 54XX PHYs"
29+
select BCM_NET_PHYLIB
30+
select BCM_NET_PHYPTP if NETWORK_PHY_TIMESTAMPING
31+
- depends on PTP_1588_CLOCK_OPTIONAL
32+
+ depends on NETWORK_PHY_TIMESTAMPING=n || PTP_1588_CLOCK_OPTIONAL
33+
help
34+
Currently supports the BCM5411, BCM5421, BCM5461, BCM54616S, BCM5464,
35+
BCM5481, BCM54810 and BCM5482 PHYs.

0 commit comments

Comments
 (0)