From patchwork Thu Jun 7 07:09:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 10451263 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1C9746037F for ; Thu, 7 Jun 2018 07:24:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 02CB229BF8 for ; Thu, 7 Jun 2018 07:24:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E931929C0D; Thu, 7 Jun 2018 07:24:08 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 470DA29BF8 for ; Thu, 7 Jun 2018 07:24:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753222AbeFGHYH (ORCPT ); Thu, 7 Jun 2018 03:24:07 -0400 Received: from mail-pl0-f66.google.com ([209.85.160.66]:41402 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753213AbeFGHYG (ORCPT ); Thu, 7 Jun 2018 03:24:06 -0400 Received: by mail-pl0-f66.google.com with SMTP id az12-v6so5525513plb.8; Thu, 07 Jun 2018 00:24:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id; bh=cfir5d9nY+kHtjjYX58OJl7xlw1mcjEAzGYTWy2Emm4=; b=gfz1jU2+bKH2qmaF3CETlfmz/x+LqlVtdjSVaohFR0210pNjPNSpIyAEnXftwgEuun iTWOvdQdbTOjMJYg5YvyBkEU67bjc4mLo1n8NCcLagesZ0bYalRuyd5xo0z265EIzQOt 1p+yrTqWpmZbAmAuBLbRvW3cmefZRKJbYfxfz3SHU+P1jzM4+9RvIGMRas+E3FVF3KWD 9JTFPcWfVJuJuMZHqGiukaZWOIxdXsbrocGv3jKBtDDri520SXb/FwsMrvvLiiWO40An HHEqWFKLqsNvOd+Cjd3RRWkQINIFEzan2RHBaK+iZpNaP7WftxC5m7EZlhfBq+lP4TDV zh8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=cfir5d9nY+kHtjjYX58OJl7xlw1mcjEAzGYTWy2Emm4=; b=Y9CWFGwdTlxRHJuF5BUhX6jSkNPsWLihgwarlBjhdY4UZ2GwQRmQCiIiJZB3bZ604s 5EG85sH+cClJQXMe8+5+0ESkvxeOA0q+RwlmET3g+GRsPI5OnqHLRcz8qPsXHVVe0/9N ubRz33pvLfqyP91p1ouAS0PVk3L4AENuwEyH5NN54JJ0JDj3u0I0xOb5lcgDSFeljNoX 68wkXB1/SWuwKIA+yAJHLJs4qS9Hj7tgeO9JduN/leL551TeLLGK9KPI9a38jN58j+bz +YDmP/dsVrO0Z0zDT374g/yjuChgprCPrlFVSFqCz5ysSN6z4WEURfNX1YfR0UHc9ixe jOFA== X-Gm-Message-State: APt69E0issfham3pRSJyfPRWvRWWjJ6aUCNP7N4LPXtzc3Fk4OBKwmQx mmYjfOjNtfnqKfPJq5ordos= X-Google-Smtp-Source: ADUXVKInovR5/DhQAx3m/OKH5DK9289f4J7SSY3t+CdCvNS79yHErV1v3DY9txWL2upAvAfQylWPug== X-Received: by 2002:a17:902:b604:: with SMTP id b4-v6mr851851pls.18.1528356246254; Thu, 07 Jun 2018 00:24:06 -0700 (PDT) Received: from aurora.jms.id.au ([203.0.153.9]) by smtp.gmail.com with ESMTPSA id c74-v6sm23195091pfd.19.2018.06.07.00.24.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 07 Jun 2018 00:24:04 -0700 (PDT) Received: by aurora.jms.id.au (sSMTP sendmail emulation); Thu, 07 Jun 2018 16:53:57 +0930 From: Joel Stanley To: Michael Turquette , Stephen Boyd Cc: Andrew Jeffery , linux-clk@vger.kernel.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: [PATCH] clk: aspeed: Mark bclk (PCIe) and dclk (VGA) as critical Date: Thu, 7 Jun 2018 16:39:59 +0930 Message-Id: <20180607070959.31995-1-joel@jms.id.au> X-Mailer: git-send-email 2.17.1 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This is used by the host to talk to the BMC's PCIe slave device. The BMC is not involved, but the clock needs to be enabled so the host can use the device. Fixes: 15ed8ce5f84e ("clk: aspeed: Register gated clocks") Cc: stable@vger.kernel.org # 4.15 Acked-by: Andrew Jeffery Tested-by: Lei YU Signed-off-by: Joel Stanley --- drivers/clk/clk-aspeed.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/clk-aspeed.c b/drivers/clk/clk-aspeed.c index 4d425594999d..c17032bc853a 100644 --- a/drivers/clk/clk-aspeed.c +++ b/drivers/clk/clk-aspeed.c @@ -91,8 +91,8 @@ static const struct aspeed_gate_data aspeed_gates[] = { [ASPEED_CLK_GATE_GCLK] = { 1, 7, "gclk-gate", NULL, 0 }, /* 2D engine */ [ASPEED_CLK_GATE_MCLK] = { 2, -1, "mclk-gate", "mpll", CLK_IS_CRITICAL }, /* SDRAM */ [ASPEED_CLK_GATE_VCLK] = { 3, 6, "vclk-gate", NULL, 0 }, /* Video Capture */ - [ASPEED_CLK_GATE_BCLK] = { 4, 8, "bclk-gate", "bclk", 0 }, /* PCIe/PCI */ - [ASPEED_CLK_GATE_DCLK] = { 5, -1, "dclk-gate", NULL, 0 }, /* DAC */ + [ASPEED_CLK_GATE_BCLK] = { 4, 8, "bclk-gate", "bclk", CLK_IS_CRITICAL }, /* PCIe/PCI */ + [ASPEED_CLK_GATE_DCLK] = { 5, -1, "dclk-gate", NULL, CLK_IS_CRITICAL }, /* DAC */ [ASPEED_CLK_GATE_REFCLK] = { 6, -1, "refclk-gate", "clkin", CLK_IS_CRITICAL }, [ASPEED_CLK_GATE_USBPORT2CLK] = { 7, 3, "usb-port2-gate", NULL, 0 }, /* USB2.0 Host port 2 */ [ASPEED_CLK_GATE_LCLK] = { 8, 5, "lclk-gate", NULL, 0 }, /* LPC */