mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 15:02:32 +00:00
662d1f9f8d
Removed upstreamed:
generic/backport-5.10/350-v5.18-MIPS-pgalloc-fix-memory-leak-caused-by-pgd_free.patch
generic/pending-5.10/850-0014-PCI-aardvark-Fix-reading-PCI_EXP_RTSTA_PME-bit-on-em.patch
ipq40xx/patches-5.10/105-ipq40xx-fix-sleep-clock.patch
All patches automatically rebased.
Build system: x86_64
Build-tested: bcm2711/RPi4B, mt7622/RT3200
Run-tested: bcm2711/RPi4B, mt7622/RT3200
Compile-/run-tested: ath79/generic (Archer C7 v2).
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
[rebased in 22.03 tree]
Signed-off-by: John Audia <graysky@archlinux.us>
(cherry picked from commit b92ec82235
)
72 lines
2.5 KiB
Diff
72 lines
2.5 KiB
Diff
From 7b0e9b30aaf78bddfcb589be0686846076f23f62 Mon Sep 17 00:00:00 2001
|
|
From: Jonathan Bell <jonathan@raspberrypi.org>
|
|
Date: Tue, 14 May 2019 17:00:41 +0100
|
|
Subject: [PATCH] phy: broadcom: split out the BCM54213PE from the
|
|
BCM54210E IDs
|
|
|
|
The last nibble is a revision ID, and the 54213pe is a later rev
|
|
than the 54210e. Running the 54210e setup code on a 54213pe results
|
|
in a broken RGMII interface.
|
|
|
|
Signed-off-by: Jonathan Bell <jonathan@raspberrypi.org>
|
|
---
|
|
drivers/net/phy/broadcom.c | 16 +++++++++++++---
|
|
include/linux/brcmphy.h | 1 +
|
|
2 files changed, 14 insertions(+), 3 deletions(-)
|
|
|
|
--- a/drivers/net/phy/broadcom.c
|
|
+++ b/drivers/net/phy/broadcom.c
|
|
@@ -253,7 +253,8 @@ static void bcm54xx_adjust_rxrefclk(stru
|
|
BRCM_PHY_MODEL(phydev) != PHY_ID_BCM50610 &&
|
|
BRCM_PHY_MODEL(phydev) != PHY_ID_BCM50610M &&
|
|
BRCM_PHY_MODEL(phydev) != PHY_ID_BCM54810 &&
|
|
- BRCM_PHY_MODEL(phydev) != PHY_ID_BCM54811)
|
|
+ BRCM_PHY_MODEL(phydev) != PHY_ID_BCM54811 &&
|
|
+ BRCM_PHY_MODEL(phydev) != PHY_ID_BCM54213PE)
|
|
return;
|
|
|
|
val = bcm_phy_read_shadow(phydev, BCM54XX_SHD_SCR3);
|
|
@@ -784,13 +785,21 @@ static struct phy_driver broadcom_driver
|
|
.config_intr = bcm_phy_config_intr,
|
|
}, {
|
|
.phy_id = PHY_ID_BCM54210E,
|
|
- .phy_id_mask = 0xfffffff0,
|
|
+ .phy_id_mask = 0xffffffff,
|
|
.name = "Broadcom BCM54210E",
|
|
/* PHY_GBIT_FEATURES */
|
|
.config_init = bcm54xx_config_init,
|
|
.ack_interrupt = bcm_phy_ack_intr,
|
|
.config_intr = bcm_phy_config_intr,
|
|
}, {
|
|
+ .phy_id = PHY_ID_BCM54213PE,
|
|
+ .phy_id_mask = 0xffffffff,
|
|
+ .name = "Broadcom BCM54213PE",
|
|
+ /* PHY_GBIT_FEATURES */
|
|
+ .config_init = bcm54xx_config_init,
|
|
+ .ack_interrupt = bcm_phy_ack_intr,
|
|
+ .config_intr = bcm_phy_config_intr,
|
|
+}, {
|
|
.phy_id = PHY_ID_BCM5461,
|
|
.phy_id_mask = 0xfffffff0,
|
|
.name = "Broadcom BCM5461",
|
|
@@ -946,7 +955,8 @@ module_phy_driver(broadcom_drivers);
|
|
static struct mdio_device_id __maybe_unused broadcom_tbl[] = {
|
|
{ PHY_ID_BCM5411, 0xfffffff0 },
|
|
{ PHY_ID_BCM5421, 0xfffffff0 },
|
|
- { PHY_ID_BCM54210E, 0xfffffff0 },
|
|
+ { PHY_ID_BCM54210E, 0xffffffff },
|
|
+ { PHY_ID_BCM54213PE, 0xffffffff },
|
|
{ PHY_ID_BCM5461, 0xfffffff0 },
|
|
{ PHY_ID_BCM54612E, 0xfffffff0 },
|
|
{ PHY_ID_BCM54616S, 0xfffffff0 },
|
|
--- a/include/linux/brcmphy.h
|
|
+++ b/include/linux/brcmphy.h
|
|
@@ -22,6 +22,7 @@
|
|
#define PHY_ID_BCM5411 0x00206070
|
|
#define PHY_ID_BCM5421 0x002060e0
|
|
#define PHY_ID_BCM54210E 0x600d84a0
|
|
+#define PHY_ID_BCM54213PE 0x600d84a2
|
|
#define PHY_ID_BCM5464 0x002060b0
|
|
#define PHY_ID_BCM5461 0x002060c0
|
|
#define PHY_ID_BCM54612E 0x03625e60
|