Re: [PATCH net] net: mvpp2: fix bad MVPP2_TXQ_SCHED_TOKEN_CNTR_REG queue value
From: David Miller
Date: Thu May 30 2019 - 18:12:32 EST
From: Antoine Tenart <antoine.tenart@xxxxxxxxxxx>
Date: Wed, 29 May 2019 15:59:48 +0200
> 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@xxxxxxxxxxx>
Applied and queued up for -stable.