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 0C56B2F8BE7; Tue, 12 Aug 2025 17:57:57 +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=1755021478; cv=none; b=NT4CFnhGdzC630nX3WpVIlOuUpXbPncQVFAq4yq8f2Ucbn2mw5qS7oEVfRlWNVl4/SvnlTIu71YsKJmJRGx/zhCm8JcU5YK5GuPrOP9r8+5TVWB3U2DYWAO5DPN2KkLdsRQkt8ISMopGpwkI65qiM2b626geS7gbOG6Y5vA2B4s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755021478; c=relaxed/simple; bh=IvgzlJDA5pgYW1tAdj0odjNo7PEYvWU1SItyPtu4jWw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=SzoT1Ivm8QHJlF5tPiuL78A8uN21zsL2xwmu/iLJEjxL/gCdjB2PFjtmduVsxCdJVxfLvVMVNcjFNx1d3BdmAmb51n1JEnvS8MCgPpjthQp4tEK+Lq88yOtvwJ9Yu2PA/gdz/+1R9FVSedYf4KJ1itkS+672gp+7To/lHeCz0aw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ddfIhix/; 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="ddfIhix/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 362FEC4CEF0; Tue, 12 Aug 2025 17:57:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1755021477; bh=IvgzlJDA5pgYW1tAdj0odjNo7PEYvWU1SItyPtu4jWw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ddfIhix/Qr9kKnWAVz/qrhF7JMwX7OH8Po+3HPeTb4SERY0sg8A5IkmsctAkP4Ndw 2aR4bdl45Zop4/PunbUgoMzfBTqw2GBKaD1fIZ0WCo0KDyeMHOb2ABoRJl9PJyFdcK k4zeCbRHWXQQM3t0WnTiO6h9Q+QECV1EzbLMvKS8= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Paul Kocialkowski , Chen-Yu Tsai , Sasha Levin Subject: [PATCH 6.6 135/262] clk: sunxi-ng: v3s: Fix de clock definition Date: Tue, 12 Aug 2025 19:28:43 +0200 Message-ID: <20250812172958.848144309@linuxfoundation.org> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20250812172952.959106058@linuxfoundation.org> References: <20250812172952.959106058@linuxfoundation.org> User-Agent: quilt/0.68 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.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Paul Kocialkowski [ Upstream commit e8ab346f9907a1a3aa2f0e5decf849925c06ae2e ] The de clock is marked with CLK_SET_RATE_PARENT, which is really not necessary (as confirmed from experimentation) and significantly restricts flexibility for other clocks using the same parent. In addition the source selection (parent) field is marked as using 2 bits, when it the documentation reports that it uses 3. Fix both issues in the de clock definition. Fixes: d0f11d14b0bc ("clk: sunxi-ng: add support for V3s CCU") Signed-off-by: Paul Kocialkowski Link: https://patch.msgid.link/20250704154008.3463257-1-paulk@sys-base.io Signed-off-by: Chen-Yu Tsai Signed-off-by: Sasha Levin --- drivers/clk/sunxi-ng/ccu-sun8i-v3s.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/clk/sunxi-ng/ccu-sun8i-v3s.c b/drivers/clk/sunxi-ng/ccu-sun8i-v3s.c index f3ce8664b288..b05553faed6d 100644 --- a/drivers/clk/sunxi-ng/ccu-sun8i-v3s.c +++ b/drivers/clk/sunxi-ng/ccu-sun8i-v3s.c @@ -347,8 +347,7 @@ static SUNXI_CCU_GATE(dram_ohci_clk, "dram-ohci", "dram", static const char * const de_parents[] = { "pll-video", "pll-periph0" }; static SUNXI_CCU_M_WITH_MUX_GATE(de_clk, "de", de_parents, - 0x104, 0, 4, 24, 2, BIT(31), - CLK_SET_RATE_PARENT); + 0x104, 0, 4, 24, 3, BIT(31), 0); static const char * const tcon_parents[] = { "pll-video" }; static SUNXI_CCU_M_WITH_MUX_GATE(tcon_clk, "tcon", tcon_parents, -- 2.39.5