Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/msm/dpu: get rid of DPU_MDP_AUDIO_SELECT

Continue migration to the MDSS-revision based checks and replace
DPU_MDP_AUDIO_SELECT feature bit with the core_major_ver == 4 ||
core_major_ver == 5 check.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/655399/
Link: https://lore.kernel.org/r/20250522-dpu-drop-features-v5-20-3b2085a07884@oss.qualcomm.com

authored by

Dmitry Baryshkov and committed by
Dmitry Baryshkov
ff63c4a4 bd88789b

+2 -7
-1
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_4_0_sdm845.h
··· 23 23 static const struct dpu_mdp_cfg sdm845_mdp = { 24 24 .name = "top_0", 25 25 .base = 0x0, .len = 0x45c, 26 - .features = BIT(DPU_MDP_AUDIO_SELECT), 27 26 .clk_ctrls = { 28 27 [DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0 }, 29 28 [DPU_CLK_CTRL_VIG1] = { .reg_off = 0x2b4, .bit_off = 0 },
-1
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_4_1_sdm670.h
··· 11 11 static const struct dpu_mdp_cfg sdm670_mdp = { 12 12 .name = "top_0", 13 13 .base = 0x0, .len = 0x45c, 14 - .features = BIT(DPU_MDP_AUDIO_SELECT), 15 14 .clk_ctrls = { 16 15 [DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0 }, 17 16 [DPU_CLK_CTRL_VIG1] = { .reg_off = 0x2b4, .bit_off = 0 },
-1
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_0_sm8150.h
··· 23 23 static const struct dpu_mdp_cfg sm8150_mdp = { 24 24 .name = "top_0", 25 25 .base = 0x0, .len = 0x45c, 26 - .features = BIT(DPU_MDP_AUDIO_SELECT), 27 26 .clk_ctrls = { 28 27 [DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0 }, 29 28 [DPU_CLK_CTRL_VIG1] = { .reg_off = 0x2b4, .bit_off = 0 },
-1
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h
··· 23 23 static const struct dpu_mdp_cfg sc8180x_mdp = { 24 24 .name = "top_0", 25 25 .base = 0x0, .len = 0x45c, 26 - .features = BIT(DPU_MDP_AUDIO_SELECT), 27 26 .clk_ctrls = { 28 27 [DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0 }, 29 28 [DPU_CLK_CTRL_VIG1] = { .reg_off = 0x2b4, .bit_off = 0 },
-1
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_2_sm7150.h
··· 23 23 static const struct dpu_mdp_cfg sm7150_mdp = { 24 24 .name = "top_0", 25 25 .base = 0x0, .len = 0x45c, 26 - .features = BIT(DPU_MDP_AUDIO_SELECT), 27 26 .clk_ctrls = { 28 27 [DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0 }, 29 28 [DPU_CLK_CTRL_VIG1] = { .reg_off = 0x2b4, .bit_off = 0 },
-1
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h
··· 38 38 enum { 39 39 DPU_MDP_PANIC_PER_PIPE = 0x1, 40 40 DPU_MDP_10BIT_SUPPORT, 41 - DPU_MDP_AUDIO_SELECT, 42 41 DPU_MDP_MAX 43 42 }; 44 43
+2 -1
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c
··· 280 280 if (mdss_rev->core_major_ver >= 5) 281 281 ops->dp_phy_intf_sel = dpu_hw_dp_phy_intf_sel; 282 282 283 - if (cap & BIT(DPU_MDP_AUDIO_SELECT)) 283 + if (mdss_rev->core_major_ver == 4 || 284 + mdss_rev->core_major_ver == 5) 284 285 ops->intf_audio_select = dpu_hw_intf_audio_select; 285 286 } 286 287