All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drivers: net: cpsw-common: Fix reading of mac address for am43 SoCs
@ 2017-06-21  8:42 Lokesh Vutla
  2017-06-22 15:16 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Lokesh Vutla @ 2017-06-21  8:42 UTC (permalink / raw)
  To: Grygorii Strashko, David Miller
  Cc: Linux netdev Mailing List, Tero Kristo, Sekhar Nori,
	Linux OMAP Mailing List, Lokesh Vutla, Dave Gerlach

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>
---
 drivers/net/ethernet/ti/cpsw-common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/ti/cpsw-common.c b/drivers/net/ethernet/ti/cpsw-common.c
index 1562ab4151e1..56ba411421f0 100644
--- a/drivers/net/ethernet/ti/cpsw-common.c
+++ b/drivers/net/ethernet/ti/cpsw-common.c
@@ -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"))
-- 
2.13.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] drivers: net: cpsw-common: Fix reading of mac address for am43 SoCs
  2017-06-21  8:42 [PATCH] drivers: net: cpsw-common: Fix reading of mac address for am43 SoCs Lokesh Vutla
@ 2017-06-22 15:16 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2017-06-22 15:16 UTC (permalink / raw)
  To: lokeshvutla
  Cc: grygorii.strashko, netdev, t-kristo, nsekhar, linux-omap, d-gerlach

From: Lokesh Vutla <lokeshvutla@ti.com>
Date: Wed, 21 Jun 2017 14:12:04 +0530

> 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>

Applied.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-06-22 15:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-21  8:42 [PATCH] drivers: net: cpsw-common: Fix reading of mac address for am43 SoCs Lokesh Vutla
2017-06-22 15:16 ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.