Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2165656iof; Tue, 7 Jun 2022 21:56:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzRBDXAT/4+bO+kCJulDbOJ44TlBIUW6bi0SFhtOurh4aD0KeS8VI+fm4yYaPNxACiWJIQO X-Received: by 2002:a17:90b:4d05:b0:1e2:bf91:8af2 with SMTP id mw5-20020a17090b4d0500b001e2bf918af2mr35365254pjb.210.1654664169232; Tue, 07 Jun 2022 21:56:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654664169; cv=none; d=google.com; s=arc-20160816; b=r7dfJrZvrjJQfE8pZFeXCVHF+u8PfePGgBXc8qNEk2zaW6akRPg9YYdqVDrCpNWNYr 5/lt9k3C37CCGcH/7IJDNQSgk5UeUH12jfqO9Ytd9oTEHMTubdUrMiN1xdTHMteJu8xQ 5Vs12rk6ez0PEnLFGP6Xuprwyy8BsG+8DO2BWM+FJU4u81lkmIgNgLacUjTawqcXlXZM 8ab/zJ8lGQ8BWgWULbZSAVN2bPWixtyBGu8edjdsQTjdhr5R9Ak0l+KzcpCDktW9wTMQ 3gVjwIe/B/O2Uw3NKwDff8DKbdsphDP+Wq8fQ+sIJn2UUO+csKFAg+bl+CkyQrgMVND5 LI/Q== 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=GugS9M5ekFtbjwPypj5roBIFptUxzKS3iwJC2vquQ/M=; b=X5xxoAN/ukEsrjKrxTDKJIH6D88r/Yqfar8E0ZtZGjT1lbWdd9a6j1f7F1NLIcKRTt GhchtKx1Lg3a/O4WrlIKstsOo4fVQlp7iJgVO3PT36yH5pFlHH89Kj+uVL0hE/RccTcv QPbCyTWZcFCNW0tA7pcGpe6rfY8ZV1fR+vUlfRAN/ykgIxFoEdhSkAm0RECuIhtuUzjn UFyz4o+SLVD4iqrmaqIiqfpDN8Dw83tEw5wuPF7RBD1Es3RogNTa4xv5GdKqcKDDKNME f5LgDY0coDXD2v3NqjX1EtBDvRWI1rVDTWwPHmJSi6kkVE7DHJ1es76oUzgDHN7hZVCa S4bQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=X4UmOmXJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id o13-20020a17090ac70d00b001df799bfae2si23952892pjt.123.2022.06.07.21.56.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 21:56:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=X4UmOmXJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 54FC6466D04; Tue, 7 Jun 2022 21:33:39 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346799AbiFGR3K (ORCPT + 99 others); Tue, 7 Jun 2022 13:29:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346512AbiFGRZN (ORCPT ); Tue, 7 Jun 2022 13:25:13 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 626F01059F8; Tue, 7 Jun 2022 10:22:51 -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 9643D6009B; Tue, 7 Jun 2022 17:22:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9F8EFC385A5; Tue, 7 Jun 2022 17:22:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654622570; bh=0vLOqckxqz6FAn6Yj85sK+G/Bi0voXu2VUuWxkW7Bm4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=X4UmOmXJnviq5JfpX5ceAGwBxX0ocQVPVCBsM8heXKNQN84BuMGZVfYPC/Krey9rg UfESeHDPV2Rj4BF5St0+CYdrYY156Vn7GYWGYLDTZQGnwOgpIVAc0pE1Dc1lXa94fj mK13uISmvB1vSrg2vliVcBTFHLklH255Pzl7U8iQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Janusz Krzysztofik , Tony Lindgren , Arnd Bergmann , Sasha Levin Subject: [PATCH 5.10 105/452] ARM: OMAP1: clock: Fix UART rate reporting algorithm Date: Tue, 7 Jun 2022 18:59:22 +0200 Message-Id: <20220607164911.685266268@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607164908.521895282@linuxfoundation.org> References: <20220607164908.521895282@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=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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: 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 bd5be82101f3..d89bda12bf3c 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