提交 5cfd48b2 编写于 作者: B Ben Skeggs

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: NBen Skeggs <bskeggs@redhat.com>
上级 1f1ac3bf
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册