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 21B0812AAC8; Tue, 14 May 2024 10:51:29 +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=1715683889; cv=none; b=PqAaGx8aIscObrNJbcCD9cFWNjUFcNVNEU7mcwZnBkhs4ReRZdlWb38jWc/HWwAXLvSVM/jtrhq2Xq3VRqQ9hgy8x3bd7Ib5WkUUbLGKSq8CeVKYibrl42VbcdrvA15SCQoGhn07L1H2CNiD+Xdn3uUA5e36AjPXcITgJe8l9PU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715683889; c=relaxed/simple; bh=vleHy62cgQUgEEXI9GPXuDoik5v5wuImQ+4DPmV9cXQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=EJU/rvcdIA0/n0o2b1frYRzpFddc1rCI5V3zEWZgzREDJsb/IO/SwOd1HFRx2CUqWRD+5dPocsygOd5ZdFSiomXXYNyiLmdAZigwtuxoqrsUustNlZxeo2O20Xyw3PuVJeEDHCSgrGbzhbkz4aSccQDAvZauytLHeJyz7W2GVY0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ChXT6srq; 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="ChXT6srq" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7E24EC2BD10; Tue, 14 May 2024 10:51:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1715683889; bh=vleHy62cgQUgEEXI9GPXuDoik5v5wuImQ+4DPmV9cXQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ChXT6srqX0BO1X4ZwlmPeCmx3LfH7sqTuSsAmd4GH1fo36bFbMuXOoryuF0NbWIO3 iy8+LTdTlJ85OeokNzaod+ppkBkmAunbWB4sJEVwZilgZ7xjJ1fkrpbgz7jhSsp9Kq V/fbUV+alRaEVZL/KbVLX2PH6VoLPgOaswMSnn+s= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Diego Roversi , Maxime Ripard , Frank Oltmanns , Jernej Skrabec Subject: [PATCH 6.8 291/336] clk: sunxi-ng: a64: Set minimum and maximum rate for PLL-MIPI Date: Tue, 14 May 2024 12:18:15 +0200 Message-ID: <20240514101049.602457041@linuxfoundation.org> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20240514101038.595152603@linuxfoundation.org> References: <20240514101038.595152603@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: Frank Oltmanns commit 69f16d9b789821183d342719d2ebd4a5ac7178bc upstream. When the Allwinner A64's TCON0 searches the ideal rate for the connected panel, it may happen that it requests a rate from its parent PLL-MIPI which PLL-MIPI does not support. This happens for example on the Olimex TERES-I laptop where TCON0 requests PLL-MIPI to change to a rate of several GHz which causes the panel to stay blank. It also happens on the pinephone where a rate of less than 500 MHz is requested which causes instabilities on some phones. Set the minimum and maximum rate of Allwinner A64's PLL-MIPI according to the Allwinner User Manual. Fixes: ca1170b69968 ("clk: sunxi-ng: a64: force select PLL_MIPI in TCON0 mux") Reported-by: Diego Roversi Closes: https://groups.google.com/g/linux-sunxi/c/Rh-Uqqa66bw Tested-by: Diego Roversi Cc: stable@vger.kernel.org Reviewed-by: Maxime Ripard Signed-off-by: Frank Oltmanns Reviewed-by: Jernej Skrabec Link: https://lore.kernel.org/r/20240310-pinephone-pll-fixes-v4-2-46fc80c83637@oltmanns.dev Signed-off-by: Jernej Skrabec Signed-off-by: Greg Kroah-Hartman --- drivers/clk/sunxi-ng/ccu-sun50i-a64.c | 2 ++ 1 file changed, 2 insertions(+) --- a/drivers/clk/sunxi-ng/ccu-sun50i-a64.c +++ b/drivers/clk/sunxi-ng/ccu-sun50i-a64.c @@ -182,6 +182,8 @@ static struct ccu_nkm pll_mipi_clk = { &ccu_nkm_ops, CLK_SET_RATE_UNGATE | CLK_SET_RATE_PARENT), .features = CCU_FEATURE_CLOSEST_RATE, + .min_rate = 500000000, + .max_rate = 1400000000, }, };