From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7EDC5CCA46F for ; Wed, 1 Jun 2022 13:54:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=UTQZzevsRER4EwahUYmMVvz1mYS1LIl8CFnxjQq3Luk=; b=P+aoTsfAeISh64 TV8jvBvZlDlY2JJkS9gUfmEPgRkET1TFDdYTZEmSDdtlUiiLoGf6jH/7GK+5IpbZD5nSfBbe4R/2B 2YBKXgUIe1JFaJhK6m5zZ8S6bnGWMLvjeRjZaMvQAsa44bQjGqxm8y2ZntxgWYDIxJnZRjXX1DAWN M9HPzfhT0VMPH6KtaepvGgoXpxUY5RC4UEXyIZKKEX6UXNrqjcsgOHy2xgmDl5L+olZFRiuCLKz0z wsyzEvkNA6FifuK5awbIOTCrKp7dgH/4BPrWfC3gN6liOv/ecpbvwTqd6dZvWuZP146mECIDcC6oi sab5II/3efVW/QnJ1dsw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nwOme-00GOIg-Ly; Wed, 01 Jun 2022 13:53:12 +0000 Received: from sin.source.kernel.org ([145.40.73.55]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nwOmV-00GODn-3c for linux-arm-kernel@lists.infradead.org; Wed, 01 Jun 2022 13:53:09 +0000 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 sin.source.kernel.org (Postfix) with ESMTPS id 69F2BCE1BF3; Wed, 1 Jun 2022 13:53:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C61BEC36AFA; Wed, 1 Jun 2022 13:52:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1654091579; bh=XHRtkpxftbgTm/PySu+8nLF6MiAvmFtE9vRGXyrzS1U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=f5iZHf3TmnEikXpwKRla9dJvun4l6Du+YRDk25JVoqq9W7Dq1L0MRL/kUivX0y6hF MtP9rBBopz9Czr8J0J3GcwHfXnAp0DVoxI9WHARGyieLGRWDmuO052t7k+cnGXyLra ydPi7bxSXvT+29/rdmxghCPedOO2taHm8iKefTMdOMWxd5FVUIsiSFm5IzaOmJREgi 2vMrJHrTz2GjD4t9RNT1Ex9mv6sd//KO6mN4YSS865KEaGzSPY541YvhkOEvm/sfPV /WhLaLugAiC4L03TBPTyl2TQUYorpz1CoZmYwJY3w2aCDNGaFXcjlUqkHlrdWT6gpy 1F3IupYKsTsow== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Janusz Krzysztofik , Tony Lindgren , Arnd Bergmann , Sasha Levin , paul@pwsan.com, aaro.koskinen@iki.fi, linux@armlinux.org.uk, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH AUTOSEL 5.18 18/49] ARM: OMAP1: clock: Fix UART rate reporting algorithm Date: Wed, 1 Jun 2022 09:51:42 -0400 Message-Id: <20220601135214.2002647-18-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220601135214.2002647-1-sashal@kernel.org> References: <20220601135214.2002647-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220601_065303_375557_CF13D206 X-CRM114-Status: GOOD ( 13.73 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Janusz Krzysztofik [ Upstream commit 338d5d476cde853dfd97378d20496baabc2ce3c0 ] Since its introduction to the mainline kernel, omap1_uart_recalc() helper makes incorrect use of clk->enable_bit as a ready to use bitmap mask while it only provides the bit number. Fix it. Signed-off-by: Janusz Krzysztofik Acked-by: Tony Lindgren Signed-off-by: Arnd Bergmann Signed-off-by: Sasha Levin --- arch/arm/mach-omap1/clock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-omap1/clock.c b/arch/arm/mach-omap1/clock.c index 9d4a0ab50a46..d63d5eb8d8fd 100644 --- a/arch/arm/mach-omap1/clock.c +++ b/arch/arm/mach-omap1/clock.c @@ -41,7 +41,7 @@ static DEFINE_SPINLOCK(clockfw_lock); unsigned long omap1_uart_recalc(struct clk *clk) { unsigned int val = __raw_readl(clk->enable_reg); - return val & clk->enable_bit ? 48000000 : 12000000; + return val & 1 << clk->enable_bit ? 48000000 : 12000000; } unsigned long omap1_sossi_recalc(struct clk *clk) -- 2.35.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel