2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-04 03:33:58 +08:00
linux-next/drivers/staging/usbip
Lan Tianyu ff823c79a5 usb: move children to struct usb_port
The usb_device structure contains an array of usb_device "children".
This array is only valid if the usb_device is a hub, so it makes no
sense to store it there.  Instead, store the usb_device child
in its parent usb_port structure.

Since usb_port is an internal USB core structure, add a new function to
get the USB device child, usb_hub_find_child().  Add a new macro,
usb_hub_get_each_child(), to iterate over all the children attached to a
particular USB hub.

Remove the printing the USB children array pointer from the usb-ip
driver, since it's really not necessary.

Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Lan Tianyu <tianyu.lan@intel.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-09-10 12:59:42 -07:00
..
userspace staging: usbip: userspace: include headers in release tarballs 2012-06-11 09:07:43 -07:00
Kconfig staging: usbip: edit Kconfig and rename CONFIG options 2011-05-12 09:17:57 -07:00
Makefile staging: usbip: edit Kconfig and rename CONFIG options 2011-05-12 09:17:57 -07:00
README staging: usbip: README: we need to document the protocol 2011-06-07 14:08:51 -07:00
stub_dev.c staging: usbip: fix the usage of kthread_stop() 2012-04-10 09:28:04 -07:00
stub_main.c staging: usbip: fix to prevent potentially using uninitialized spinlock 2012-02-08 14:14:15 -08:00
stub_rx.c staging: usbip: removed #if 0'd out code 2012-02-09 09:42:23 -08:00
stub_tx.c staging: fix usbip printk format warning 2011-07-08 13:59:55 -07:00
stub.h staging: usbip: removed unused structure field 2012-02-09 09:42:22 -08:00
usbip_common.c usb: move children to struct usb_port 2012-09-10 12:59:42 -07:00
usbip_common.h staging: usbip: fix the usage of kthread_stop() 2012-04-10 09:28:04 -07:00
usbip_event.c staging: Add export.h for THIS_MODULE/EXPORT_SYMBOL to drivers/staging users. 2011-10-31 19:32:08 -04:00
usbip_protocol.txt staging: Fix typo in multiple files 2012-04-10 10:31:01 -07:00
vhci_hcd.c staging: usbip: cleanup and fix of vhci_hub_status 2012-06-13 17:22:57 -07:00
vhci_rx.c staging: usbip: Fix typo in printed text 2012-04-10 09:47:06 -07:00
vhci_sysfs.c staging: usbip: fix the usage of kthread_stop() 2012-04-10 09:28:04 -07:00
vhci_tx.c staging: usbip: replace usbip_u{dbg,err,info} and printk with dev_ and pr_ 2011-05-19 16:57:30 -07:00
vhci.h staging: usbip: Updated comment describing VHCI_NPORTS 2012-06-11 17:06:35 -07:00

TODO:
	- more discussion about the protocol
	- testing
	- review of the userspace interface
	- document the protocol

Please send patches for this code to Greg Kroah-Hartman <greg@kroah.com>