diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi-qp.c b/drivers/gpu/drm/bridge/synopsys/dw-hdmi-qp.c index 98a0579697da..9a38fd736a6b 100644 --- a/drivers/gpu/drm/bridge/synopsys/dw-hdmi-qp.c +++ b/drivers/gpu/drm/bridge/synopsys/dw-hdmi-qp.c @@ -2630,7 +2630,10 @@ static const struct file_operations dw_hdmi_status_fops = { static void dw_hdmi_register_debugfs(struct device *dev, struct dw_hdmi_qp *hdmi) { - hdmi->debugfs_dir = debugfs_create_dir("dw-hdmi", NULL); + u8 buf[11]; + + snprintf(buf, sizeof(buf), "dw-hdmi%d", hdmi->plat_data->id); + hdmi->debugfs_dir = debugfs_create_dir(buf, NULL); if (IS_ERR(hdmi->debugfs_dir)) { dev_err(dev, "failed to create debugfs dir!\n"); return; diff --git a/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c b/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c index 5b37e8467cc8..dade92329223 100644 --- a/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c +++ b/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c @@ -3255,6 +3255,7 @@ static int dw_hdmi_rockchip_probe(struct platform_device *pdev) if (!plat_data) return -ENOMEM; + plat_data->id = hdmi->id; hdmi->plat_data = plat_data; hdmi->chip_data = plat_data->phy_data; diff --git a/include/drm/bridge/dw_hdmi.h b/include/drm/bridge/dw_hdmi.h index 0b7f860d9b9c..6b51ff430144 100644 --- a/include/drm/bridge/dw_hdmi.h +++ b/include/drm/bridge/dw_hdmi.h @@ -179,6 +179,7 @@ struct dw_hdmi_plat_data { unsigned long input_bus_format; unsigned long input_bus_encoding; unsigned int max_tmdsclk; + int id; bool use_drm_infoframe; bool ycbcr_420_allowed; bool unsupported_yuv_input;