Thread (2 messages) flat view 2 messages, 2 authors, 2012-12-14

Re: [PATCHv2][RFC] smsc95xx: enable dynamic autosuspend

From: Steve Glendinning <hidden>
Date: 2012-12-14 13:35:06

On 11 December 2012 16:13, Ming Lei [off-list ref] wrote:
On Tue, Dec 11, 2012 at 11:26 PM, Steve Glendinning
[off-list ref] wrote:
quoted
+
+       if (on)
+               usb_autopm_get_interface_no_resume(dev->intf);
+       else
+               usb_autopm_put_interface_no_suspend(dev->intf);
The above line should be

          usb_autopm_put_interface(dev->intf);
Thanks Ming, I've updated this.
IMO, it is better to keep smsc95xx_info.manage_power as NULL
for devices without FEATURE_AUTOSUSPEND, so that fewer code
and follow the current .mange_power usage(see its comment).

Currently, if the function pointer of manage_power is set, it means that
the device supports USB autosuspend, but your trick will make the
assumption not true for some smsc devices.
Oliver?


--
Steve Glendinning
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help