Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 97b94ccb authored by Dave Airlie's avatar Dave Airlie
Browse files

drm/radeon/kms: fix incorrect logic in DP vs eDP connector checking.



This makes displayport work again here.

Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 7087e162
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -468,7 +468,7 @@ void radeon_dp_set_link_config(struct drm_connector *connector,
	struct radeon_connector *radeon_connector;
	struct radeon_connector_atom_dig *dig_connector;

	if ((connector->connector_type != DRM_MODE_CONNECTOR_DisplayPort) ||
	if ((connector->connector_type != DRM_MODE_CONNECTOR_DisplayPort) &&
	    (connector->connector_type != DRM_MODE_CONNECTOR_eDP))
		return;

@@ -583,7 +583,7 @@ void dp_link_train(struct drm_encoder *encoder,
	u8 train_set[4];
	int i;

	if ((connector->connector_type != DRM_MODE_CONNECTOR_DisplayPort) ||
	if ((connector->connector_type != DRM_MODE_CONNECTOR_DisplayPort) &&
	    (connector->connector_type != DRM_MODE_CONNECTOR_eDP))
		return;