OSDN Git Service

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)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Jun 2019 14:28:20 +0000 (10:28 -0400)
commit39e3622edeffa63c2871153d8743c5825b139968
tree4664eb999f2df3d1c6ec5e00e61f337c03426493
parente41d4bc554dedf80590f5fe4a1805bc9383b42e7
net: netsec: initialize tx ring on ndo_open

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>
drivers/net/ethernet/socionext/netsec.c