Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1346285 > unrolled thread

[PATCH 1/2] drm/vc4: Let gpiolib know that we're OK with sleeping for HPD.

Started byEric Anholt <eric@anholt.net>
First post2016-03-01 03:00 +0100
Last post2016-03-01 03:00 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 1/2] drm/vc4: Let gpiolib know that we're OK with sleeping for HPD. Eric Anholt <eric@anholt.net> - 2016-03-01 03:00 +0100

#1346285 — [PATCH 1/2] drm/vc4: Let gpiolib know that we're OK with sleeping for HPD.

FromEric Anholt <eric@anholt.net>
Date2016-03-01 03:00 +0100
Subject[PATCH 1/2] drm/vc4: Let gpiolib know that we're OK with sleeping for HPD.
Message-ID<r7HLr-2tR-1@gated-at.bofh.it>
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>
---
 drivers/gpu/drm/vc4/vc4_hdmi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/vc4/vc4_hdmi.c b/drivers/gpu/drm/vc4/vc4_hdmi.c
index c69c046..709ed57 100644
--- a/drivers/gpu/drm/vc4/vc4_hdmi.c
+++ b/drivers/gpu/drm/vc4/vc4_hdmi.c
@@ -165,7 +165,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;
-- 
2.7.0

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web