Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp201598imm; Fri, 10 Aug 2018 09:49:16 -0700 (PDT) X-Google-Smtp-Source: AA+uWPydMxa8RlE3oATfzosGdMA59RP3aPsHgzjDa0VxsGPdhnr8XtKITrMf2/OkYqv7nv8N6wY8 X-Received: by 2002:a17:902:e18d:: with SMTP id cd13-v6mr6662111plb.305.1533919756580; Fri, 10 Aug 2018 09:49:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533919756; cv=none; d=google.com; s=arc-20160816; b=FNZsNi3/gfQJC3fHaTW8+gJHIdFmNP4WWYy1yDvDcRL61g2ZhYdWlGI14RQA936UuK WynsVIRpaYM5MfVQL5A0bYL28UggXqmXDhEiKUF5pc1St5Pv/ZowC/SHJvwqHVOajGZB mMyGKALlUsGyO2txVnElyRFY1MK44NoNfausdKxR1aRn3hMFp1QaQY+czmbInhks4Yot KdRgayoajm/4btoGRI6dW7kQYc6mzMzousWWBSqU25uwJ7UXuqwrd+TXOBP2+5LnK7Ec o1v0vxjjU6wGxf1yv0ajoOW5x5L0drA5JRfduNBmei8vuEGAHAENefy+iJP2X0frxHhL cguw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:arc-authentication-results; bh=AoSXM4G6+iNRA1bh5Kk9h5NdMX2MP3VH6vl+hUgY9ek=; b=QYD/x2tOjAK/vEZalYYVG0S81Mc2CxERAxXuH7VAAVDAWzzimPoS5lha/U5C9UR9m6 tvILIbhYxUtZsJvQVIz2WckmIO0xXBqzx0KMbXiJbwq9/WgBPIAaOr0Acg4MtCMo2urQ QiIZSpHzvGZp09RadNHjlntI54jfBYeQAXUfhhtRHPkfESKxnbthD6eXBDK4Pner9KrZ g6njlu7z4qg9jPwJFr2982ZHO/aq7N7z8h6ya5lNaEYj8bDh7uGJynlGlRyz0QaOdy+K agj8nw4jd6T/zp9AgGINDhLDdAXXWXzWW53PHmoroIIwbNOfA3dJoyRpUjv4UaJh0XMo 58HA== 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 w6-v6si7811042plz.280.2018.08.10.09.49.01; Fri, 10 Aug 2018 09:49:16 -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 S1729668AbeHJTRd (ORCPT + 99 others); Fri, 10 Aug 2018 15:17:33 -0400 Received: from mail-ed1-f66.google.com ([209.85.208.66]:38758 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727570AbeHJTRd (ORCPT ); Fri, 10 Aug 2018 15:17:33 -0400 Received: by mail-ed1-f66.google.com with SMTP id t2-v6so5111792edr.5; Fri, 10 Aug 2018 09:46:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=AoSXM4G6+iNRA1bh5Kk9h5NdMX2MP3VH6vl+hUgY9ek=; b=pOixr7XL/ntZXTm+iRdfnVVDsUs/3W0dDnh6pBclp2GPwveogSnbYv/bMHyPK2MDi/ LP1ofpYIWqpVRLEI+a7OnSf0w+s+fyTvC3pbihSpRFniQgMzxG8iRKZMMI2abLAuZHKC kCPUYwuN5t0JKmPJHzuBQ6TzrJsXdU7w+Kg3GtpIFTLb4fbFrDb2G/3y8DWinC2dJo41 4jFs+ZI3TYNpTClZ5mgF4/Nitvp4ZxvZUFn65u1XCdGOEWOeBeIoZ3SSjh/cue8MI9hS lIDUt61QVRjToO7PgHXWh57mLCaZckjD72GFAHX7j/zDVtBJL4PHwdsrd12/0G7cJvWD 2ubw== X-Gm-Message-State: AOUpUlEHgbjaOKABjOBBvCeWh+9rrItC0WunPAp0ces78vbENyEA1YPV Kem5KeGYkqe6b3Ia1cFqirk3DR02/lI= X-Received: by 2002:a50:a347:: with SMTP id 65-v6mr9211702edn.299.1533919614814; Fri, 10 Aug 2018 09:46:54 -0700 (PDT) Received: from mail-wm0-f42.google.com (mail-wm0-f42.google.com. [74.125.82.42]) by smtp.gmail.com with ESMTPSA id n10-v6sm3827742edr.59.2018.08.10.09.46.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Aug 2018 09:46:54 -0700 (PDT) Received: by mail-wm0-f42.google.com with SMTP id y2-v6so2580380wma.1; Fri, 10 Aug 2018 09:46:53 -0700 (PDT) X-Received: by 2002:a1c:3b54:: with SMTP id i81-v6mr2027117wma.143.1533919613811; Fri, 10 Aug 2018 09:46:53 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:adf:a101:0:0:0:0:0 with HTTP; Fri, 10 Aug 2018 09:46:33 -0700 (PDT) In-Reply-To: <20180808171952.17263-1-icenowy@aosc.io> References: <20180808171952.17263-1-icenowy@aosc.io> From: Chen-Yu Tsai Date: Sat, 11 Aug 2018 00:46:33 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [linux-sunxi] [PATCH] clk: sunxi-ng: fix H6 bus clocks divider position To: Icenowy Zheng Cc: Maxime Ripard , linux-sunxi , linux-arm-kernel , linux-clk , linux-kernel , stable 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 On Thu, Aug 9, 2018 at 1:19 AM, Icenowy Zheng wrote: > 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 is wrongly 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 APB1 seems to be the only affected bus. Since there aren't any users ATM, I've queued this up for 4.20, with a few minor tweaks to the commit log: - s/wrongly/incorrectly/ - subject changed to "clk: sunxi-ng: h6: fix bus clocks' divider position" - third line: currently the divider _offset_ is ... ChenYu