This is a note to let you know that I've just added the patch titled Subject: [PATCH 1/6] usbcore: store each usb_device's level in the tree
to my gregkh-2.6 tree. Its filename is usbcore-store-each-usb_device-s-level-in-the-tree.patch This tree can be found at http://www.kernel.org/pub/linux/kernel/people/gregkh/gregkh-2.6/patches/ >From [EMAIL PROTECTED] Wed Aug 30 12:46:53 2006 Date: Wed, 30 Aug 2006 15:46:48 -0400 (EDT) From: Alan Stern <[EMAIL PROTECTED]> To: Greg KH <[EMAIL PROTECTED]> cc: USB development list <linux-usb-devel@lists.sourceforge.net> Subject: [PATCH 1/6] usbcore: store each usb_device's level in the tree Message-ID: <[EMAIL PROTECTED]> This patch (as778) adds a field to struct usb_device to store the device's level in the USB tree. In itself this number isn't really important. But the overhead is very low, and in a later patch it will be used for preventing bogus warnings from the lockdep checker. Signed-off-by: Alan Stern <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- drivers/usb/core/hub.c | 1 + include/linux/usb.h | 1 + 2 files changed, 2 insertions(+) --- gregkh-2.6.orig/drivers/usb/core/hub.c +++ gregkh-2.6/drivers/usb/core/hub.c @@ -2449,6 +2449,7 @@ static void hub_port_connect_change(stru usb_set_device_state(udev, USB_STATE_POWERED); udev->speed = USB_SPEED_UNKNOWN; udev->bus_mA = hub->mA_per_port; + udev->level = hdev->level + 1; /* set the address */ choose_address(udev); --- gregkh-2.6.orig/include/linux/usb.h +++ gregkh-2.6/include/linux/usb.h @@ -349,6 +349,7 @@ struct usb_device { unsigned short bus_mA; /* Current available from the bus */ u8 portnum; /* Parent port number (origin 1) */ + u8 level; /* Number of USB hub ancestors */ int have_langid; /* whether string_langid is valid */ int string_langid; /* language ID for strings */ Patches currently in gregkh-2.6 which might be from [EMAIL PROTECTED] are usb/usbcore-add-usb_device_driver-definition.patch usb/usbcore-track-whether-interfaces-are-suspended.patch usb/usbcore-add-configuration_string-to-attribute-group.patch usb/usbcore-rename-usb_suspend_device-to-usb_port_suspend.patch usb/usbcore-move-code-among-source-files.patch usb/usb-pl2303-remove-80-columns-limit-violations-in-pl2303-driver.patch usb/usb-usbtouchscreen-version-0.4.patch usb/usbcore-khubd-and-busy-port-handling.patch usb/usbcore-make-hcd_endpoint_disable-wait-for-queue-to-drain.patch usb/usb-skeleton-don-t-submit-urbs-after-disconnection.patch usb/usbcore-fix-up-device-and-power-state-tests.patch usb/usbcore-make-usb_generic-a-usb_device_driver.patch usb/usbcore-resume-device-resume-recursion.patch usb/usbcore-set-device-and-power-states-properly.patch usb/usbcore-split-suspend-resume-for-device-and-interfaces.patch usb/usbcore-suspending-devices-with-no-driver.patch usb/usbfs-detect-device-unregistration.patch usb/usbfs-private-mutex-for-open-release-and-remove.patch usb/hub-driver-improve-use-of-ifdef.patch usb/usb-properly-unregister-reboot-notifier-in-case-of-failure-in-ehci-hcd.patch usb/wusb-hub-recognizes-wusb-ports.patch usb/uhci-increase-resume-detect-off-delay.patch usb/wusb-handle-wusb-device-ep0-speed-settings.patch usb/wusb-pretty-print-new-devices.patch usb/usb-deal-with-broken-config-descriptors.patch usb/usb-hub-driver-perform-autosuspend.patch usb/usb-storage-fix-for-ufi-lun-detection.patch usb/usb-remove-struct-usb_operations.patch usb/usb-usb-hub-driver-improve-use-of-ifdef-fix.patch usb/usbcore-help-drivers-to-change-device-configs.patch usb/usb-replace-kernel_thread-with-kthread_run-in-libusual.c.patch usb/usbcore-add-autosuspend-autoresume-infrastructure.patch usb/usbcore-add-flag-for-whether-a-host-controller-uses-dma.patch usb/usbcore-non-hub-specific-uses-of-autosuspend.patch usb/usbcore-remove-usb_suspend_root_hub.patch usb/usbcore-store-each-usb_device-s-level-in-the-tree.patch usb/usbcore-trim-down-usb_bus-structure.patch usb/usbmon-don-t-call-mon_dmapeek-if-dma-isn-t-being-used.patch usb/ehci-hcd-fix-root-hub-wakeup-support.patch ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel