Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c45e40e5 authored by Ray Zhang's avatar Ray Zhang Committed by Gerrit - the friendly Code Review server
Browse files

drm/bridge: lt9611: update output changes in case of hpd



Update DRM output changes when hotplug happens, so DRM clients
or fbdev emulation can be informed.

Change-Id: I5f6efcc32faf0805e217c79a563a0f3befdbafc8
Signed-off-by: default avatarRay Zhang <rayz@codeaurora.org>
parent 1180b8e6
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -24,13 +24,14 @@
#include <linux/regulator/consumer.h>
#include <linux/firmware.h>
#include <linux/hdmi.h>
#include <linux/string.h>
#include <drm/drmP.h>
#include <drm/drm_atomic.h>
#include <drm/drm_atomic_helper.h>
#include <drm/drm_edid.h>
#include <drm/drm_mipi_dsi.h>
#include <drm/drm_crtc_helper.h>
#include <linux/string.h>
#include <drm/drm_client.h>

#define CFG_HPD_INTERRUPTS BIT(0)
#define CFG_EDID_INTERRUPTS BIT(1)
@@ -183,6 +184,11 @@ void lt9611_hpd_work(struct work_struct *work)
	envp[4] = NULL;
	kobject_uevent_env(&dev->primary->kdev->kobj, KOBJ_CHANGE,
			   envp);

	if (dev->mode_config.funcs->output_poll_changed)
		dev->mode_config.funcs->output_poll_changed(dev);

	drm_client_dev_hotplug(dev);
}

static struct lt9611 *bridge_to_lt9611(struct drm_bridge *bridge)