[PATCH v3 1/1] usbip: auto retry for concurrent attach

2017-08-28 Thread Nobuo Iwata
is much different than this patch. Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- Version information v3) Updated based on linux-next 2017-08-28. Removed unnecessary modification to store_detach(). Added description about difference from alternate solution in change log. Cor

[PATCH v2 1/1] usbip: auto retry for concurrent attach

2017-05-28 Thread Nobuo Iwata
v2) Gathered usbip_vhci_driver_close() for errors under an exit label. Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- drivers/usb/usbip/vhci_sysfs.c | 8 ++-- tools/usb/usbip/src/usbip_attach.c | 33 +- 2 files changed, 25 insertions(

[PATCH v8 2/2] usbip: vhci extension: dynamic extension

2016-12-25 Thread Nobuo Iwata
operations for userspace tool. When number of free ports becomes more than USBIP_VHCI_HC_PORTS * VHCI_FREE_HCS(2), a free controller other than the first one will be unregistered. It will be invoked by 'detach' operation and other error situations which ports are released. Signed-off-by: Nobuo

[PATCH v8 1/2] usbip: vhci extension: modifications to userspace

2016-12-25 Thread Nobuo Iwata
: ports across the controllers. Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- tools/usb/usbip/libsrc/vhci_driver.c | 396 ++- tools/usb/usbip/libsrc/vhci_driver.h | 45 +-- tools/usb/usbip/src/usbip_attach.c | 12 +- tools/usb/usbip/src/usbip_

[PATCH v8 0/2] usbip: vhci number of ports extension

2016-12-25 Thread Nobuo Iwata
and warnings. v2) # Added static to some functions and variables not called from other files. *** BLURB HERE *** Nobuo Iwata (2): usbip: vhci extension: modifications to userspace usbip: vhci extension: dynamic extension drivers/usb/usbip/Kconfig| 17 +- drivers/usb/usbip

[PATCH v14 08/10] usbip: exporting devices: change to usbip_list.c

2016-12-25 Thread Nobuo Iwata
mixed usage of 'export', 'importable' is used for devices to be attached with 'import' request. The word 'imported' has already been used in output of port operation. It is consistent to this patch. Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> Reviewed-by: Krzysztof Opasiak &

[PATCH v14 07/10] usbip: exporting devices: new application-side daemon

2016-12-25 Thread Nobuo Iwata
start daemon = = = 2) # usbip list --local 3) # usbip connect--- export a device --> = = = 4) # usbip disconnect --- un-export a device ---> Bind and unbind are done in connect and disconnect internally. Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- tool

[PATCH v14 10/10] usbip: exporting devices: modifications to protocol text

2016-12-25 Thread Nobuo Iwata
' are ambiguous in several place. To avoid confusion, 'device-side' and 'application-side' are written together with 'server' and 'client'. 'export' was used in the counter side of 'import' request. This patch organizes usage of 'import' and 'export'. Signed-off-by: Nobuo Iwata <nobuo

[PATCH v14 09/10] usbip: exporting devices: chage to documenattion

2016-12-25 Thread Nobuo Iwata
ind are done in connect and disconnect internally. Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- tools/usb/usbip/Makefile.am | 2 +- tools/usb/usbip/README | 81 - tools/usb/usbip/doc/usbip.8 | 136 --- tools/usb/usbip/

[PATCH v14 02/10] usbip: exporting devices: modifications to host side libraries

2016-12-25 Thread Nobuo Iwata
ct --- un-export a device ---> Bind and unbind are done in connect and disconnect internally. Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- tools/usb/usbip/libsrc/usbip_host_common.c | 6 ++ tools/usb/usbip/libsrc/usbip_host_common.h | 8 tools/usb

[PATCH v14 01/10] usbip: exporting devices: modifications to network header

2016-12-25 Thread Nobuo Iwata
come empty struct. Other empty struct, 'op_devlist_request', defined. This patch also includes string translation of the status codes. Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- tools/usb/usbip/src/usbip_network.c | 26 +- tools/usb/usbip/src/usbi

[PATCH v14 03/10] usbip: exporting devices: new connect operation

2016-12-25 Thread Nobuo Iwata
1) # usbipa ... start daemon = = = 2) # usbip list --local 3) # usbip connect--- export a device --> = = = 4) # usbip disconnect --- un-export a device ---> Bind and unbind are done in connect and disconnect internally. Signed-off-by: Nobuo Iwata <nobuo.iw...@

[PATCH v14 06/10] usbip: exporting devices: modifications to attach and detach

2016-12-25 Thread Nobuo Iwata
usbip list --local 3) # usbip connect--- export a device --> = = = 4) # usbip disconnect --- un-export a device ---> Bind and unbind are done in connect and disconnect internally. Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- tools/usb/usbip/libsrc/

[PATCH v14 00/10] usbip: exporting devices

2016-12-25 Thread Nobuo Iwata
atted patches from linux-next. # Fixed change log word wrapping. # Removed SSL patches. # Fixed a bug that vendor and product names are not shown by 'usbws list -l' because usbip_names_init() was not called in libusbip.la. Thank you, Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> // *** BLURB

[PATCH v14 05/10] usbip: exporting devices: modifications to daemon

2016-12-25 Thread Nobuo Iwata
side daemon procedure. There's no effect by the defferring. It is moved to right after accept() to affect it both device and application side. In the client operation, it's already in right after connect(). In send_reply_devlist(), driver->ndevs is used insted of counting list. Signed-off-by: Nobuo

[PATCH v14 04/10] usbip: exporting devices: new disconnect operation

2016-12-25 Thread Nobuo Iwata
usbip list --local 3) # usbip connect--- export a device --> = = = 4) # usbip disconnect --- un-export a device ---> Bind and unbind are done in connect and disconnect internally. Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- tools/usb/usbip/src/Makefi

[PATCH v1 1/1] usbip: auto retry for concurrent attach

2016-12-25 Thread Nobuo Iwata
Condition EINVAL same as leftspecified port numbre is in invalid range EAGAIN same as leftplatform_get_drvdata() failed EINVAL same as leftspecified socket fd is not valid EINVAL EBUSY specified port status is not free Signed-off-by: Nobuo Iwata

[PATCH v7 2/2] usbip: vhci extension: dynamic extension

2016-11-21 Thread Nobuo Iwata
for userspace tool. When number of free ports becomes more than USBIP_VHCI_HC_PORTS * VHCI_FREE_HCS(2), a free controller other than the first one will be unregistered. It will be invoked by 'detach' operation and other error situations which ports are released. Signed-off-by: Nobuo Iwata

[PATCH v7 1/2] usbip: vhci extension: modifications to userspace

2016-11-21 Thread Nobuo Iwata
: ports across the controllers. Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- tools/usb/usbip/libsrc/vhci_driver.c | 398 +++ tools/usb/usbip/libsrc/vhci_driver.h | 45 +-- tools/usb/usbip/src/usbip_attach.c | 8 +- tools/usb/usbip/src/usbip_

[PATCH v7 0/2] usbip: vhci number of ports extension

2016-11-21 Thread Nobuo Iwata
files. *** BLURB HERE *** Nobuo Iwata (2): usbip: vhci extension: modifications to userspace usbip: vhci extension: dynamic extension drivers/usb/usbip/Kconfig| 17 +- drivers/usb/usbip/vhci.h | 36 ++- drivers/usb/usbip/vhci_hcd.c | 250

[PATCH v13 07/10] usbip: exporting devices: new application-side daemon

2016-11-21 Thread Nobuo Iwata
n/VHCI | +--+ +--+ 1) usbipa ... start daemon = = = 2) usbip list --local 3) usbip connect --- export a device --> = = = 4) usbip disconnect --- un-export a device ---> Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- tools/usb/usbip/libsrc/vhci_driver.

[PATCH v13 10/10] usbip: exporting devices: modifications to protocol text

2016-11-21 Thread Nobuo Iwata
' are ambiguous in several place. To avoid confusion, 'device-side' and 'application-side' are written together with 'server' and 'client'. 'export' was used in the counter side of 'import' request. This patch organizes usage of 'import' and 'export'. Signed-off-by: Nobuo Iwata <nobuo

[PATCH v13 09/10] usbip: exporting devices: chage to documenattion

2016-11-21 Thread Nobuo Iwata
usbipa ... start daemon = = = 2) usbip list --local 3) usbip connect --- export a device --> = = = 4) usbip disconnect --- un-export a device ---> Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- tools/usb/usbip/Makefile.am | 2 +- tools/usb/usbip/

[PATCH v13 08/10] usbip: exporting devices: change to usbip_list.c

2016-11-21 Thread Nobuo Iwata
mixed usage of 'export', 'importable' is used for devices to be attached with 'import' request. The word 'imported' has already been used in output of port operation. It is consistent to this patch. Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- tools/usb/usbip/src/usbip_

[PATCH v13 06/10] usbip: exporting devices: modifications to attach and detach

2016-11-21 Thread Nobuo Iwata
daemon = = = 2) usbip list --local 3) usbip connect --- export a device --> = = = 4) usbip disconnect --- un-export a device ---> Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- tools/usb/usbip/libsrc/vhci_driver.c | 99 tool

[PATCH v13 03/10] usbip: exporting devices: new connect operation

2016-11-21 Thread Nobuo Iwata
device --> = = = 4) usbip disconnect --- un-export a device ---> Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- tools/usb/usbip/src/Makefile.am | 3 +- tools/usb/usbip/src/usbip.c | 9 +- tools/usb/usbip/src/usbip.h | 5 +- tools/usb/usbip/src/usb

[PATCH v13 04/10] usbip: exporting devices: new disconnect operation

2016-11-21 Thread Nobuo Iwata
p list --local 3) usbip connect --- export a device --> = = = 4) usbip disconnect --- un-export a device ---> Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- tools/usb/usbip/src/Makefile.am| 2 +- tools/usb/usbip/src/usbip.c| 6 + tools/usb

[PATCH v13 05/10] usbip: exporting devices: modifications to daemon

2016-11-21 Thread Nobuo Iwata
ht after accept() to affect it both device and application side. In the client operation, it's already in right after connect(). Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- tools/usb/usbip/src/Makefile.am | 2 +- tools/usb/usbip/src/usb

[PATCH v13 01/10] usbip: exporting devices: modifications to network header

2016-11-21 Thread Nobuo Iwata
Modification to export and un-export response in tools/usb/usbip/src/usbip_network.h. It just changes return code type from int to uint32_t as same as other responses. Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- tools/usb/usbip/src/usbip_network.h | 4 ++-- 1 file chan

[PATCH v13 00/10] usbip: exporting devices

2016-11-21 Thread Nobuo Iwata
shown by 'usbws list -l' because usbip_names_init() was not called in libusbip.la. Thank you, Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> // *** BLURB HERE *** Nobuo Iwata (10): usbip: exporting devices: modifications to network header usbip: exporting devices: modifications to host side libraries

[PATCH v13 02/10] usbip: exporting devices: modifications to host side libraries

2016-11-21 Thread Nobuo Iwata
n/VHCI | +--+ +--+ 1) usbipa ... start daemon = = = 2) usbip list --local 3) usbip connect --- export a device --> = = = 4) usbip disconnect --- un-export a device ---> Bind and unbind are done in connect and disconnect internally. Signed-off-by: Nobuo Iwa

[PATCH v12 6/9] usbip: exporting devices: modifications to attach and detach

2016-10-12 Thread Nobuo Iwata
Refactoring to attach and detatch operation. Common parts to new application(vhci)-side daemon are moved to libsrc/vhci_driver.c. Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- tools/usb/usbip/libsrc/vhci_driver.c | 99 tools/usb/usbip/

[PATCH v12 8/9] usbip: exporting devices: change to usbip_list.c

2016-10-12 Thread Nobuo Iwata
Correction to wording inconsistency around import and export in usbip_list.c. Please, see also cover letter about wording. Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- tools/usb/usbip/src/usbip_list.c | 22 -- 1 file changed, 12 insertions(+), 10 del

[PATCH v12 9/9] usbip: exporting devices: chage to documenattion

2016-10-12 Thread Nobuo Iwata
in different machine than before. So, to avoid confusion, words 'device side (machine)' and 'application side (machine)' are used instead of 'client' and 'server' as needed. Please, see also diagrams in the cover letter. Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- tools/usb

[PATCH v12 7/9] usbip: exporting devices: new application-side daemon

2016-10-12 Thread Nobuo Iwata
New application(vhci)-side daemon. Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- tools/usb/usbip/libsrc/vhci_driver.c | 19 +++ tools/usb/usbip/libsrc/vhci_driver.h | 1 + tools/usb/usbip/src/Makefile.am | 7 +- tools/usb/usbip/src/usbipd.c | 12 +- too

[PATCH v12 5/9] usbip: exporting devices: modifications to daemon

2016-10-12 Thread Nobuo Iwata
. In the client operation, it's in right after connect(). So, in daemon, it is moved to right after accept() to affect it both device and application side. Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- tools/usb/usbip/src/Makefile.am | 2 +- tools/usb/usbip/src/usbipd.c

[PATCH v12 4/9] usbip: exporting devices: new disconnect operation

2016-10-12 Thread Nobuo Iwata
New disconnect operation. Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- tools/usb/usbip/src/Makefile.am| 2 +- tools/usb/usbip/src/usbip.c| 6 + tools/usb/usbip/src/usbip.h| 2 + tools/usb/usbip/src/usbip_disconnect.c

[PATCH v12 3/9] usbip: exporting devices: new connect operation

2016-10-12 Thread Nobuo Iwata
New connect operation. Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- tools/usb/usbip/src/Makefile.am | 3 +- tools/usb/usbip/src/usbip.c | 9 +- tools/usb/usbip/src/usbip.h | 5 +- tools/usb/usbip/src/usbip_connect.c | 228 +

[PATCH v12 1/9] usbip: exporting devices: modifications to network header

2016-10-12 Thread Nobuo Iwata
Modification to export and un-export response in tools/usb/usbip/src/usbip_network.h. It just changes return code type from int to uint32_t as same as other responses. Added export and un-export request/response to Documentation/usb/usbip_protocol.txt. Signed-off-by: Nobuo Iwata <nobuo

[PATCH v12 2/9] usbip: exporting devices: modifications to host side libraries

2016-10-12 Thread Nobuo Iwata
usbip_get_device() method in usbip_host_driver_ops was not used. It is modified as a function to find an exported device for new operations 'connect' and 'disconnect'. bind and unbind function are exported for the new operations. Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co

[PATCH v12 0/9] usbip: exporting devices

2016-10-12 Thread Nobuo Iwata
version-info to libraries in tools/.../src. v2) # Formatted patches from linux-next. # Fixed change log word wrapping. # Removed SSL patches. # Fixed a bug that vendor and product names are not shown by 'usbws list -l' because usbip_names_init() was not called in libusbip.la. Thank you, Nobuo

[PATCH v1 1/1] usbip: fix possibility of dereference by NULLL pointer in vhci_hcd.c

2016-10-12 Thread Nobuo Iwata
A pointer was passed to vdev_to_vhci() before NULL check. In vdev_to_vhci(), there's a dereference by the pointer. This patch moves vdev_to_vhci() after NULL check of the pointer. Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- drivers/usb/usbip/vhci_hcd.c | 3 ++- 1 file chang

[PATCH v6 1/2] usbip: vhci extension: modifications to userspace

2016-09-30 Thread Nobuo Iwata
: ports across the controllers. Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- tools/usb/usbip/libsrc/vhci_driver.c | 398 +++ tools/usb/usbip/libsrc/vhci_driver.h | 45 +-- tools/usb/usbip/src/usbip_attach.c | 8 +- tools/usb/usbip/src/usbip_

[PATCH v11 5/9] usbip: exporting devices: modifications to daemon

2016-09-30 Thread Nobuo Iwata
. In the client operation, it's in right after connect(). So, in daemon, it is moved to right after accept() to affect it both device and application side. Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- tools/usb/usbip/doc/usbipd.8 | 1 - tools/usb/usbip/src/Makefile.am

[PATCH v11 7/9] usbip: exporting devices: new application-side daemon

2016-09-30 Thread Nobuo Iwata
New application(vhci)-side daemon. Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- tools/usb/usbip/libsrc/vhci_driver.c | 19 +++ tools/usb/usbip/libsrc/vhci_driver.h | 1 + tools/usb/usbip/src/Makefile.am | 7 +- tools/usb/usbip/src/usbipd.c | 12 +- too

[PATCH v11 0/9] usbip: exporting devices

2016-09-30 Thread Nobuo Iwata
or and product names are not shown by 'usbws list -l' because usbip_names_init() was not called in libusbip.la. Thank you, Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> // *** BLURB HERE *** Nobuo Iwata (9): usbip: exporting devices: modifications to network header usbip: exporting devices: modi

[PATCH v11 8/9] usbip: exporting devices: change to usbip_list.c

2016-09-30 Thread Nobuo Iwata
Correction to wording inconsistency around import and export in usbip_list.c. Please, see also cover letter about wording. Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- tools/usb/usbip/src/usbip_list.c | 22 -- 1 file changed, 12 insertions(+), 10 del

[PATCH v6 0/2] usbip: vhci number of ports extension

2016-09-30 Thread Nobuo Iwata
tools compatibility. # Changed nports status format not to include num_controllers value. # Fixed checkpatch errors and warnings. v2) # Added static to some functions and variables not called from other files. *** BLURB HERE *** Nobuo Iwata (2): usbip: vhci extension: modifications

[PATCH v1 1/1] usbip: deletion of incorrect socket descriptor checking

2016-09-29 Thread Nobuo Iwata
of number of USB port restriction. With the patch set, the value of socket descriptor can exceed FD_SETSIZE(1024 usually) if the rlimit is changed. Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- tools/usb/usbip/src/usbipd.c | 7 --- 1 file changed, 7 deletions(-) diff

[PATCH v11 2/9] usbip: exporting devices: modifications to host side libraries

2016-09-29 Thread Nobuo Iwata
usbip_get_device() method in usbip_host_driver_ops was not used. It is modified as a function to find an exported device for new operations 'connect' and 'disconnect'. bind and unbind function are exported for the new operations. Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co

[PATCH v11 9/9] usbip: exporting devices: chage to documenattion

2016-09-29 Thread Nobuo Iwata
in different machine than before. So, to avoid confusion, words 'device side (machine)' and 'application side (machine)' are used instead of 'client' and 'server' as needed. Please, see also diagrams in the cover letter. Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- tools/usb

[PATCH v6 2/2] usbip: vhci extension: dynamic extension

2016-09-29 Thread Nobuo Iwata
-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- drivers/usb/usbip/Kconfig | 17 ++- drivers/usb/usbip/vhci.h | 36 - drivers/usb/usbip/vhci_hcd.c | 250 - drivers/usb/usbip/vhci_rx.c| 10 +- drivers/usb/usbip/vhci_sysfs.c | 49 --- drive

[PATCH v11 4/9] usbip: exporting devices: new disconnect operation

2016-09-29 Thread Nobuo Iwata
New disconnect operation. Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- tools/usb/usbip/src/Makefile.am| 2 +- tools/usb/usbip/src/usbip.c| 6 + tools/usb/usbip/src/usbip.h| 2 + tools/usb/usbip/src/usbip_disconnect.c

[PATCH v11 1/9] usbip: exporting devices: modifications to network header

2016-09-29 Thread Nobuo Iwata
Modification to export and un-export response in tools/usb/usbip/src/usbip_network.h. It just changes return code type from int to uint32_t as same as other responses. Added export and un-export request/response to Documentation/usb/usbip_protocol.txt. Signed-off-by: Nobuo Iwata <nobuo

[PATCH v11 3/9] usbip: exporting devices: new connect operation

2016-09-29 Thread Nobuo Iwata
New connect operation. Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- tools/usb/usbip/src/Makefile.am | 3 +- tools/usb/usbip/src/usbip.c | 9 +- tools/usb/usbip/src/usbip.h | 5 +- tools/usb/usbip/src/usbip_connect.c | 228 +

[PATCH v11 6/9] usbip: exporting devices: modifications to attach and detach

2016-09-29 Thread Nobuo Iwata
Refactoring to attach and detatch operation. Common parts to new application(vhci)-side daemon are moved to libsrc/vhci_driver.c. Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- tools/usb/usbip/libsrc/vhci_driver.c | 99 tools/usb/usbip/

[PATCH v5 3/3] usbip: vhci extension: dynamic extension

2016-08-15 Thread Nobuo Iwata
-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- drivers/usb/usbip/Kconfig | 17 ++- drivers/usb/usbip/vhci.h | 36 - drivers/usb/usbip/vhci_hcd.c | 251 - drivers/usb/usbip/vhci_rx.c| 10 +- drivers/usb/usbip/vhci_sysfs.c | 49 --- drive

[PATCH v5 2/3] usbip: vhci extension: modifications to userspace

2016-08-15 Thread Nobuo Iwata
: ports across the controllers. Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- tools/usb/usbip/libsrc/vhci_driver.c | 398 +++ tools/usb/usbip/libsrc/vhci_driver.h | 45 +-- tools/usb/usbip/src/usbip_attach.c | 8 +- tools/usb/usbip/src/usbip_

[PATCH v5 1/3] usbip: vhci extension: modifications to vhci driver

2016-08-15 Thread Nobuo Iwata
atibility issue in this change. Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- drivers/usb/usbip/Kconfig | 21 +++ drivers/usb/usbip/vhci.h | 54 -- drivers/usb/usbip/vhci_hcd.c | 285 --- drivers/usb/usbip/vhci_rx.c| 21 +--

[PATCH v5 0/3] usbip: vhci number of ports extension

2016-08-15 Thread Nobuo Iwata
to some functions and variables not called from other files. *** BLURB HERE *** Nobuo Iwata (3): usbip: vhci extension: modifications to vhci driver usbip: vhci extension: modifications to userspace usbip: vhci extension: dynamic extension drivers/usb/usbip/Kconfig| 32

[PATCH v10 9/9] usbip: exporting devices: chage to documenattion

2016-08-15 Thread Nobuo Iwata
in different machine than before. So, to avoid confusion, words 'device side (machine)' and 'application side (machine)' are used instead of 'client' and 'server' as needed. Please, see also diagrams in the cover letter. Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- tools/usb

[PATCH v10 8/9] usbip: exporting devices: change to usbip_list.c

2016-08-15 Thread Nobuo Iwata
Correction to wording inconsistency around import and export in usbip_list.c. Please, see also cover letter about wording. Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- tools/usb/usbip/src/usbip_list.c | 22 -- 1 file changed, 12 insertions(+), 10 del

[PATCH v10 7/9] usbip: exporting devices: new application-side daemon

2016-08-15 Thread Nobuo Iwata
New application(vhci)-side daemon. Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- tools/usb/usbip/libsrc/vhci_driver.c | 19 +++ tools/usb/usbip/libsrc/vhci_driver.h | 1 + tools/usb/usbip/src/Makefile.am | 7 +- tools/usb/usbip/src/usbipd.c | 12 +- too

[PATCH v10 6/9] usbip: exporting devices: modifications to attach and detach

2016-08-15 Thread Nobuo Iwata
Refactoring to attach and detatch operation. Common parts to new application(vhci)-side daemon are moved to libsrc/vhci_driver.c. Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- tools/usb/usbip/libsrc/vhci_driver.c | 99 tools/usb/usbip/

[PATCH v10 4/9] usbip: exporting devices: new disconnect operation

2016-08-15 Thread Nobuo Iwata
New disconnect operation. Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- tools/usb/usbip/src/Makefile.am| 2 +- tools/usb/usbip/src/usbip.c| 6 + tools/usb/usbip/src/usbip.h| 2 + tools/usb/usbip/src/usbip_disconnect.c

[PATCH v10 5/9] usbip: exporting devices: modifications to daemon

2016-08-15 Thread Nobuo Iwata
. In the client operation, it's in right after connect(). So, in daemon, it is moved to right after accept() to affect it both device and application side. Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- tools/usb/usbip/doc/usbipd.8 | 1 - tools/usb/usbip/src/Makefile.am

[PATCH v10 1/9] usbip: exporting devices: modifications to network header

2016-08-15 Thread Nobuo Iwata
Modification to export and un-export response in tools/usb/usbip/src/usbip_network.h. It just changes return code type from int to uint32_t as same as other responses. Added export and un-export request/response to Documentation/usb/usbip_protocol.txt. Signed-off-by: Nobuo Iwata <nobuo

[PATCH v10 3/9] usbip: exporting devices: new connect operation

2016-08-15 Thread Nobuo Iwata
New connect operation. Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- tools/usb/usbip/src/Makefile.am | 3 +- tools/usb/usbip/src/usbip.c | 9 +- tools/usb/usbip/src/usbip.h | 5 +- tools/usb/usbip/src/usbip_connect.c | 228 +

[PATCH v10 0/9] usbip: exporting devices

2016-08-15 Thread Nobuo Iwata
shown by 'usbws list -l' because usbip_names_init() was not called in libusbip.la. Thank you, Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> // *** BLURB HERE *** Nobuo Iwata (9): usbip: exporting devices: modifications to network header usbip: exporting devices: modifications to host side l

[PATCH v10 2/9] usbip: exporting devices: modifications to host side libraries

2016-08-15 Thread Nobuo Iwata
usbip_get_device() method in usbip_host_driver_ops was not used. It is modified as a function to find an exported device for new operations 'connect' and 'disconnect'. bind and unbind function are exported for the new operations. Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co

[PATCH v9 7/9] usbip: exporting devices: new application-side daemon

2016-07-11 Thread Nobuo Iwata
New application(vhci)-side daemon. Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- tools/usb/usbip/libsrc/vhci_driver.c | 19 +++ tools/usb/usbip/libsrc/vhci_driver.h | 1 + tools/usb/usbip/src/Makefile.am | 7 +- tools/usb/usbip/src/usbipd.c | 12 +- too

[PATCH v9 9/9] usbip: exporting devices: chage to documenattion

2016-07-11 Thread Nobuo Iwata
in different machine than before. So, to avoid confusion, words 'device side (machine)' and 'application side (machine)' are used instead of 'client' and 'server' as needed. Please, see also diagrams in the cover letter. Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- tools/usb

[PATCH v9 5/9] usbip: exporting devices: modifications to daemon

2016-07-11 Thread Nobuo Iwata
. In the client operation, it's in right after connect(). So, in daemon, it is moved to right after accept() to affect it both device and application side. Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- tools/usb/usbip/doc/usbipd.8 | 1 - tools/usb/usbip/src/Makefile.am

[PATCH v9 3/9] usbip: exporting devices: new connect operation

2016-07-11 Thread Nobuo Iwata
New connect operation. Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- tools/usb/usbip/src/Makefile.am | 3 +- tools/usb/usbip/src/usbip.c | 9 +- tools/usb/usbip/src/usbip.h | 5 +- tools/usb/usbip/src/usbip_connect.c | 228 +

[PATCH v9 2/9] usbip: exporting devices: modifications to host side libraries

2016-07-11 Thread Nobuo Iwata
usbip_get_device() method in usbip_host_driver_ops was not used. It is modified as a function to find an exported device for new operations 'connect' and 'disconnect'. bind and unbind function are exported for the new operations. Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co

[PATCH v9 1/9] usbip: exporting devices: modifications to network header

2016-07-11 Thread Nobuo Iwata
Modification to export and un-export response in tools/usb/usbip/src/usbip_network.h. It just changes return code type from int to uint32_t as same as other responses. Added export and un-export request/response to Documentation/usb/usbip_protocol.txt. Signed-off-by: Nobuo Iwata <nobuo

[PATCH v9 4/9] usbip: exporting devices: new disconnect operation

2016-07-11 Thread Nobuo Iwata
New disconnect operation. Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- tools/usb/usbip/src/Makefile.am| 2 +- tools/usb/usbip/src/usbip.c| 6 + tools/usb/usbip/src/usbip.h| 2 + tools/usb/usbip/src/usbip_disconnect.c

[PATCH v9 6/9] usbip: exporting devices: modifications to attach and detach

2016-07-11 Thread Nobuo Iwata
Refactoring to attach and detatch operation. Common parts to new application(vhci)-side daemon are moved to libsrc/vhci_driver.c. Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- tools/usb/usbip/libsrc/vhci_driver.c | 99 tools/usb/usbip/

[PATCH v9 8/9] usbip: exporting devices: change to usbip_list.c

2016-07-11 Thread Nobuo Iwata
Correction to wording inconsistency around import and export in usbip_list.c. Please, see also cover letter about wording. Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- tools/usb/usbip/src/usbip_list.c | 22 -- 1 file changed, 12 insertions(+), 10 del

[PATCH v9 0/9] usbip: exporting devices

2016-07-11 Thread Nobuo Iwata
not called in libusbip.la. Thank you, Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> // *** BLURB HERE *** Nobuo Iwata (9): usbip: exporting devices: modifications to network header usbip: exporting devices: modifications to host side libraries usbip: exporting devices: new connect o

[PATCH v4 1/3] usbip: vhci extension: modifications to vhci driver

2016-06-12 Thread Nobuo Iwata
atibility issue in this change. Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- drivers/usb/usbip/Kconfig | 21 +++ drivers/usb/usbip/vhci.h | 54 -- drivers/usb/usbip/vhci_hcd.c | 285 --- drivers/usb/usbip/vhci_rx.c| 21 +--

[PATCH v4 2/3] usbip: vhci extension: modifications to userspace

2016-06-12 Thread Nobuo Iwata
: ports across the controllers. Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- tools/usb/usbip/libsrc/vhci_driver.c | 398 +++ tools/usb/usbip/libsrc/vhci_driver.h | 45 +-- tools/usb/usbip/src/usbip_attach.c | 8 +- tools/usb/usbip/src/usbip_

[PATCH v4 3/3] usbip: vhci extension: dynamic extension

2016-06-12 Thread Nobuo Iwata
-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- drivers/usb/usbip/Kconfig | 17 ++- drivers/usb/usbip/vhci.h | 36 - drivers/usb/usbip/vhci_hcd.c | 251 - drivers/usb/usbip/vhci_rx.c| 10 +- drivers/usb/usbip/vhci_sysfs.c | 49 --- drive

[PATCH v4 0/3] usbip: vhci number of ports extension

2016-06-12 Thread Nobuo Iwata
tools compatibility. # Changed nports status format not to include num_controllers value. # Fixed checkpatch errors and warnings. v2) # Added static to some functions and variables not called from other files. *** BLURB HERE *** Nobuo Iwata (3): usbip: vhci extension: modifications to vhci

[PATCH v8 0/9] usbip: exporting devices

2016-06-12 Thread Nobuo Iwata
ng. # Removed SSL patches. # Fixed a bug that vendor and product names are not shown by 'usbws list -l' because usbip_names_init() was not called in libusbip.la. Thank you, Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> // *** BLURB HERE *** Nobuo Iwata (9): usbip: exporting devices: modificati

[PATCH v8 5/9] usbip: exporting devices: modifications to daemon

2016-06-12 Thread Nobuo Iwata
Refactoring to the daemon. usbipd_dev.c is device-side specific code extracted from usbipd.c. usbipd.c is left as common parts for both device(stub)-side and application(vhci)-side daemon. Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- tools/usb/usbip/src/Makefile.am

[PATCH v8 1/9] usbip: exporting devices: modifications to network header

2016-06-12 Thread Nobuo Iwata
Modification to export and un-export response in tools/usb/usbip/src/usbip_network.h. It just changes return code type from int to uint32_t as same as other responses. Added export and un-export request/response to Documentation/usb/usbip_protocol.txt. Signed-off-by: Nobuo Iwata <nobuo

[PATCH v8 2/9] usbip: exporting devices: modifications to host side libraries

2016-06-12 Thread Nobuo Iwata
usbip_host_find_device() is created based on usbip_host_get_device(). usbip_host_get_device() was not used yet. bind and unbind function are exported for new operations. Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- tools/usb/usbip/libsrc/usbip_host_common.c | 6 ++

[PATCH v8 3/9] usbip: exporting devices: new connect operation

2016-06-12 Thread Nobuo Iwata
New connect operation. Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- tools/usb/usbip/src/Makefile.am | 3 +- tools/usb/usbip/src/usbip.c | 9 +- tools/usb/usbip/src/usbip.h | 5 +- tools/usb/usbip/src/usbip_connect.c | 228 +

[PATCH v8 6/9] usbip: exporting devices: modifications to attach and detach

2016-06-12 Thread Nobuo Iwata
Refactoring to attach and detatch operation. Common parts to new application(vhci)-side daemon are moved to libsrc/vhci_driver.c. Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- tools/usb/usbip/libsrc/vhci_driver.c | 99 tools/usb/usbip/

[PATCH v8 4/9] usbip: exporting devices: new disconnect operation

2016-06-12 Thread Nobuo Iwata
New disconnect operation. Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- tools/usb/usbip/src/Makefile.am| 2 +- tools/usb/usbip/src/usbip.c| 6 + tools/usb/usbip/src/usbip.h| 2 + tools/usb/usbip/src/usbip_disconnect.c

[PATCH v8 9/9] usbip: exporting devices: chage to documenattion

2016-06-12 Thread Nobuo Iwata
in different machine than before. So, to avoid confusion, words 'device side (machine)' and 'application side (machine)' are used instead of 'client' and 'server'. Please, see also diagrams in the cover letter. Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- tools/usb/usbip/Makef

[PATCH v8 7/9] usbip: exporting devices: new application-side daemon

2016-06-12 Thread Nobuo Iwata
New application(vhci)-side daemon. Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- tools/usb/usbip/libsrc/vhci_driver.c | 19 +++ tools/usb/usbip/libsrc/vhci_driver.h | 1 + tools/usb/usbip/src/Makefile.am | 7 +- tools/usb/usbip/src/usbipd.c | 12 +- too

[PATCH v8 8/9] usbip: exporting devices: change to usbip_list.c

2016-06-12 Thread Nobuo Iwata
Correction to wording inconsistency around import and export in usbip_list.c. Please, see also cover letter about wording. Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- tools/usb/usbip/src/usbip_list.c | 22 -- 1 file changed, 12 insertions(+), 10 del

[PATCH v3 1/1] usbip: safe completion against unbind operation

2016-04-27 Thread Nobuo Iwata
modification. Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- drivers/usb/usbip/stub_tx.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/usb/usbip/stub_tx.c b/drivers/usb/usbip/stub_tx.c index dbcabc9..dc223af 100644 --- a/drivers/usb/usbip/stub_tx.c

[PATCH v2 1/1] usbip: safe completion against unbind operation

2016-04-26 Thread Nobuo Iwata
/input/input22 (*) skipped with this patch in completion (**) released in 2-3 A. version info v2) # Changed log level of ignore message from info to debug. # Updated log capture in changelog with the log level modification. Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- drive

[PATCH v2 1/1] usbip: event handler as one thread

2016-03-23 Thread Nobuo Iwata
nfo v2) # Merged 1/2 event handler itself and 2/2 user programs because of auto build fail at 1/2 casued unmodified user programs in 1/2. Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- drivers/usb/usbip/stub_dev.c | 3 +- drivers/usb/usbip/usbip_common.c | 7 ++ dr

[PATCH v1 0/2] usbip: event handler as one thread

2016-03-22 Thread Nobuo Iwata
] This series of patches put event threads of stub and vhci driver as one workqueue. AFTER) only one event threads in each vhci and stub side. $ ps aux | grep usbip root 10457 0.0 0.0 0 0 ?S< 17:47 0:00 [usbip_event] *** BLURB HERE *** Nobuo Iwata (2): us

[PATCH v1 2/2] usbip: modifications to drivers using event handler

2016-03-22 Thread Nobuo Iwata
Modifications to code using usbip_event.c Initialization and termination of workqueue are added to init and exit routine of usbip_core respectively. Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- drivers/usb/usbip/stub_dev.c | 3 +-- drivers/usb/usbip/usbip_common

[PATCH v1 1/1] usbip: safe completion against unbind operation

2016-03-22 Thread Nobuo Iwata
(*) skipped with this patch in completion (**) released in 2-3 Signed-off-by: Nobuo Iwata <nobuo.iw...@fujixerox.co.jp> --- drivers/usb/usbip/stub_tx.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/usb/usbip/stub_tx.c b/drivers/usb/usbip/stub_tx.c index d

  1   2   >