Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp707095pxb; Tue, 5 Apr 2022 19:39:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzfwRv8w26OZp0wgfavMbkN+SiGzlOcf+VIp95BsDErSHT7G0XMXFFpjFQqqifM2sbd4ok5 X-Received: by 2002:a50:8d09:0:b0:41c:b898:19a6 with SMTP id s9-20020a508d09000000b0041cb89819a6mr6677354eds.30.1649212766979; Tue, 05 Apr 2022 19:39:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649212766; cv=none; d=google.com; s=arc-20160816; b=C3+z8vQKMhN6GyolZZsQ9aM1UXNi12gO2AlJnHH8KY4JnfLL9OEBZofi2E75ezF/og weVGS5A67u/C2zVdKKAZ+IUjssg1jRsHAqXNBQfhvV2annP8oFCzGEmzuR5cuE/lw4+n ToKBTYc0TO2dP5NpEO8W+ylURCARkkfRHh4H7mDQe8LbWJ3bDtPy7F+ESoNAmdo0RdCY 4WXLyHB7m8jlfxsgsfkhmYdBE3nCVO6JlW2EFjw0KmDtIBTJMeylptquNxmloWmENgEO n3tO5sHNYSSxBrqzH+XI8s6g2YfmAWfBECxFvO1O5uVNHRDPy8p+L/jU7VGfccIz9AIV N8kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=mw1yexSJFYCt7p3i0Ms3yJfNkpPkNwkN+8zkm0tpha0=; b=J3yvf7j5p5jJK25quJu1Xz4nHe0fhk0GVVtvoH38fpTvf6UuZAEchEAIplWF6pMOxO XKnKo8MI0ftoDYdlfivp7TAL3WzsKs9i5dwxZqomGd4pcl9jds/HYTq1EdTO6Gw+d5sd +YeRE6b1udp0J9dXE94F7FWH3wu/oNZ1Uz8sven+SPiOuDHdUU6KjGwOwVg4IF8mBsBV 3GZ1BIbQFEjpIPTq+2+bMjnWa8iesyVyIpT4RCJsknPlHmKml96c3WCOBKic3g9q9jlb 6FFqMi2y3Vh270/ss3QD3r+C8v8YljGlNUPhXBliUw5YdMmztIi+YUGZydHfhU7mIoZk 4hzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=b77YDsQR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b12-20020a056402084c00b00418c2b5bd7esi11196088edz.96.2022.04.05.19.39.02; Tue, 05 Apr 2022 19:39:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=b77YDsQR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242975AbiDEJil (ORCPT + 99 others); Tue, 5 Apr 2022 05:38:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239392AbiDEIUC (ORCPT ); Tue, 5 Apr 2022 04:20:02 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 216FBC4E03; Tue, 5 Apr 2022 01:12:17 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B09A760B0E; Tue, 5 Apr 2022 08:12:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BD124C385A0; Tue, 5 Apr 2022 08:12:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649146336; bh=mmZ2Jvn5IljWceAQxbq/am6ExJcO/DLxJptcZiszCck=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=b77YDsQRImN3TueRKprczzLFxQHTRS6oJR5rk5vxa9b7nZ4zUDm68FVT+iLZKJ6w5 HDLAOHRegqf404kxM1GEse7VddlGnRQA2skcpCwl1EHlIWh/ojtsN92c0EloW+6a9a qb6zTVNTUNOCpaw7/UDNRPKi9ZW0kvzs9yttKYrk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Geert Uytterhoeven , Sasha Levin Subject: [PATCH 5.17 0728/1126] clk: renesas: r8a779f0: Fix RSW2 clock divider Date: Tue, 5 Apr 2022 09:24:35 +0200 Message-Id: <20220405070428.960190253@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070407.513532867@linuxfoundation.org> References: <20220405070407.513532867@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Geert Uytterhoeven [ Upstream commit 691419f90f7fb8a6f247b477cb539644e11431da ] According to Section 8.1.2 Figure 8.1.1 ("Block Diagram of CPG"), Note 22 ("RSW2 divider"), and Table 8.1.4d ("Lists of CPG clocks generated from CPGMA1"), the RSwitch2 and PCI Express clock is generated from PLL5 by dividing by two, followed by the RSW2 divider. As PLL5 runs at 3200 MHz, and RSW2 is fixed to 320 MHz, the RSW2 divider must be 5. Correct the parent and the fixed divider. Fixes: 24aaff6a6ce4c4de ("clk: renesas: cpg-mssr: Add support for R-Car S4-8") Signed-off-by: Geert Uytterhoeven Link: https://lore.kernel.org/r/d6a406f31e6f02f892e0253f4e8a9a2f68fd652e.1641566003.git.geert+renesas@glider.be Signed-off-by: Sasha Levin --- drivers/clk/renesas/r8a779f0-cpg-mssr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/renesas/r8a779f0-cpg-mssr.c b/drivers/clk/renesas/r8a779f0-cpg-mssr.c index e6ec02c2c2a8..344957d533d8 100644 --- a/drivers/clk/renesas/r8a779f0-cpg-mssr.c +++ b/drivers/clk/renesas/r8a779f0-cpg-mssr.c @@ -103,7 +103,7 @@ static const struct cpg_core_clk r8a779f0_core_clks[] __initconst = { DEF_FIXED("s0d12_hsc", R8A779F0_CLK_S0D12_HSC, CLK_S0, 12, 1), DEF_FIXED("cl16m_hsc", R8A779F0_CLK_CL16M_HSC, CLK_S0, 48, 1), DEF_FIXED("s0d2_cc", R8A779F0_CLK_S0D2_CC, CLK_S0, 2, 1), - DEF_FIXED("rsw2", R8A779F0_CLK_RSW2, CLK_PLL5, 2, 1), + DEF_FIXED("rsw2", R8A779F0_CLK_RSW2, CLK_PLL5_DIV2, 5, 1), DEF_FIXED("cbfusa", R8A779F0_CLK_CBFUSA, CLK_EXTAL, 2, 1), DEF_FIXED("cpex", R8A779F0_CLK_CPEX, CLK_EXTAL, 2, 1), -- 2.34.1