741-net-phy-broadcom-update-dependency-condition.patch 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  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. The broadcom PHY driver only has to depend upon PTP_1588_CLOCK_OPTIONAL
  6. if NETWORK_PHY_TIMESTAMPING is enabled. The PTP functionality is stubbed
  7. in this case.
  8. Reflect this circumstance in the dependence condition. This allows to
  9. build the driver as a built-in module even if PTP is built as a module.
  10. This is required to include the broadcom PHY module regardless of the
  11. built-setting of the PTP subsystem. On ath79 (and probably more)
  12. targets with Broadcom PHY, Gigabit operation is currently broken as the
  13. PHY driver is only built as a module in case all kernel-packages are
  14. built. Due to this circumstance, affected devices fall back to using the
  15. generic PHY driver.
  16. Signed-off-by: David Bauer <[email protected]>
  17. ---
  18. drivers/net/phy/Kconfig | 2 +-
  19. 1 file changed, 1 insertion(+), 1 deletion(-)
  20. --- a/drivers/net/phy/Kconfig
  21. +++ b/drivers/net/phy/Kconfig
  22. @@ -113,7 +113,7 @@ config BROADCOM_PHY
  23. tristate "Broadcom 54XX PHYs"
  24. select BCM_NET_PHYLIB
  25. select BCM_NET_PHYPTP if NETWORK_PHY_TIMESTAMPING
  26. - depends on PTP_1588_CLOCK_OPTIONAL
  27. + depends on NETWORK_PHY_TIMESTAMPING=n || PTP_1588_CLOCK_OPTIONAL
  28. help
  29. Currently supports the BCM5411, BCM5421, BCM5461, BCM54616S, BCM5464,
  30. BCM5481, BCM54810 and BCM5482 PHYs.