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

Commit f40b82a3 authored by Xiaowen Wu's avatar Xiaowen Wu
Browse files

drm/msm/dp: trigger hpd callback when gpio hpd is initialized



Before gpio hpd depended on post_open to trigger hpd for the first
time. This change will trigger hpd internally to remove the dependency,
the behavior is also consistent with usbpd hpd.

Change-Id: Ic142c1af0e9037677d48efced123b40a651b77ce
Signed-off-by: default avatarXiaowen Wu <wxiaowen@codeaurora.org>
parent 888677e7
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -246,7 +246,9 @@ struct dp_hpd *dp_gpio_hpd_get(struct device *dev,

	gpio_hpd->base.simulate_connect = dp_gpio_hpd_simulate_connect;
	gpio_hpd->base.simulate_attention = dp_gpio_hpd_simulate_attention;
	gpio_hpd->base.hpd_high = gpio_hpd->hpd;

	if (gpio_hpd->hpd)
		queue_delayed_work(system_wq, &gpio_hpd->work, 0);

	return &gpio_hpd->base;