diff options
author | Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> | 2015-11-03 01:28:07 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-11-02 23:01:06 -0500 |
commit | c238041f517d0a6458264582e8e2a1513766f8e7 (patch) | |
tree | 1f2216744bc943994b8f3d3aad85bd7f96a3c33f /drivers/net/ethernet/renesas/sh_eth.c | |
parent | a176ded3f4bdbd267bc9a79bde12d984c8c517b2 (diff) | |
download | lwn-c238041f517d0a6458264582e8e2a1513766f8e7.tar.gz lwn-c238041f517d0a6458264582e8e2a1513766f8e7.zip |
sh_eth: fix typo in RX descriptor bit name
The correct name of the RX descriptor 0 bit 30 is RDLE (receive descriptor
list end), not RDEL.
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/renesas/sh_eth.c')
-rw-r--r-- | drivers/net/ethernet/renesas/sh_eth.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/renesas/sh_eth.c b/drivers/net/ethernet/renesas/sh_eth.c index a484d8beb855..e06bef5dd6a9 100644 --- a/drivers/net/ethernet/renesas/sh_eth.c +++ b/drivers/net/ethernet/renesas/sh_eth.c @@ -1173,7 +1173,7 @@ static void sh_eth_ring_format(struct net_device *ndev) mdp->dirty_rx = (u32) (i - mdp->num_rx_ring); /* Mark the last entry as wrapping the ring. */ - rxdesc->status |= cpu_to_edmac(mdp, RD_RDEL); + rxdesc->status |= cpu_to_edmac(mdp, RD_RDLE); memset(mdp->tx_ring, 0, tx_ringsize); @@ -1547,7 +1547,7 @@ static int sh_eth_rx(struct net_device *ndev, u32 intr_status, int *quota) wmb(); /* RACT bit must be set after all the above writes */ if (entry >= mdp->num_rx_ring - 1) rxdesc->status |= - cpu_to_edmac(mdp, RD_RACT | RD_RFP | RD_RDEL); + cpu_to_edmac(mdp, RD_RACT | RD_RFP | RD_RDLE); else rxdesc->status |= cpu_to_edmac(mdp, RD_RACT | RD_RFP); |