Skip to content

Commit

Permalink
gianfar: Fix thinko in gfar_set_rx_stash_index()
Browse files Browse the repository at this point in the history
We obviously want to write a modified 'temp' value back to the
register, not the saved IRQ flags.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Acked-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Anton Vorontsov authored and David S. Miller committed Nov 12, 2009
1 parent 5ea681d commit 499428e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/gianfar_sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ static ssize_t gfar_set_rx_stash_index(struct device *dev,
temp = gfar_read(&regs->attreli);
temp &= ~ATTRELI_EI_MASK;
temp |= ATTRELI_EI(index);
gfar_write(&regs->attreli, flags);
gfar_write(&regs->attreli, temp);

out:
unlock_rx_qs(priv);
Expand Down

0 comments on commit 499428e

Please sign in to comment.