Skip to content

Commit

Permalink
net/macb: tx status is more than 8 bits now
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nicolas Ferre authored and David S. Miller committed Nov 1, 2012
1 parent 83cdbc7 commit cde30a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/cadence/macb.c
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ static void macb_tx(struct macb *bp)
status = macb_readl(bp, TSR);
macb_writel(bp, TSR, status);

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

if (status & (MACB_BIT(UND) | MACB_BIT(TSR_RLE))) {
int i;
Expand Down

0 comments on commit cde30a8

Please sign in to comment.