Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 26670
b: refs/heads/master
c: 16c23f7
h: refs/heads/master
v: v3
  • Loading branch information
Monty authored and Greg Kroah-Hartman committed May 12, 2006
1 parent 8633eda commit 6f6f57c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 332bbf613868a5d5938ad9fb7436b2beae72d53d
refs/heads/master: 16c23f7d88cbcce491f9370b2846fad66e8ef319
4 changes: 4 additions & 0 deletions trunk/drivers/usb/misc/emi26.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include <linux/module.h>
#include <linux/init.h>
#include <linux/usb.h>
#include <linux/delay.h>

#define MAX_INTEL_HEX_RECORD_LENGTH 16
typedef struct _INTEL_HEX_RECORD
Expand Down Expand Up @@ -114,6 +115,7 @@ static int emi26_load_firmware (struct usb_device *dev)

/* De-assert reset (let the CPU run) */
err = emi26_set_reset(dev,0);
msleep(250); /* let device settle */

/* 2. We upload the FPGA firmware into the EMI
* Note: collect up to 1023 (yes!) bytes and send them with
Expand Down Expand Up @@ -150,6 +152,7 @@ static int emi26_load_firmware (struct usb_device *dev)
goto wraperr;
}
}
msleep(250); /* let device settle */

/* De-assert reset (let the CPU run) */
err = emi26_set_reset(dev,0);
Expand Down Expand Up @@ -192,6 +195,7 @@ static int emi26_load_firmware (struct usb_device *dev)
err("%s - error loading firmware: error = %d", __FUNCTION__, err);
goto wraperr;
}
msleep(250); /* let device settle */

/* return 1 to fail the driver inialization
* and give real driver change to load */
Expand Down
4 changes: 4 additions & 0 deletions trunk/drivers/usb/misc/emi62.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include <linux/init.h>
#include <linux/module.h>
#include <linux/usb.h>
#include <linux/delay.h>

#define MAX_INTEL_HEX_RECORD_LENGTH 16
typedef struct _INTEL_HEX_RECORD
Expand Down Expand Up @@ -123,6 +124,7 @@ static int emi62_load_firmware (struct usb_device *dev)

/* De-assert reset (let the CPU run) */
err = emi62_set_reset(dev,0);
msleep(250); /* let device settle */

/* 2. We upload the FPGA firmware into the EMI
* Note: collect up to 1023 (yes!) bytes and send them with
Expand Down Expand Up @@ -166,6 +168,7 @@ static int emi62_load_firmware (struct usb_device *dev)
err("%s - error loading firmware: error = %d", __FUNCTION__, err);
goto wraperr;
}
msleep(250); /* let device settle */

/* 4. We put the part of the firmware that lies in the external RAM into the EZ-USB */

Expand Down Expand Up @@ -228,6 +231,7 @@ static int emi62_load_firmware (struct usb_device *dev)
err("%s - error loading firmware: error = %d", __FUNCTION__, err);
goto wraperr;
}
msleep(250); /* let device settle */

kfree(buf);

Expand Down

0 comments on commit 6f6f57c

Please sign in to comment.