]> bbs.cooldavid.org Git - net-next-2.6.git/commit
USB: musb: blackfin: pm: make it work
authorBob Liu <lliubbo@gmail.com>
Sun, 24 Oct 2010 16:10:14 +0000 (11:10 -0500)
committerFelipe Balbi <balbi@ti.com>
Fri, 5 Nov 2010 12:10:57 +0000 (14:10 +0200)
commit1e393c6eece048052d4131ec4dad3b98e35a98e2
tree4025b0bea317aee755a4f858b4fbed83030df48b
parent32d5dc9520f0c6f60f691dd478741c774e292406
USB: musb: blackfin: pm: make it work

Split the USB MMR init steps out into a helper func that both the platform
init and the resume code may call.

Then while suspending, the gpio_vrsel will change from high to low which
will generate a wakeup event and resume the system immediately, so we need
to manually drive it low before we sleep.

Signed-off-by: Bob Liu <lliubbo@gmail.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/blackfin.c
drivers/usb/musb/musb_core.h