]> git.karo-electronics.de Git - mv-sheeva.git/commit
usb: gadget: mv_udc: fix kernel panic on some platforms
authorNeil Zhang <zhangwm@marvell.com>
Wed, 12 Oct 2011 08:49:26 +0000 (16:49 +0800)
committerFelipe Balbi <balbi@ti.com>
Thu, 13 Oct 2011 17:41:57 +0000 (20:41 +0300)
commit4540a9ab319f1a55ded5f635da66da60d3c93e69
tree35aa060b0900c1fcf72fba5b0f213aef076774d5
parent5d0b8d0f3af46c5364bc36f814cf2c407012dd1b
usb: gadget: mv_udc: fix kernel panic on some platforms

Some platforms will use usb to download images, the controller may not
be stopped correctly when start kernel. In some cases, it may have some
pending interrupts, and they will be triggered immediately when we finish
requesting irq in function probe. But we haven't finished the device
initialization at this time. So let's stop udc here to avoid this case
occurred.

Signed-off-by: Neil Zhang <zhangwm@marvell.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/mv_udc_core.c