Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S978335AbdDXV2F (ORCPT ); Mon, 24 Apr 2017 17:28:05 -0400 Received: from mail-qk0-f174.google.com ([209.85.220.174]:33741 "EHLO mail-qk0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S978271AbdDXV1y (ORCPT ); Mon, 24 Apr 2017 17:27:54 -0400 MIME-Version: 1.0 In-Reply-To: <8c536123-6189-e0b6-1977-dc7a521718dd@siemens.com> References: <8c536123-6189-e0b6-1977-dc7a521718dd@siemens.com> From: Andy Shevchenko Date: Tue, 25 Apr 2017 00:27:53 +0300 Message-ID: Subject: Re: [PATCH] stmmac: Add support for SIMATIC IOT2000 platform To: Jan Kiszka Cc: Giuseppe Cavallaro , Alexandre Torgue , netdev , Linux Kernel Mailing List , Sascha Weisenberger Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1305 Lines: 45 On Mon, Apr 24, 2017 at 10:27 PM, Jan Kiszka wrote: > The IOT2000 is industrial controller platform, derived from the Intel > Galileo Gen2 board. The variant IOT2020 comes with one LAN port, the > IOT2040 has two of them. They can be told apart based on the board asset > tag in the DMI table. > > Based on patch by Sascha Weisenberger. > > Signed-off-by: Jan Kiszka > Signed-off-by: Sascha Weisenberger Shoudn't be ordered other way around? > + const char *asset_tag; I guess this is redundant. See below. > + { > + .name = "SIMATIC IOT2000", > + .asset_tag = "6ES7647-0AA00-0YA2", > + .func = 6, > + .phy_addr = 1, > + }, The below has same definition disregard on asset_tag. > + { > + .name = "SIMATIC IOT2000", > + .asset_tag = "6ES7647-0AA00-1YA2", > + .func = 6, > + .phy_addr = 1, > + }, > + { > + .name = "SIMATIC IOT2000", > + .asset_tag = "6ES7647-0AA00-1YA2", > + .func = 7, > + .phy_addr = 1, > + }, How this supposed to work if phy_addr is the same? -- With Best Regards, Andy Shevchenko