Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761340AbcJ1PwU (ORCPT ); Fri, 28 Oct 2016 11:52:20 -0400 Received: from muru.com ([72.249.23.125]:46324 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761181AbcJ1PwS (ORCPT ); Fri, 28 Oct 2016 11:52:18 -0400 Date: Fri, 28 Oct 2016 08:52:14 -0700 From: Tony Lindgren To: Jeroen Hofstee Cc: netdev@vger.kernel.org, Mugunthan V N , Grygorii Strashko , "open list:TI ETHERNET SWITCH DRIVER (CPSW)" , open list Subject: Re: [PATCH v2] net: cpsw: fix obtaining mac address for am3517 Message-ID: <20161028155213.2t3nwwe3lqaynaer@atomide.com> References: <1477668756-2651-1-git-send-email-jhofstee@victronenergy.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1477668756-2651-1-git-send-email-jhofstee@victronenergy.com> User-Agent: Mutt/1.6.2-neo (2016-07-23) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 661 Lines: 15 * Jeroen Hofstee [161028 08:33]: > Commit b6745f6e4e63 ("drivers: net: cpsw: davinci_emac: move reading mac > id to common file") did not only move the code for an am3517, it also > added the slave parameter, resulting in an invalid (all zero) mac address > being returned for an am3517, since it only has a single emac and the slave > parameter is pointing to the second. So simply always read the first and > valid mac-address for a ti,am3517-emac. And others davinci_emac.c users can have more than one. So is the reason the slave parameter points to the second instance because of the location in the hardware? Regards, Tony