From nobody Sun May 5 19:42:33 2024 Delivered-To: importer2@patchew.org Received-SPF: pass (zohomail.com: domain of vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; envelope-from=linux-kernel-owner@vger.kernel.org; helo=vger.kernel.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org ARC-Seal: i=1; a=rsa-sha256; t=1618220712; cv=none; d=zohomail.com; s=zohoarc; b=UTh3QrPT1Co/NREYDmOUBakwuLZf2zD8jCBOKwYWkFGkkUeB+Q6BQVLYslVv4jbMEgo6FCAIoxr7EbUeGPKD2bte4FSaAwdW9Co8ViLw2RRab7Yb+0pij2L/hnLpcvzL13vr1k2Blb8kfPYSnnXj3zVhxh+J3ggG0YGm+RYo+40= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1618220712; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Id:MIME-Version:Message-ID:Subject:To; bh=mr01gLC7IaPjeTNcAWVGns5Pa4T7mEPRYZIr5uvD4iU=; b=fhCfX5Cix8K1joFEysfeWHfFLXIZbB+wNTUEJ6JfX0PsiabRzN3QPa9wqVw/xHGWLwCi76QRk5scw9uxpe5WSZirmpfIExdFOJjRUjKaOndUYDr8UvZWXgDrRaygpbYMBWpJw6ZfXOE6PXbVfsfPD60tsvyroQPjK7MmdzlpuLU= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mx.zohomail.com with SMTP id 16182207120521015.4673763694774; Mon, 12 Apr 2021 02:45:12 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241570AbhDLJpD (ORCPT ); Mon, 12 Apr 2021 05:45:03 -0400 Received: from netsrv01.beckhoff.com ([62.159.14.10]:59547 "EHLO netsrv01.beckhoff.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238945AbhDLJVE (ORCPT ); Mon, 12 Apr 2021 05:21:04 -0400 Received: from 10.1.0.27 by netsrv01.beckhoff.com (Tls12, Aes256, Sha384, DiffieHellmanEllipticKey256); Mon, 12 Apr 2021 09:05:47 GMT Received: from localhost.localdomain (172.17.204.1) by NT-Mail02.beckhoff.com (10.1.0.27) with Microsoft SMTP Server (TLS) id 14.3.498.0; Mon, 12 Apr 2021 11:05:43 +0200 X-Greylist: delayed 899 seconds by postgrey-1.27 at vger.kernel.org; Mon, 12 Apr 2021 05:21:03 EDT From: Steffen Dirkwinkel CC: Andy Shevchenko , Hans de Goede , Mark Gross , , , Steffen Dirkwinkel Subject: [PATCH] platform/x86: pmc_atom: Match all Beckhoff Automation baytrail boards with critclk_systems DMI table Date: Mon, 12 Apr 2021 11:04:31 +0200 Message-ID: <20210412090430.167463-1-linux-kernel-dev@beckhoff.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [172.17.204.1] X-OLX-Disclaimer: Done To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Steffen Dirkwinkel pmc_plt_clk* clocks are used for ethernet controllers so need to stay turned on. This adds the affected board family to critclk_systems DMI table so the clocks are marked as CLK_CRITICAL and not turned off. This replaces the previosly listed boards with a match for the whole device family. There are new affected boards that would otherwise need to be listed. There are only few unaffected boards in the family and having the clocks turned on is not an issue on those. Fixes: 648e921888ad ("clk: x86: Stop marking clocks as CLK_IS_CRITICAL") Signed-off-by: Steffen Dirkwinkel --- drivers/platform/x86/pmc_atom.c | 28 ++-------------------------- 1 file changed, 2 insertions(+), 26 deletions(-) diff --git a/drivers/platform/x86/pmc_atom.c b/drivers/platform/x86/pmc_ato= m.c index ca684ed760d1..a9d2a4b98e57 100644 --- a/drivers/platform/x86/pmc_atom.c +++ b/drivers/platform/x86/pmc_atom.c @@ -393,34 +393,10 @@ static const struct dmi_system_id critclk_systems[] = =3D { }, { /* pmc_plt_clk* - are used for ethernet controllers */ - .ident =3D "Beckhoff CB3163", + .ident =3D "Beckhoff Baytrail", .matches =3D { DMI_MATCH(DMI_SYS_VENDOR, "Beckhoff Automation"), - DMI_MATCH(DMI_BOARD_NAME, "CB3163"), - }, - }, - { - /* pmc_plt_clk* - are used for ethernet controllers */ - .ident =3D "Beckhoff CB4063", - .matches =3D { - DMI_MATCH(DMI_SYS_VENDOR, "Beckhoff Automation"), - DMI_MATCH(DMI_BOARD_NAME, "CB4063"), - }, - }, - { - /* pmc_plt_clk* - are used for ethernet controllers */ - .ident =3D "Beckhoff CB6263", - .matches =3D { - DMI_MATCH(DMI_SYS_VENDOR, "Beckhoff Automation"), - DMI_MATCH(DMI_BOARD_NAME, "CB6263"), - }, - }, - { - /* pmc_plt_clk* - are used for ethernet controllers */ - .ident =3D "Beckhoff CB6363", - .matches =3D { - DMI_MATCH(DMI_SYS_VENDOR, "Beckhoff Automation"), - DMI_MATCH(DMI_BOARD_NAME, "CB6363"), + DMI_MATCH(DMI_PRODUCT_FAMILY, "CBxx63"), }, }, { --=20 2.31.1