]> git.pld-linux.org Git - packages/eagle-usb.git/commitdiff
- usb wait patch for sagem.
authorserek <serek@pld-linux.org>
Wed, 2 Jun 2004 13:52:32 +0000 (13:52 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    eagle-usb-wait.patch -> 1.1

eagle-usb-wait.patch [new file with mode: 0644]

diff --git a/eagle-usb-wait.patch b/eagle-usb-wait.patch
new file mode 100644 (file)
index 0000000..6fc7af7
--- /dev/null
@@ -0,0 +1,19 @@
+--- driver/Boot.c~     2004-02-22 21:11:30.000000000 +0000
++++ driver/Boot.c      2004-06-02 08:57:53.063519192 +0000
+@@ -57,6 +57,15 @@
+ static void IDMACompletion(struct urb *urb, struct pt_regs *regs );
+ #endif
++static inline void wait_ms(unsigned int ms) {
++              if (!in_interrupt()) {
++                      set_current_state(TASK_UNINTERRUPTIBLE);
++                      schedule_timeout(1 + ms * HZ / 1000);
++              }
++              else
++                      mdelay(ms);
++}
++
+ /*********************************************************************************/
+ /* BootModem                                                                   */
+ /* Kinda like doing a ctrl-alt-delete on your PC. Reuploads (or does first     */
+
This page took 0.044865 seconds and 4 git commands to generate.