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 Thu, May 8, 2014 at 4:09 AM, Rafael J. Wysocki <rjw@xxxxxxxxxxxxx> wrote:
> 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?
>

Sure, but the surprise was that an auto suspend enabled device stops
auto suspending after a barrier.
--
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