Re: [PATCH] stmmac: Add support for SIMATIC IOT2000 platform

From: Jan Kiszka
Date: Tue Apr 25 2017 - 01:48:16 EST


On 2017-04-24 23:27, Andy Shevchenko wrote:
> On Mon, Apr 24, 2017 at 10:27 PM, Jan Kiszka <jan.kiszka@xxxxxxxxxxx> 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 <jan.kiszka@xxxxxxxxxxx>
>> Signed-off-by: Sascha Weisenberger <sascha.weisenberger@xxxxxxxxxxx>
>
> 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