summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2014-03-19 00:35:44 +1000
committerBen Skeggs <bskeggs@redhat.com>2014-03-26 14:08:17 +1000
commit5cfd48b21274c0dc2ec30e7997745833e6be71ad (patch)
treeac9c0ebda1bdc76e58eace9f62e3c2768766a84f
parent1f1ac3bf2a804911ad46076b10ce15364237a698 (diff)
downloadtalos-obmc-linux-5cfd48b21274c0dc2ec30e7997745833e6be71ad.tar.gz
talos-obmc-linux-5cfd48b21274c0dc2ec30e7997745833e6be71ad.zip
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: Ben Skeggs <bskeggs@redhat.com>
-rw-r--r--drivers/gpu/drm/nouveau/core/subdev/gpio/nv50.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/core/subdev/gpio/nv50.c b/drivers/gpu/drm/nouveau/core/subdev/gpio/nv50.c
index c4c1d415e7fe..904b67fe1e14 100644
--- a/drivers/gpu/drm/nouveau/core/subdev/gpio/nv50.c
+++ b/drivers/gpu/drm/nouveau/core/subdev/gpio/nv50.c
@@ -79,7 +79,7 @@ nv50_gpio_drive(struct nouveau_gpio *gpio, int line, int dir, int out)
if (nv50_gpio_location(line, &reg, &shift))
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;
}
OpenPOWER on IntegriCloud