]> git.baikalelectronics.ru Git - kernel.git/commit
drm/bridge_connector: enable HPD by default if supported
authorNikita Yushchenko <nikita.yoush@cogentembedded.com>
Sat, 25 Dec 2021 06:31:51 +0000 (09:31 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jun 2022 08:22:44 +0000 (10:22 +0200)
commit85cbb6c9c78c13587ba9b50893e3819eb0c6450f
tree7ef4e76b356bd516376775e8e9e2d431d415947d
parent4ea0a7459c2c65008e6bb68c35e2a021154cdd16
drm/bridge_connector: enable HPD by default if supported

[ Upstream commit f3b35912b925e1ca4ee6e53904cc2ac8999b557e ]

Hotplug events reported by bridge drivers over drm_bridge_hpd_notify()
get ignored unless somebody calls drm_bridge_hpd_enable(). When the
connector for the bridge is bridge_connector, such a call is done from
drm_bridge_connector_enable_hpd().

However drm_bridge_connector_enable_hpd() is never called on init paths,
documentation suggests that it is intended for suspend/resume paths.

In result, once encoders are switched to bridge_connector,
bridge-detected HPD stops working.

This patch adds a call to that API on init path.

This fixes HDMI HPD with rcar-du + adv7513 case when adv7513 reports HPD
events via interrupts.

Fixes: 317ca0ccf87b ("drm: rcar-du: Use drm_bridge_connector_init() helper")
Signed-off-by: Nikita Yushchenko <nikita.yoush@cogentembedded.com>
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Tested-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211225063151.2110878-1-nikita.yoush@cogentembedded.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/drm_bridge_connector.c