Re: [PATCH v2 6/9] usb: add runtime pm support for usb port device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 5 Jan 2013, Lan Tianyu wrote:

> > usb_port_runtime_resume can be called while the hub is suspended,
> > right?  So it needs to call usb_autopm_get_interface and
> > usb_autopm_put_interface.
> Current, I don't call pm_suspend_ignore_children(&intf->dev, true) in
> the hub_probe(). So the hub will not be suspended before port being
> suspended. This seems not right. I think I should add
> pm_suspend_ignore_children(&intf->dev, true) and call
> usb_autopm_get/put_interface() in the port's runtime callback.

Yes, that's right.

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux