Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3757532yba; Mon, 29 Apr 2019 08:03:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqykgK0DaR8FGTmyktphgFSEkPZtpWWS0z+WuZKpeffAAB31vrpHcOmgdWtwRQe0hjDsTiDu X-Received: by 2002:a62:4558:: with SMTP id s85mr64864233pfa.171.1556550238322; Mon, 29 Apr 2019 08:03:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556550238; cv=none; d=google.com; s=arc-20160816; b=PpLD3CrcgXsPu80ggLojtEGTf+47s6UgEM85wAigEDf1rVclo/QKwWJ85314xYf3uh KLKLSO31IrZw90FB/5vlu64gwDx17tfTbp1V30Ns0WHCRFfewgBCwCFEBA6MANh8ptv9 ObwZ/JYinBpjD9l/JYzL/op8bnoKYC9zYyzC3KyZJyh+Q4LZ/dEn4XNtxxVLAisv9qfS IAu4r9HUgYNa/gtZ5rRbzeZJNP8D3mX0Ujdo/l6ubqtH7M9ANAJ2OB+ULWcZjRKe+dH9 A9iPf6UdcYts9a48p1WyZsG7SESd28dF9UN6e+Sv1aLZ06lhkmLJ2yAoTMkM3wsdRX7f O8dQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=e+V3dHjzOoQUDEOdb9Ydl93Nx1Xyhdb5hujzZQSguBQ=; b=HtIRM10ghvHOzTnviMgh70ngGVM8TDS1YF+wN74d1+WBxFvDFbYFDpudB2ARuJ6gem 6Y/wPlHwC/bXVfD2ZG4Ei2dFM90i0XqZMZGluhsnd38Y1+geRyIueRQZqtBiWXiWNu2t tyIj7l9g9M1qWWs65hq7zBmSVz51RachdRbd6AMvOGGoWXz5Dcy7oI3DXfuKiJxD/3hf 7zUeS9FXK0wGCs5cC2P5DurvIqAIPhbCIclqjpohegyGigdgyQZC/NRKhk7PPoykYCCx UDOKWZEKajdjqI7A/uptlE8r+rv582uHuW2hymrkn4Ywp1HB8X7IY5vnXimLbyh39anJ svjQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u1si34457988pfa.222.2019.04.29.08.03.35; Mon, 29 Apr 2019 08:03:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728601AbfD2PBl (ORCPT + 99 others); Mon, 29 Apr 2019 11:01:41 -0400 Received: from mx1.redhat.com ([209.132.183.28]:56514 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727554AbfD2PBk (ORCPT ); Mon, 29 Apr 2019 11:01:40 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C987A3092661; Mon, 29 Apr 2019 15:01:39 +0000 (UTC) Received: from shalem.localdomain.com (ovpn-116-148.ams2.redhat.com [10.36.116.148]) by smtp.corp.redhat.com (Postfix) with ESMTP id 53B225C239; Mon, 29 Apr 2019 15:01:37 +0000 (UTC) From: Hans de Goede To: Darren Hart , Andy Shevchenko Cc: Hans de Goede , Kai Heng Feng , platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, Semyon Verchenko Subject: [PATCH] platform/x86: pmc_atom: Add Lex 3I380D industrial PC to critclk_systems DMI table Date: Mon, 29 Apr 2019 17:01:35 +0200 Message-Id: <20190429150135.15070-1-hdegoede@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.43]); Mon, 29 Apr 2019 15:01:40 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Lex 3I380D industrial PC has 4 ethernet controllers on board which need pmc_plt_clk0 - 3 to function, add it to the critclk_systems DMI table, so that drivers/clk/x86/clk-pmc-atom.c will mark the clocks as CLK_CRITICAL and they will not get turned off. Fixes: 648e921888ad ("clk: x86: Stop marking clocks as CLK_IS_CRITICAL") Reported-and-tested-by: Semyon Verchenko Signed-off-by: Hans de Goede --- drivers/platform/x86/pmc_atom.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/platform/x86/pmc_atom.c b/drivers/platform/x86/pmc_atom.c index 3a635ea09b8a..2910845b7cdd 100644 --- a/drivers/platform/x86/pmc_atom.c +++ b/drivers/platform/x86/pmc_atom.c @@ -407,12 +407,21 @@ static int pmc_dbgfs_register(struct pmc_dev *pmc) */ static const struct dmi_system_id critclk_systems[] = { { + /* pmc_plt_clk0 is used for an external HSIC USB HUB */ .ident = "MPL CEC1x", .matches = { DMI_MATCH(DMI_SYS_VENDOR, "MPL AG"), DMI_MATCH(DMI_PRODUCT_NAME, "CEC10 Family"), }, }, + { + /* pmc_plt_clk0 - 3 are used for the 4 ethernet controllers */ + .ident = "Lex 3I380D", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Lex BayTrail"), + DMI_MATCH(DMI_PRODUCT_NAME, "3I380D"), + }, + }, { /*sentinel*/ } }; -- 2.21.0