mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-01-22 01:30:35 -05:00
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:
parent
d3934185ac
commit
a2e4a51825
1 changed files with 1 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue