diff mbox series

drm/crc: Actually allow to change the crc source

Message ID 20190821203835.18314-1-daniel.vetter@ffwll.ch (mailing list archive)
State New, archived
Headers show
Series drm/crc: Actually allow to change the crc source | expand

Commit Message

Daniel Vetter Aug. 21, 2019, 8:38 p.m. UTC
Oops.

Fixes: 9edbf1fa600a ("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>
---
 drivers/gpu/drm/drm_debugfs_crc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Ville Syrjälä Aug. 22, 2019, 12:20 p.m. UTC | #1
On Wed, Aug 21, 2019 at 10:38:35PM +0200, Daniel Vetter wrote:
> Oops.
> 
> Fixes: 9edbf1fa600a ("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>
> ---
>  drivers/gpu/drm/drm_debugfs_crc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/drm_debugfs_crc.c b/drivers/gpu/drm/drm_debugfs_crc.c
> index be1b7ba92ffe..6fe693ee15f9 100644
> --- a/drivers/gpu/drm/drm_debugfs_crc.c
> +++ b/drivers/gpu/drm/drm_debugfs_crc.c
> @@ -369,7 +369,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);

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>

But could we please go octal? My brain can't decode that alphabet soup.

>  	debugfs_create_file("data", S_IRUGO, crc_ent, crtc,
>  			    &drm_crtc_crc_data_fops);
> -- 
> 2.23.0.rc1
> 
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel
Daniel Vetter Jan. 28, 2020, 3:49 p.m. UTC | #2
On Thu, Aug 22, 2019 at 2:20 PM Ville Syrjälä
<ville.syrjala@linux.intel.com> wrote:
>
> On Wed, Aug 21, 2019 at 10:38:35PM +0200, Daniel Vetter wrote:
> > Oops.
> >
> > Fixes: 9edbf1fa600a ("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>
> > ---
> >  drivers/gpu/drm/drm_debugfs_crc.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/gpu/drm/drm_debugfs_crc.c b/drivers/gpu/drm/drm_debugfs_crc.c
> > index be1b7ba92ffe..6fe693ee15f9 100644
> > --- a/drivers/gpu/drm/drm_debugfs_crc.c
> > +++ b/drivers/gpu/drm/drm_debugfs_crc.c
> > @@ -369,7 +369,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);
>
> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>

Found this old patch of mine, finally applied it. Thanks for your review.
-Daniel

>
> But could we please go octal? My brain can't decode that alphabet soup.
>
> >       debugfs_create_file("data", S_IRUGO, crc_ent, crtc,
> >                           &drm_crtc_crc_data_fops);
> > --
> > 2.23.0.rc1
> >
> > _______________________________________________
> > dri-devel mailing list
> > dri-devel@lists.freedesktop.org
> > https://lists.freedesktop.org/mailman/listinfo/dri-devel
>
> --
> Ville Syrjälä
> Intel
diff mbox series

Patch

diff --git a/drivers/gpu/drm/drm_debugfs_crc.c b/drivers/gpu/drm/drm_debugfs_crc.c
index be1b7ba92ffe..6fe693ee15f9 100644
--- a/drivers/gpu/drm/drm_debugfs_crc.c
+++ b/drivers/gpu/drm/drm_debugfs_crc.c
@@ -369,7 +369,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);