92377872f72fe5d8d63df4f933917e54aca8db63
[openwrt/staging/blogic.git] /
1 From ddcc0cd30d39445fe4f00ee355f5ec4a7d3405aa Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Fri, 11 Feb 2022 14:15:26 +0000
4 Subject: [PATCH] drm/vc4: Remove entry to ULPS from vc4_dsi
5 post_disable
6
7 Post_disable was sending the D-PHY sequence to put any device
8 into ULPS suspend mode, and then cutting power to the DSI block.
9 The power-on reset state of the DSI block is for DSI to be in
10 an operational state, not ULPS, so it then never sent the sequence
11 for exiting ULPS. Any attached device that didn't have an external
12 reset therefore remained in ULPS / standby, and didn't function.
13
14 Use of ULPS isn't well specified in DRM, therefore remove entering
15 it to avoid the above situation.
16
17 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
18 ---
19 drivers/gpu/drm/vc4/vc4_dsi.c | 2 --
20 1 file changed, 2 deletions(-)
21
22 --- a/drivers/gpu/drm/vc4/vc4_dsi.c
23 +++ b/drivers/gpu/drm/vc4/vc4_dsi.c
24 @@ -816,8 +816,6 @@ static void vc4_dsi_bridge_post_disable(
25 struct vc4_dsi *dsi = bridge_to_vc4_dsi(bridge);
26 struct device *dev = &dsi->pdev->dev;
27
28 - vc4_dsi_ulps(dsi, true);
29 -
30 clk_disable_unprepare(dsi->pll_phy_clock);
31 clk_disable_unprepare(dsi->escape_clock);
32 clk_disable_unprepare(dsi->pixel_clock);