Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 174887
b: refs/heads/master
c: 9eb66f7
h: refs/heads/master
i:
  174885: 4ea924f
  174883: 38d77e2
  174879: c56519a
v: v3
  • Loading branch information
Matthew Wilcox authored and Greg Kroah-Hartman committed Dec 11, 2009
1 parent 6eb0060 commit 7f13593
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 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: 00fa43ef09c6bb357d58c14a99181cce09c315c6
refs/heads/master: 9eb66f71318df6ab73bad2fb924a36777cf0220e
13 changes: 8 additions & 5 deletions trunk/drivers/usb/storage/usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@
* 675 Mass Ave, Cambridge, MA 02139, USA.
*/

#ifdef CONFIG_USB_STORAGE_DEBUG
#define DEBUG
#endif

#include <linux/sched.h>
#include <linux/errno.h>
#include <linux/freezer.h>
Expand Down Expand Up @@ -808,14 +812,13 @@ static int usb_stor_scan_thread(void * __us)
{
struct us_data *us = (struct us_data *)__us;

printk(KERN_DEBUG
"usb-storage: device found at %d\n", us->pusb_dev->devnum);
dev_dbg(&us->pusb_intf->dev, "device found\n");

set_freezable();
/* Wait for the timeout to expire or for a disconnect */
if (delay_use > 0) {
printk(KERN_DEBUG "usb-storage: waiting for device "
"to settle before scanning\n");
dev_dbg(&us->pusb_intf->dev, "waiting for device to settle "
"before scanning\n");
wait_event_freezable_timeout(us->delay_wait,
test_bit(US_FLIDX_DONT_SCAN, &us->dflags),
delay_use * HZ);
Expand All @@ -832,7 +835,7 @@ static int usb_stor_scan_thread(void * __us)
mutex_unlock(&us->dev_mutex);
}
scsi_scan_host(us_to_host(us));
printk(KERN_DEBUG "usb-storage: device scan complete\n");
dev_dbg(&us->pusb_intf->dev, "scan complete\n");

/* Should we unbind if no devices were detected? */
}
Expand Down

0 comments on commit 7f13593

Please sign in to comment.