From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F0974192D62; Tue, 10 Sep 2024 10:06:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725962779; cv=none; b=gswRLzK/DfRxvnFm7mHxX6KP0RYWDFZL6CnE1GtmjqMHLqFWCTZe9bbiBQzNErP44L0SVlEpEpVtITifow+LZaDltnYoToABOfmryNRRYD54bWlRlFqQhfxNttvTRp5o8qZr2mO3Pi+iXIQz4K+6SkcST++EwU7OgM04zKQHb00= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725962779; c=relaxed/simple; bh=J8dueFp5aa0+SR4tWNgC0TsDdLqhtjEfvn/GYPX6A+o=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Begz1XXzhtUrj+z05FCPXfnNuex4epUWYPteUXNaN4N14OafNlWYJlH3bTvknqlIjKI0ygY/vQtv/TMthYwIAcmJQNiqo90GI7DOalFUpY19fCkQwc7BaWvbRnsUdlgTSuGFvS76qJSHLwySXSsn55Za6ttyUeuOwwOpce/DBh8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=x3aYNT6H; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="x3aYNT6H" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6D03BC4CEC6; Tue, 10 Sep 2024 10:06:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1725962778; bh=J8dueFp5aa0+SR4tWNgC0TsDdLqhtjEfvn/GYPX6A+o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=x3aYNT6H9Zoj3cOJNh99AuTRj+Dl5xLRgE8HVKTkB1OYbeF9koZs2sBMG1oD6l3tC noCFrh10Des41ccw9o0yus9mVBkIzZN3G1fcEMBsE12pcO4bL76NpB/KQbtrdVyc1u zc4eLcQkzeyGUxSsFYrOWJNjzFJ+Ft09BpDGQhsg= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Satya Priya Kakitapalli , Dmitry Baryshkov , Bjorn Andersson Subject: [PATCH 6.1 027/192] clk: qcom: clk-alpha-pll: Fix the trion pll postdiv set rate API Date: Tue, 10 Sep 2024 11:30:51 +0200 Message-ID: <20240910092559.071545871@linuxfoundation.org> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240910092557.876094467@linuxfoundation.org> References: <20240910092557.876094467@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Satya Priya Kakitapalli commit 4ad1ed6ef27cab94888bb3c740c14042d5c0dff2 upstream. Correct the pll postdiv shift used in clk_trion_pll_postdiv_set_rate API. The shift value is not same for different types of plls and should be taken from the pll's .post_div_shift member. Fixes: 548a909597d5 ("clk: qcom: clk-alpha-pll: Add support for Trion PLLs") Cc: stable@vger.kernel.org Signed-off-by: Satya Priya Kakitapalli Reviewed-by: Dmitry Baryshkov Link: https://lore.kernel.org/r/20240731062916.2680823-3-quic_skakitap@quicinc.com Signed-off-by: Bjorn Andersson Signed-off-by: Greg Kroah-Hartman --- drivers/clk/qcom/clk-alpha-pll.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/clk/qcom/clk-alpha-pll.c +++ b/drivers/clk/qcom/clk-alpha-pll.c @@ -1421,8 +1421,8 @@ clk_trion_pll_postdiv_set_rate(struct cl } return regmap_update_bits(regmap, PLL_USER_CTL(pll), - PLL_POST_DIV_MASK(pll) << PLL_POST_DIV_SHIFT, - val << PLL_POST_DIV_SHIFT); + PLL_POST_DIV_MASK(pll) << pll->post_div_shift, + val << pll->post_div_shift); } const struct clk_ops clk_alpha_pll_postdiv_trion_ops = {