brcm2708-gpu-fw: update to latest version
[openwrt/openwrt.git] / target / linux / brcm2708 / patches-4.4 / 0295-drm-vc4-Let-gpiolib-know-that-we-re-OK-with-sleeping.patch
1 From 10f0d3fb0d155b0a6837f56a5e6a663a33d003ba 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 295/304] drm/vc4: Let gpiolib know that we're OK with sleeping
5 for HPD.
6
7 Fixes an error thrown every few seconds when we poll HPD when it's on
8 a I2C to GPIO expander.
9
10 Signed-off-by: Eric Anholt <eric@anholt.net>
11 Tested-by: Daniel Stone <daniels@collabora.com>
12 (cherry picked from commit 0e60eab57557bc06bb3a5ef8d5d6dcd9ddd47aff)
13 ---
14 drivers/gpu/drm/vc4/vc4_hdmi.c | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17 --- a/drivers/gpu/drm/vc4/vc4_hdmi.c
18 +++ b/drivers/gpu/drm/vc4/vc4_hdmi.c
19 @@ -168,7 +168,7 @@ vc4_hdmi_connector_detect(struct drm_con
20 return connector_status_connected;
21
22 if (vc4->hdmi->hpd_gpio) {
23 - if (gpio_get_value(vc4->hdmi->hpd_gpio))
24 + if (gpio_get_value_cansleep(vc4->hdmi->hpd_gpio))
25 return connector_status_connected;
26 else
27 return connector_status_disconnected;