On Wed, 17 Jan 2024 at 23:13, Kuogee Hsieh <quic_khsieh@xxxxxxxxxxx> wrote: > > MSA MISC0 bit 1 to 7 contains Colorimetry Indicator Field. > dp_link_get_colorimetry_config() returns wrong colorimetry value > in the DP_TEST_DYNAMIC_RANGE_CEA case in the current implementation. > Hence fix this problem by having dp_link_get_colorimetry_config() > return defined CEA RGB colorimetry value in the case of > DP_TEST_DYNAMIC_RANGE_CEA. > > Changes in V2: > -- drop retrieving colorimetry from colorspace > -- drop dr = link->dp_link.test_video.test_dyn_range assignment > > Changes in V3: > -- move defined MISCr0a Colorimetry vale to dp_reg.h > -- rewording commit title > -- rewording commit text to more precise describe this patch > > Fixes: c943b4948b58 ("drm/msm/dp: add displayPort driver support") > Signed-off-by: Kuogee Hsieh <quic_khsieh@xxxxxxxxxxx> > --- > drivers/gpu/drm/msm/dp/dp_link.c | 12 +++++++----- > drivers/gpu/drm/msm/dp/dp_reg.h | 3 +++ > 2 files changed, 10 insertions(+), 5 deletions(-) Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxx> -- With best wishes Dmitry