Skip to content

Commit c238041

Browse files
Sergei Shtylyovdavem330
authored andcommitted
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent a176ded commit c238041

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

drivers/net/ethernet/renesas/sh_eth.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1173,7 +1173,7 @@ static void sh_eth_ring_format(struct net_device *ndev)
11731173
mdp->dirty_rx = (u32) (i - mdp->num_rx_ring);
11741174

11751175
/* Mark the last entry as wrapping the ring. */
1176-
rxdesc->status |= cpu_to_edmac(mdp, RD_RDEL);
1176+
rxdesc->status |= cpu_to_edmac(mdp, RD_RDLE);
11771177

11781178
memset(mdp->tx_ring, 0, tx_ringsize);
11791179

@@ -1547,7 +1547,7 @@ static int sh_eth_rx(struct net_device *ndev, u32 intr_status, int *quota)
15471547
wmb(); /* RACT bit must be set after all the above writes */
15481548
if (entry >= mdp->num_rx_ring - 1)
15491549
rxdesc->status |=
1550-
cpu_to_edmac(mdp, RD_RACT | RD_RFP | RD_RDEL);
1550+
cpu_to_edmac(mdp, RD_RACT | RD_RFP | RD_RDLE);
15511551
else
15521552
rxdesc->status |=
15531553
cpu_to_edmac(mdp, RD_RACT | RD_RFP);

drivers/net/ethernet/renesas/sh_eth.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ enum DMAC_IM_BIT {
285285

286286
/* Receive descriptor bit */
287287
enum RD_STS_BIT {
288-
RD_RACT = 0x80000000, RD_RDEL = 0x40000000,
288+
RD_RACT = 0x80000000, RD_RDLE = 0x40000000,
289289
RD_RFP1 = 0x20000000, RD_RFP0 = 0x10000000,
290290
RD_RFE = 0x08000000, RD_RFS10 = 0x00000200,
291291
RD_RFS9 = 0x00000100, RD_RFS8 = 0x00000080,

0 commit comments

Comments
 (0)