]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
fix bug: when no USB device is plugged into the port of EZKIT-BF548, USB OTG host...
authorBryan Wu <bryan.wu@analog.com>
Fri, 30 Nov 2007 10:11:16 +0000 (18:11 +0800)
committerTony Lindgren <tony@atomide.com>
Wed, 5 Dec 2007 23:14:00 +0000 (15:14 -0800)
commitac3f2360e41ad5d2a3da2e272709b4fe76e2e417
tree6f9d4fb801110aaacc689ac8134ad34feea34dec
parent789574be07201d0cb33f2793b44eccbc4459dc5d
fix bug: when no USB device is plugged into the port of EZKIT-BF548, USB OTG host mode got BUG()

Move IRQ workqueue init before request_irq, otherwise host SUSPEND irq
will call schedule_work() and BUG_ON() will fire because musb_irq_work did
not initialised.

We recorded it at
https://blackfin.uclinux.org/gf/project/uclinux-dist/tracker/?action=TrackerItemEdit&tracker_id=141&tracker_item_id=3740

Although the Blackfin port of MUSB is not merged, this bug should be
common for other platform with MUSB

Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Acked-by: Gadiyar, Anand <gadiyar@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/usb/musb/musb_core.c