drm/amd/display: Check if registers are available before accessing
authorEric Bernstein <eric.bernstein@amd.com>
Mon, 19 Nov 2018 15:52:10 +0000 (10:52 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 14 Jan 2019 20:42:22 +0000 (15:42 -0500)
commit5dc3fc5a7835f6b98184d2b8df909c5230c37a2c
treef4323bed2b15d187b419f64b4ec40ca5d20f5d7c
parentca35899c4e3a173c0d6d4619dc62e836a9487cb2
drm/amd/display: Check if registers are available before accessing

Check if VERT_FILTER_INIT_BOT and BLACK_OFFSET registers
exists in the DCN SCL IP block before trying to access.

Signed-off-by: Eric Bernstein <eric.bernstein@amd.com>
Reviewed-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp_dscl.c