[Resend PATCH V4 0/4] usb: expose DeviceRemovable to user space via sysfs attribute

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Change since v1:
	[PATCH 3] Rename link file's name "child" to "device", add check of return value of
sysfs_create_link() and handle error return value properly.

Change since v2:
       [PATCH 1] fix a logic backward problem. Add changelog about change ehci root hub descriptors based on ACPI information.  
       [PATCH 2] Add changelog about using ACPI inforatmion to set hub DeviceRemovable rather than xhci PORTSC.

Change since v3
       [PATCH 3] Add check of udev->parent before define "struct usb_port *port_dev" since if udev->parent is NULL, it would crash.

This patchset is to set DeviceRemovable according ACPI information
and create a new attribute "connect_type" under port device to expose
port connect type to user space. Patch3 create two link files under
port device and its child device to show their relationship under sysfs.

Following patchset is based on the commit f7b1b18 "USB: EHCI: fix build
error in ChipIdea host driver"

USB: Set usb port's DeviceRemovable according acpi information in EHCI
usb/xhci: set root hub's DeviceRemovable according to usb port connect type
usb: Create link files between child device and usb port device.
usb: Add "portX/connect_type" attribute to expose usb port's connect type

 Documentation/ABI/testing/sysfs-bus-usb |    9 +++++++++
 drivers/usb/core/hub.c                  |   83 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 drivers/usb/core/usb.h                  |    4 ----
 drivers/usb/host/ehci-hub.c             |    9 +++++++++
 drivers/usb/host/xhci-hub.c             |   19 +++++++++++++++++--
 include/linux/usb.h                     |    4 ++++
 6 files changed, 122 insertions(+), 6 deletions(-)
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux