Skip to content

Commit

Permalink
smsc95xx: Add comments to the registers definition
Browse files Browse the repository at this point in the history
This chip is used by a lot of embedded devices and also by the Raspberry
Pi 1, 2 & 3 which were created to promote the study of computer
sciences. Students wanting to learn kernel / network device driver
programming through those devices can only rely on the Linux kernel
driver source to make their own.

This commit adds a lot of comments to the registers definition to expand
the register names.

Cc: Steve Glendinning <[email protected]>
Cc: Microchip Linux Driver Support <[email protected]>
CC: David Miller <[email protected]>
Signed-off-by: Martin Wetterwald <[email protected]>
Reviewed-by: Andrew Lunn <[email protected]>
Acked-by: Steve Glendinning <[email protected]>
Acked-by: Woojung Huh <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
mwetterw authored and davem330 committed Apr 17, 2017
1 parent 57240d0 commit 53a759c
Show file tree
Hide file tree
Showing 2 changed files with 280 additions and 214 deletions.
4 changes: 2 additions & 2 deletions drivers/net/usb/smsc95xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#include "smsc95xx.h"

#define SMSC_CHIPNAME "smsc95xx"
#define SMSC_DRIVER_VERSION "1.0.5"
#define SMSC_DRIVER_VERSION "1.0.6"
#define HS_USB_PKT_SIZE (512)
#define FS_USB_PKT_SIZE (64)
#define DEFAULT_HS_BURST_CAP_SIZE (16 * 1024 + 5 * HS_USB_PKT_SIZE)
Expand Down Expand Up @@ -1499,7 +1499,7 @@ static int smsc95xx_enter_suspend3(struct usbnet *dev)
if (ret < 0)
return ret;

if (val & 0xFFFF) {
if (val & RX_FIFO_INF_USED_) {
netdev_info(dev->net, "rx fifo not empty in autosuspend\n");
return -EBUSY;
}
Expand Down
Loading

0 comments on commit 53a759c

Please sign in to comment.