]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/crc: Actually allow to change the crc source
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 21 Aug 2019 20:38:35 +0000 (22:38 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 28 Jan 2020 15:49:22 +0000 (16:49 +0100)
Oops.

Fixes: f51f04cec281 ("drm: Add API for capturing frame CRCs")
Cc: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Cc: Emil Velikov <emil.velikov@collabora.com>
Cc: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190821203835.18314-1-daniel.vetter@ffwll.ch
drivers/gpu/drm/drm_debugfs_crc.c

index e22b812c4b802c0e6610498b36aa30bf99efb54b..5d67a41f7c3a8f208e2aee802c8bffa16e13cac6 100644 (file)
@@ -372,7 +372,7 @@ void drm_debugfs_crtc_crc_add(struct drm_crtc *crtc)
 
        crc_ent = debugfs_create_dir("crc", crtc->debugfs_entry);
 
-       debugfs_create_file("control", S_IRUGO, crc_ent, crtc,
+       debugfs_create_file("control", S_IRUGO | S_IWUSR, crc_ent, crtc,
                            &drm_crtc_crc_control_fops);
        debugfs_create_file("data", S_IRUGO, crc_ent, crtc,
                            &drm_crtc_crc_data_fops);