Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp377884imn; Wed, 27 Jul 2022 08:40:38 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vQ4sbDAkczP6f1CoH0o6sKBLrZR1vFmPhpbSWPNzmk9u6CPTpmbYsWrXrbY8bTWpRclHUy X-Received: by 2002:a17:903:22c5:b0:16b:f00c:3361 with SMTP id y5-20020a17090322c500b0016bf00c3361mr21978569plg.32.1658936438258; Wed, 27 Jul 2022 08:40:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658936438; cv=none; d=google.com; s=arc-20160816; b=JiqYxio1j+VcvRp08q4FU4PQPJZ4E/9heKg2ul0H5lgv1GbcavduxCq7Vvw75jDjdC nkefVmcZg8dCPBeEDoWfrVfM0P3EeDcHfBBhBJHPZnN61S7C+4JMAZ0YzhpVL8JMq3m7 XAs6ICs1WvjlXVQ3emU9MqkLkLSCGMGEXuPKVc7UYQStdyJDVTnupWI821jDn2lX6Tj8 XEdocR5kY51ecsvVGvAo916ygGFoAqFgwEeR59hlSIyC2LOFNAPiyO+hVKZ/JKnmjUMS J4He84RwHqQoVPluBf0vAkoFF00DJuiDqeEGPKVbTysWSmvyOQfKxTDbcE+Vq7gdntSv gZLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=c4bpWT1eZpTlA49qMNegyVgiw2ftY8hWOVABRprImmg=; b=w4bwYmgalkk9cDF1pkC7sEmSglNKrCiZKIsfBADHQzWk0Wl6pKjplei41bZhFDffg6 vX2xA1S/J0u9cEjLR9OHZ3K73KwagK1lYU5qlnl86J4X10HUtYJQpn04PdVUUUdF+dmh K4GXaXtvYZ2+IGdPHp5dScARjt+w0UuEYbGnfqSTLhECS/LxGyfbbKQy9sEqHQlmMUXg JhU/LKEhj3Izu9Cp4Cx73lRjX4xtR3q8H0bPjkT+uVsaZzMeTRFvvHNhXnDu1wXMx0o+ 9nqtOGV6b33JYTNUNA9fREAWF8pFO8/2DK6MztxW7a6B+y8TKT1R0daejTESjCGKKx9T i83w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sai.msu.ru header.s=mail header.b=ywKNO55f; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sai.msu.ru Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k8-20020a056a00168800b0052ad5283a4csi21860142pfc.260.2022.07.27.08.40.24; Wed, 27 Jul 2022 08:40:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@sai.msu.ru header.s=mail header.b=ywKNO55f; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sai.msu.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234000AbiG0PkM (ORCPT + 65 others); Wed, 27 Jul 2022 11:40:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229867AbiG0PkK (ORCPT ); Wed, 27 Jul 2022 11:40:10 -0400 X-Greylist: delayed 423 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 27 Jul 2022 08:40:05 PDT Received: from mail.sai.msu.ru (mail.sai.msu.ru [93.180.27.60]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE7283DBEB; Wed, 27 Jul 2022 08:40:05 -0700 (PDT) Received: from oak.local (unknown [83.167.113.121]) by mail.sai.msu.ru (Postfix) with ESMTPSA id 102DD1603C6; Wed, 27 Jul 2022 15:32:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=sai.msu.ru; s=mail; t=1658935979; bh=XqSc/cfsfhBrKEn3XCkL9QnEX/0FNbuSlrJn/D5KsNw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ywKNO55fBkQaWNL1GaF+KhqBCZNM8nnGyMUwdwFMoGUixmPTTuIomlSJfuBfkA4i8 yOyQ46K9TO43+dV5rp9Lm7f6KxYUq5jGBVp/1M+kE7P/FfCAJn4rS2+x6w5NFAVSBB JSM6uNyEVbZnQeWHi1DSYB3QFNzJC9zuREomM4PlRazGui8UM0UjNwYtkOYx1pkGQo meqGrrx9LLNzL+611+Jr9DzyJ/zdg59vN+Dl1pOv8VXtEQ30RWkLgPUYSOJ710jhuI TmzO20KG33yoU7nW4GNtP93Bzz0xfmTaTJVonq57Bd5vJOyKnUztqMliNQr3Mu2cN4 COqRSwHeY3BkQ== From: "Matwey V. Kornilov" To: hdegoede@redhat.com Cc: andriy.shevchenko@linux.intel.com, carlo@endlessm.com, davem@davemloft.net, hkallweit1@gmail.com, js@sig21.net, linux-clk@vger.kernel.org, linux-wireless@vger.kernel.org, matwey.kornilov@gmail.com, mturquette@baylibre.com, netdev@vger.kernel.org, pierre-louis.bossart@linux.intel.com, sboyd@kernel.org, markgross@kernel.org, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, paul.gortmaker@windriver.com, "Matwey V. Kornilov" , stable@vger.kernel.org Subject: [PATCH] platform/x86: pmc_atom: Add DMI quirk for Lex 3I380A/CW boards Date: Wed, 27 Jul 2022 18:32:32 +0300 Message-Id: <20220727153232.13359-1-matwey@sai.msu.ru> X-Mailer: git-send-email 2.35.3 In-Reply-To: 08c744e6-385b-8fcf-ecdf-1292b5869f94@redhat.com References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Lex 3I380A/CW (Atom E3845) motherboards are equipped with dual Intel I211 based 1Gbps copper ethernet: http://www.lex.com.tw/products/pdf/3I380A&3I380CW.pdf This patch is to fix the issue with broken "LAN2" port. Before the patch, only one ethernet port is initialized: igb 0000:01:00.0: added PHC on eth0 igb 0000:01:00.0: Intel(R) Gigabit Ethernet Network Connection igb 0000:01:00.0: eth0: (PCIe:2.5Gb/s:Width x1) 4c:02:89:10:02:e4 igb 0000:01:00.0: eth0: PBA No: FFFFFF-0FF igb 0000:01:00.0: Using MSI-X interrupts. 2 rx queue(s), 2 tx queue(s) igb: probe of 0000:02:00.0 failed with error -2 With this patch, both ethernet ports are available: igb 0000:01:00.0: added PHC on eth0 igb 0000:01:00.0: Intel(R) Gigabit Ethernet Network Connection igb 0000:01:00.0: eth0: (PCIe:2.5Gb/s:Width x1) 4c:02:89:10:02:e4 igb 0000:01:00.0: eth0: PBA No: FFFFFF-0FF igb 0000:01:00.0: Using MSI-X interrupts. 2 rx queue(s), 2 tx queue(s) igb 0000:02:00.0: added PHC on eth1 igb 0000:02:00.0: Intel(R) Gigabit Ethernet Network Connection igb 0000:02:00.0: eth1: (PCIe:2.5Gb/s:Width x1) 4c:02:89:10:02:e5 igb 0000:02:00.0: eth1: PBA No: FFFFFF-0FF igb 0000:02:00.0: Using MSI-X interrupts. 2 rx queue(s), 2 tx queue(s) The issue was observed at 3I380A board with BIOS version "A4 01/15/2016" and 3I380CW board with BIOS version "A3 09/29/2014". Reference: https://lore.kernel.org/netdev/08c744e6-385b-8fcf-ecdf-1292b5869f94@redhat.com/ Fixes: 648e921888ad ("clk: x86: Stop marking clocks as CLK_IS_CRITICAL") Cc: # v4.19+ Signed-off-by: Matwey V. Kornilov --- drivers/platform/x86/pmc_atom.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/drivers/platform/x86/pmc_atom.c b/drivers/platform/x86/pmc_atom.c index b8b1ed1406de..5dc82667907b 100644 --- a/drivers/platform/x86/pmc_atom.c +++ b/drivers/platform/x86/pmc_atom.c @@ -388,6 +388,24 @@ static const struct dmi_system_id critclk_systems[] = { DMI_MATCH(DMI_PRODUCT_NAME, "CEC10 Family"), }, }, + { + /* pmc_plt_clk* - are used for ethernet controllers */ + .ident = "Lex 3I380A", + .callback = dmi_callback, + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Lex BayTrail"), + DMI_MATCH(DMI_PRODUCT_NAME, "3I380A"), + }, + }, + { + /* pmc_plt_clk* - are used for ethernet controllers */ + .ident = "Lex 3I380CW", + .callback = dmi_callback, + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Lex BayTrail"), + DMI_MATCH(DMI_PRODUCT_NAME, "3I380CW"), + }, + }, { /* pmc_plt_clk0 - 3 are used for the 4 ethernet controllers */ .ident = "Lex 3I380D", -- 2.35.3