OpenCloudOS-Kernel/drivers/gpu/drm/msm/dp
Kuogee Hsieh 70445dee1b drm/msm/dp: cleared DP_DOWNSPREAD_CTRL register before start link training
DOWNSPREAD_CTRL (0x107) shall be cleared to 0 upon power-on reset or an
upstream device disconnect. This patch will enforce this rule by always
cleared DOWNSPREAD_CTRL register to 0 before start link training. At rare
case that DP MSA timing parameters may be mis-interpreted by the sink
which causes audio sampling rate be calculated wrongly and cause audio
did not work at sink if DOWNSPREAD_CTRL register is not cleared to 0.

Changes in v2:
1) fix spelling at commit text
2) merge ssc variable into encoding[0]

Changes in v3:
-- correct spelling of DOWNSPREAD_CTRL
-- replace err with len of ssize_t

Changes in v4:
-- split into 2 patches

Signed-off-by: Kuogee Hsieh <quic_khsieh@quicinc.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Fixes: c943b4948b ("drm/msm/dp: add displayPort driver support")
Patchwork: https://patchwork.freedesktop.org/patch/502532/
Link: https://lore.kernel.org/r/1662999830-13916-2-git-send-email-quic_khsieh@quicinc.com
Signed-off-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
2022-09-30 16:57:53 +00:00
..
dp_audio.c Merge tag 'drm-msm-next-2022-05-09' of https://gitlab.freedesktop.org/drm/msm into drm-next 2022-05-11 12:40:47 +10:00
dp_audio.h drm/msm/dp: add audio support for Display Port on MSM 2020-09-15 10:54:34 -07:00
dp_aux.c drm/msm/dp: wait for hpd high before aux transaction 2022-05-02 02:39:34 +03:00
dp_aux.h Merge tag 'drm-msm-next-2022-05-09' of https://gitlab.freedesktop.org/drm/msm into drm-next 2022-05-11 12:40:47 +10:00
dp_catalog.c drm/msm/dp: correct 1.62G link rate at dp_catalog_ctrl_config_msa() 2022-09-18 09:38:04 -07:00
dp_catalog.h drm/msm/dp: wait for hpd high before aux transaction 2022-05-02 02:39:34 +03:00
dp_ctrl.c drm/msm/dp: cleared DP_DOWNSPREAD_CTRL register before start link training 2022-09-30 16:57:53 +00:00
dp_ctrl.h drm/msm/dp: Remove pixel_rate from struct dp_ctrl 2022-09-18 09:38:04 -07:00
dp_debug.c drm/msm/dp: remove max_pclk_khz field from dp_panel/dp_display 2022-05-02 02:13:01 +03:00
dp_debug.h drm/msm/dp: Use the connector passed to dp_debug_get() 2021-10-15 16:40:09 -07:00
dp_display.c drm/msm/dp: fix bridge lifetime 2022-09-30 16:57:53 +00:00
dp_display.h drm/msm/dp: Remove encoder pointer from struct msm_dp 2022-07-04 21:05:29 +03:00
dp_drm.c drm/msm/dp: add atomic_check to bridge ops 2022-09-30 16:57:53 +00:00
dp_drm.h drm/msm/dp: Remove encoder pointer from struct msm_dp 2022-07-04 21:05:29 +03:00
dp_hpd.c drm/msm/dp: Drop now unused hpd_high member 2021-11-29 16:19:58 -08:00
dp_hpd.h drm/msm/dp: Drop now unused hpd_high member 2021-11-29 16:19:58 -08:00
dp_link.c drm/msm/dp: Silence inconsistent indent warning 2022-09-18 09:38:04 -07:00
dp_link.h drm/msm/dp: DisplayPort PHY compliance tests fixup 2020-11-04 08:26:25 -08:00
dp_panel.c drm for 5.19-rc1 2022-05-25 16:18:27 -07:00
dp_panel.h drm for 5.19-rc1 2022-05-25 16:18:27 -07:00
dp_parser.c drm/msm/dp: fix bridge lifetime 2022-09-30 16:57:53 +00:00
dp_parser.h drm/msm/dp: fix bridge lifetime 2022-09-30 16:57:53 +00:00
dp_power.c Char / Misc driver changes for 6.0-rc1 2022-08-04 11:05:48 -07:00
dp_power.h drm/msm/dp: Fixed couple of typos 2021-06-23 07:33:52 -07:00
dp_reg.h drm/msm/dp: return correct connection status after suspend 2020-11-10 12:38:58 -08:00