Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp435899pxj; Thu, 20 May 2021 12:51:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy96LEO+8zvPHG5bFi5svVojYzbNKX/ONCRu+qkqsaZiKWWxkvCBpyF4mRdQolBdkaqMRsz X-Received: by 2002:a17:906:ccde:: with SMTP id ot30mr6490215ejb.353.1621540298540; Thu, 20 May 2021 12:51:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621540298; cv=none; d=google.com; s=arc-20160816; b=RVNDBXPhygsf5zfIsFTsJSsG+5sG9I2G5WJwykbMMYw2ncXTTLTc4RP9Vt744Q9jCO mSb5ku0po2AZUzVUmPn/7eLZA7YFZbkXTYXZkW9fa5AA/Ni5Ogtod8emKni/g1uNQ/Gw RHUYHy78J/orIWmj4kG+AJE3PPGvY+nwInJLsjjzwGPeOBNxpyBRPv4+8C0nPgOluPwP p1MfmMRfogDxwMJKFyXlsGhHGBgXjcdNlQlHjOFrqRw5kS7j8t5dOAc/PRBcj56N78op nJWvEmlLuASadM+DCHH31q8DVeXwzhDFaI3T2lVymiyNE9HTkM/MxuWAQpbIx4Z0JvHu XZKg== 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=v8WUiX6Qg8FcNct7RYge46PkqbX5/DZtuQeoXnDc3cs=; b=erbb0K8ugyMdlwDqlL6a1VSh2ajtPPalKcNzSMMUFygxmLIpt0pzTiKguYBmHdPMZm tVvA5Op+fY8tUY4XLbcdDPNhwFGSZUFq7EF/eYB//8LObG+TLfrCuymqF52Q611ox8hM AQMyVV4AbwEmr2LKotp1E6FOTSdVUSysxaz4ASD81EHNNHinf3R7JtnrGLitCvOzVDJe 0Bl8NcO9GQfTJJ/6KYxJMLoybihEleSLScCTRq7TcPPxOv5FJAJEAFlR5bYhTwQuQyKt NmKX3xaHjKchmpW7u9dYJ/p2b+xyFTQIfPdrBLWRjH8HSpWaIUltB9sHPvP4QsnPpXcn F7vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=TxHxfevh; 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 z10si2212886edc.536.2021.05.20.12.51.15; Thu, 20 May 2021 12:51:38 -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=TxHxfevh; 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 S236993AbhETKpV (ORCPT + 99 others); Thu, 20 May 2021 06:45:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:60386 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237045AbhETK33 (ORCPT ); Thu, 20 May 2021 06:29:29 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0C01B61C3A; Thu, 20 May 2021 09:51:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621504281; bh=LdD+ZUYfvzHxZiSBwdzdSmm41ilw312hMDHiNRqdreY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TxHxfevhTB3b5L9YwySApfdN74wxNsBDZKZTD2HH0sn8S3/nPgWRe3NhTnfpYuFIJ hO+gEwrMZW/XBP/4qmwUGjZ9n5m2RaLcn5bhMfIHA05CFx5GInTgxO7z1DV0cj/XJP uxfFdbBGilHqyNnWEKfuONian0KLXbVcb6x7sp0k= 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 4.14 175/323] platform/x86: pmc_atom: Match all Beckhoff Automation baytrail boards with critclk_systems DMI table Date: Thu, 20 May 2021 11:21:07 +0200 Message-Id: <20210520092126.116384324@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092120.115153432@linuxfoundation.org> References: <20210520092120.115153432@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 92205b90c25c..d1d5ec3c0f14 100644 --- a/drivers/platform/x86/pmc_atom.c +++ b/drivers/platform/x86/pmc_atom.c @@ -453,34 +453,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