Skip to contentSkip to conversation

of_mdio: Add "broadcom,bcm5241" to the whitelist.

PATCH Applied David Daney 4 participants 4 messages Feb 17, 2017 – Feb 19, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 of_mdio: Add "broadcom,bcm5241" to the whitelist.

Some Cavium dev boards have firmware which doesn't supply a proper ethernet-phy-ieee802.3-c22" compatible property. Restore these boards to working order by whitelisting this compatible value.

---
 drivers/of/of_mdio.c | 1 +
 1 file changed, 1 insertion(+)
drivers/of/of_mdio.c +1 -0
index 262281b..0b29798 100644
@@ -147,6 +147,7 @@ EXPORT_SYMBOL(of_mdio_parse_addr);
  */
 static const struct of_device_id whitelist_phys[] = {
 	{ .compatible = "brcm,40nm-ephy" },
+	{ .compatible = "broadcom,bcm5241" },
 	{ .compatible = "marvell,88E1111", },
 	{ .compatible = "marvell,88e1116", },
 	{ .compatible = "marvell,88e1118", },
Signature · 1 line
2.9.3
Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · David Daney

Some Cavium dev boards have firmware which doesn't supply a proper ethernet-phy-ieee802.3-c22" compatible property. Restore these boards to working order by whitelisting this compatible value.

drivers/of/of_mdio.c EXPORT_SYMBOL(of_mdio_parse_addr); · line 150

Quoted 13 lines
---
 drivers/of/of_mdio.c | 1 +
 1 file changed, 1 insertion(+)
drivers/of/of_mdio.c +1 -0
index 262281b..0b29798 100644
@@ -147,6 +147,7 @@ EXPORT_SYMBOL(of_mdio_parse_addr);
  */
 static const struct of_device_id whitelist_phys[] = {
 	{ .compatible = "brcm,40nm-ephy" },
+	{ .compatible = "broadcom,bcm5241" },

And that's not the vendor prefix from vendor-prefixes.txt.

Quoted 4 lines
drivers/of/of_mdio.c +0 -0
 	{ .compatible = "marvell,88E1111", },
 	{ .compatible = "marvell,88e1116", },
 	{ .compatible = "marvell,88e1118", },
Signature · 1 line
Florian
#2 lore raw
Quoted 13 lines · Florian Fainelli
Quoted 5 lines · David Daney

Some Cavium dev boards have firmware which doesn't supply a proper ethernet-phy-ieee802.3-c22" compatible property. Restore these boards to working order by whitelisting this compatible value.

Quoted 4 lines
---
 drivers/of/of_mdio.c | 1 +
 1 file changed, 1 insertion(+)
Quoted 11 lines

drivers/of/of_mdio.c EXPORT_SYMBOL(of_mdio_parse_addr); · line 150

Quoted 9 lines
drivers/of/of_mdio.c +1 -0
index 262281b..0b29798 100644
@@ -147,6 +147,7 @@ EXPORT_SYMBOL(of_mdio_parse_addr);
  */
 static const struct of_device_id whitelist_phys[] = {
 	{ .compatible = "brcm,40nm-ephy" },
+	{ .compatible = "broadcom,bcm5241" },

And that's not the vendor prefix from vendor-prefixes.txt.

No, that dts containing this value predates vendor-prefixes.txt.

Previous to
commit 801a8ef54e8b ("of: phy: Only register a phy device for phys"), the form of the compatible string didn't matter for phys

Quoted 8 lines
Quoted 6 lines
drivers/of/of_mdio.c +0 -0
 	{ .compatible = "marvell,88E1111", },
 	{ .compatible = "marvell,88e1116", },
 	{ .compatible = "marvell,88e1118", },