From: Vincent Abriou Date: Thu, 2 Feb 2017 08:58:39 +0000 (+0100) Subject: drm/sti: debug fps reset X-Git-Tag: v4.11-rc1~83^2~18^2 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=c462c2f5f5ee5ed77a790c361e6aae807ef923ce;p=linux.git drm/sti: debug fps reset Reset the fps debug information when 'fps_show' is updated. Signed-off-by: Fabien Dessenne --- diff --git a/drivers/gpu/drm/sti/sti_drv.c b/drivers/gpu/drm/sti/sti_drv.c index 7cdccb05ee80..e6c1646b9c53 100644 --- a/drivers/gpu/drm/sti/sti_drv.c +++ b/drivers/gpu/drm/sti/sti_drv.c @@ -58,7 +58,9 @@ static int sti_drm_fps_set(void *data, u64 val) list_for_each_entry(p, &drm_dev->mode_config.plane_list, head) { struct sti_plane *plane = to_sti_plane(p); + memset(&plane->fps_info, 0, sizeof(plane->fps_info)); plane->fps_info.output = (val >> i) & 1; + i++; }