Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4558923pxj; Wed, 12 May 2021 08:11:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxptP3DA0VhqbfMgWBYgX2HdioAyEwiR0gBdaUxptLiaFO1mU7frmEINlQtHVD7NVA6oQh4 X-Received: by 2002:a05:6830:12d6:: with SMTP id a22mr23009095otq.66.1620832263016; Wed, 12 May 2021 08:11:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620832263; cv=none; d=google.com; s=arc-20160816; b=QfTEspIBhAb/BZBn0UWMhA5nNCBOVXB0xSH0oN/dsRe6EF7TfC/0qu/OInpDlWNLFD /qFLnojdLn8Zt7MlWsA1kikSdhbbEBlJ5i71mo2PDZ0lcWZH5QH4hxidcF2o9KqFxwtR j/dvk9g4Aq17vYdgtAiDNWmJX2IZVwBBqD9wAyr5XMQE5kYUTRtN4AH372B0iDbrluKz 7KEv+40hpjNuXDbncMHpXOWUtjS+fm7rR2wzeMhcsQT4P7bUD4Jub6ySMOr1JuoSfB8m e/KNoex+1nGFXaqxiRnaeyWYGE3c9nlLvxNxGKQRhK5afKaIvksytQ4Z8pOJvXPsqXV0 5nwg== 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=KfORfMnHivaxmWB5elK1irn4ZLfCRB1riyQ1SP/oV/Q=; b=D/KVothdWU2deD2zoyb5+KeorAPatGTpVg7OaJ2h5RkDOJiQFf94RCKyCtzWzjXcAm fGPC7ix3bb7m9ztnNy1OAvUImfn5rurCz5p4O77isWqavm7Awp3XNDttrHLTe4JIHAG8 buxyH1HYkkra4nu9I95sH9pkEqRQQj+eX8Z+tYiiliozvfkoFRDLCfDotWMPs8zDU3J7 O2S09HjUFJzrQdL11LilELpdQC+9VT+Wr1v+19NF5ms5XczO2S8B2d8YC7GRaKLyMxOt bsc3LoNx9lJkx0cXQdekNlYMq2q4EKsozv98mP8fZ70h6g3lStfVZUAya4VhOdJjtORS EsGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=DOSxVR6Z; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t17si217703oif.261.2021.05.12.08.10.49; Wed, 12 May 2021 08:11:03 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=DOSxVR6Z; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231873AbhELPKf (ORCPT + 99 others); Wed, 12 May 2021 11:10:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:56088 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232933AbhELPCV (ORCPT ); Wed, 12 May 2021 11:02:21 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B7A616141C; Wed, 12 May 2021 14:57:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620831468; bh=3FY3LSJkyBVhVObknXBWwseho00yLrUhua+TlElKQHc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DOSxVR6ZK3/FLmi62KMxWyXl+710uWQJa/KLZsAVNF+BY2FQI3gBwflwYIV/qFWnt 7mnTbLjwco4KhkjybYMRAMC65OYerckqb4dDwywpbbqjlUA947Z4STp9QVJ8E4eZad VbzyQMGrVCOzZy946d0FgxggE1CKvxBSXxetSFdE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Andy Shevchenko , Steffen Dirkwinkel , Hans de Goede , Sasha Levin Subject: [PATCH 5.4 132/244] platform/x86: pmc_atom: Match all Beckhoff Automation baytrail boards with critclk_systems DMI table Date: Wed, 12 May 2021 16:48:23 +0200 Message-Id: <20210512144747.245473372@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210512144743.039977287@linuxfoundation.org> References: <20210512144743.039977287@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Steffen Dirkwinkel [ Upstream commit d21e5abd3a005253eb033090aab2e43bce090d89 ] 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 Link: https://lore.kernel.org/r/20210412133006.397679-1-linux-kernel-dev@beckhoff.com Signed-off-by: Hans de Goede Signed-off-by: Sasha Levin --- 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 2b1a3a6ee8db..597cfabc0967 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.30.2