diff options
author | Marcin Wojtas <mw@semihalf.com> | 2015-11-30 13:27:42 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-12-02 23:35:04 -0500 |
commit | e5bdf689d32fcf3aaf548c71e715b303ba20b5d1 (patch) | |
tree | 234b809a03cfb6ba1de7cc8b7c68df10de519d10 /drivers/net/ethernet | |
parent | db6ba9a5371f173489df126739d0a1c2a50f347b (diff) | |
download | linux-stable-e5bdf689d32fcf3aaf548c71e715b303ba20b5d1.tar.gz linux-stable-e5bdf689d32fcf3aaf548c71e715b303ba20b5d1.tar.bz2 linux-stable-e5bdf689d32fcf3aaf548c71e715b303ba20b5d1.zip |
net: mvneta: fix bit assignment in MVNETA_RXQ_CONFIG_REG
MVNETA_RXQ_HW_BUF_ALLOC bit which controls enabling hardware buffer
allocation was mistakenly set as BIT(1). This commit fixes the assignment.
Signed-off-by: Marcin Wojtas <mw@semihalf.com>
Reviewed-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Fixes: c5aff18204da ("net: mvneta: driver for Marvell Armada 370/XP network
unit")
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/marvell/mvneta.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/marvell/mvneta.c b/drivers/net/ethernet/marvell/mvneta.c index 2d8025603329..64c46f03978c 100644 --- a/drivers/net/ethernet/marvell/mvneta.c +++ b/drivers/net/ethernet/marvell/mvneta.c @@ -36,7 +36,7 @@ /* Registers */ #define MVNETA_RXQ_CONFIG_REG(q) (0x1400 + ((q) << 2)) -#define MVNETA_RXQ_HW_BUF_ALLOC BIT(1) +#define MVNETA_RXQ_HW_BUF_ALLOC BIT(0) #define MVNETA_RXQ_PKT_OFFSET_ALL_MASK (0xf << 8) #define MVNETA_RXQ_PKT_OFFSET_MASK(offs) ((offs) << 8) #define MVNETA_RXQ_THRESHOLD_REG(q) (0x14c0 + ((q) << 2)) |