summaryrefslogtreecommitdiff
path: root/firmware/target/arm/imx31
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2009-01-29 01:28:34 +0000
committerMichael Sevakis <jethead71@rockbox.org>2009-01-29 01:28:34 +0000
commitbf1cddf3e890944e0108913b4271e403c094375c (patch)
tree8863c0a8ea2ccd187a922ade3170389db6d0ebc0 /firmware/target/arm/imx31
parent077ce00fdda0cec473973e5d63696cd634e3a21d (diff)
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
Diffstat (limited to 'firmware/target/arm/imx31')
-rw-r--r--firmware/target/arm/imx31/gigabeat-s/usb-imx31.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/target/arm/imx31/gigabeat-s/usb-imx31.c b/firmware/target/arm/imx31/gigabeat-s/usb-imx31.c
index 99f3e072eb..8682cff7c7 100644
--- a/firmware/target/arm/imx31/gigabeat-s/usb-imx31.c
+++ b/firmware/target/arm/imx31/gigabeat-s/usb-imx31.c
@@ -125,5 +125,6 @@ void usb_drv_int_enable(bool enable)
/* Called during the bus reset interrupt when in detect mode */
void usb_drv_usb_detect_event(void)
{
- usb_status_event(USB_INSERTED);
+ if (usb_drv_powered())
+ usb_status_event(USB_INSERTED);
}