Re: [PATCH v9 17/19] usb: resume (wakeup) child device when port is powered on

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

 



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 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