Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3004074imm; Sun, 1 Jul 2018 10:06:33 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLh8vRUE/m1lwg19Vna2Cb34mD1wljCAPZV4WZ275zINki5GeNz92EefDddiigbKpL4OIdP X-Received: by 2002:a63:743:: with SMTP id 64-v6mr19578591pgh.216.1530464793228; Sun, 01 Jul 2018 10:06:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530464793; cv=none; d=google.com; s=arc-20160816; b=BuKG6SSNMokBzcKL+pfDHDKzf7Tt+SdeYSH3X8hqddnMKPUxX8nz5AneRr9UaJmxSH KcQinUq7p1QTkSM3lkClCVeg0cu6xy55A9/+hCd0WjROCsjQlxxvzknOaymYIo+5MJlw COS9ndwZm+stC6fJ2e3hDoUGynAIhWdegthI2qB9WPk0ALEVc9uY7IAV2QmlLeQHzH4Q TQOLHkn4YOAvCmFt7UcnicIslQezeS+06RvrXtTRCmsRBwrhcE81CxbZ/vJ2GOgLVEGL PEfvoqFLf2h1EJ9nOumdFnIi2fvPwwo+Pe41uW14pJUEcl8ykN0DKeLCM/vgUBcIvmOD CTog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=fj7+BvaFW5mjH1Np8/A2G2tOKb5Jd/VPQstI9Zp+FT8=; b=PlRoPdcCNC1VtpMcX0h0MRwNGjoRlQx+ngZYTJu8iVbglNrbA0PXLrO1NSoVN4brOn LQmgTkBTaxCv09kwIce/9xS0SplsQ/xlr25RrdIb05Qg4ZScUMC03HOuOf+eAz4fmFHX M/YZ0MhQ2AGYCJkemFoC1NYFCXCJt6m8T2idtMCPHjVyWNzaTsIWrVSQh7wQ9XhWzX6k zxc46xhnlRxAgAPeliDAO7gGPs9/NfzAkonaEbKVg/iin0uFg2euKZ5A7KASUqmjElFN RzlDqrPQazMH5KU4cbdMZRbv5QPOoe75dVeo3Vq3EXaYANiqtSV9B0isSWhld7jg2eWS wrtA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b5-v6si9090444pfo.54.2018.07.01.10.06.18; Sun, 01 Jul 2018 10:06:33 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1032189AbeGAQma (ORCPT + 99 others); Sun, 1 Jul 2018 12:42:30 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:37632 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031809AbeGAQm0 (ORCPT ); Sun, 1 Jul 2018 12:42:26 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 9FD55A73; Sun, 1 Jul 2018 16:42:25 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jae Hyun Yoo , Stephen Boyd Subject: [PATCH 4.17 111/220] clk:aspeed: Fix reset bits for PCI/VGA and PECI Date: Sun, 1 Jul 2018 18:22:15 +0200 Message-Id: <20180701160913.007992346@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180701160908.272447118@linuxfoundation.org> References: <20180701160908.272447118@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.17-stable review patch. If anyone has any objections, please let me know. ------------------ From: Jae Hyun Yoo commit e76e56823a318ca580be4cfc5a6a9269bc70abea upstream. This commit fixes incorrect setting of reset bits for PCI/VGA and PECI modules. 1. Reset bit for PCI/VGA is 8. 2. PECI reset bit is missing so added bit 10 as its reset bit. Signed-off-by: Jae Hyun Yoo Fixes: 15ed8ce5f84e ("clk: aspeed: Register gated clocks") Cc: stable Signed-off-by: Stephen Boyd Signed-off-by: Greg Kroah-Hartman --- drivers/clk/clk-aspeed.c | 4 ++-- include/dt-bindings/clock/aspeed-clock.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) --- a/drivers/clk/clk-aspeed.c +++ b/drivers/clk/clk-aspeed.c @@ -88,7 +88,7 @@ static const struct aspeed_gate_data asp [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, 10, "bclk-gate", "bclk", 0 }, /* PCIe/PCI */ + [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_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 */ @@ -297,7 +297,7 @@ static const u8 aspeed_resets[] = { [ASPEED_RESET_JTAG_MASTER] = 22, [ASPEED_RESET_MIC] = 18, [ASPEED_RESET_PWM] = 9, - [ASPEED_RESET_PCIVGA] = 8, + [ASPEED_RESET_PECI] = 10, [ASPEED_RESET_I2C] = 2, [ASPEED_RESET_AHB] = 1, }; --- a/include/dt-bindings/clock/aspeed-clock.h +++ b/include/dt-bindings/clock/aspeed-clock.h @@ -45,7 +45,7 @@ #define ASPEED_RESET_JTAG_MASTER 3 #define ASPEED_RESET_MIC 4 #define ASPEED_RESET_PWM 5 -#define ASPEED_RESET_PCIVGA 6 +#define ASPEED_RESET_PECI 6 #define ASPEED_RESET_I2C 7 #define ASPEED_RESET_AHB 8