AMSv2 USB: Remove usb_enable call that occurs after core is already initialized and the usb_disable call while in ISR. Also, no point in panicing over a disconnect.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29205 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Sevakis 2011-02-04 05:46:55 +00:00
parent d3934185ac
commit a2e4a51825

View file

@ -96,7 +96,7 @@ static enum ep0state ep0_state;
void usb_attach(void)
{
logf("usb-drv: attach");
usb_enable(true);
/* Nothing to do */
}
static inline void usb_delay(void)
@ -654,9 +654,7 @@ void INT_USB(void)
if(sts & GINTMSK_disconnect)
{
panicf("usb-drv: disconnect");
cancel_all_transfers(true);
usb_enable(false);
}
GINTSTS = sts;