Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3083586rwb; Mon, 15 Aug 2022 17:43:37 -0700 (PDT) X-Google-Smtp-Source: AA6agR742IjGWFKEhVv2LMwCDOF19S0hnYuZ+lBc/k44Dv67tLS9WODluGQ25ZUz3r+a9CqGywwK X-Received: by 2002:a17:906:8a65:b0:730:6ebb:c96c with SMTP id hy5-20020a1709068a6500b007306ebbc96cmr11787884ejc.733.1660610617713; Mon, 15 Aug 2022 17:43:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660610617; cv=none; d=google.com; s=arc-20160816; b=z2bQFHJ5RAanoycfPryLtizLyTGQ9ru9+yfGOFlEVKGd1ozqp5J1wUK7IGwiryRaJ7 FRRYp3hsyE8M5hzAUbi83ON2E5wxzVpFF/lA76ofsHqawPEjMw+LetLOyvT5U/Fh/Ftp Uh5vqswc7+1BrDXjDkja5SQ0w8DxWd0/suhwDro780hXa4XnqG3Ho8VkVTneNj5Xt4p9 VNY4cfXiox7GxDHnAKyAOrTkGqd5GQK0bI+/oZ6x92nBLvB3UkJHbylaHzOezPwpbN9A T5vvXESHhhYyZg7jL3khdvV7X2WjP+D5TBPAS5wthkeLPR+LmP6bdM8TrxnugjnSQb08 h6iw== 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=NMtQsAY6lxY6Strcs2lGGbLjif5gg7WQyEp204a2TSA=; b=F39uNgir27VH14cYt5TUy3RnAyWcRrINT0ihhvsU771g2QSNPmv3tPNXk7Iq/4cALC U4L9Gn1qRSQrHhy7l9oNB0VX/lBlzYElioIdtJjJKMFl9a7FwLDhm4fUUQU4lUgru+iG AHabbFk6Wdyzjur/b6uw2pWWZ2ZiJMhNwq2kcMpj14ozkgjn1GOSE5DE12GF1Z4rOb4F cJjVpAPF6nEFGFM7vZQ59e5ohJ10ixLId6FkUFaLvYyY6ZoibEL2zqKLEJQxJrZ5+HVg E/fV+rVniTvZOQdjnxdearZWhU7Da/1U4GQZEEY40o5tz1fvw3M2we2cR5x7XvuJBqXb 7QkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=bPirVM3I; 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 p27-20020a1709060e9b00b00730d106e832si7493189ejf.248.2022.08.15.17.43.12; Mon, 15 Aug 2022 17:43:37 -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=bPirVM3I; 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 S1350209AbiHPAJ1 (ORCPT + 99 others); Mon, 15 Aug 2022 20:09:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355546AbiHPAAy (ORCPT ); Mon, 15 Aug 2022 20:00:54 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41C82165704; Mon, 15 Aug 2022 13:20:43 -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 ams.source.kernel.org (Postfix) with ESMTPS id B8C13B80EB1; Mon, 15 Aug 2022 20:20:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9C66DC433C1; Mon, 15 Aug 2022 20:20:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660594840; bh=qcowErLidLwa9TT1op1TnR4sNtYyxpDgSOfn3xZpfVk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bPirVM3IUp6nMHMgoKBbBBp4YRO1i7n2raNU7KGKCEr56y11xnoDO7kbBClJfQkse ZTila6vnAGFG72kMFJpycmxhzrL2AKEOBgspFc+3tHa9LPNQQ0PZsZLu6QmSW+co0g Ipj+WTg1fLFm8WvyGYXp+QCBX2S+tqzhPVQbZshU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ralph Siemsen , Phil Edworthy , Geert Uytterhoeven , Sasha Levin Subject: [PATCH 5.19 0575/1157] clk: renesas: r9a06g032: Fix UART clkgrp bitsel Date: Mon, 15 Aug 2022 19:58:51 +0200 Message-Id: <20220815180502.635858514@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@linuxfoundation.org> User-Agent: quilt/0.67 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: Ralph Siemsen [ Upstream commit 2dee50ab9e72a3cae75b65e5934c8dd3e9bf01bc ] There are two UART clock groups, each having a mux to select its upstream clock source. The register/bit definitions for accessing these two muxes appear to have been reversed since introduction. Correct them so as to match the hardware manual. Fixes: 4c3d88526eba ("clk: renesas: Renesas R9A06G032 clock driver") Signed-off-by: Ralph Siemsen Reviewed-by: Phil Edworthy Link: https://lore.kernel.org/r/20220518182527.1693156-1-ralph.siemsen@linaro.org Signed-off-by: Geert Uytterhoeven Signed-off-by: Sasha Levin --- drivers/clk/renesas/r9a06g032-clocks.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/clk/renesas/r9a06g032-clocks.c b/drivers/clk/renesas/r9a06g032-clocks.c index 35ffc462af1a..864b3dabecd9 100644 --- a/drivers/clk/renesas/r9a06g032-clocks.c +++ b/drivers/clk/renesas/r9a06g032-clocks.c @@ -290,8 +290,8 @@ static const struct r9a06g032_clkdesc r9a06g032_clocks[] = { .name = "uart_group_012", .type = K_BITSEL, .source = 1 + R9A06G032_DIV_UART, - /* R9A06G032_SYSCTRL_REG_PWRCTRL_PG1_PR2 */ - .dual.sel = ((0xec / 4) << 5) | 24, + /* R9A06G032_SYSCTRL_REG_PWRCTRL_PG0_0 */ + .dual.sel = ((0x34 / 4) << 5) | 30, .dual.group = 0, }, { @@ -299,8 +299,8 @@ static const struct r9a06g032_clkdesc r9a06g032_clocks[] = { .name = "uart_group_34567", .type = K_BITSEL, .source = 1 + R9A06G032_DIV_P2_PG, - /* R9A06G032_SYSCTRL_REG_PWRCTRL_PG0_0 */ - .dual.sel = ((0x34 / 4) << 5) | 30, + /* R9A06G032_SYSCTRL_REG_PWRCTRL_PG1_PR2 */ + .dual.sel = ((0xec / 4) << 5) | 24, .dual.group = 1, }, D_UGATE(CLK_UART0, "clk_uart0", UART_GROUP_012, 0, 0, 0x1b2, 0x1b3, 0x1b4, 0x1b5), -- 2.35.1