Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 219875
b: refs/heads/master
c: a871869
h: refs/heads/master
i:
  219873: 8e5bad5
  219871: c3d369b
v: v3
  • Loading branch information
Al Cho authored and Greg Kroah-Hartman committed Sep 16, 2010
1 parent f1ebad2 commit 1973cfe
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b411f12174af8ccea513bd1cc2ea9f80875fb648
refs/heads/master: a871869245d79ab8d8ee465139144c7cb89e1854
23 changes: 11 additions & 12 deletions trunk/drivers/staging/keucr/usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ MODULE_AUTHOR("Domao");
MODULE_DESCRIPTION("ENE USB Mass Storage driver for Linux");
MODULE_LICENSE("GPL");

static unsigned int delay_use = 1;

static struct usb_device_id eucr_usb_ids [] = {
{ USB_DEVICE(0x058f, 0x6366) },
{ USB_DEVICE(0x0cf2, 0x6230) },
Expand Down Expand Up @@ -181,11 +183,10 @@ static int usb_stor_control_thread(void * __us)
mutex_lock(&(us->dev_mutex));

/* if the device has disconnected, we are free to exit */
/* if (test_bit(US_FLIDX_DISCONNECTING, &us->flags))
{
if (test_bit(US_FLIDX_DISCONNECTING, &us->dflags)) {
mutex_unlock(&us->dev_mutex);
break;
}*/
}

/* lock access to the state */
scsi_lock(host);
Expand Down Expand Up @@ -551,15 +552,13 @@ static int usb_stor_scan_thread(void * __us)
printk("usb --- usb_stor_scan_thread\n");
printk("EUCR : device found at %d\n", us->pusb_dev->devnum);

// Have we to add this code ?
// set_freezable();
// /* Wait for the timeout to expire or for a disconnect */
// if (delay_use > 0)
// {
// wait_event_freezable_timeout(us->delay_wait,
// test_bit(US_FLIDX_DONT_SCAN, &us->dflags),
// delay_use * HZ);
// }
set_freezable();
/* Wait for the timeout to expire or for a disconnect */
if (delay_use > 0) {
wait_event_freezable_timeout(us->delay_wait,
test_bit(US_FLIDX_DONT_SCAN, &us->dflags),
delay_use * HZ);
}

/* If the device is still connected, perform the scanning */
if (!test_bit(US_FLIDX_DONT_SCAN, &us->dflags))
Expand Down

0 comments on commit 1973cfe

Please sign in to comment.