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: 926182 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 411cVR6HPhz9s31 for ; Thu, 7 Jun 2018 17:24:15 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="gfz1jU2+"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 411cVR3FTSzF32n for ; Thu, 7 Jun 2018 17:24:15 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="gfz1jU2+"; dkim-atps=neutral X-Original-To: linux-aspeed@lists.ozlabs.org Delivered-To: linux-aspeed@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:400e:c01::243; helo=mail-pl0-x243.google.com; envelope-from=joel.stan@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="gfz1jU2+"; dkim-atps=neutral Received: from mail-pl0-x243.google.com (mail-pl0-x243.google.com [IPv6:2607:f8b0:400e:c01::243]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 411cVK1YG3zF32f for ; Thu, 7 Jun 2018 17:24:08 +1000 (AEST) Received: by mail-pl0-x243.google.com with SMTP id i5-v6so5537956plt.2 for ; Thu, 07 Jun 2018 00:24:08 -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=iCng+tmhtZ1FES9iva4W4RCVfuq/P9HkIr0OsH2KIGRlKa2jSrVmnggLv0uMuYYjDO 6POv1aeDAUAxf4/jAv0nCX5SL9mek523Go3O/yTm0M7cH4/qx6rNInVxyco1cKi82PTO TKD3Am9IVEmwXIzNGw110wHOZZrA8u9FoMijfwe6j6Zeao1/cMlnvMmcjdWP+ZHpOnyt tVs3EARE+F7qMRUYWVowt4ochkh6HgnRK4giWOskI09Tu1LCs7CxSQdTvi7Fld0+2qlN nLeazxlAsjjB6P4cHX0crPzGQQVwnyjdyeG5nTHG8dmA/zaU5IESpqZBHCkxvncEdE31 LlrQ== X-Gm-Message-State: APt69E0jg1NtZAFz5RzPXJLmD0ELhQqb44B90/AmMM/Jgkt9Cc9o556H iY3gT6OSk35u1BQFANEaKYI= 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 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 X-BeenThere: linux-aspeed@lists.ozlabs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Linux ASPEED SoC development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: stable@vger.kernel.org, linux-clk@vger.kernel.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org Errors-To: linux-aspeed-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Linux-aspeed" 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 */