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

Commit 5cfd48b2 authored by Ben Skeggs's avatar Ben Skeggs
Browse files

drm/nv50/gpio: exclude sense value from mask when changing registers



Shouldn't effect anything, was just momentarily confusing while looking
at traces.

Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 1f1ac3bf
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -79,7 +79,7 @@ nv50_gpio_drive(struct nouveau_gpio *gpio, int line, int dir, int out)
	if (nv50_gpio_location(line, &reg, &shift))
	if (nv50_gpio_location(line, &reg, &shift))
		return -EINVAL;
		return -EINVAL;


	nv_mask(gpio, reg, 7 << shift, (((dir ^ 1) << 1) | out) << shift);
	nv_mask(gpio, reg, 3 << shift, (((dir ^ 1) << 1) | out) << shift);
	return 0;
	return 0;
}
}