net: netsec: initialize tx ring on ndo_open
authorIlias Apalodimas <ilias.apalodimas@linaro.org>
Wed, 19 Jun 2019 10:04:00 +0000 (13:04 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Jul 2019 07:10:30 +0000 (09:10 +0200)
commita294b5786e78fcf7409fddb0ccb6e647e178f4a3
tree3f19293eae73693e06bcd7d672a8bfb521c680e2
parent5817d78eba34f6c86f5462ae2c5212f80a013357
net: netsec: initialize tx ring on ndo_open

[ Upstream commit 39e3622edeffa63c2871153d8743c5825b139968 ]

Since we changed the Tx ring handling and now depends on bit31 to figure
out the owner of the descriptor, we should initialize this every time
the device goes down-up instead of doing it once on driver init. If the
value is not correctly initialized the device won't have any available
descriptors

Changes since v1:
- Typo fixes

Fixes: 35e07d234739 ("net: socionext: remove mmio reads on Tx")
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/socionext/netsec.c