mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-17 22:41:25 +00:00
drm/radeon/kms: fix incorrect logic in DP vs eDP connector checking.
This makes displayport work again here. Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
7087e16286
commit
97b94ccb9a
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user