]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
usb: gadget: at91_udc: move prepare clk into process context
authorRonald Wahl <ronald.wahl@raritan.com>
Wed, 19 Nov 2014 15:37:27 +0000 (16:37 +0100)
committerJiri Slaby <jslaby@suse.cz>
Tue, 6 Jan 2015 14:12:33 +0000 (15:12 +0100)
commitf9a0da24705a166ea76c1a74cf3c4a77d22d8cc5
tree58f7b0c9458289527ceb01d511d745dc38c9b343
parenta611d4e3b0f5aace35a0c2577548f0e46d46910e
usb: gadget: at91_udc: move prepare clk into process context

commit b2ba27a5c56ff7204d8a8684893d64d4afe2cee5 upstream.

Commit 7628083227b6bc4a7e33d7c381d7a4e558424b6b (usb: gadget: at91_udc:
prepare clk before calling enable) added clock preparation in interrupt
context. This is not allowed as it might sleep. Also setting the clock
rate is unsafe to call from there for the same reason. Move clock
preparation and setting clock rate into process context (at91udc_probe).

Signed-off-by: Ronald Wahl <ronald.wahl@raritan.com>
Acked-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: Felipe Balbi <balbi@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/usb/gadget/at91_udc.c