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

Commit 73db4bed authored by Ben Skeggs's avatar Ben Skeggs
Browse files

drm/nouveau: don't execute INIT_GPIO unless we're really running the table



This resulted in accidently switching off the eDP panel on certain laptops
since the default state in the GPIO table was off.

Fixes rh#582621

Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent f50c0b91
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -2807,6 +2807,9 @@ init_gpio(struct nvbios *bios, uint16_t offset, struct init_exec *iexec)

		BIOSLOG(bios, "0x%04X: Entry: 0x%08X\n", offset, gpio->entry);

		BIOSLOG(bios, "0x%04X: set gpio 0x%02x, state %d\n",
			offset, gpio->tag, gpio->state_default);
		if (bios->execute)
			nv50_gpio_set(bios->dev, gpio->tag, gpio->state_default);

		/* The NVIDIA binary driver doesn't appear to actually do