Skip to content

Commit a7a164d

Browse files
mripardpopcornmix
authored andcommitted
drm/vc4: hdmi: Deal with multiple debugfs files
The HDMI driver was registering a single debugfs file so far with the name hdmi_regs. Obviously, this is not going to work anymore when will have multiple HDMI controllers since we will end up trying to register two files with the same name. Let's use the ID to avoid that name conflict. Signed-off-by: Maxime Ripard <maxime@cerno.tech>
1 parent 18f47a5 commit a7a164d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎drivers/gpu/drm/vc4/vc4_hdmi.c‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1365,7 +1365,10 @@ static int vc4_hdmi_bind(struct device *dev, struct device *master, void *data)
13651365
if (ret)
13661366
goto err_destroy_encoder;
13671367

1368-
vc4_debugfs_add_file(drm, "hdmi_regs", vc4_hdmi_debugfs_regs, vc4_hdmi);
1368+
vc4_debugfs_add_file(drm,
1369+
variant->id ? "hdmi1_regs" : "hdmi_regs",
1370+
vc4_hdmi_debugfs_regs,
1371+
vc4_hdmi);
13691372

13701373
return 0;
13711374

0 commit comments

Comments
 (0)