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 4D12915FA60; Mon, 27 May 2024 19:35:50 +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=1716838550; cv=none; b=l9mKEodSpQI9TvTTjQjRK+JczYQHmG4bHtAvGXVuUgBmVVcQFv3ExWuBHKVAVviRK3y0aim3R1aDuia5jcxe1XHNv+Cxk9lVTtw5jnyr2currmL23UVKxf71tnIPE3mwaP4VuaLmHJ5IuXCcOzgRvnKHLfCL8u2/wAs8gdsLWbQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716838550; c=relaxed/simple; bh=eEIoeQBRTmccXOfwpcnesYET6gY+sIORQ28b7YQdlEE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=bNuy+h8CG22ROrTs0nasG6lWHVDuZ/vaUWwaC42bkI9LQNRCbu1FRwNTP+XKzK/5IlZGlGvXbWfIf5m2C0K6VlocVC3vam/Q32AJHEn+gQMDLbIUKPgjt5723w62YYnnZuUgqJLtXFEgpElN4vhUICxQ6YHhxHMcoW+444kBg+4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=1GFOguU1; 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="1GFOguU1" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D650EC2BBFC; Mon, 27 May 2024 19:35:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716838550; bh=eEIoeQBRTmccXOfwpcnesYET6gY+sIORQ28b7YQdlEE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1GFOguU1tVBO/zZ3vc+gkzZNBux57OVb+f7Av7fMySoa53mZD2/km+DyLf/JWZMpC MkU2Mbs/Hh2A28eBpD6m6oWZ4rms7Jomlwp1vOA1ZG58tlQITrZ2HiszBGLUHBZlNG Cyqa4K56Uf5qx9bPsXpCW/Zm0/gFqog0iaOJqN6E= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Gabor Juhos , Konrad Dybcio , Bjorn Andersson , Sasha Levin Subject: [PATCH 6.8 434/493] clk: qcom: clk-alpha-pll: remove invalid Stromer register offset Date: Mon, 27 May 2024 20:57:16 +0200 Message-ID: <20240527185644.468773883@linuxfoundation.org> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240527185626.546110716@linuxfoundation.org> References: <20240527185626.546110716@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.8-stable review patch. If anyone has any objections, please let me know. ------------------ From: Gabor Juhos [ Upstream commit 4f2bc4acbb1916b8cd2ce4bb3ba7b1cd7cb705fa ] The offset of the CONFIG_CTL_U register defined for the Stromer PLL is wrong. It is not aligned on a 4 bytes boundary which might causes errors in regmap operations. Maybe the intention behind of using the 0xff value was to indicate that the register is not implemented in the PLL, but this is not verified anywhere in the code. Moreover, this value is not used even in other register offset arrays despite that those PLLs also have unimplemented registers. Additionally, on the Stromer PLLs the current code only touches the CONFIG_CTL_U register if the result of pll_has_64bit_config() is true which condition is not affected by the change. Due to the reasons above, simply remove the CONFIG_CTL_U entry from the Stromer specific array. Fixes: e47a4f55f240 ("clk: qcom: clk-alpha-pll: Add support for Stromer PLLs") Signed-off-by: Gabor Juhos Reviewed-by: Konrad Dybcio Link: https://lore.kernel.org/r/20240311-alpha-pll-stromer-cleanup-v1-1-f7c0c5607cca@gmail.com Signed-off-by: Bjorn Andersson Signed-off-by: Sasha Levin --- drivers/clk/qcom/clk-alpha-pll.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/clk/qcom/clk-alpha-pll.c b/drivers/clk/qcom/clk-alpha-pll.c index 05898d2a8b22c..58ae732959803 100644 --- a/drivers/clk/qcom/clk-alpha-pll.c +++ b/drivers/clk/qcom/clk-alpha-pll.c @@ -212,7 +212,6 @@ const u8 clk_alpha_pll_regs[][PLL_OFF_MAX_REGS] = { [PLL_OFF_USER_CTL] = 0x18, [PLL_OFF_USER_CTL_U] = 0x1c, [PLL_OFF_CONFIG_CTL] = 0x20, - [PLL_OFF_CONFIG_CTL_U] = 0xff, [PLL_OFF_TEST_CTL] = 0x30, [PLL_OFF_TEST_CTL_U] = 0x34, [PLL_OFF_STATUS] = 0x28, -- 2.43.0