]> git.baikalelectronics.ru Git - kernel.git/commit
stmmac: pci: Adjust IOT2000 matching
authorSu Bao Cheng <baocheng.su@siemens.com>
Thu, 18 Apr 2019 09:14:56 +0000 (11:14 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Apr 2019 18:48:02 +0000 (11:48 -0700)
commit38058b35eed333605ce60764946f88ec70325a09
treee881f2b550e99d83dbf026707c04b22a454d1a29
parent8770132dcb3454a8b2025e2b3c96526f9fe93852
stmmac: pci: Adjust IOT2000 matching

Since there are more IOT2040 variants with identical hardware but
different asset tags, the asset tag matching should be adjusted to
support them.

For the board name "SIMATIC IOT2000", currently there are 2 types of
hardware, IOT2020 and IOT2040. The IOT2020 is identified by its unique
asset tag. Match on it first. If we then match on the board name only,
we will catch all IOT2040 variants. In the future there will be no other
devices with the "SIMATIC IOT2000" DMI board name but different
hardware.

Signed-off-by: Su Bao Cheng <baocheng.su@siemens.com>
Reviewed-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c