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: add missing MODULE_DEVICE_ID definitions

The drm/msm module bundles several drivers, each of them having a
separate OF match table, however only MDSS (subsystem), KMS devices and
GPU have corresponding MODULE_DEVICE_ID tables.

Add MODULE_DEVICE_ID to the display-related driver and to all other
drivers in this module, simplifying userspace job.

Fixes: 060530f1ea67 ("drm/msm: use componentised device support")
Reported-by: Loïc Minier <loic.minier@oss.qualcomm.com>
Patchwork: https://patchwork.freedesktop.org/patch/707960/
Link: https://lore.kernel.org/r/20260228-msm-device-id-v2-1-24b085919444@oss.qualcomm.com
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>

+5
+1
drivers/gpu/drm/msm/dp/dp_display.c
··· 210 210 { .compatible = "qcom,x1e80100-dp", .data = &msm_dp_desc_x1e80100 }, 211 211 {} 212 212 }; 213 + MODULE_DEVICE_TABLE(of, msm_dp_dt_match); 213 214 214 215 static struct msm_dp_display_private *dev_get_dp_display_private(struct device *dev) 215 216 {
+1
drivers/gpu/drm/msm/dsi/dsi.c
··· 198 198 { .compatible = "qcom,dsi-ctrl-6g-qcm2290" }, 199 199 {} 200 200 }; 201 + MODULE_DEVICE_TABLE(of, dt_match); 201 202 202 203 static const struct dev_pm_ops dsi_pm_ops = { 203 204 SET_RUNTIME_PM_OPS(msm_dsi_runtime_suspend, msm_dsi_runtime_resume, NULL)
+1
drivers/gpu/drm/msm/dsi/phy/dsi_phy.c
··· 582 582 #endif 583 583 {} 584 584 }; 585 + MODULE_DEVICE_TABLE(of, dsi_phy_dt_match); 585 586 586 587 /* 587 588 * Currently, we only support one SoC for each PHY type. When we have multiple
+1
drivers/gpu/drm/msm/hdmi/hdmi.c
··· 441 441 { .compatible = "qcom,hdmi-tx-8660", .data = &hdmi_tx_8960_config }, 442 442 {} 443 443 }; 444 + MODULE_DEVICE_TABLE(of, msm_hdmi_dt_match); 444 445 445 446 static struct platform_driver msm_hdmi_driver = { 446 447 .probe = msm_hdmi_dev_probe,
+1
drivers/gpu/drm/msm/hdmi/hdmi_phy.c
··· 204 204 .data = &msm_hdmi_phy_8998_cfg }, 205 205 {} 206 206 }; 207 + MODULE_DEVICE_TABLE(of, msm_hdmi_phy_dt_match); 207 208 208 209 static struct platform_driver msm_hdmi_phy_platform_driver = { 209 210 .probe = msm_hdmi_phy_probe,