Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2957579imu; Mon, 19 Nov 2018 08:36:54 -0800 (PST) X-Google-Smtp-Source: AJdET5eNL7MNccd6a4URM5N5FvznSv+lg5E7X5n2KEL/Sihsmhe9Ovf7W3U3mr3CA5Q9clyCLrv/ X-Received: by 2002:a62:ca05:: with SMTP id n5mr4936975pfg.154.1542645414479; Mon, 19 Nov 2018 08:36:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542645414; cv=none; d=google.com; s=arc-20160816; b=vrHtvXg54t+Y231/cXwedOHq7ADrAnO4uX4dvjxoLAxQUjyNBtiivhmeoEKUdIs3el 0oEF6n5VBB40VqNJq9n/MsvEzT5/4PoTvwPMJzV5GndYMxOF5Ea+WHz3p9ZbnKudjYqM +q5hv/ziumsPn35HfBbeUkm1PGjOsSEUlGNrrX1inr7S6gAkA6JGDpdMirRA464fmxel vGJ61wsrbGatSRW7xofDCN0F8CMdaY7vUcIQI3pjOqdGDJZrhQVrtsnxgvd7hYtpMp7d kSi2+4kCBW/x794WTbSrWiSwgVus6Cta6ikZdPvxq0rB8JjZPJDSWIGzwBMrPxEdvPMu BMVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Md1v4dJdMhiZIHiKTvagF1Fy+BRAeEGLGRHtzft/2FE=; b=MnITTBfOKGxkVb+yc3fv8P2kf9u6710Bwr3KrbPwgPG5ePxzcqEVyNJnJjgwSC5D5S o5tVx5NQxbirIBS5OGsQdLBboB6jSWGH/Rxu9YnCSVhNdc9JbtCOxQZi+oc9AHI+tPul wGbJsQf8EL1szaDLWuqMBS8z2ytLv54gqE4boZTplTRvCwKmQ7JZSgAj2gxXhBm7e+Th X2wbv+f5tkb/t+fPRnk4hO7JPrOI+hw0ljMjls0Fh3hpZ82VCkfwUtTMGYfumDc6GMqc joUwOU+weQQXhl/6alUFIm2SNv5GnHaPhQbPRbGkgFJb4UHOO+FDt3sn23xxwTxymf/0 JnGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=FFwGpJMT; 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 go3si10916194plb.97.2018.11.19.08.36.39; Mon, 19 Nov 2018 08:36:54 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b=FFwGpJMT; 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 S1731175AbeKTC5u (ORCPT + 99 others); Mon, 19 Nov 2018 21:57:50 -0500 Received: from mail.kernel.org ([198.145.29.99]:56644 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730510AbeKTC5t (ORCPT ); Mon, 19 Nov 2018 21:57:49 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id F06ED2086A; Mon, 19 Nov 2018 16:33:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1542645221; bh=JAeIoby5ROMa+T2ngl8lp9LGZwjmFXUFzfuMiOzaWyM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FFwGpJMTt7NDXmUMs76UVMDire5Cts1cee1FSHT2tA52Ak5kkzprU1JKtTVMFZyJQ tq+R2kVy8vyeV2N95qKFAN/WQm91h8bGcBZ65Xtqe5eZEzq7UrOUP3XkHBsgxfBYTk ukk9Y3ATO4UvB/Vtc5X4HzeOrwF94awkJAKTyktQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Icenowy Zheng , Chen-Yu Tsai Subject: [PATCH 4.19 082/205] clk: sunxi-ng: h6: fix bus clocks divider position Date: Mon, 19 Nov 2018 17:26:29 +0100 Message-Id: <20181119162631.040244018@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181119162616.586062722@linuxfoundation.org> References: <20181119162616.586062722@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.19-stable review patch. If anyone has any objections, please let me know. ------------------ From: Icenowy Zheng commit 2852bfbf4f168fec27049ad9ed20941fc9e84b95 upstream. The bus clocks (AHB/APB) on Allwinner H6 have their second divider start at bit 8, according to the user manual and the BSP code. However, currently the divider offset is incorrectly set to 16, thus the divider is not correctly read and the clock frequency is not correctly calculated. Fix this bit offset on all affected bus clocks in ccu-sun50i-h6. Cc: stable@vger.kernel.org # v4.17.y Signed-off-by: Icenowy Zheng Signed-off-by: Chen-Yu Tsai Signed-off-by: Greg Kroah-Hartman --- drivers/clk/sunxi-ng/ccu-sun50i-h6.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) --- a/drivers/clk/sunxi-ng/ccu-sun50i-h6.c +++ b/drivers/clk/sunxi-ng/ccu-sun50i-h6.c @@ -224,7 +224,7 @@ static SUNXI_CCU_MP_WITH_MUX(psi_ahb1_ah psi_ahb1_ahb2_parents, 0x510, 0, 5, /* M */ - 16, 2, /* P */ + 8, 2, /* P */ 24, 2, /* mux */ 0); @@ -233,19 +233,19 @@ static const char * const ahb3_apb1_apb2 "pll-periph0" }; static SUNXI_CCU_MP_WITH_MUX(ahb3_clk, "ahb3", ahb3_apb1_apb2_parents, 0x51c, 0, 5, /* M */ - 16, 2, /* P */ + 8, 2, /* P */ 24, 2, /* mux */ 0); static SUNXI_CCU_MP_WITH_MUX(apb1_clk, "apb1", ahb3_apb1_apb2_parents, 0x520, 0, 5, /* M */ - 16, 2, /* P */ + 8, 2, /* P */ 24, 2, /* mux */ 0); static SUNXI_CCU_MP_WITH_MUX(apb2_clk, "apb2", ahb3_apb1_apb2_parents, 0x524, 0, 5, /* M */ - 16, 2, /* P */ + 8, 2, /* P */ 24, 2, /* mux */ 0);