linux-xiaomi-chiron/tools/usb/usbip/libsrc
Yuyang Du 37e47d5cfe usb: usbip tool: Fix get_nports()
The commit 0775a9cbc6 ("usbip: vhci extension: modifications
to vhci driver") introduced multiple controllers, and nports as a sys
file, and claimed to read the nports from it, but it didn't.

In addition, the get_nports() has been so wrong that even with 8 port
lines for instance, it gets 7 (I am guessing it is due to a '\n' mess).
Nevertheless, we fix it by reading the nports attribute.

Reviewed-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Signed-off-by: Yuyang Du <yuyang.du@intel.com>
Acked-by: Shuah Khan <shuahkh@osg.samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-04-08 12:17:42 +02:00
..
list.h Replace mentions of "list_struct" to "list_head" 2014-11-20 14:45:15 +01:00
Makefile.am
names.c
names.h
sysfs_utils.c
sysfs_utils.h
usbip_common.c
usbip_common.h
usbip_device_driver.c
usbip_device_driver.h
usbip_host_common.c
usbip_host_common.h
usbip_host_driver.c
usbip_host_driver.h
vhci_driver.c
vhci_driver.h