forked from len0rd/rockbox
Hopefully make some progress against FS#9831. iPod Video seems fine now under XP at least. Move false reset detection to the USB target code. Gigabeat S works using the OTG module upon bus reset. Portal Player targets verify that the USB pin detect is ok upon bus reset.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19874 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
077ce00fdd
commit
bf1cddf3e8
3 changed files with 14 additions and 9 deletions
|
|
@ -509,10 +509,7 @@ void usb_drv_int(void)
|
|||
if (UNLIKELY(usbintr == USBINTR_RESET_EN)) {
|
||||
/* USB detected - detach and inform */
|
||||
usb_drv_stop();
|
||||
/* A false reset may occur upon unplugging, be sure VBUS is above
|
||||
* the 4V4 threshold. */
|
||||
if (usb_drv_powered())
|
||||
usb_drv_usb_detect_event();
|
||||
usb_drv_usb_detect_event();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue