drm/exynos: fix missing decrement of retry counter
authorColin Ian King <colin.king@canonical.com>
Mon, 22 Jul 2019 22:25:35 +0000 (23:25 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Aug 2019 08:47:57 +0000 (10:47 +0200)
commitcf9a18d7bcd067675afa3161836b2007893ea7a4
treecf3f9d044184835bbf5fabe17350c96c859dc463
parentc256729f269521508a517bc5255a116c189700be
drm/exynos: fix missing decrement of retry counter

[ Upstream commit 1bbbab097a05276e312dd2462791d32b21ceb1ee ]

Currently the retry counter is not being decremented, leading to a
potential infinite spin if the scalar_reads don't change state.

Addresses-Coverity: ("Infinite loop")
Fixes: 280e54c9f614 ("drm/exynos: scaler: Reset hardware before starting the operation")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/exynos/exynos_drm_scaler.c