drm/radeon: fix fb_div check in ni_init_smc_spll_table()
authorDenis Efremov <efremov@linux.com>
Mon, 22 Jun 2020 20:31:22 +0000 (23:31 +0300)
committerSasha Levin <sashal@kernel.org>
Tue, 30 Jun 2020 19:37:11 +0000 (15:37 -0400)
commit05124abe1fb0deb9df35445885f89043eddbba9a
treeca1c43087f52eb0acede15e84245cd70b1586346
parent834a3aa2ceb4369f39b8b8b82dd68d278934623f
drm/radeon: fix fb_div check in ni_init_smc_spll_table()

commit 35f760b44b1b9cb16a306bdcc7220fbbf78c4789 upstream.

clk_s is checked twice in a row in ni_init_smc_spll_table().
fb_div should be checked instead.

Fixes: 69e0b57a91ad ("drm/radeon/kms: add dpm support for cayman (v5)")
Cc: stable@vger.kernel.org
Signed-off-by: Denis Efremov <efremov@linux.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/radeon/ni_dpm.c