2016-07-07 07:22:07 +00:00
|
|
|
From 52a8cd7d35e6c8860c2449e04ae305a3cdc671f1 Mon Sep 17 00:00:00 2001
|
2016-04-24 11:03:39 +00:00
|
|
|
From: Eric Anholt <eric@anholt.net>
|
|
|
|
Date: Mon, 29 Feb 2016 17:53:00 -0800
|
2016-07-07 07:22:07 +00:00
|
|
|
Subject: [PATCH 291/423] drm/vc4: Let gpiolib know that we're OK with sleeping
|
2016-04-24 11:03:39 +00:00
|
|
|
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: Eric Anholt <eric@anholt.net>
|
|
|
|
Tested-by: Daniel Stone <daniels@collabora.com>
|
|
|
|
(cherry picked from commit 0e60eab57557bc06bb3a5ef8d5d6dcd9ddd47aff)
|
|
|
|
---
|
|
|
|
drivers/gpu/drm/vc4/vc4_hdmi.c | 2 +-
|
|
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
|
|
|
|
--- a/drivers/gpu/drm/vc4/vc4_hdmi.c
|
|
|
|
+++ b/drivers/gpu/drm/vc4/vc4_hdmi.c
|
|
|
|
@@ -168,7 +168,7 @@ vc4_hdmi_connector_detect(struct drm_con
|
|
|
|
return connector_status_connected;
|
|
|
|
|
|
|
|
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;
|