]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
USB: gadget: pxa25x_udc vbus sense initialization
authorDavid Brownell <dbrownell@users.sourceforge.net>
Mon, 24 Nov 2008 19:43:30 +0000 (11:43 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 7 Jan 2009 18:00:02 +0000 (10:00 -0800)
commitb40fc2a2563b03a7b925cd16d1657aa2c24fd9c0
tree27494169c2b22d457fc5bc359fd8108d40440173
parentc48a5155252fd9cba7bedc59e5f8a339a3454d58
USB: gadget: pxa25x_udc vbus sense initialization

Some code in the pxa25x_udc driver wrongly expects the value
of is_vbus_present() to be 0/1, not zero/nonzero ... cope.
Issue noted by Jaya Kumar <jayakumar.lkml@gmail.com>

This bug has been around since July 2007, and has a simple
workaround:  unplug the Linux gadget, then re-plug it.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Cc: Jaya Kumar <jayakumar.lkml@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/pxa25x_udc.c