Skip to content

Commit

Permalink
drm/nv50/gpio: exclude sense value from mask when changing registers
Browse files Browse the repository at this point in the history
Shouldn't effect anything, was just momentarily confusing while looking
at traces.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
  • Loading branch information
Ben Skeggs committed Mar 26, 2014
1 parent 1f1ac3b commit 5cfd48b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/nouveau/core/subdev/gpio/nv50.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 5cfd48b

Please sign in to comment.