]> 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)
commit21808437214637952b61beaba6034d97880fbeb3
treea34d2d49a42e43ef2cba4bf40fd5cf1497440200
parent9609dad263f8bea347f41fddca29353dbf8a7d37
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: 3f518509dedc ("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