On Wednesday, May 07, 2014 10:37:24 PM Dan Williams wrote:
> Unconditionally wake up the child device when the power session is
> recovered.

[cut]

> +                             /*
> +                              * Revalidate the device if it was requested by
> +                              * usb_port_runtime_resume.
> +                              */
> +                             if (test_and_clear_bit(i, hub->wakeup_bits) && 
> udev) {
> +                                     pm_runtime_get_noresume(&udev->dev);
> +                                     pm_runtime_barrier(&udev->dev);
> +                                     pm_runtime_put_autosuspend(&udev->dev);

It looks like you could just call pm_runtime_idle(&udev->dev) after the barrier
without the _get and _put around it.  Wouldn't that work?


-- 
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to