Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp357141yba; Thu, 18 Apr 2019 02:26:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqwpS5u50lbHmEARFpymEYhhpNRUvcgMVuz5I8s4w4Q+O5Z7Iv+/gbGSfx5GY/mJ4hB8OzIO X-Received: by 2002:aa7:8092:: with SMTP id v18mr92849317pff.35.1555579607666; Thu, 18 Apr 2019 02:26:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555579607; cv=none; d=google.com; s=arc-20160816; b=zkSphxNW0oDatub62v2wIqp4ouvlUVPxQN+D9fUieW6RrupBko4FgOM6Ytqb1vHznF 2ShYR/SaHcGX2jpAliN+oR0xvc7tyP5GDRcn8HFSjfwwU6HV0sTy/oZHb1FE/+AHFXVT I51A98Aa3ub4y3bjBb5+ZjFtLCH6HXi6NoHJwhDJE9FFefTXDhvHOK8THOhY4vSay1Rk k7S0KBhCCq2eEQua0l3IWMqrOsdlFGNd4p5YaXoozaTT2F1WFbgvxbk07Mm2yCjfHCcR mgygzMcgG/lUy9H0H3l4v2XN9d4+bZjo/8LmvbMRPhFHsKUpXJKk73KNou+OcMueo7tP BHlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:mime-version:user-agent:date:message-id:subject :from:cc:to; bh=jR+Up4oi12skzeGLVVlBA5w60stLSSj+bFFp/PLjtn0=; b=I/oALcJD0TQQ2kGRwuKeIOfpLNCXgYzbycPUuw0npLmCaIMRM9IqKJQlX4UwglppEa T2duWCFSfWJ400LXml2WJ2HKvCY7g0UPnuqCoDx5MZm9AAFwYVi69VTkuvEO9lPfyyOF VcK7OHjq+GB/pAk72DWR1ldVTjJmepFi5Ik/tH6oCeuYU0KTXWeCwU4x2ZJWGSzmXQRT txrhCHEda9umlKuUdoOEZURrQq0zFhi8bHR837Pgn/rH9ytDCJ+oeRmfBF0zl8RcV+rn o9VCou3Z2Zj8NAM65lKE/81vTrOuv38rKcKvtZxYIypj2bzK9et+mReiZUyNCUMbfNAg yJ7Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g37si1717131plb.180.2019.04.18.02.26.32; Thu, 18 Apr 2019 02:26:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388347AbfDRJZb (ORCPT + 99 others); Thu, 18 Apr 2019 05:25:31 -0400 Received: from goliath.siemens.de ([192.35.17.28]:53659 "EHLO goliath.siemens.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728093AbfDRJZb (ORCPT ); Thu, 18 Apr 2019 05:25:31 -0400 X-Greylist: delayed 625 seconds by postgrey-1.27 at vger.kernel.org; Thu, 18 Apr 2019 05:25:29 EDT Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by goliath.siemens.de (8.15.2/8.15.2) with ESMTPS id x3I9EwJE015456 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 18 Apr 2019 11:14:58 +0200 Received: from [139.25.68.37] (md1q0hnc.ad001.siemens.net [139.25.68.37] (may be forged)) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id x3I9Ev1n009836; Thu, 18 Apr 2019 11:14:57 +0200 To: Giuseppe Cavallaro , Alexandre Torgue , David Miller Cc: Linux Netdev List , Linux Kernel Mailing List , Su Bao Cheng , Andy Shevchenko From: Jan Kiszka Subject: [PATCH] stmmac: pci: Adjust IOT2000 matching Message-ID: <5a547510-2605-bae5-bd58-ab4aff28840d@siemens.com> Date: Thu, 18 Apr 2019 11:14:56 +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 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Su Bao Cheng 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 Reviewed-by: Jan Kiszka --- drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c index d819e8eaba12..cc1e887e47b5 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c @@ -159,6 +159,12 @@ static const struct dmi_system_id quark_pci_dmi[] = { }, .driver_data = (void *)&galileo_stmmac_dmi_data, }, + /* + * There are 2 types of SIMATIC IOT2000: IOT20202 and IOT2040. + * The asset tag "6ES7647-0AA00-0YA2" is only for IOT2020 which + * has only one pci network device while other asset tags are + * for IOT2040 which has two. + */ { .matches = { DMI_EXACT_MATCH(DMI_BOARD_NAME, "SIMATIC IOT2000"), @@ -170,8 +176,6 @@ static const struct dmi_system_id quark_pci_dmi[] = { { .matches = { DMI_EXACT_MATCH(DMI_BOARD_NAME, "SIMATIC IOT2000"), - DMI_EXACT_MATCH(DMI_BOARD_ASSET_TAG, - "6ES7647-0AA00-1YA2"), }, .driver_data = (void *)&iot2040_stmmac_dmi_data, }, -- 2.16.4