Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 499428ed authored by Anton Vorontsov's avatar Anton Vorontsov Committed by David S. Miller
Browse files

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: default avatarAnton Vorontsov <avorontsov@ru.mvista.com>
Acked-by: default avatarKumar Gala <galak@kernel.crashing.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5ea681d4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);