path: root/firmware/target/arm/as3525
diff options
authorRafaël Carré <>2010-08-17 16:43:43 +0000
committerRafaël Carré <>2010-08-17 16:43:43 +0000
commit322fdaa31638dfb977c01591c7ba043adff685f6 (patch)
tree73e385f34f41e7a70d7defc558440e5a5a1b5e9d /firmware/target/arm/as3525
parent8799af3d738d80092f89f4f3a12a730dc57ce8c0 (diff)
AMSv2: don't reboot on USB plug
Users will have to reboot to OF manually or to power off, and then plug USB No message is displayed because usb_detect() is run from a tick This lacks documentation but should be OK for Unstable devices, and will hopefully prevent clueless users from opening their devices and breaking them definitely, instead of waiting for the battery to power off. git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/as3525')
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/target/arm/as3525/usb-as3525.c b/firmware/target/arm/as3525/usb-as3525.c
index 524d8d2c7d..61ceb744a1 100644
--- a/firmware/target/arm/as3525/usb-as3525.c
+++ b/firmware/target/arm/as3525/usb-as3525.c
@@ -55,5 +55,11 @@ void usb_remove_int(void)
int usb_detect(void)
+#if CONFIG_CPU == AS3525v2
+ /* Rebooting on USB plug can crash these players in a state where
+ * hardware power off (pressing the power button) doesn't work anymore
+ * TODO: Implement USB in rockbox for these players */
return usb_status;