public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1] media: hdmirx: snps, rk: Fix HPD hold time
@ 2026-03-18 19:26 Dmitry Osipenko
  2026-03-19 20:45 ` Sebastian Reichel
  0 siblings, 1 reply; 3+ messages in thread
From: Dmitry Osipenko @ 2026-03-18 19:26 UTC (permalink / raw)
  To: Mauro Carvalho Chehab, Hans Verkuil, Ross Cawston
  Cc: kernel, linux-media, linux-kernel, linux-rockchip

Increase time of holding HPD pin low by 50ms. This fixes EDID change not
detected by sink/display side.

Fixes: 7b59b132ad43 ("media: platform: synopsys: Add support for HDMI input driver")
Reported-by: Ross Cawston <ross@r-sc.ca>
Closes: https://lore.kernel.org/linux-rockchip/20260209061654.54757-1-ross@r-sc.ca/
Signed-off-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
---
 drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c b/drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
index 61ad20b18b8d..4c8957505a50 100644
--- a/drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
+++ b/drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
@@ -506,9 +506,9 @@ static void hdmirx_hpd_ctrl(struct snps_hdmirx_dev *hdmirx_dev, bool en)
 	hdmirx_writel(hdmirx_dev, CORE_CONFIG,
 		      hdmirx_dev->hpd_trigger_level_high ? en : !en);
 
-	/* 100ms delay as per HDMI spec */
+	/* 100ms delay as per HDMI spec + extra 50ms to cover internal delay */
 	if (!en)
-		msleep(100);
+		msleep(100 + 50);
 }
 
 static void hdmirx_write_edid_data(struct snps_hdmirx_dev *hdmirx_dev,
-- 
2.52.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH v1] media: hdmirx: snps, rk: Fix HPD hold time
  2026-03-18 19:26 [PATCH v1] media: hdmirx: snps, rk: Fix HPD hold time Dmitry Osipenko
@ 2026-03-19 20:45 ` Sebastian Reichel
  2026-03-25 10:54   ` Dmitry Osipenko
  0 siblings, 1 reply; 3+ messages in thread
From: Sebastian Reichel @ 2026-03-19 20:45 UTC (permalink / raw)
  To: Dmitry Osipenko
  Cc: Mauro Carvalho Chehab, Hans Verkuil, Ross Cawston, kernel,
	linux-media, linux-kernel, linux-rockchip

[-- Attachment #1: Type: text/plain, Size: 1533 bytes --]

Hi,

On Wed, Mar 18, 2026 at 10:26:19PM +0300, Dmitry Osipenko wrote:
> Increase time of holding HPD pin low by 50ms. This fixes EDID change not
> detected by sink/display side.
> 
> Fixes: 7b59b132ad43 ("media: platform: synopsys: Add support for HDMI input driver")
> Reported-by: Ross Cawston <ross@r-sc.ca>
> Closes: https://lore.kernel.org/linux-rockchip/20260209061654.54757-1-ross@r-sc.ca/
> Signed-off-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
> ---

The prefix in the patch subject should probably be
'media: platform: synopsys: hdmirx:' or 'media: synopsys: hdmirx:'.

Greetings,

-- Sebastian

>  drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c b/drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
> index 61ad20b18b8d..4c8957505a50 100644
> --- a/drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
> +++ b/drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
> @@ -506,9 +506,9 @@ static void hdmirx_hpd_ctrl(struct snps_hdmirx_dev *hdmirx_dev, bool en)
>  	hdmirx_writel(hdmirx_dev, CORE_CONFIG,
>  		      hdmirx_dev->hpd_trigger_level_high ? en : !en);
>  
> -	/* 100ms delay as per HDMI spec */
> +	/* 100ms delay as per HDMI spec + extra 50ms to cover internal delay */
>  	if (!en)
> -		msleep(100);
> +		msleep(100 + 50);
>  }
>  
>  static void hdmirx_write_edid_data(struct snps_hdmirx_dev *hdmirx_dev,
> -- 
> 2.52.0
> 

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v1] media: hdmirx: snps, rk: Fix HPD hold time
  2026-03-19 20:45 ` Sebastian Reichel
@ 2026-03-25 10:54   ` Dmitry Osipenko
  0 siblings, 0 replies; 3+ messages in thread
From: Dmitry Osipenko @ 2026-03-25 10:54 UTC (permalink / raw)
  To: Sebastian Reichel
  Cc: Mauro Carvalho Chehab, Hans Verkuil, Ross Cawston, kernel,
	linux-media, linux-kernel, linux-rockchip

On 3/19/26 23:45, Sebastian Reichel wrote:
> Hi,
> 
> On Wed, Mar 18, 2026 at 10:26:19PM +0300, Dmitry Osipenko wrote:
>> Increase time of holding HPD pin low by 50ms. This fixes EDID change not
>> detected by sink/display side.
>>
>> Fixes: 7b59b132ad43 ("media: platform: synopsys: Add support for HDMI input driver")
>> Reported-by: Ross Cawston <ross@r-sc.ca>
>> Closes: https://lore.kernel.org/linux-rockchip/20260209061654.54757-1-ross@r-sc.ca/
>> Signed-off-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
>> ---
> 
> The prefix in the patch subject should probably be
> 'media: platform: synopsys: hdmirx:' or 'media: synopsys: hdmirx:'.

Good catch

-- 
Best regards,
Dmitry

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-03-25 10:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-18 19:26 [PATCH v1] media: hdmirx: snps, rk: Fix HPD hold time Dmitry Osipenko
2026-03-19 20:45 ` Sebastian Reichel
2026-03-25 10:54   ` Dmitry Osipenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox