From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bali.collaboradmins.com (bali.collaboradmins.com [148.251.105.195]) (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 07F5940D57A for ; Thu, 11 Jun 2026 12:31:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.251.105.195 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781181074; cv=none; b=Lp82UnNh1G7pDhjtjN2PovKY/QQJKbYa09o7WUd94tbwrHCSdIoYibIZp5Uvyg1gUdeSMOGFjNVyMeneolfZfLg6l8KjQmVVREisno3i4Z9AQCdq+Oqqlke1BnqeFFyWa1Ftz+0dCG/5BOplenpn2Qp6jfkm8hncJVyDK/0ovhg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781181074; c=relaxed/simple; bh=CfBaFR7IIQurIHffqh2lk07ZzXs4jZs2QAXHDQClotk=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=gIqk0PPU9Nuh8vkIGeGRrtsq2ghhfvjMSTf7H//1wIHldDgg6+6WYZ8Vjgeu8TgUfLfwpq5CjDT6cNt4yWrbbY5FR50CNLVutCrY5b2CViMr3rV6l2TCE5mYaoN5/HdT181lBVZF4mkctra9Q7/yNuXDympahOwgu15YCQGzDTA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=LhSRI1Iu; arc=none smtp.client-ip=148.251.105.195 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="LhSRI1Iu" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1781181070; bh=CfBaFR7IIQurIHffqh2lk07ZzXs4jZs2QAXHDQClotk=; h=From:Subject:Date:To:Cc:From; b=LhSRI1IuudofmGk+Na/ZvleYAxpdUtJg7ahHb2UrLVkVafINCpE5ZHAX1uQvpEMAD KC2Q9Ez5Jl+7mDTOAIAttJJgfC02E4W4l/n5gTZw0NDNkbD+RG+Fdqv5gJs2/tHnCp LiZ7j0aD28E7ldov9XzNNN47M2paJSJi/HDXKdVvhBDqcCWFgDZDtTpA3JJiznJAtx nhXpalyHaJrd+5OyN9Y3vuQCzgo92VHya0xK9UqxGuY9yiPVlyETPqWWqUSDB12lac lSCX4CYbk0/Qv3wWflet5lLongc9jrmOqRxM1+GPynpg6F5g4SAX6ITKBdTunQIyFw XJBeSlxQzkn0Q== Received: from localhost (unknown [100.64.0.241]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: cristicc) by bali.collaboradmins.com (Postfix) with ESMTPSA id B964C17E03D7; Thu, 11 Jun 2026 14:31:10 +0200 (CEST) From: Cristian Ciocaltea Subject: [PATCH v3 0/6] phy: rockchip: samsung-hdptx: Clock fixes and API transition cleanups Date: Thu, 11 Jun 2026 15:31:02 +0300 Message-Id: <20260611-hdptx-clk-fixes-v3-0-67b1b0c00e16@collabora.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAAAAAAAC/3XNQQ6CMBAF0KuQrq1phzoFV97DuCillUakpCUNh nB3CxsTjcv/J//NQqIJzkRyLhYSTHLR+SGH8lAQ3anhbqhrcybAABmApF07TjPV/YNaN5tIhRS AWIKtEEhejcHshzy63nLuXJx8eO0PEt/a/1bilFFb15UFidAye9G+71Xjgzpq/ySbl+BjnDj/N SAbiMIIXspaq+bbWNf1DYYjU8L2AAAA X-Change-ID: 20260227-hdptx-clk-fixes-47426632f862 To: Vinod Koul , Neil Armstrong , Heiko Stuebner , Algea Cao , Dmitry Baryshkov Cc: kernel@collabora.com, linux-phy@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, =?utf-8?q?Thomas_Niederpr=C3=BCm?= , Simon Wright X-Mailer: b4 0.15.2 This series provides a set of bug fixes and cleanups for the Rockchip Samsung HDPTX PHY driver. The first part of the series (i.e. PATCH 1 & 2) addresses clock rate calculation and synchronization issues. Specifically, it fixes edge cases where the PHY PLL is pre-programmed by an external component (like a bootloader) or when changing the color depth (bpc) while keeping the modeline constant. Because the Common Clock Framework .set_rate() callback might not be invoked if the pixel clock remains unchanged, this previously led to out-of-sync states between CCF and the actual HDMI PHY configuration. The second part focuses on code cleanups and modernizing the register access. Now that dw_hdmi_qp driver has fully switched to using phy_configure(), we can drop the deprecated TMDS rate setup workarounds and the restrict_rate_change flag logic. Finally, it refactors the driver to consistently use standard bitfield macros. Signed-off-by: Cristian Ciocaltea --- Changes in v3: - Replaced div_u64() with DIV_ROUND_CLOSEST_ULL() in Patch 1 (Sashiko) - Fixed theoretical usage_count unbalanced issue in Patch 2 (Sashiko) - Rebased series onto latest phy/next - Link to v2: https://patch.msgid.link/20260511-hdptx-clk-fixes-v2-0-664e41379cab@collabora.com Changes in v2: - Collected Tested-by tags from Thomas and Simon - Fixed a typo in commit description of patch 1 - Added a comment in patch 2 explaining why PLL config errors are ignored for rk_hdptx_phy_consumer_get() - Added a missed FIELD_GET conversion for lcpll_hw.pms_sdiv in patch 6 - Rebased onto latest phy/fixes - Link to v1: https://lore.kernel.org/r/20260227-hdptx-clk-fixes-v1-0-f998f2762d0f@collabora.com --- Cristian Ciocaltea (6): phy: rockchip: samsung-hdptx: Fix rate recalculation for high bpc phy: rockchip: samsung-hdptx: Handle uncommitted PHY config changes phy: rockchip: samsung-hdptx: Drop TMDS rate setup workaround phy: rockchip: samsung-hdptx: Drop restrict_rate_change handling phy: rockchip: samsung-hdptx: Simplify GRF access with FIELD_PREP_WM16() phy: rockchip: samsung-hdptx: Consistently use bitfield macros drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c | 216 ++++++++++------------ 1 file changed, 95 insertions(+), 121 deletions(-) --- base-commit: 293e19f416fa3f233a2fb013258f7abcb39ad6ed change-id: 20260227-hdptx-clk-fixes-47426632f862