Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/nouveau/pm: fix missing volt changes when boot voltage is undefined

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>

+1 -1
+1 -1
drivers/gpu/drm/nouveau/nouveau_pm.c
··· 117 117 } 118 118 119 119 if (pm->voltage.supported && pm->voltage_set) { 120 - if (a->volt_min && b->volt_min && b->volt_min > a->volt_min) { 120 + if (perflvl->volt_min && b->volt_min > a->volt_min) { 121 121 ret = pm->voltage_set(dev, perflvl->volt_min); 122 122 if (ret) { 123 123 NV_ERROR(dev, "voltage set failed: %d\n", ret);