Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 127235
b: refs/heads/master
c: 6cd1320
h: refs/heads/master
i:
  127233: 7e95301
  127231: 9a423d9
v: v3
  • Loading branch information
Alan Stern authored and Greg Kroah-Hartman committed Jan 7, 2009
1 parent a1be207 commit 7f375b2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 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: f150fa1afbf69a87f54752579ff2bb769aad88b3
refs/heads/master: 6cd132015d92356b1287f6f3377a3ad955b6cf2f
13 changes: 7 additions & 6 deletions trunk/drivers/usb/core/hub.c
Original file line number Diff line number Diff line change
Expand Up @@ -1636,6 +1636,10 @@ int usb_new_device(struct usb_device *udev)
{
int err;

/* Increment the parent's count of unsuspended children */
if (udev->parent)
usb_autoresume_device(udev->parent);

usb_detect_quirks(udev); /* Determine quirks */
err = usb_configure_device(udev); /* detect & probe dev/intfs */
if (err < 0)
Expand All @@ -1644,9 +1648,8 @@ int usb_new_device(struct usb_device *udev)
udev->dev.devt = MKDEV(USB_DEVICE_MAJOR,
(((udev->bus->busnum-1) * 128) + (udev->devnum-1)));

/* Increment the parent's count of unsuspended children */
if (udev->parent)
usb_autoresume_device(udev->parent);
/* Tell the world! */
announce_device(udev);

/* Register the device. The device driver is responsible
* for adding the device files to sysfs and for configuring
Expand All @@ -1660,13 +1663,11 @@ int usb_new_device(struct usb_device *udev)

/* put device-specific files into sysfs */
usb_create_sysfs_dev_files(udev);

/* Tell the world! */
announce_device(udev);
return err;

fail:
usb_set_device_state(udev, USB_STATE_NOTATTACHED);
usb_stop_pm(udev);
return err;
}

Expand Down

0 comments on commit 7f375b2

Please sign in to comment.