diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2011-01-19 03:30:47 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2011-01-19 03:30:47 +0000 |
commit | 77075be27902a097be2ec2513bf913607df40997 (patch) | |
tree | 0845bf0a430e646250659f533aa83e9f491cc6a9 /firmware/target | |
parent | 30918b8d52bd1e45921f0eedd6ffeb09d0aabf69 (diff) |
Reset USB devices before turning them off or else presumably the PHY is still enabled after disconnect. After one actual connect, Windows would claim the device malfunctioned when inserting the cable for Screendump. If no connection was made before Screendump, then this wouldn't happen.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29087 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target')
-rw-r--r-- | firmware/target/arm/usb-fw-pp502x.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/target/arm/usb-fw-pp502x.c b/firmware/target/arm/usb-fw-pp502x.c index 536535e059..e8711a6c26 100644 --- a/firmware/target/arm/usb-fw-pp502x.c +++ b/firmware/target/arm/usb-fw-pp502x.c @@ -188,6 +188,8 @@ void usb_enable(bool on) usb_core_exit(); #ifndef BOOTLOADER /* Disable USB devices */ + DEV_RS |= (DEV_USB0 | DEV_USB1); + DEV_RS &= ~(DEV_USB0 | DEV_USB1); DEV_EN &=~ DEV_USB0; DEV_EN &=~ DEV_USB1; DEV_INIT2 &=~ INIT_USB; |