drm/crc: Only report a single overflow when a CRC fd is opened
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Wed, 18 Apr 2018 12:51:21 +0000 (14:51 +0200)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Fri, 6 Jul 2018 12:57:03 +0000 (14:57 +0200)
commita012024571d98e2e4bf29a9168fb7ddc44b7ab86
tree8473ad687dcb82b1cc422ccfdff10ba30bbe96d6
parent8adbbb2e7871e76d53ea91e6159864ee534fdac8
drm/crc: Only report a single overflow when a CRC fd is opened

This reduces the amount of spam when you debug a CRC reading
program.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
[mlankhorst: Change bool overflow to was_overflow (Ville)]
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180418125121.72081-1-maarten.lankhorst@linux.intel.com
drivers/gpu/drm/drm_debugfs_crc.c
include/drm/drm_debugfs_crc.h