Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3025506rwb; Mon, 15 Aug 2022 16:23:31 -0700 (PDT) X-Google-Smtp-Source: AA6agR6+iXFX+eHDAZ5xFyiDSeXCgliY5uKS3cj2UaqhAuJvb0nNs3JO93qyzDMXGaTHRgLHRNRP X-Received: by 2002:a17:902:7fce:b0:16e:e3e7:b12f with SMTP id t14-20020a1709027fce00b0016ee3e7b12fmr19140476plb.56.1660605811432; Mon, 15 Aug 2022 16:23:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660605811; cv=none; d=google.com; s=arc-20160816; b=D7nazgPbHa11/t/sNKSwzY11Bt8drM17ZDx5iPq0IV7D+UNjDKSjofDP5lIekc+0Dn WWW/hTX5nEV9EzZSeJjbif7mwVmZZxjrevAn32Q8dMyywm7Ua6nc57IiQiX3zvDn99hV PY1pmt9vR33XGwgDakKfwZX3vwCUYB7gqFQz6FaoJoBrCHxNOvGbQp6qd1quvYsGs+tI rmNjhDAYGWD9nFEn5O/0GnL8OgcVmL1r0Oxnvz+voHBIr1TFxCTVBRbGAiRg2ZNZLs/a xXUwKu5chmGTztV0h4cQiwPlHlclD5ZcBDDGWc5g8nMhR6VC1lkmnH/+O7sZPQ2Bt2PU DX2w== 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=DgfY/JULze0ktzxha0KnOPamJGPAVmw4mfi01cv9xbw=; b=JCeTZZZyUi03Ffus9/urzbYncl0A/3mPXWxHSmRwGNorzVepLpmIVcCrklV0Klq0aJ qrjBxZdeLWL0yFv8eKFjKxijlsBOTPvS8OBeYAKFrz/NP5L1C0AZv+1i7MxyAcyn4DS4 oKJpxM1iszR4q8L9X5zp1XmvNse2rGULNWFH2jFzW9JyuZRyksvglqJGjNiP5mtIEAGQ RMxHTbWdwsFl5ZxlA+G+KDL0fZ6DIFXxSnd2tEa2wgZMHzHfBdhgypWcPlGUnjcBfYqr RG/h4Fwl+rfFy3YWxIyn5jWFYyDYyeBYXfbpcw7quoohTr12NFc9wB3x9q/+e102hQCK VGAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=rDHf75R5; 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 na7-20020a17090b4c0700b001f4df89edc4si13744838pjb.52.2022.08.15.16.23.18; Mon, 15 Aug 2022 16:23:31 -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=rDHf75R5; 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 S1348526AbiHOWX6 (ORCPT + 99 others); Mon, 15 Aug 2022 18:23:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350789AbiHOWSd (ORCPT ); Mon, 15 Aug 2022 18:18:33 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40F5D6557E; Mon, 15 Aug 2022 12:41:40 -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 ams.source.kernel.org (Postfix) with ESMTPS id E85FEB80EA9; Mon, 15 Aug 2022 19:41:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 39DB8C433C1; Mon, 15 Aug 2022 19:41:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660592497; bh=+kx/jLvczudwRcK6z8GXOx7aUu/65FgT7dznEfehYwY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rDHf75R5o2KeDjD2By42z6bncpxul2IbjyggYsaKznM7F8CbMNwwGIjj2YuNS2MIo MFZy8O9JmBHg9OlEGAKDIiFxOuSbCVx5r00+qkdkJGJ/FH6aI9UeKbKGTSCY4Lu0br SrKt5curViY5G2Jpz5cc8niqSjWIa+G3ybgKg0ug= 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.18 0799/1095] platform/x86: pmc_atom: Match all Lex BayTrail boards with critclk_systems DMI table Date: Mon, 15 Aug 2022 20:03:18 +0200 Message-Id: <20220815180502.315854500@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180429.240518113@linuxfoundation.org> References: <20220815180429.240518113@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 a40fae6edc84..f24ab24f2927 100644 --- a/drivers/platform/x86/pmc_atom.c +++ b/drivers/platform/x86/pmc_atom.c @@ -402,21 +402,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