From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933605AbdEVNNn (ORCPT ); Mon, 22 May 2017 09:13:43 -0400 Received: from smtprelay0198.hostedemail.com ([216.40.44.198]:36342 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751881AbdEVNNl (ORCPT ); Mon, 22 May 2017 09:13:41 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::,RULES_HIT:41:355:379:541:599:973:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1500:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2393:2553:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:3870:3871:3873:4250:4321:5007:6119:6120:7901:8957:10004:10400:10848:11026:11232:11657:11658:11914:12043:12048:12438:12740:12760:12895:13069:13255:13311:13357:13439:14659:14721:21080:21326:21627:30029:30054:30070:30090:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:1,LUA_SUMMARY:none X-HE-Tag: title19_76eb9a22bd64b X-Filterd-Recvd-Size: 2177 Message-ID: <1495458815.2093.18.camel@perches.com> Subject: Re: [PATCH 3/3] stmmac: pci: Use dmi_system_id table for retrieving PHY addresses From: Joe Perches To: Jan Kiszka , Giuseppe Cavallaro , Alexandre Torgue , David Miller Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Andy Shevchenko Date: Mon, 22 May 2017 06:13:35 -0700 In-Reply-To: <72ff21ba-f774-b3d5-23b4-e70095cedbef@siemens.com> References: <1495452830.2093.14.camel@perches.com> <72ff21ba-f774-b3d5-23b4-e70095cedbef@siemens.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.22.6-1ubuntu1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2017-05-22 at 14:49 +0200, Jan Kiszka wrote: > On 2017-05-22 13:33, Joe Perches wrote: > > On Mon, 2017-05-22 at 13:12 +0200, Jan Kiszka wrote: > > > Avoids reimplementation of DMI matching in stmmac_pci_find_phy_addr. > > > > [] > > > diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c > > > > [] > > > @@ -31,65 +31,78 @@ > > > > [] > > > +static const struct stmmac_pci_dmi_data iot2040_stmmac_dmi_data[] = { > > > { > > > - .name = "GalileoGen2", > > > .func = 6, > > > .phy_addr = 1, > > > }, > > > { > > > - .name = "SIMATIC IOT2000", > > > - .asset_tag = "6ES7647-0AA00-0YA2", > > > - .func = 6, > > > + .func = 7, > > > > Why change this from 6 to 7? > > > > The diff is confusing here: If you look at the outcome, we now have > galileo_stmmac_dmi_data with function 6 only (also used for the > IOT2020), and iot2040_stmmac_dmi_data with both function 6 and 7 (both > MACs are wired up). Right. Apologies for noise.