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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 Jul 2019 05:28:56 +0000 (07:28 +0200)
commitd06e92cfb34eaea6215ebcec55d6270f5657ff3c
tree82f00976b6b7e7fc332df586a0783f3a35eb41ae
parentee4c7168bc43ac9eb9cb3eb9f8af99d1be9a5a50
drm/crc: Only report a single overflow when a CRC fd is opened

[ Upstream commit a012024571d98e2e4bf29a9168fb7ddc44b7ab86 ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/drm_debugfs_crc.c
include/drm/drm_debugfs_crc.h