Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4730934pxj; Wed, 12 May 2021 11:55:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxGGp6pb99qJQ92QYGAFVA5c5zXxBIKS2qz7woFcLq+hdN7tn3cQYzEV08sqp9Vfrz3v9qX X-Received: by 2002:a17:906:640c:: with SMTP id d12mr10735869ejm.70.1620845735880; Wed, 12 May 2021 11:55:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620845735; cv=none; d=google.com; s=arc-20160816; b=JnwlBOnNXCBhBY5o163tQfnTHRD6BwMrhbuzfWpEItLvJpdU5ByTc0SbXO74CWFjJy NeYNa0LvBBguO7x546Iy0BOeAM5Tm4Rob2I8tzmKx36+2yGLDUwpV1UgcAGcj8x3BO1r LeCDLsa2H/S6ffgwyeBgTsqZ1iiDFUFo3nZHDWpevNd6y+J8KYci0uveP6x3v87Sft3J 2nnf9MS5zCTruiJacFB3iCworpMwdtkfrvT+hGpDeelDxWfGFleK1uSjqqPDEtSxJ5Pf aWEYvw1I4taYVyJaatQ522pLbdOCygqp5JOVBctiQUjbsqjbr+Bafftw3ZKoIeYyM0Jd vGiA== 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=dsVvEHWE+yGeAKy0qpS9IlGd4WhG21UfaomZ3HUdzYA=; b=GlznYoXTWHebSjSXDbgNuXiWKLUvuw65UR8tnKq8LCpzG09NXxwZgqfAMamLewZgrY b3p2uGK+OHacVUF65XyMByWMr1FpmuuT4iEovSdRhkk6ZfeSP5Zjeg3XcVZhEWC1EP83 I4T1gvkHjJzrzED/UobDqjIzKij8vCdK8D4NcqSwzSN1+o/Xwc345gRGaFAgbTkfM4AW 7VQQnG9MPvPyVfKZhfxQBjOGgqpTH2OJTFMpZaguFsWUCbbgsFw8fw+5liooitCRh0yf vrJVb4KSEbnnDplSHvvxzjY5PQaz5lr7UWWS+idx541TagNIHPpBJQn+4pSE6B3iHCWj Ak/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="NUFnehI/"; 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 n2si947197ejl.283.2021.05.12.11.55.10; Wed, 12 May 2021 11:55:35 -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="NUFnehI/"; 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 S1357405AbhELSig (ORCPT + 99 others); Wed, 12 May 2021 14:38:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:55246 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235085AbhELQhR (ORCPT ); Wed, 12 May 2021 12:37:17 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B7607613C2; Wed, 12 May 2021 16:02:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620835366; bh=mGtGRLu9zYiUchtFsqOmdAAM+20y7/LdYOEmBnVFKUs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NUFnehI/o3lssuTrwpSGFdE2r4r5zLmUCyv3zGyhPm9nkRSsrHbG/tBp9rs6VKybi DXmiKPBuB59gcjQ5s29t8S6gtlPcTwEbn7nxsbid9rUaaoIazR/8IGsFgDh4VdhogS h2bg5k5Tigvi1mGnQUF+4faMAW5vtw4q1F35CRqQ= 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.12 316/677] platform/x86: pmc_atom: Match all Beckhoff Automation baytrail boards with critclk_systems DMI table Date: Wed, 12 May 2021 16:46:02 +0200 Message-Id: <20210512144847.722631336@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210512144837.204217980@linuxfoundation.org> References: <20210512144837.204217980@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 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.30.2