]> git.baikalelectronics.ru Git - kernel.git/commit
net: mvpp2: fix bad MVPP2_TXQ_SCHED_TOKEN_CNTR_REG queue value
authorAntoine Tenart <antoine.tenart@bootlin.com>
Wed, 29 May 2019 13:59:48 +0000 (15:59 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 May 2019 21:31:13 +0000 (14:31 -0700)
commit96a9a9d556670b45c0c0ed03fd9a1e40d79c3f47
treea34d2d49a42e43ef2cba4bf40fd5cf1497440200
parentfae93b8ae922b3d41a1b03cd273f8ef843fb07d4
net: mvpp2: fix bad MVPP2_TXQ_SCHED_TOKEN_CNTR_REG queue value

MVPP2_TXQ_SCHED_TOKEN_CNTR_REG() expects the logical queue id but
the current code is passing the global tx queue offset, so it ends
up writing to unknown registers (between 0x8280 and 0x82fc, which
seemed to be unused by the hardware). This fixes the issue by using
the logical queue id instead.

Fixes: decc8a74c68c ("ethernet: Add new driver for Marvell Armada 375 network unit")
Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c