0358-Revert-Revert-drm-vc4-Force-HDMI-to-connected.patch 948 B

123456789101112131415161718192021222324252627
  1. From 303764f1b3db23d37614ab2f8d7ede9b7aa3b5e3 Mon Sep 17 00:00:00 2001
  2. From: popcornmix <popcornmix@gmail.com>
  3. Date: Mon, 23 May 2016 17:06:08 +0100
  4. Subject: [PATCH 358/381] Revert "Revert "drm/vc4: Force HDMI to connected.""
  5. This reverts commit 7da44d06540b4a191ecc74e943f3203577fce0df.
  6. This breaks the driver on Pi3 as hotplug is implemented through a
  7. gpio expander owned by the GPU.
  8. We need to extend the virtual gpio driver to support this, but for
  9. now assume hotplug is always enabled.
  10. ---
  11. drivers/gpu/drm/vc4/vc4_hdmi.c | 2 ++
  12. 1 file changed, 2 insertions(+)
  13. --- a/drivers/gpu/drm/vc4/vc4_hdmi.c
  14. +++ b/drivers/gpu/drm/vc4/vc4_hdmi.c
  15. @@ -166,6 +166,8 @@ vc4_hdmi_connector_detect(struct drm_con
  16. struct drm_device *dev = connector->dev;
  17. struct vc4_dev *vc4 = to_vc4_dev(dev);
  18. + return connector_status_connected;
  19. +
  20. if (vc4->hdmi->hpd_gpio) {
  21. if (gpio_get_value_cansleep(vc4->hdmi->hpd_gpio) ^
  22. vc4->hdmi->hpd_active_low)