Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

phy: rockchip: samsung-hdptx: Provide config params validation support

Implement the phy_ops.validate() callback to allow checking the PHY
configuration parameters without actually applying them.

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Link: https://lore.kernel.org/r/20250318-phy-sam-hdptx-bpc-v6-10-8cb1678e7663@collabora.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Cristian Ciocaltea and committed by
Vinod Koul
2392050a c871a311

+12
+12
drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c
··· 1799 1799 return 0; 1800 1800 } 1801 1801 1802 + static int rk_hdptx_phy_validate(struct phy *phy, enum phy_mode mode, 1803 + int submode, union phy_configure_opts *opts) 1804 + { 1805 + struct rk_hdptx_phy *hdptx = phy_get_drvdata(phy); 1806 + 1807 + if (mode != PHY_MODE_DP) 1808 + return rk_hdptx_phy_verify_hdmi_config(hdptx, &opts->hdmi); 1809 + 1810 + return rk_hdptx_phy_verify_dp_config(hdptx, &opts->dp); 1811 + } 1812 + 1802 1813 static const struct phy_ops rk_hdptx_phy_ops = { 1803 1814 .power_on = rk_hdptx_phy_power_on, 1804 1815 .power_off = rk_hdptx_phy_power_off, 1805 1816 .configure = rk_hdptx_phy_configure, 1817 + .validate = rk_hdptx_phy_validate, 1806 1818 .owner = THIS_MODULE, 1807 1819 }; 1808 1820