From: Dave Airlie Date: Thu, 18 Jun 2015 04:29:18 +0000 (+1000) Subject: drm/radeon: don't probe MST on hw we don't support it on X-Git-Tag: v4.14-rc1~5258^2~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7f017e56770e82c8fe2d4d8c59e58f519f455ad7;p=platform%2Fkernel%2Flinux-rpi.git drm/radeon: don't probe MST on hw we don't support it on If you do radeon.mst=1 on a gpu without mst hw, and then plug some mst hw it will oops instead of falling back. So check we have DCE5 at least before proceeding. Signed-off-by: Dave Airlie Signed-off-by: Christian König --- diff --git a/drivers/gpu/drm/radeon/radeon_dp_mst.c b/drivers/gpu/drm/radeon/radeon_dp_mst.c index 2b98ed3e684d..257b10be5cda 100644 --- a/drivers/gpu/drm/radeon/radeon_dp_mst.c +++ b/drivers/gpu/drm/radeon/radeon_dp_mst.c @@ -663,12 +663,17 @@ int radeon_dp_mst_probe(struct radeon_connector *radeon_connector) { struct radeon_connector_atom_dig *dig_connector = radeon_connector->con_priv; + struct drm_device *dev = radeon_connector->base.dev; + struct radeon_device *rdev = dev->dev_private; int ret; u8 msg[1]; if (!radeon_mst) return 0; + if (!ASIC_IS_DCE5(rdev)) + return 0; + if (dig_connector->dpcd[DP_DPCD_REV] < 0x12) return 0;