diff options
| author | Vincent Abriou <vincent.abriou@st.com> | 2017-02-02 03:58:39 -0500 |
|---|---|---|
| committer | Vincent Abriou <vincent.abriou@st.com> | 2017-02-10 03:34:39 -0500 |
| commit | c462c2f5f5ee5ed77a790c361e6aae807ef923ce (patch) | |
| tree | 8565771a1e3fa0c9bbb03ebb34f3a288b9f77c34 /drivers/gpu | |
| parent | 97d7c576302979831c65a2ae8a0ef4f3acf7f107 (diff) | |
drm/sti: debug fps reset
Reset the fps debug information when 'fps_show' is updated.
Signed-off-by: Fabien Dessenne <fabien.dessenne@st.com>
Diffstat (limited to 'drivers/gpu')
| -rw-r--r-- | drivers/gpu/drm/sti/sti_drv.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) | |||
| 58 | list_for_each_entry(p, &drm_dev->mode_config.plane_list, head) { | 58 | list_for_each_entry(p, &drm_dev->mode_config.plane_list, head) { |
| 59 | struct sti_plane *plane = to_sti_plane(p); | 59 | struct sti_plane *plane = to_sti_plane(p); |
| 60 | 60 | ||
| 61 | memset(&plane->fps_info, 0, sizeof(plane->fps_info)); | ||
| 61 | plane->fps_info.output = (val >> i) & 1; | 62 | plane->fps_info.output = (val >> i) & 1; |
| 63 | |||
| 62 | i++; | 64 | i++; |
| 63 | } | 65 | } |
| 64 | 66 | ||
