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/debug: don't register files for unsupported HDMI InfoFrames

Having debugfs files for the InfoFrames that are not supported by the
driver is confusing, stop registering those in the debugfs.

Acked-by: Maxime Ripard <mripard@kernel.org>
Link: https://patch.msgid.link/20260107-limit-infoframes-2-v4-10-213d0d3bd490@oss.qualcomm.com
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>

+7
+7
drivers/gpu/drm/drm_debugfs.c
··· 672 672 { 673 673 struct dentry *file; 674 674 675 + if (!connector->hdmi.funcs || 676 + !connector->hdmi.funcs->audio.write_infoframe) 677 + return 0; 678 + 675 679 file = debugfs_create_file("audio", 0400, parent, connector, &audio_infoframe_fops); 676 680 if (IS_ERR(file)) 677 681 return PTR_ERR(file); ··· 730 726 { \ 731 727 struct dentry *file; \ 732 728 \ 729 + if (!connector->hdmi.funcs || \ 730 + !connector->hdmi.funcs->_f.write_infoframe) \ 731 + return 0; \ 733 732 file = debugfs_create_file(#_f, 0400, parent, connector, &_f ## _infoframe_fops); \ 734 733 if (IS_ERR(file)) \ 735 734 return PTR_ERR(file); \