aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2017-01-28 17:14:50 +0100
committerRafał Miłecki <rafal@milecki.pl>2017-01-28 17:15:25 +0100
commit5a164dd3c09558bdadc0ebfad6e37514cbd7ba4c (patch)
treea0054488cd676a69b51904932f047762a5cb7fbd /target/linux
parentc437df09c98799236c34bb32c2235ec8feb15045 (diff)
downloadupstream-5a164dd3c09558bdadc0ebfad6e37514cbd7ba4c.tar.gz
upstream-5a164dd3c09558bdadc0ebfad6e37514cbd7ba4c.tar.bz2
upstream-5a164dd3c09558bdadc0ebfad6e37514cbd7ba4c.zip
kernel: make BCM54210E PHY code work with 4.4
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/generic/patches-4.4/078-0004-net-phy-pick-Broadcom-drivers-updates-from-net-next-.patch8
1 files changed, 5 insertions, 3 deletions
diff --git a/target/linux/generic/patches-4.4/078-0004-net-phy-pick-Broadcom-drivers-updates-from-net-next-.patch b/target/linux/generic/patches-4.4/078-0004-net-phy-pick-Broadcom-drivers-updates-from-net-next-.patch
index dad44930d9..9505bf30a9 100644
--- a/target/linux/generic/patches-4.4/078-0004-net-phy-pick-Broadcom-drivers-updates-from-net-next-.patch
+++ b/target/linux/generic/patches-4.4/078-0004-net-phy-pick-Broadcom-drivers-updates-from-net-next-.patch
@@ -134,25 +134,27 @@ Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
/* Clear shadow selector field */
reg &= ~MII_BCM54XX_AUXCTL_SHDWSEL_MASK;
bcm54xx_auxctl_write(phydev, MII_BCM54XX_AUXCTL_SHDWSEL_MISC,
-@@ -548,6 +566,17 @@ static struct phy_driver broadcom_driver
+@@ -548,6 +566,19 @@ static struct phy_driver broadcom_driver
.config_intr = bcm_phy_config_intr,
.driver = { .owner = THIS_MODULE },
}, {
+ .phy_id = PHY_ID_BCM54210E,
+ .phy_id_mask = 0xfffffff0,
+ .name = "Broadcom BCM54210E",
-+ .features = PHY_GBIT_FEATURES,
++ .features = PHY_GBIT_FEATURES |
++ SUPPORTED_Pause | SUPPORTED_Asym_Pause,
+ .flags = PHY_HAS_MAGICANEG | PHY_HAS_INTERRUPT,
+ .config_init = bcm54xx_config_init,
+ .config_aneg = genphy_config_aneg,
+ .read_status = genphy_read_status,
+ .ack_interrupt = bcm_phy_ack_intr,
+ .config_intr = bcm_phy_config_intr,
++ .driver = { .owner = THIS_MODULE },
+}, {
.phy_id = PHY_ID_BCM5461,
.phy_id_mask = 0xfffffff0,
.name = "Broadcom BCM5461",
-@@ -708,6 +737,7 @@ module_phy_driver(broadcom_drivers);
+@@ -708,6 +739,7 @@ module_phy_driver(broadcom_drivers);
static struct mdio_device_id __maybe_unused broadcom_tbl[] = {
{ PHY_ID_BCM5411, 0xfffffff0 },
{ PHY_ID_BCM5421, 0xfffffff0 },