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

Commit 0e60eab5 authored by Eric Anholt's avatar Eric Anholt
Browse files

drm/vc4: Let gpiolib know that we're OK with sleeping for HPD.



Fixes an error thrown every few seconds when we poll HPD when it's on
a I2C to GPIO expander.

Signed-off-by: default avatarEric Anholt <eric@anholt.net>
Tested-by: default avatarDaniel Stone <daniels@collabora.com>
parent ca26d28b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -166,7 +166,7 @@ vc4_hdmi_connector_detect(struct drm_connector *connector, bool force)
	struct vc4_dev *vc4 = to_vc4_dev(dev);

	if (vc4->hdmi->hpd_gpio) {
		if (gpio_get_value(vc4->hdmi->hpd_gpio))
		if (gpio_get_value_cansleep(vc4->hdmi->hpd_gpio))
			return connector_status_connected;
		else
			return connector_status_disconnected;