0291-drm-vc4-Let-gpiolib-know-that-we-re-OK-with-sleeping.patch 964 B

123456789101112131415161718192021222324252627
  1. From d56beecdd7e25be0969c3c51fa6e9a659ba6b1bc Mon Sep 17 00:00:00 2001
  2. From: Eric Anholt <eric@anholt.net>
  3. Date: Mon, 29 Feb 2016 17:53:00 -0800
  4. Subject: [PATCH] drm/vc4: Let gpiolib know that we're OK with sleeping for
  5. HPD.
  6. Fixes an error thrown every few seconds when we poll HPD when it's on
  7. a I2C to GPIO expander.
  8. Signed-off-by: Eric Anholt <eric@anholt.net>
  9. Tested-by: Daniel Stone <daniels@collabora.com>
  10. (cherry picked from commit 0e60eab57557bc06bb3a5ef8d5d6dcd9ddd47aff)
  11. ---
  12. drivers/gpu/drm/vc4/vc4_hdmi.c | 2 +-
  13. 1 file changed, 1 insertion(+), 1 deletion(-)
  14. --- a/drivers/gpu/drm/vc4/vc4_hdmi.c
  15. +++ b/drivers/gpu/drm/vc4/vc4_hdmi.c
  16. @@ -168,7 +168,7 @@ vc4_hdmi_connector_detect(struct drm_con
  17. return connector_status_connected;
  18. if (vc4->hdmi->hpd_gpio) {
  19. - if (gpio_get_value(vc4->hdmi->hpd_gpio))
  20. + if (gpio_get_value_cansleep(vc4->hdmi->hpd_gpio))
  21. return connector_status_connected;
  22. else
  23. return connector_status_disconnected;