mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-30 19:13:03 -04:00
phy: rockchip: inno-hdmi: Remove deprecated way to configure TMDS rate
The TMDS character rate of this PHY is configured using PHY bus width in downstream vendor kernel and out-of-tree patches, however no in-tree consumer of this PHY has ever called phy_set_bus_width() to change the TMDS character rate as currently only 8-bit RGB output is supported by the HDMI display driver. The series "Split Generic PHY consumer and provider" clarifies that phy_set_bus_width() is intended as a provider-only function. Remove the deprecated unused fallback way to configure TMDS character rate now that this HDMI PHY support using phy_configure() to configure the TMDS character rate. Signed-off-by: Jonas Karlman <jonas@kwiboo.se> Reviewed-by: Heiko Stuebner <heiko@sntech.de> Tested-by: Heiko Stuebner <heiko@sntech.de> #rk3328 Tested-by: Diederik de Haas <diederik@cknow-tech.com> # Rock64 Link: https://patch.msgid.link/20260518180722.2480799-3-jonas@kwiboo.se Signed-off-by: Vinod Koul <vkoul@kernel.org>
This commit is contained in:
committed by
Vinod Koul
parent
58ca6ff31f
commit
4ba747d3d6
@@ -555,24 +555,10 @@ static inline void inno_update_bits(struct inno_hdmi_phy *inno, u8 reg,
|
||||
static unsigned long inno_hdmi_phy_get_tmdsclk(struct inno_hdmi_phy *inno,
|
||||
unsigned long rate)
|
||||
{
|
||||
int bus_width;
|
||||
|
||||
if (inno->opts_tmds_char_rate)
|
||||
return inno->opts_tmds_char_rate;
|
||||
|
||||
bus_width = phy_get_bus_width(inno->phy);
|
||||
|
||||
switch (bus_width) {
|
||||
case 4:
|
||||
case 5:
|
||||
case 6:
|
||||
case 10:
|
||||
case 12:
|
||||
case 16:
|
||||
return (u64)rate * bus_width / 8;
|
||||
default:
|
||||
return rate;
|
||||
}
|
||||
return rate;
|
||||
}
|
||||
|
||||
static irqreturn_t inno_hdmi_phy_rk3328_hardirq(int irq, void *dev_id)
|
||||
@@ -1452,7 +1438,6 @@ static int inno_hdmi_phy_probe(struct platform_device *pdev)
|
||||
|
||||
phy_set_drvdata(inno->phy, inno);
|
||||
phy_set_mode_ext(inno->phy, PHY_MODE_HDMI, PHY_HDMI_MODE_TMDS);
|
||||
phy_set_bus_width(inno->phy, 8);
|
||||
|
||||
if (inno->plat_data->ops->init) {
|
||||
ret = inno->plat_data->ops->init(inno);
|
||||
|
||||
Reference in New Issue
Block a user