Skip to content

Commit 5f75839

Browse files
committed
net: usb: lan78xx: Move display read stat failure to debug mode
If LAN7850 is used in HSIC mode, sometimes, read stats fail without any impact on data transferred. In this case, the console is filled with error messages. The patch displays this message for debug purposes only. Signed-off-by: Cristian Birsan <cristian.birsan@microchip.com>
1 parent 1e15746 commit 5f75839

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/net/usb/lan78xx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ static int lan78xx_read_stats(struct lan78xx_net *dev,
510510
dst[i] = src[i];
511511
}
512512
} else {
513-
netdev_warn(dev->net,
513+
netdev_dbg(dev->net,
514514
"Failed to read stat ret = %d", ret);
515515
}
516516

0 commit comments

Comments
 (0)