From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.forwardemail.net (smtp.forwardemail.net [149.28.215.223]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 450E738839C for ; Mon, 18 May 2026 18:07:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=149.28.215.223 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779127659; cv=none; b=KKXcM6EkJcpg5wkymISdWA778DaS32QWNH+o5Cuu4poSIUjhDY9bYNui4n/R8qxZ7Qo9ECd7CI458qmkqnhWvFSfHKRd8ahETjbOxfI+DYKhl3v0Tp7IXuh3n8yPpyDw1hirYypQ/LkrIxJa+3ektqvCi8d0uLJeKB+Xw+YS0lQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779127659; c=relaxed/simple; bh=KyTFEixGPCd672et+gdYmUPzY+DOxid/zvCUkpT3eZ0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=kBcPPoVKgvKvKnR7P100Y+7r7ATRFqTWJIehf+Q17CL/ds7JcPDXPV9G3qJTrqiW8g5GX/mkyFHSseTqztFwvygWZUnqeGZdY8Oa5260Cf/HWSSuqRJcVs3wB4DSu/h8N5GoVXgx1I28pKc2FOlrBTmZPdFyTVx4y02FtJ7izdE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=kwiboo.se; spf=pass smtp.mailfrom=fe-bounces.kwiboo.se; dkim=pass (2048-bit key) header.d=kwiboo.se header.i=@kwiboo.se header.b=AF82325C; arc=none smtp.client-ip=149.28.215.223 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=kwiboo.se Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fe-bounces.kwiboo.se Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kwiboo.se header.i=@kwiboo.se header.b="AF82325C" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kwiboo.se; h=Content-Transfer-Encoding: MIME-Version: References: In-Reply-To: Message-ID: Date: Subject: Cc: To: From; q=dns/txt; s=fe-e1b5cab7be; t=1779127657; bh=veob9HtXLn7SLcfakh9ZP6AYYUe0rJwsRCdIHigOn0Y=; b=AF82325CHC8OGaTcwZx889/rcUh1swV1Pg6uHxRzKh6fN1/hJkRwhJ1kau1AiSqZlWnoHgVWi jlr3KmzH9ekIDZJoEe24Ea44n3ljuvHLrRT8jCRVSeMBkKzN/+RgyM6juu1gmZiGxBUO68fv8N6 NFlmLxufRQ5gsokkAiK9seWwltTHMmg6NQl0Ru7QwWSM7jcpDpUteXsQQnFw/+SS9KcNelbYv1W 7gt3smVQAeGbll9pSM16kcxTUopQOro4Zt+zGQouBxAaYbcPeuutlpPdysUtqfKb39SNSSbOP8c khSyUQBSllXlWyNePniWUjee/t/qP27OMkKqL0fBAPAg== X-Forward-Email-ID: 6a0b5566b74b0ebd362ee07b X-Forward-Email-Sender: rfc822; jonas@kwiboo.se, smtp.forwardemail.net, 149.28.215.223 X-Forward-Email-Version: 2.8.12 X-Forward-Email-Website: https://forwardemail.net X-Complaints-To: abuse@forwardemail.net X-Report-Abuse: abuse@forwardemail.net X-Report-Abuse-To: abuse@forwardemail.net From: Jonas Karlman To: Vinod Koul , Neil Armstrong , Heiko Stuebner Cc: linux-phy@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Jonas Karlman Subject: [PATCH v4 2/2] phy: rockchip: inno-hdmi: Remove deprecated way to configure TMDS rate Date: Mon, 18 May 2026 18:07:21 +0000 Message-ID: <20260518180722.2480799-3-jonas@kwiboo.se> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260518180722.2480799-1-jonas@kwiboo.se> References: <20260518180722.2480799-1-jonas@kwiboo.se> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 --- v4: No change v3: No change v2: New patch, split from original patch --- drivers/phy/rockchip/phy-rockchip-inno-hdmi.c | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/drivers/phy/rockchip/phy-rockchip-inno-hdmi.c b/drivers/phy/rockchip/phy-rockchip-inno-hdmi.c index 1c43ea700f0e..c3d257a0f4a6 100644 --- a/drivers/phy/rockchip/phy-rockchip-inno-hdmi.c +++ b/drivers/phy/rockchip/phy-rockchip-inno-hdmi.c @@ -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); -- 2.54.0