Skip to content

Commit eb2d64b

Browse files
committed
drm: xlnx: zynqmp_dpsub: Report HPD through the bridge
Now that the driver uses the connector bridge helper, HPD can be reported directly for the connector through the drm_bridge_hpd_notify() function. Signed-off-by: Laurent Pinchart <[email protected]>
1 parent cbb11ef commit eb2d64b

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

drivers/gpu/drm/xlnx/zynqmp_dp.c

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
#include <drm/drm_managed.h>
1818
#include <drm/drm_modes.h>
1919
#include <drm/drm_of.h>
20-
#include <drm/drm_probe_helper.h>
2120

2221
#include <linux/clk.h>
2322
#include <linux/delay.h>
@@ -1534,12 +1533,12 @@ void zynqmp_dp_disable_vblank(struct zynqmp_dp *dp)
15341533

15351534
static void zynqmp_dp_hpd_work_func(struct work_struct *work)
15361535
{
1537-
struct zynqmp_dp *dp;
1538-
1539-
dp = container_of(work, struct zynqmp_dp, hpd_work.work);
1536+
struct zynqmp_dp *dp = container_of(work, struct zynqmp_dp,
1537+
hpd_work.work);
1538+
enum drm_connector_status status;
15401539

1541-
if (dp->drm)
1542-
drm_helper_hpd_irq_event(dp->drm);
1540+
status = zynqmp_dp_bridge_detect(&dp->bridge);
1541+
drm_bridge_hpd_notify(&dp->bridge, status);
15431542
}
15441543

15451544
static irqreturn_t zynqmp_dp_irq_handler(int irq, void *data)

0 commit comments

Comments
 (0)