drm/sti: debug fps reset
authorVincent Abriou <vincent.abriou@st.com>
Thu, 2 Feb 2017 08:58:39 +0000 (09:58 +0100)
committerVincent Abriou <vincent.abriou@st.com>
Fri, 10 Feb 2017 08:34:39 +0000 (09:34 +0100)
Reset the fps debug information when 'fps_show' is updated.

Signed-off-by: Fabien Dessenne <fabien.dessenne@st.com>
drivers/gpu/drm/sti/sti_drv.c

index 7cdccb05ee806fd0c9d8c1f69cb53bd5bba04e07..e6c1646b9c53ac2de3b26fd5bbc8679d150f3f8a 100644 (file)
@@ -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++;
        }