From: Nicolas Ferre Date: Wed, 31 Oct 2012 06:04:54 +0000 (+0000) Subject: net/macb: tx status is more than 8 bits now X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=cde30a857ca10b8ba55a441193864aa04a4832f7;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git 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 Tested-by: Joachim Eastwood Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/cadence/macb.c b/drivers/net/ethernet/cadence/macb.c index 4db52f318efe..cd6d431ff2b4 100644 --- a/drivers/net/ethernet/cadence/macb.c +++ b/drivers/net/ethernet/cadence/macb.c @@ -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;