diff options
author | Steve Glendinning <steve.glendinning@shawell.net> | 2012-09-28 02:07:11 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-09-29 00:34:58 +0200 |
commit | b5a044758672b6dc775fdab007337b47a54576f4 (patch) | |
tree | 3bab50b861a6881f1c63128d7c4d35de31ad8eae /drivers/net/usb/smsc95xx.h | |
parent | smsc95xx: fix resume when usb device is reset (diff) | |
download | linux-b5a044758672b6dc775fdab007337b47a54576f4.tar.xz linux-b5a044758672b6dc775fdab007337b47a54576f4.zip |
smsc95xx: enable power saving mode during system suspend
This patch enables the device to enter its lowest power SUSPEND2
state during system suspend, instead of staying up using full power.
Patch updated to not add two pointers to .suspend & .resume.
Patch updated to replace BUG_ON with WARN_ON_ONCE and return.
Signed-off-by: Steve Glendinning <steve.glendinning@shawell.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/usb/smsc95xx.h')
-rw-r--r-- | drivers/net/usb/smsc95xx.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/net/usb/smsc95xx.h b/drivers/net/usb/smsc95xx.h index a275b626ec69..89ad9259d613 100644 --- a/drivers/net/usb/smsc95xx.h +++ b/drivers/net/usb/smsc95xx.h @@ -84,12 +84,16 @@ #define HW_CFG_BCE_ (0x00000002) #define HW_CFG_SRST_ (0x00000001) +#define RX_FIFO_INF (0x18) + #define PM_CTRL (0x20) +#define PM_CTL_RES_CLR_WKP_STS (0x00000200) #define PM_CTL_DEV_RDY_ (0x00000080) #define PM_CTL_SUS_MODE_ (0x00000060) #define PM_CTL_SUS_MODE_0 (0x00000000) #define PM_CTL_SUS_MODE_1 (0x00000020) -#define PM_CTL_SUS_MODE_2 (0x00000060) +#define PM_CTL_SUS_MODE_2 (0x00000040) +#define PM_CTL_SUS_MODE_3 (0x00000060) #define PM_CTL_PHY_RST_ (0x00000010) #define PM_CTL_WOL_EN_ (0x00000008) #define PM_CTL_ED_EN_ (0x00000004) |