Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp1776792pxb; Mon, 12 Apr 2021 06:34:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwS6Lxe9hqgqmkwATLwoZ03bf0Z5G8HFuwmd9k0e3TnATujCNif8oQ+Dw6BZo8n9WQ9XxVa X-Received: by 2002:a62:76d5:0:b029:242:33b7:6e9e with SMTP id r204-20020a6276d50000b029024233b76e9emr24451460pfc.5.1618234448445; Mon, 12 Apr 2021 06:34:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618234448; cv=none; d=google.com; s=arc-20160816; b=GPcFMb+lK3X23cPeopnERJwxzlptWmKfDdQG8lcrc0JPBOpJw5y6x7ulAyImTmK+Lm +EP6HcWQ7Vs4rrRz4D8cY6gGB2+EEUMSlkRKhUqo9SRWv6ewLaBLLfeVWZnFA2IgHcN+ 4eo1+KGEGiR7D4VTladgOkapak5tZOAgpXH7ApXswnQRz4vV/Y70WTL/4ktoN8xC8bLq GnvaDZMJzEXsd0wYMptl/VsytSyNRhp0V9+MwdPsyvyd1OuhbIBblqAHznIEc6vzjU6P dhtELquqGerAjWslW4NvL1ZliT1D65IkncxyO4//grOy8ovAkyrebwGNdbavbjPc21c3 WMkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:from; bh=aE8zgDtwmpLuws6ok4wBZbXnHAYIAFG0X7lT+OWKxNM=; b=gUnaPXi6lI88srR8AJNGL3K/2TCXUHDHLa2dPRJV8qmFIxzKG9ftiCxNCryz9zvHYC vVc320QTmqgAex1W3Wh0dNWPm3L2P708zstwr105NOS53Olj1g3BhrAPN0SXFEpo8ady 5jq0Vzxv5TtmsuNKyfC1QO9/O+gNrz5vCpqRrDVQ7OVWbCLwcO2tXkTr7QCqhgHpqCf7 Cp8UBNaK+CV33tGdpvASwUoIuclh8XfBt265pIb4tXrdJ44QTYOfqvERqkIRAfljBSQc ch2YsinRJVoMK5OA1nK9Ya0erifNDfIzEt6eNSTNEwr+KQ0WRmc6iEQ0ex1dv1e3B49T yyIg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@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.google.com with ESMTP id c3si13188869pfo.192.2021.04.12.06.33.56; Mon, 12 Apr 2021 06:34:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241767AbhDLNbG (ORCPT + 99 others); Mon, 12 Apr 2021 09:31:06 -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: 7BIT Content-Type: text/plain; charset=US-ASCII 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 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_atom.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[] = { }, { /* pmc_plt_clk* - are used for ethernet controllers */ - .ident = "Beckhoff CB3163", + .ident = "Beckhoff Baytrail", .matches = { DMI_MATCH(DMI_SYS_VENDOR, "Beckhoff Automation"), - DMI_MATCH(DMI_BOARD_NAME, "CB3163"), - }, - }, - { - /* pmc_plt_clk* - are used for ethernet controllers */ - .ident = "Beckhoff CB4063", - .matches = { - DMI_MATCH(DMI_SYS_VENDOR, "Beckhoff Automation"), - DMI_MATCH(DMI_BOARD_NAME, "CB4063"), - }, - }, - { - /* pmc_plt_clk* - are used for ethernet controllers */ - .ident = "Beckhoff CB6263", - .matches = { - DMI_MATCH(DMI_SYS_VENDOR, "Beckhoff Automation"), - DMI_MATCH(DMI_BOARD_NAME, "CB6263"), - }, - }, - { - /* pmc_plt_clk* - are used for ethernet controllers */ - .ident = "Beckhoff CB6363", - .matches = { - DMI_MATCH(DMI_SYS_VENDOR, "Beckhoff Automation"), - DMI_MATCH(DMI_BOARD_NAME, "CB6363"), + DMI_MATCH(DMI_PRODUCT_FAMILY, "CBxx63"), }, }, { -- 2.31.1