ath79: add support for COMFAST CF-E130N v2
[openwrt/openwrt.git] / target / linux / bcm27xx / patches-4.19 / 950-0645-drm-vc4-hdmi-Set-default-state-margin-at-reset.patch
1 From 1adef5f9443f148db0817099504df0a7fb7350dd Mon Sep 17 00:00:00 2001
2 From: Maxime Ripard <maxime.ripard@bootlin.com>
3 Date: Wed, 19 Jun 2019 12:17:53 +0200
4 Subject: [PATCH] drm/vc4: hdmi: Set default state margin at reset
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 Now that the TV margins are properly parsed and filled into
10 drm_cmdline_mode, we just need to initialise the first state at reset to
11 get those values and start using them.
12
13 Acked-by: Eric Anholt <eric@anholt.net>
14 Reviewed-by: Noralf Trønnes <noralf@tronnes.org>
15 Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
16 Link: https://patchwork.freedesktop.org/patch/msgid/44e24172e300be6a41578517021ef6a6e90ed682.1560783090.git-series.maxime.ripard@bootlin.com
17 ---
18 drivers/gpu/drm/vc4/vc4_hdmi.c | 8 +++++++-
19 1 file changed, 7 insertions(+), 1 deletion(-)
20
21 --- a/drivers/gpu/drm/vc4/vc4_hdmi.c
22 +++ b/drivers/gpu/drm/vc4/vc4_hdmi.c
23 @@ -292,11 +292,17 @@ static int vc4_hdmi_connector_get_modes(
24 return ret;
25 }
26
27 +static void vc4_hdmi_connector_reset(struct drm_connector *connector)
28 +{
29 + drm_atomic_helper_connector_reset(connector);
30 + drm_atomic_helper_connector_tv_reset(connector);
31 +}
32 +
33 static const struct drm_connector_funcs vc4_hdmi_connector_funcs = {
34 .detect = vc4_hdmi_connector_detect,
35 .fill_modes = drm_helper_probe_single_connector_modes,
36 .destroy = vc4_hdmi_connector_destroy,
37 - .reset = drm_atomic_helper_connector_reset,
38 + .reset = vc4_hdmi_connector_reset,
39 .atomic_duplicate_state = drm_atomic_helper_connector_duplicate_state,
40 .atomic_destroy_state = drm_atomic_helper_connector_destroy_state,
41 };