From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S980465AbdDYFpH (ORCPT ); Tue, 25 Apr 2017 01:45:07 -0400 Received: from goliath.siemens.de ([192.35.17.28]:35810 "EHLO goliath.siemens.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S979409AbdDYFo5 (ORCPT ); Tue, 25 Apr 2017 01:44:57 -0400 Subject: Re: [PATCH] stmmac: Add support for SIMATIC IOT2000 platform To: Andy Shevchenko References: <8c536123-6189-e0b6-1977-dc7a521718dd@siemens.com> Cc: Giuseppe Cavallaro , Alexandre Torgue , netdev , Linux Kernel Mailing List , Sascha Weisenberger From: Jan Kiszka Message-ID: Date: Tue, 25 Apr 2017 07:44:53 +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: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2017-04-24 23:27, Andy Shevchenko wrote: > 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? Nope. My changes invalidated Sascha's signed-off on the original patch, but he signed off again on the final version. > >> + 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. > There is a small difference in the asset tag, just not at the last digit where one may expect it, look: ...-0YA2 -> IOT2020 ...-1YA2 -> IOT2040 >> + { >> + .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? > That address space is MAC-local, and we have two different MACs here. Jan -- Siemens AG, Corporate Technology, CT RDA ITP SES-DE Corporate Competence Center Embedded Linux