Received: by 10.213.65.68 with SMTP id h4csp502249imn; Fri, 16 Mar 2018 09:42:02 -0700 (PDT) X-Google-Smtp-Source: AG47ELsY/MG7+TsuphET+6ozT/yaz1TSbGoAFgfqTAz9GHGh5gnRr5y9QfktcK3ygoDJ8aUW5lV1 X-Received: by 10.99.169.10 with SMTP id u10mr1961878pge.163.1521218522488; Fri, 16 Mar 2018 09:42:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521218522; cv=none; d=google.com; s=arc-20160816; b=VcjuWWDhEF16Vg1QuXQcCGXwBjVbbonEJm9vDX1MG4qqAxW5XGrpBDDhA7IsJwa4gp x4EXwX6P1huGsUR6+SsxSQcbO1lrfqXLt9Uc34iha3uDc36/uPQFg12LOfjS/mlOqgTM j4fMXpXO6e7GfIhsg0n1pJWLDaprD+0UMpXd7LOJBfbg5+uX0f24BWSCWTGDqdSzM430 agtjhovR1CoAG7YtmTWdWFVG1D8Xyvx5SpebQWYfrbq+Rt6LgSW7R88sVJ21nQPjGuaR D6COuEbYIgBavncnz9NkaP6gUfwfKHLZqz6wh/Bx5aFim14bon3eKs2OzlUu92jT35L+ afsg== 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=r+5foTHKAcg9ApSpAEyesywIfRaCRYAjqKQC2QSxdUE=; b=knJGGTOcHh8Nyzdz+6juZCQjA4UlhW+9XDW2nMxYLJCkepKkfOa2HsDkYRTU9bzoSx 5sBw2S8LcD7mLKPg7W2QXK4FBzU5QdUG2wvfQhOei9bA56dp0UvKrx1T0qI2DyOaaKDS AlRPv30ayVKa+PczFUddHFj538fVDKuNbA7hAW8tHBNxf1Szr1rAVQEjPvj3HBC/ZlFO N8MHKMoPoKOkia7wH2vwe6rWyXBzA0T1OZWL9mRj8GUGSCZKV7ND8vsi+Y3CUD19lrQj cZi1X6qW2yi7LFEypK5rpaXTVyQ2fB9MIQiHRrwkhWTrBH/RknxZdFxHleypOc1pQ/eB osAA== 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 l7-v6si6931136plk.380.2018.03.16.09.41.48; Fri, 16 Mar 2018 09:42:02 -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 S934356AbeCPPg5 (ORCPT + 99 others); Fri, 16 Mar 2018 11:36:57 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:40454 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964795AbeCPPgy (ORCPT ); Fri, 16 Mar 2018 11:36:54 -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 9651910F8; Fri, 16 Mar 2018 15:36:53 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Xingyu Chen , Yixun Lan , Jerome Brunet , Sasha Levin Subject: [PATCH 4.14 034/109] clk: meson: gxbb: fix wrong clock for SARADC/SANA Date: Fri, 16 Mar 2018 16:23:03 +0100 Message-Id: <20180316152331.813912773@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180316152329.844663293@linuxfoundation.org> References: <20180316152329.844663293@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.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Yixun Lan [ Upstream commit 75eccf5ed83250c0aeaeeb76f7288254ac0a87b4 ] According to the datasheet, in Meson-GXBB/GXL series, The clock gate bit for SARADC is HHI_GCLK_MPEG2 bit[22], while clock gate bit for SANA is HHI_GCLK_MPEG0 bit[10]. Test passed at gxl-s905x-p212 board. The following published datasheets are wrong and should be updated [1] GXBB v1.1.4 [2] GXL v0.3_20170314 Fixes: 738f66d3211d ("clk: gxbb: add AmLogic GXBB clk controller driver") Tested-by: Xingyu Chen Signed-off-by: Yixun Lan Signed-off-by: Jerome Brunet Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/clk/meson/gxbb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/clk/meson/gxbb.c +++ b/drivers/clk/meson/gxbb.c @@ -1139,7 +1139,7 @@ static MESON_GATE(gxbb_pl301, HHI_GCLK_M static MESON_GATE(gxbb_periphs, HHI_GCLK_MPEG0, 7); static MESON_GATE(gxbb_spicc, HHI_GCLK_MPEG0, 8); static MESON_GATE(gxbb_i2c, HHI_GCLK_MPEG0, 9); -static MESON_GATE(gxbb_sar_adc, HHI_GCLK_MPEG0, 10); +static MESON_GATE(gxbb_sana, HHI_GCLK_MPEG0, 10); static MESON_GATE(gxbb_smart_card, HHI_GCLK_MPEG0, 11); static MESON_GATE(gxbb_rng0, HHI_GCLK_MPEG0, 12); static MESON_GATE(gxbb_uart0, HHI_GCLK_MPEG0, 13); @@ -1190,7 +1190,7 @@ static MESON_GATE(gxbb_usb0_ddr_bridge, static MESON_GATE(gxbb_mmc_pclk, HHI_GCLK_MPEG2, 11); static MESON_GATE(gxbb_dvin, HHI_GCLK_MPEG2, 12); static MESON_GATE(gxbb_uart2, HHI_GCLK_MPEG2, 15); -static MESON_GATE(gxbb_sana, HHI_GCLK_MPEG2, 22); +static MESON_GATE(gxbb_sar_adc, HHI_GCLK_MPEG2, 22); static MESON_GATE(gxbb_vpu_intr, HHI_GCLK_MPEG2, 25); static MESON_GATE(gxbb_sec_ahb_ahb3_bridge, HHI_GCLK_MPEG2, 26); static MESON_GATE(gxbb_clk81_a53, HHI_GCLK_MPEG2, 29);