Received: by 10.213.65.68 with SMTP id h4csp484450imn; Fri, 16 Mar 2018 09:08:34 -0700 (PDT) X-Google-Smtp-Source: AG47ELvubfZpJgNshf1upqKqQRSoJY8461I94Hy1C1D7CcinmdXHDd24dwaqs3TcaekUbVAYNvrn X-Received: by 10.98.137.90 with SMTP id v87mr2032275pfd.80.1521216514634; Fri, 16 Mar 2018 09:08:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521216514; cv=none; d=google.com; s=arc-20160816; b=eC4XeIJUrJKAx30TJsWx9t/FJL1SU2U7q2YG0LRffemrAzMswAM1Y7o7GeXu6cI3xv 4nm7mY3qM7Rb/7bpniwuM0we9o6TlSe63J8vYffCRl1j4YtTNf3q3Yp/UXlaF+gU2b7c wyLoVPxXgqqZLia0wJV8LWEi7+uGEzrK5dfNV4+c/bMr1az3xCaZm6spXO4ibTP5Ruda iwAlBU+ZFUgvg+uXyho6jdeIxN8xb1Zokzi0aKEmz3TLjzJvLtqh52z+kMuTLEFz5XiA qZbtXTqUFsVBGlj7B2L/Igt8RAeTOJPcY6T1PQU4XKdFsy49GIVKpjzFA30Oeua/RN62 U7pA== 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=Hq+ZMqW39npB4NL/kiXzcCihXjXaS3qXsC9zkbjulXM=; b=ebfX5R70pvxQwUa7T/Xhe0wZshp8TV5/LiOtgqTiKETfLnLi3ozxxnvU8/U0Li0Nwi qV86ncRPupfeDZSRIbvMp1ESoZMwYdiZu1q6gLWLi2NarBlTI3fexFd+YbAkBBPkVvAM Pwss3xt4ljEerxovSqRcU4yMvcpVkH79f0hMF34isUOuoFaXWMEWJO7amhsFZhYKCveK h9p5IXAb+qrPEwMOTQRrHC7LpWeofa/2aroC0KNjNmfgoNWWBm+5n4khgWY67GLLkzTN Td9/lPFKgUchhOlH4xnH1ouRdP8NXlodeBQDqhGO09aI1iBysn+x7cHgRocZ5/sJef/e FKZA== 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 t11-v6si6330523plr.411.2018.03.16.09.08.17; Fri, 16 Mar 2018 09:08:34 -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 S965073AbeCPQHG (ORCPT + 99 others); Fri, 16 Mar 2018 12:07:06 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:44058 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754503AbeCPPlh (ORCPT ); Fri, 16 Mar 2018 11:41:37 -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 03B8AF87; Fri, 16 Mar 2018 15:41:36 +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.15 039/128] clk: meson: gxbb: fix wrong clock for SARADC/SANA Date: Fri, 16 Mar 2018 16:23:00 +0100 Message-Id: <20180316152338.654185961@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180316152336.199007505@linuxfoundation.org> References: <20180316152336.199007505@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.15-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 @@ -1386,7 +1386,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); @@ -1437,7 +1437,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);