public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Lokesh Vutla <lokeshvutla@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] drivers: net: cpsw: Fix reading of mac address for am43 SoCs
Date: Wed, 1 Feb 2017 09:40:07 +0530	[thread overview]
Message-ID: <26a67a27-aa1e-7d64-75aa-ea88ae65269b@ti.com> (raw)
In-Reply-To: <20170201035049.2487-1-lokeshvutla@ti.com>

+ Joe

On Wednesday 01 February 2017 09:20 AM, Lokesh Vutla wrote:
> 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.
> 
> Tested-by: Aparna Balasubramanian <aparnab@ti.com>
> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
> ---
>  drivers/net/cpsw-common.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/net/cpsw-common.c b/drivers/net/cpsw-common.c
> index e828e85d8b..607eb4563c 100644
> --- a/drivers/net/cpsw-common.c
> +++ b/drivers/net/cpsw-common.c
> @@ -110,7 +110,7 @@ int ti_cm_get_macid(struct udevice *dev, int slave, u8 *mac_addr)
>  	if (of_device_is_compatible(dev, "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"))
> 

  reply	other threads:[~2017-02-01  4:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-01  3:50 [U-Boot] [PATCH] drivers: net: cpsw: Fix reading of mac address for am43 SoCs Lokesh Vutla
2017-02-01  4:10 ` Lokesh Vutla [this message]
2017-02-02 17:54 ` Joe Hershberger
2017-02-06  2:37 ` Tom Rini
2017-02-09  3:02 ` [U-Boot] " Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=26a67a27-aa1e-7d64-75aa-ea88ae65269b@ti.com \
    --to=lokeshvutla@ti.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox