drm/ast: fixed reading monitor EDID not stable issue
authorY.C. Chen <yc_chen@aspeedtech.com>
Thu, 22 Nov 2018 03:56:28 +0000 (11:56 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Dec 2018 09:07:11 +0000 (10:07 +0100)
commit97f2494f461a970970d40883509fc8b570d561a4
tree95a1f95116db0bad09f168e5d8bac0f15bfdd13e
parent38c29898c6bfbf8d566f451fb74cb072929c8a8d
drm/ast: fixed reading monitor EDID not stable issue

[ Upstream commit 300625620314194d9e6d4f6dda71f2dc9cf62d9f ]

v1: over-sample data to increase the stability with some specific monitors
v2: refine to avoid infinite loop
v3: remove un-necessary "volatile" declaration

[airlied: fix two checkpatch warnings]

Signed-off-by: Y.C. Chen <yc_chen@aspeedtech.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1542858988-1127-1-git-send-email-yc_chen@aspeedtech.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/ast/ast_mode.c