Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4809802yba; Tue, 30 Apr 2019 04:53:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqztjci1vm553LjYzmAiruQAcqlvT9nm9Ltm5cyaxkyWf/TU5alGMG1HUYI/v/U94kFetb8V X-Received: by 2002:a17:902:9a83:: with SMTP id w3mr69698937plp.241.1556625184969; Tue, 30 Apr 2019 04:53:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556625184; cv=none; d=google.com; s=arc-20160816; b=Frrx5Bcy+5Rkycm5uUWYf40TAP6TfHacSfYb7xW6IDBtENW8qCUKUWGiHambAKZNWb td19PxfCL3yArUpdvP6gqiTMVo8Hl3M3t2NrX9ysbbSJ1MtcxfJolRR0v43FJWOiIW7a XlguWviJtD3jDIY3su9eF7yuwCsLhdBib3a/ec0nfKm15Rd2758QYIX9Wie7FmLt79k2 sOH2UOLAOHj+O+nCILt+eYxRysj6AM1UW/DOObMxyT5Fu2/AnPtuIlxF4ccs9f9c6Q0f knVvOKTPREE4Qbk33JgzwAvelMLH94sGWqH9WJZ4f28J5nh7ATYcYJ9Q2K41vaJHYgbM C8uQ== 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:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=IKUacSo7tN7QM8VTXo89AkkMSylHBhuwky0IEYy+zTA=; b=G2/9kV6cKMrAmSYh3cqhO7JegGF1M4nGlpCRh8mKzKPB82T+tSSWtZ9qUqTZ+Chgso lgfCimyZqx7ZE/GohHjrsji5oaoag9HNK+bpjf5ZR2iMyyT7+5NHendVnBjv3kmyMcwB pIxgeixLDYRsAEPQwL91oau9OFP9gm0j7hmeoBm85OpoM1gFhe3MAqnEFCNdiAHLyRl/ L+6PDEvTU2Fm7sHwlY/CQy/UCjyRpxOWQ6AyXRsI+TY9XTng+8c03yiXCeWgGOvm5wqq CNXEw5EYrYqXlvRknlnI7UMw2iurt8KNQiLrYVy2T1m1nkCd9O540l2e+y/h3r6R87/H pmtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="JAcrcoY/"; 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 i13si13173995pgt.123.2019.04.30.04.52.49; Tue, 30 Apr 2019 04:53:04 -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; dkim=pass header.i=@kernel.org header.s=default header.b="JAcrcoY/"; 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 S1730769AbfD3LvS (ORCPT + 99 others); Tue, 30 Apr 2019 07:51:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:38822 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731361AbfD3LvP (ORCPT ); Tue, 30 Apr 2019 07:51:15 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 099C22054F; Tue, 30 Apr 2019 11:51:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1556625074; bh=qmySqOgGAWXl1qA4wBmbdzy9gaa7gjJVIfqEMiXeztg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JAcrcoY/OnLOtKVUrFLmQi7SBW1sZN3RneNTR0yycD33NfNxLTVL07VaB9Av5ha00 yjAh0QyAafaWr1n3cG1yHEq0ejP99Oo0cpXp2UuFfCydL4/U9wnXVKhKeNR3BjZKSA d18B6euDW9MYx1/k2P5T5Xx6+7Mb2A7LfHyYCFeo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Su Bao Cheng , Jan Kiszka , "David S. Miller" Subject: [PATCH 5.0 80/89] stmmac: pci: Adjust IOT2000 matching Date: Tue, 30 Apr 2019 13:39:11 +0200 Message-Id: <20190430113613.525934920@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190430113609.741196396@linuxfoundation.org> References: <20190430113609.741196396@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Su Bao Cheng [ Upstream commit e0c1d14a1a3211dccf0540a6703ffbd5d2a75bdb ] 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 Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) --- 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_ }, .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_ { .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, },