diff options
-rw-r--r-- | drivers/gpu/drm/nouveau/nvkm/engine/disp/outp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/disp/outp.c b/drivers/gpu/drm/nouveau/nvkm/engine/disp/outp.c index ef201f1597c7..85aff85394ac 100644 --- a/drivers/gpu/drm/nouveau/nvkm/engine/disp/outp.c +++ b/drivers/gpu/drm/nouveau/nvkm/engine/disp/outp.c | |||
@@ -137,7 +137,7 @@ nvkm_outp_acquire(struct nvkm_outp *outp, u8 user) | |||
137 | /* Failing that, a completely unused OR is the next best thing. */ | 137 | /* Failing that, a completely unused OR is the next best thing. */ |
138 | list_for_each_entry(ior, &outp->disp->ior, head) { | 138 | list_for_each_entry(ior, &outp->disp->ior, head) { |
139 | if (!ior->asy.outp && ior->type == type && !ior->arm.outp && | 139 | if (!ior->asy.outp && ior->type == type && !ior->arm.outp && |
140 | ior->id == __ffs(outp->info.or)) | 140 | (ior->func->route.set || ior->id == __ffs(outp->info.or))) |
141 | return nvkm_outp_acquire_ior(outp, user, ior); | 141 | return nvkm_outp_acquire_ior(outp, user, ior); |
142 | } | 142 | } |
143 | 143 | ||
@@ -146,7 +146,7 @@ nvkm_outp_acquire(struct nvkm_outp *outp, u8 user) | |||
146 | */ | 146 | */ |
147 | list_for_each_entry(ior, &outp->disp->ior, head) { | 147 | list_for_each_entry(ior, &outp->disp->ior, head) { |
148 | if (!ior->asy.outp && ior->type == type && | 148 | if (!ior->asy.outp && ior->type == type && |
149 | ior->id == __ffs(outp->info.or)) | 149 | (ior->func->route.set || ior->id == __ffs(outp->info.or))) |
150 | return nvkm_outp_acquire_ior(outp, user, ior); | 150 | return nvkm_outp_acquire_ior(outp, user, ior); |
151 | } | 151 | } |
152 | 152 | ||