Skip to content

Commit

Permalink
drivers: net: cpsw-common: Fix reading of mac address for am43 SoCs
Browse files Browse the repository at this point in the history
cpsw driver tries to get macid for am43xx SoCs using the compatible
ti,am4372. But not all variants of am43x uses this complatible like
epos evm uses ti,am438x. So use a generic compatible ti,am43 to get
macid for all am43 based platforms.

Reviewed-by: Dave Gerlach <d-gerlach@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Lokesh Vutla authored and David S. Miller committed Jun 22, 2017
1 parent 76da070 commit b88ff4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/ti/cpsw-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ int ti_cm_get_macid(struct device *dev, int slave, u8 *mac_addr)
if (of_device_is_compatible(dev->of_node, "ti,dm816-emac"))
return cpsw_am33xx_cm_get_macid(dev, 0x30, slave, mac_addr);

if (of_machine_is_compatible("ti,am4372"))
if (of_machine_is_compatible("ti,am43"))
return cpsw_am33xx_cm_get_macid(dev, 0x630, slave, mac_addr);

if (of_machine_is_compatible("ti,dra7"))
Expand Down

0 comments on commit b88ff4f

Please sign in to comment.