From nobody Thu May 9 00:02:37 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=1618234261; cv=none; d=zohomail.com; s=zohoarc; b=IKzVRMh9N9TTH1ImoOrOv8PdnOc70DCwwOnNYRUDeXIgKv5OQ75EaPjyF7Bf3AAPPIPlsj6VX5gXSrVG07cLwSErEglv4ar5ahL8gNP2TUCgU1Zakj/myWbevtL+hNGQ7V1Js/T8Tma0U+YY06oL7Y3oLP0ItOnEknUZWSWnVpw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1618234261; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Id:MIME-Version:Message-ID:References:Subject:To; bh=aE8zgDtwmpLuws6ok4wBZbXnHAYIAFG0X7lT+OWKxNM=; b=UXDh6lSKuCPi8K/f8YmuLgMl1wGjinGe/ToJ1+WYl1g/avkX1VDG0u1UcQAQ/mME9qBvEsYnE4QzevKyDOgUlbLl8aYuSUFu5pU5EeY/IblwZ6L1/r8a/MUdjsJ6+Ls522DjV/U4hVov/0bDTaWNVAwwS85jwBw2TQEDBer7/9w= 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 1618234261035318.36137628884956; Mon, 12 Apr 2021 06:31:01 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241873AbhDLNbQ (ORCPT ); Mon, 12 Apr 2021 09:31:16 -0400 Received: from netsrv01.beckhoff.com ([62.159.14.10]:56826 "EHLO netsrv01.beckhoff.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241975AbhDLNao (ORCPT ); Mon, 12 Apr 2021 09:30:44 -0400 Received: from 10.1.0.27 by netsrv01.beckhoff.com (Tls12, Aes256, Sha384, DiffieHellmanEllipticKey256); Mon, 12 Apr 2021 13:30:26 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 15:30:22 +0200 From: Steffen Dirkwinkel CC: Andy Shevchenko , Hans de Goede , Mark Gross , , , Steffen Dirkwinkel Subject: [PATCH v2] platform/x86: pmc_atom: Match all Beckhoff Automation baytrail boards with critclk_systems DMI table Date: Mon, 12 Apr 2021 15:30:06 +0200 Message-ID: <20210412133006.397679-1-linux-kernel-dev@beckhoff.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: References: 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 previously listed boards with a match for the whole device family CBxx63. CBxx63 matches only baytrail devices. There are new affected boards that would otherwise need to be listed. There are unaffected boards in the family, but having the clocks turned on is not an issue. Fixes: 648e921888ad ("clk: x86: Stop marking clocks as CLK_IS_CRITICAL") Reviewed-by: Andy Shevchenko 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