brcm2708: update linux 4.4 patches to latest version
[openwrt/openwrt.git] / target / linux / brcm2708 / patches-4.4 / 0353-Revert-Revert-drm-vc4-Force-HDMI-to-connected.patch
1 From 773b6960e7937b504e5012efce4c85b1d4b2cc24 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] Revert "Revert "drm/vc4: Force HDMI to connected.""
5
6 This reverts commit 7da44d06540b4a191ecc74e943f3203577fce0df.
7
8 This breaks the driver on Pi3 as hotplug is implemented through a
9 gpio expander owned by the GPU.
10
11 We need to extend the virtual gpio driver to support this, but for
12 now assume hotplug is always enabled.
13 ---
14 drivers/gpu/drm/vc4/vc4_hdmi.c | 2 ++
15 1 file changed, 2 insertions(+)
16
17 --- a/drivers/gpu/drm/vc4/vc4_hdmi.c
18 +++ b/drivers/gpu/drm/vc4/vc4_hdmi.c
19 @@ -166,6 +166,8 @@ vc4_hdmi_connector_detect(struct drm_con
20 struct drm_device *dev = connector->dev;
21 struct vc4_dev *vc4 = to_vc4_dev(dev);
22
23 + return connector_status_connected;
24 +
25 if (vc4->hdmi->hpd_gpio) {
26 if (gpio_get_value_cansleep(vc4->hdmi->hpd_gpio) ^
27 vc4->hdmi->hpd_active_low)