From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758189AbdEVMtg (ORCPT ); Mon, 22 May 2017 08:49:36 -0400 Received: from thoth.sbs.de ([192.35.17.2]:41534 "EHLO thoth.sbs.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758040AbdEVMte (ORCPT ); Mon, 22 May 2017 08:49:34 -0400 Subject: Re: [PATCH 3/3] stmmac: pci: Use dmi_system_id table for retrieving PHY addresses To: Joe Perches , Giuseppe Cavallaro , Alexandre Torgue , David Miller Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Andy Shevchenko References: <1495452830.2093.14.camel@perches.com> From: Jan Kiszka Message-ID: <72ff21ba-f774-b3d5-23b4-e70095cedbef@siemens.com> Date: Mon, 22 May 2017 14:49:18 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 MIME-Version: 1.0 In-Reply-To: <1495452830.2093.14.camel@perches.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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). Jan -- Siemens AG, Corporate Technology, CT RDA ITP SES-DE Corporate Competence Center Embedded Linux