diff options
author | Oliver Neukum <oliver@neukum.org> | 2012-10-11 04:50:10 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-10-11 21:19:21 +0200 |
commit | 5d9d01a30204c99edf99189018953ee84c5f5017 (patch) | |
tree | 3bb2f17fca9de90c003dd1ab37a017299414733d /drivers/net/usb/cdc_eem.c | |
parent | Add CDC-ACM support for the CX93010-2x UCMxx USB Modem (diff) | |
download | linux-5d9d01a30204c99edf99189018953ee84c5f5017.tar.xz linux-5d9d01a30204c99edf99189018953ee84c5f5017.zip |
usbnet: Support devices reporting idleness
Some device types support a form of power management in which
the device suggests to the host that the device may be suspended
now. Support for that is best located in usbnet.
Signed-off-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/usb/cdc_eem.c')
-rw-r--r-- | drivers/net/usb/cdc_eem.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/usb/cdc_eem.c b/drivers/net/usb/cdc_eem.c index 434d5af8e6fb..c81e278629ff 100644 --- a/drivers/net/usb/cdc_eem.c +++ b/drivers/net/usb/cdc_eem.c @@ -244,8 +244,12 @@ static int eem_rx_fixup(struct usbnet *dev, struct sk_buff *skb) * - suspend: peripheral ready to suspend * - response: suggest N millisec polling * - response complete: suggest N sec polling + * + * Suspend is reported and maybe heeded. */ case 2: /* Suspend hint */ + usbnet_device_suggests_idle(dev); + continue; case 3: /* Response hint */ case 4: /* Response complete hint */ continue; |