提交 499428ed 编写于 作者: A Anton Vorontsov 提交者: David S. Miller

gianfar: Fix thinko in gfar_set_rx_stash_index()

We obviously want to write a modified 'temp' value back to the
register, not the saved IRQ flags.
Signed-off-by: NAnton Vorontsov <avorontsov@ru.mvista.com>
Acked-by: NKumar Gala <galak@kernel.crashing.org>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 5ea681d4
...@@ -186,7 +186,7 @@ static ssize_t gfar_set_rx_stash_index(struct device *dev, ...@@ -186,7 +186,7 @@ static ssize_t gfar_set_rx_stash_index(struct device *dev,
temp = gfar_read(&regs->attreli); temp = gfar_read(&regs->attreli);
temp &= ~ATTRELI_EI_MASK; temp &= ~ATTRELI_EI_MASK;
temp |= ATTRELI_EI(index); temp |= ATTRELI_EI(index);
gfar_write(&regs->attreli, flags); gfar_write(&regs->attreli, temp);
out: out:
unlock_rx_qs(priv); unlock_rx_qs(priv);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册