Skip to contentSkip to conversation

net: cpsw: Fix ethernet regression for dm814x

PATCH Applied Tony Lindgren 3 participants 3 messages Nov 19, 2015 – Nov 20, 2015

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

PATCH 1/1 net: cpsw: Fix ethernet regression for dm814x

Commit b6745f6e4e63 ("drivers: net: cpsw: davinci_emac: move reading mac id to common file") started using of_machine_is_compatible for detecting type but missed at dm8148 causing Ethernet to stop working.

Let's fix the issue by adding handling for dm814x.

---
 drivers/net/ethernet/ti/cpsw-common.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/net/ethernet/ti/cpsw-common.c +3 -0
@@ -78,6 +78,9 @@ static int cpsw_am33xx_cm_get_macid(struct device *dev, u16 offset, int slave,
 
 int ti_cm_get_macid(struct device *dev, int slave, u8 *mac_addr)
 {
+	if (of_machine_is_compatible("ti,dm8148"))
+		return cpsw_am33xx_cm_get_macid(dev, 0x630, slave, mac_addr);
+
 	if (of_machine_is_compatible("ti,am33xx"))
 		return cpsw_am33xx_cm_get_macid(dev, 0x630, slave, mac_addr);
 
Signature · 1 line
2.6.2
Acked-by on v1 1/1
#1 lore raw
Quoted 8 lines · Tony Lindgren

Commit b6745f6e4e63 ("drivers: net: cpsw: davinci_emac: move reading mac id to common file") started using of_machine_is_compatible for detecting type but missed at dm8148 causing Ethernet to stop working.

Let's fix the issue by adding handling for dm814x.

Regards
Mugunthan V N

maintainer Applied
#2 lore raw
In reply to Tony Lindgren

From: Tony Lindgren <[email protected]>
Date: Wed, 18 Nov 2015 17:27:25 -0800

Quoted 8 lines

Commit b6745f6e4e63 ("drivers: net: cpsw: davinci_emac: move reading mac id to common file") started using of_machine_is_compatible for detecting type but missed at dm8148 causing Ethernet to stop working.

Let's fix the issue by adding handling for dm814x.

Applied, thank you.