Re: [PATCH 1/2] USB / Hub: Do not call device_set_wakeup_capable()under spinlock

From: Minchan Kim
Date: Mon Feb 07 2011 - 05:10:25 EST


On Mon, Feb 7, 2011 at 5:07 AM, Rafael J. Wysocki <rjw@xxxxxxx> wrote:
> From: Rafael J. Wysocki <rjw@xxxxxxx>
>
> A subsequent patch will modify device_set_wakeup_capable() in such
> a way that it will call functions which may sleep and therefore it
> shouldn't be called under spinlocks. ÂIn preparation for that, modify
> usb_set_device_state() to avoid calling device_set_wakeup_capable()
> under device_state_lock.
>
> Signed-off-by: Rafael J. Wysocki <rjw@xxxxxxx>
> Acked-by: Greg Kroah-Hartman <gregkh@xxxxxxx>

Reported-by: Minchan Kim <minchan.kim@xxxxxxxxx>
Tested-by: Minchan Kim <minchan.kim@xxxxxxxxx>

--
Kind regards,
Minchan Kim
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/