diff options
| author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-05-12 15:14:19 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-05-12 15:14:19 -0400 |
| commit | 0d38eddab9ce6de3a9d6d583043dfa97b6bc0d3b (patch) | |
| tree | 59f1f4d3712ce3658f7540704d64c8d8ad6d4635 /drivers/usb/misc/emi26.c | |
| parent | 1a2acc9e9214699a99389e323e6686e9e0e2ca67 (diff) | |
| parent | df3fccb14ad02c5fabe095a104a0323c223f2833 (diff) | |
Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/usb-2.6
* master.kernel.org:/pub/scm/linux/kernel/git/gregkh/usb-2.6:
[PATCH] USB: fix omninet driver bug
[PATCH] USB: add ark3116 usb to serial driver
[PATCH] usbserial: Fixes leak in serial_open() error path.
[PATCH] usbserial: Fixes use-after-free in serial_open().
[PATCH] USB: Emagic USB firmware loading fixes
[PATCH] USB: add an IBM USB keyboard to the HID_QUIRK_NOGET blacklist
[PATCH] USB: Add Sieraa Wireless 580 evdo card to airprime.c
[PATCH] USB: ftdi_sio: add device id for ACT Solutions HomePro ZWave interface
[PATCH] USB: ftdi_sio: Add support for HCG HF Dual ISO RFID Reader
[PATCH] USB: ub oops in block_uevent
[PATCH] USB: usbcore: don't check the device's power source
[PATCH] USB: fix OHCI PM regression
[PATCH] USB: pegasus fixes (logstorm, suspend)
[PATCH] USBATM: fix modinfo output
[PATCH] USBATM: change the default speedtouch iso altsetting
[PATCH] USB: fix bug in ohci-hcd.c ohci_restart()
Diffstat (limited to 'drivers/usb/misc/emi26.c')
| -rw-r--r-- | drivers/usb/misc/emi26.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/usb/misc/emi26.c b/drivers/usb/misc/emi26.c index 3824df33094e..1fd9cb85f4ca 100644 --- a/drivers/usb/misc/emi26.c +++ b/drivers/usb/misc/emi26.c | |||
| @@ -15,6 +15,7 @@ | |||
| 15 | #include <linux/module.h> | 15 | #include <linux/module.h> |
| 16 | #include <linux/init.h> | 16 | #include <linux/init.h> |
| 17 | #include <linux/usb.h> | 17 | #include <linux/usb.h> |
| 18 | #include <linux/delay.h> | ||
| 18 | 19 | ||
| 19 | #define MAX_INTEL_HEX_RECORD_LENGTH 16 | 20 | #define MAX_INTEL_HEX_RECORD_LENGTH 16 |
| 20 | typedef struct _INTEL_HEX_RECORD | 21 | typedef struct _INTEL_HEX_RECORD |
| @@ -114,6 +115,7 @@ static int emi26_load_firmware (struct usb_device *dev) | |||
| 114 | 115 | ||
| 115 | /* De-assert reset (let the CPU run) */ | 116 | /* De-assert reset (let the CPU run) */ |
| 116 | err = emi26_set_reset(dev,0); | 117 | err = emi26_set_reset(dev,0); |
| 118 | msleep(250); /* let device settle */ | ||
| 117 | 119 | ||
| 118 | /* 2. We upload the FPGA firmware into the EMI | 120 | /* 2. We upload the FPGA firmware into the EMI |
| 119 | * Note: collect up to 1023 (yes!) bytes and send them with | 121 | * Note: collect up to 1023 (yes!) bytes and send them with |
| @@ -150,6 +152,7 @@ static int emi26_load_firmware (struct usb_device *dev) | |||
| 150 | goto wraperr; | 152 | goto wraperr; |
| 151 | } | 153 | } |
| 152 | } | 154 | } |
| 155 | msleep(250); /* let device settle */ | ||
| 153 | 156 | ||
| 154 | /* De-assert reset (let the CPU run) */ | 157 | /* De-assert reset (let the CPU run) */ |
| 155 | err = emi26_set_reset(dev,0); | 158 | err = emi26_set_reset(dev,0); |
| @@ -192,6 +195,7 @@ static int emi26_load_firmware (struct usb_device *dev) | |||
| 192 | err("%s - error loading firmware: error = %d", __FUNCTION__, err); | 195 | err("%s - error loading firmware: error = %d", __FUNCTION__, err); |
| 193 | goto wraperr; | 196 | goto wraperr; |
| 194 | } | 197 | } |
| 198 | msleep(250); /* let device settle */ | ||
| 195 | 199 | ||
| 196 | /* return 1 to fail the driver inialization | 200 | /* return 1 to fail the driver inialization |
| 197 | * and give real driver change to load */ | 201 | * and give real driver change to load */ |
