linux_dsm_epyc7002/drivers/gpu/drm/msm/dsi
Archit Taneja d4cea38ebb drm/msm/dsi: Calculate link clock rates with updated dsi->lanes
After the commit mentioned below, we start computing the byte and pixel
clocks (dsi_calc_clk_rate) in the DSI bridge's mode_set() op. The
calculation involves the number of DSI lanes being used by the
downstream bridge/panel.

If the downstream bridge/panel tries to change the number of DSI lanes
(as done in the ADV7533 driver) in its mode_set() op, then our DSI
host driver will not have the correct number of lanes when computing
byte/pixel clocks.

Fix this by delaying the clock rate calculation in the DSI bridge
enable path. In particular, compute the clock rates in
msm_dsi_host_get_phy_clk_req().

This fixes the DSI host error interrupts seen when we try to switch
between modes that require different number of lanes (4 to 3 lanes, or
vice versa) on db410c. The error interrupts occur since the byte/pixel
clock rates aren't according to what the DSI video mode timing engine
expects.

Fixes: b62aa70a98 ("drm/msm/dsi: Move PHY operations out of host")
Signed-off-by: Archit Taneja <architt@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
2017-08-01 16:26:01 -04:00
..
phy drm/msm/dsi: Add PHY/PLL for 8x96 2017-02-06 11:28:45 -05:00
pll drm/msm/dsi: Add PHY/PLL for 8x96 2017-02-06 11:28:45 -05:00
dsi_cfg.c drm/msm/dsi: Add 8x96 info in dsi_cfg 2017-02-06 11:28:44 -05:00
dsi_cfg.h drm/msm/dsi: Add 8x96 info in dsi_cfg 2017-02-06 11:28:44 -05:00
dsi_host.c drm/msm/dsi: Calculate link clock rates with updated dsi->lanes 2017-08-01 16:26:01 -04:00
dsi_manager.c drm/msm/dsi: Fix bug in dsi_mgr_phy_enable 2017-04-03 16:09:35 -04:00
dsi.c drm/msm: Construct only one encoder for DSI 2017-02-06 11:28:43 -05:00
dsi.h drm/msm: fix include notation and remove -Iinclude/drm flag 2017-05-17 14:35:54 +02:00
dsi.xml.h drm/msm: update generated headers 2017-06-16 11:16:07 -04:00
mmss_cc.xml.h drm/msm: update generated headers 2017-06-16 11:16:07 -04:00
sfpb.xml.h drm/msm: update generated headers 2017-06-16 11:16:07 -04:00