Commit eb2d64bf authored by Laurent Pinchart's avatar Laurent Pinchart

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: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
parent cbb11ef9
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
#include <drm/drm_managed.h> #include <drm/drm_managed.h>
#include <drm/drm_modes.h> #include <drm/drm_modes.h>
#include <drm/drm_of.h> #include <drm/drm_of.h>
#include <drm/drm_probe_helper.h>
#include <linux/clk.h> #include <linux/clk.h>
#include <linux/delay.h> #include <linux/delay.h>
...@@ -1534,12 +1533,12 @@ void zynqmp_dp_disable_vblank(struct zynqmp_dp *dp) ...@@ -1534,12 +1533,12 @@ void zynqmp_dp_disable_vblank(struct zynqmp_dp *dp)
static void zynqmp_dp_hpd_work_func(struct work_struct *work) static void zynqmp_dp_hpd_work_func(struct work_struct *work)
{ {
struct zynqmp_dp *dp; struct zynqmp_dp *dp = container_of(work, struct zynqmp_dp,
hpd_work.work);
dp = container_of(work, struct zynqmp_dp, hpd_work.work); enum drm_connector_status status;
if (dp->drm) status = zynqmp_dp_bridge_detect(&dp->bridge);
drm_helper_hpd_irq_event(dp->drm); drm_bridge_hpd_notify(&dp->bridge, status);
} }
static irqreturn_t zynqmp_dp_irq_handler(int irq, void *data) static irqreturn_t zynqmp_dp_irq_handler(int irq, void *data)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment