mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
drm/nv50: fix dp_set_tmds to work on the right OR
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
c50a5681e7
commit
946cbc825a
@ -809,7 +809,8 @@ nv50_display_unk20_dp_set_tmds(struct drm_device *dev, struct dcb_entry *dcb)
|
|||||||
list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) {
|
list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) {
|
||||||
struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder);
|
struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder);
|
||||||
|
|
||||||
if (nv_encoder->dcb->type == OUTPUT_DP) {
|
if (nv_encoder->dcb->type == OUTPUT_DP &&
|
||||||
|
nv_encoder->dcb->or & (1 << or)) {
|
||||||
tmp = nv_rd32(dev, NV50_SOR_DP_CTRL(or, link));
|
tmp = nv_rd32(dev, NV50_SOR_DP_CTRL(or, link));
|
||||||
tmp &= ~NV50_SOR_DP_CTRL_ENABLED;
|
tmp &= ~NV50_SOR_DP_CTRL_ENABLED;
|
||||||
nv_wr32(dev, NV50_SOR_DP_CTRL(or, link), tmp);
|
nv_wr32(dev, NV50_SOR_DP_CTRL(or, link), tmp);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user