Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3120190rwb; Mon, 15 Aug 2022 18:36:49 -0700 (PDT) X-Google-Smtp-Source: AA6agR5eh6FKJn0ppHNZmtqZahPLOb8CFYXWA+4cNibuU8S8ZPKCp3Qqg+0gBmycKKvU2yRW2PI8 X-Received: by 2002:a05:6402:2802:b0:43a:9098:55a0 with SMTP id h2-20020a056402280200b0043a909855a0mr16535657ede.179.1660613809025; Mon, 15 Aug 2022 18:36:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660613809; cv=none; d=google.com; s=arc-20160816; b=kWOmTAbhyVPFl0dIkPIuSowfc84UAfBvt9rz8kU1iuJHtVgGgZV7mE0s/zK6TcTwhV WUXb5I7oBU0OzKn82uCVWQk2w01cCyyKUOLN6C3Vr+8+pFxCRnPYvzoMjI09BCvoEi32 5FI4vnuwmAGgAg/Ozz1YpIEvlR7qB90Y+g5yvcO4d44J9LTOc92MKbkbxgcB1Mwv/gWQ HU3BjjAFl6ypc/SwBcRzRo5HX9mg7y8TX1KCzhETURryi34locBXiAOA5MnI+GvG2G1y EZGe9AaG4s0wPeHWNt5R5LWlc2SdYwPkAUYKkKOdjevxZSLP/9cvSZSFlMPOqcOot0o9 r/CQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Tz/40skYysKp7u3M0wAv1N+F5+XWeMR83mdq+S/27QE=; b=tcV9257c+mK5YrgIpJNy/v38Ii8ARl30NvrjCC6SRCtM958y1HvQMv1CEgoBD/dUgT XpzkMoIYFpbP/MNvQu1aLl+on8Q/F7hcldOTs7/9qGVoA+YRrcAehGCbVj3hcJGejbpG clh1SqLZJwf+3Kqdwv9iZ7MSDB74vcJyt/IlkQKkmcHLjQPvbuliqGVxDnFEAVjX//d+ SPiCU4Q3X+S4G7PuHj8stEYQ/y0/C9A7GvMwmlZlmcmP45mH4TrzqehHiYa3YdmmEc9s 9EVe0X3cfCv6L6Dd9PaDfiir2Ma+4tNaJIlNbUe6Ff1pac5VEISYDNchbbPjJHE17//O dGrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=eD7ekyHB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lg12-20020a170906f88c00b007262d20d6cesi7626640ejb.200.2022.08.15.18.36.22; Mon, 15 Aug 2022 18:36:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=pass header.i=@linuxfoundation.org header.s=korg header.b=eD7ekyHB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245385AbiHPAdr (ORCPT + 99 others); Mon, 15 Aug 2022 20:33:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353055AbiHPAbI (ORCPT ); Mon, 15 Aug 2022 20:31:08 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18F49185278; Mon, 15 Aug 2022 13:35:59 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B75936120E; Mon, 15 Aug 2022 20:35:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AE2CBC433C1; Mon, 15 Aug 2022 20:35:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660595735; bh=e4KOm9d/OmVns9dybbdo24RWHSeEPB0MP1xvHiONHL8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eD7ekyHBb6pikGD/dSHtXKrRxSlYj9Emw0apwc7KFxAMY4FjDgwIHL+Bc83QXrGkb cZZOpJ1vOMPFVY4xt+ZCQUoECZJkaJQfy3hIV9gBqpUNWhaEsMgMlzQpgfbOKC/+l2 vHzPdkSuAxsnS8S9s2+kR3vWtaQNhIF7xnNWxvr0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?Michael=20Sch=C3=B6ne?= , Paul Spooren , "Matwey V. Kornilov" , Hans de Goede , Sasha Levin Subject: [PATCH 5.19 0857/1157] platform/x86: pmc_atom: Match all Lex BayTrail boards with critclk_systems DMI table Date: Mon, 15 Aug 2022 20:03:33 +0200 Message-Id: <20220815180513.761281028@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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-kernel@vger.kernel.org From: Hans de Goede [ Upstream commit c9d959fc32a5f9312282817052d8986614f2dc08 ] The critclk_systems[] DMI match table already contains 2 Lex BayTrail boards and patches were just submitted to add 3 more entries for the following models: 3I380NX, 3I380A, 3I380CW. Looking at: https://www.lex.com.tw/products/embedded-ipc-board/ we can see that Lex BayTrail makes many embedded boards with multiple ethernet boards and none of their products are battery powered so we don't need to worry (too much) about power consumption when suspended. Add a new DMI match which simply matches all Lex BayTrail boards and drop the 2 existing board specific quirks. Fixes: 648e921888ad ("clk: x86: Stop marking clocks as CLK_IS_CRITICAL") Reported-by: Michael Schöne Reported-by: Paul Spooren Reported-by: Matwey V. Kornilov Signed-off-by: Hans de Goede Signed-off-by: Sasha Levin --- drivers/platform/x86/pmc_atom.c | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/drivers/platform/x86/pmc_atom.c b/drivers/platform/x86/pmc_atom.c index b8b1ed1406de..154317e9910d 100644 --- a/drivers/platform/x86/pmc_atom.c +++ b/drivers/platform/x86/pmc_atom.c @@ -389,21 +389,16 @@ static const struct dmi_system_id critclk_systems[] = { }, }, { - /* pmc_plt_clk0 - 3 are used for the 4 ethernet controllers */ - .ident = "Lex 3I380D", + /* + * Lex System / Lex Computech Co. makes a lot of Bay Trail + * based embedded boards which often come with multiple + * ethernet controllers using multiple pmc_plt_clks. See: + * https://www.lex.com.tw/products/embedded-ipc-board/ + */ + .ident = "Lex BayTrail", .callback = dmi_callback, .matches = { DMI_MATCH(DMI_SYS_VENDOR, "Lex BayTrail"), - DMI_MATCH(DMI_PRODUCT_NAME, "3I380D"), - }, - }, - { - /* pmc_plt_clk* - are used for ethernet controllers */ - .ident = "Lex 2I385SW", - .callback = dmi_callback, - .matches = { - DMI_MATCH(DMI_SYS_VENDOR, "Lex BayTrail"), - DMI_MATCH(DMI_PRODUCT_NAME, "2I385SW"), }, }, { -- 2.35.1