Skip to content

Commit cde30a8

Browse files
Nicolas Ferredavem330
authored andcommitted
net/macb: tx status is more than 8 bits now
On some revision of GEM, TSR status register has more information. Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com> Tested-by: Joachim Eastwood <manabian@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 83cdbc7 commit cde30a8

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/ethernet/cadence

1 file changed

+1
-1
lines changed

drivers/net/ethernet/cadence/macb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ static void macb_tx(struct macb *bp)
314314
status = macb_readl(bp, TSR);
315315
macb_writel(bp, TSR, status);
316316

317-
netdev_vdbg(bp->dev, "macb_tx status = %02lx\n", (unsigned long)status);
317+
netdev_vdbg(bp->dev, "macb_tx status = 0x%03lx\n", (unsigned long)status);
318318

319319
if (status & (MACB_BIT(UND) | MACB_BIT(TSR_RLE))) {
320320
int i;

0 commit comments

Comments
 (0)