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

2017-08-28 Thread Nobuo Iwata
on, the interface is much different than this patch. Signed-off-by: Nobuo Iwata --- 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. Corrected spelling in c

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

2017-05-28 Thread Nobuo Iwata
Version information v2) Gathered usbip_vhci_driver_close() for errors under an exit label. Signed-off-by: Nobuo Iwata --- drivers/usb/usbip/vhci_sysfs.c | 8 ++-- tools/usb/usbip/src/usbip_attach.c | 33 +- 2 files changed, 25 insertions(+), 16 deletions(-)

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

2016-12-25 Thread Nobuo Iwata
duce additional 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 releas

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

2016-12-25 Thread Nobuo Iwata
rt, nports: ports across the controllers. Signed-off-by: Nobuo Iwata --- 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_port.c | 13 +- tools/usb

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

2016-12-25 Thread Nobuo Iwata
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 to userspace usbip: vhci extension: dynamic extension driv

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

2016-12-25 Thread Nobuo Iwata
to connect device. To avoid 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

[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 --- tools/usb/usbip/libsrc/vhci_dr

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

2016-12-25 Thread Nobuo Iwata
x27;client' 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

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

2016-12-25 Thread Nobuo Iwata
t a device --> = = = 4) # usbip disconnect --- un-export a device ---> Bind and unbind are done in connect and disconnect internally. Signed-off-by: Nobuo Iwata --- tools/usb/usbip/Makefile.am | 2 +- tools/usb/usbip/README | 81 - tools/usb/usbip/doc/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 --- tools/usb/usbip/libsrc/usbip_host_common.c | 6 ++ tools/usb/usbip/libsrc/usbip_host_common.h | 8 tools/usb/usbip/src/usbip.h| 3 +++ too

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

2016-12-25 Thread Nobuo Iwata
. They become empty struct. Other empty struct, 'op_devlist_request', defined. This patch also includes string translation of the status codes. Signed-off-by: Nobuo Iwata --- tools/usb/usbip/src/usbip_network.c | 26 +- tools/usb/usbip/src/usbip_network.h | 8

[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 --- tools/usb/usbip/src

[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 --- tools/usb/usbip/libsrc/vhci_driver.c | 96 ++

[PATCH v14 00/10] usbip: exporting devices

2016-12-25 Thread Nobuo Iwata
;='. # Fixed inappropriate version definition in tools/.../websocket/configure.ac. # Remved unnecessary COPYING and AUTHORS fil from tools/.../websocket/. # Added -version-info to libraries in tools/.../src. v2) # Formatted patches from linux-next. # Fixed change log word wrapping. # Removed SSL pat

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

2016-12-25 Thread Nobuo Iwata
evice 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 lis

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

2016-12-25 Thread Nobuo Iwata
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 --- tools/usb/usbip/src/Makefile.am| 2 +- tools/usb/

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

2016-12-25 Thread Nobuo Iwata
nt errno New errno 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

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

2016-11-21 Thread Nobuo Iwata
onal 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. S

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

2016-11-21 Thread Nobuo Iwata
rt, nports: ports across the controllers. Signed-off-by: Nobuo Iwata --- 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_port.c | 13 +- tools/usb

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

2016-11-21 Thread Nobuo Iwata
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/vhci.h |

[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 --- tools/usb/usbip/libsrc/vhci_driver.c | 19 +++ tools/usb/usbip/libsrc/v

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

2016-11-21 Thread Nobuo Iwata
x27;client' 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

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

2016-11-21 Thread Nobuo Iwata
+--+ 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 --

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

2016-11-21 Thread Nobuo Iwata
to connect device. To avoid 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

[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 --- tools/usb/usbip/libsrc/vhci_driver.c | 99 tools/usb/usbip/libsrc/vhci_driver.h | 6 +

[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 --- 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_con

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

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

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

2016-11-21 Thread Nobuo Iwata
ved to right 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 --- tools/usb/usbip/src/Makefile.am | 2 +- tools/usb/usbip/src/usbipd.c | 246 -- tool

[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 --- tools/usb/usbip/src/usbip_network.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

[PATCH v13 00/10] usbip: exporting devices

2016-11-21 Thread Nobuo Iwata
from tools/.../websocket/. # Added -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

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

2016-11-21 Thread Nobuo Iwata
| application/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: N

[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 --- tools/usb/usbip/libsrc/vhci_driver.c | 99 tools/usb/usbip/libsrc/vhci_driver.h | 6 +- tools/usb

[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 --- tools/usb/usbip/src/usbip_list.c | 22 -- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/tools/usb

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

2016-10-12 Thread Nobuo Iwata
hine. Now, 'server' and 'client' run 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

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

2016-10-12 Thread Nobuo Iwata
New disconnect operation. Signed-off-by: Nobuo Iwata --- 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 | 215 + 4 files changed, 224

[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 --- 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 +- tools/usb/usbip/src/usbipd_app.c

[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 --- tools/usb/usbip/src/Makefile.am | 2 +- tools/usb/usbip/src/usbipd.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 --- 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 4 files changed, 242 insertions

[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

[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 --- to

[PATCH v12 0/9] usbip: exporting devices

2016-10-12 Thread Nobuo Iwata
'='. # Fixed inappropriate version definition in tools/.../websocket/configure.ac. # Remved unnecessary COPYING and AUTHORS fil from tools/.../websocket/. # Added -version-info to libraries in tools/.../src. v2) # Formatted patches from linux-next. # Fixed change log word wrapping. # Rem

[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 --- drivers/usb/usbip/vhci_hcd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion

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

2016-09-29 Thread Nobuo Iwata
rt, nports: ports across the controllers. Signed-off-by: Nobuo Iwata --- 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_port.c | 13 +- tools/usb

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

2016-09-29 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 --- tools/usb/usbip/doc/usbipd.8 | 1 - tools/usb/usbip/src/Makefile.am | 2 +- tools/usb/usbi

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

2016-09-29 Thread Nobuo Iwata
New application(vhci)-side daemon. Signed-off-by: Nobuo Iwata --- 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 +- tools/usb/usbip/src/usbipd_app.c

[PATCH v11 0/9] usbip: exporting devices

2016-09-29 Thread Nobuo Iwata
dded -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. Tha

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

2016-09-29 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 --- tools/usb/usbip/src/usbip_list.c | 22 -- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/tools/usb

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

2016-09-29 Thread Nobuo Iwata
s object and attribute name for old 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): usbi

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

2016-09-29 Thread Nobuo Iwata
l problem because 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 --- tools/usb/usbip/src/usbipd.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/tools/usb/

[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 --- to

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

2016-09-29 Thread Nobuo Iwata
hine. Now, 'server' and 'client' run 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

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

2016-09-29 Thread Nobuo Iwata
released. Signed-off-by: Nobuo Iwata --- 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 --- drivers/usb

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

2016-09-29 Thread Nobuo Iwata
New disconnect operation. Signed-off-by: Nobuo Iwata --- 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 | 215 + 4 files changed, 224

[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

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

2016-09-29 Thread Nobuo Iwata
New connect operation. Signed-off-by: Nobuo Iwata --- 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 4 files changed, 242 insertions

[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 --- tools/usb/usbip/libsrc/vhci_driver.c | 99 tools/usb/usbip/libsrc/vhci_driver.h | 6 +- tools/usb

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

2016-08-15 Thread Nobuo Iwata
released. Signed-off-by: Nobuo Iwata --- 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 --- drivers/usb

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

2016-08-15 Thread Nobuo Iwata
rt, nports: ports across the controllers. Signed-off-by: Nobuo Iwata --- 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_port.c | 13 +- tools/usb

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

2016-08-15 Thread Nobuo Iwata
s so there's no compatibility issue in this change. Signed-off-by: Nobuo Iwata --- drivers/usb/usbip/Kconfig | 21 +++ drivers/usb/usbip/vhci.h | 54 -- drivers/usb/usbip/vhci_hcd.c | 285 --- drivers/usb/usbip/vhci_

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

2016-08-15 Thread Nobuo Iwata
s. v2) # Added static 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

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

2016-08-15 Thread Nobuo Iwata
hine. Now, 'server' and 'client' run 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

[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 --- tools/usb/usbip/src/usbip_list.c | 22 -- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/tools/usb

[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 --- 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 +- tools/usb/usbip/src/usbipd_app.c

[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 --- tools/usb/usbip/libsrc/vhci_driver.c | 99 tools/usb/usbip/libsrc/vhci_driver.h | 6 +- tools/usb

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

2016-08-15 Thread Nobuo Iwata
New disconnect operation. Signed-off-by: Nobuo Iwata --- 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 | 215 + 4 files changed, 224

[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 --- tools/usb/usbip/doc/usbipd.8 | 1 - tools/usb/usbip/src/Makefile.am | 2 +- tools/usb/usbi

[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

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

2016-08-15 Thread Nobuo Iwata
New connect operation. Signed-off-by: Nobuo Iwata --- 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 4 files changed, 242 insertions

[PATCH v10 0/9] usbip: exporting devices

2016-08-15 Thread Nobuo Iwata
d 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 // *** BLURB HERE *** Nobuo Iwata (9): u

[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 --- to

[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 --- 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 +- tools/usb/usbip/src/usbipd_app.c

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

2016-07-11 Thread Nobuo Iwata
hine. Now, 'server' and 'client' run 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

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

2016-07-11 Thread Nobuo Iwata
New connect operation. Signed-off-by: Nobuo Iwata --- 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 4 files changed, 242 insertions

[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 --- to

[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 --- tools/usb/usbip/doc/usbipd.8 | 1 - tools/usb/usbip/src/Makefile.am | 2 +- tools/usb/usbi

[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

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

2016-07-11 Thread Nobuo Iwata
New disconnect operation. Signed-off-by: Nobuo Iwata --- 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 | 215 + 4 files changed, 224

[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 --- tools/usb/usbip/libsrc/vhci_driver.c | 99 tools/usb/usbip/libsrc/vhci_driver.h | 6 +- tools/usb

[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 --- tools/usb/usbip/src/usbip_list.c | 22 -- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/tools/usb

[PATCH v9 0/9] usbip: exporting devices

2016-07-11 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 // *** BLURB HERE *** Nobuo Iwata (9): usbip: exporting devices: modifications to network hea

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

2016-06-12 Thread Nobuo Iwata
s so there's no compatibility issue in this change. Signed-off-by: Nobuo Iwata --- drivers/usb/usbip/Kconfig | 21 +++ drivers/usb/usbip/vhci.h | 54 -- drivers/usb/usbip/vhci_hcd.c | 285 --- drivers/usb/usbip/vhci_

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

2016-06-12 Thread Nobuo Iwata
rt, nports: ports across the controllers. Signed-off-by: Nobuo Iwata --- 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_port.c | 13 +- tools/usb

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

2016-06-12 Thread Nobuo Iwata
released. Signed-off-by: Nobuo Iwata --- 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 --- drivers/usb

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

2016-06-12 Thread Nobuo Iwata
nd attribute name for old 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 extensi

[PATCH v8 0/9] usbip: exporting devices

2016-06-12 Thread Nobuo Iwata
ocket/. # Added -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 libus

[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 --- tools/usb/usbip/src/Makefile.am | 2 +- tools/usb/usbip/src/usbipd.c

[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

[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 --- tools/usb/usbip/libsrc/usbip_host_common.c | 6 ++ tools/usb/usbip/libsrc

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

2016-06-12 Thread Nobuo Iwata
New connect operation. Signed-off-by: Nobuo Iwata --- 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 4 files changed, 242 insertions

[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 --- tools/usb/usbip/libsrc/vhci_driver.c | 99 tools/usb/usbip/libsrc/vhci_driver.h | 6 +- tools/usb

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

2016-06-12 Thread Nobuo Iwata
New disconnect operation. Signed-off-by: Nobuo Iwata --- 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 | 215 + 4 files changed, 224

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

2016-06-12 Thread Nobuo Iwata
hine. Now, 'server' and 'client' run 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 let

[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 --- tools/usb/usbip/src/usbip_list.c | 22 -- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/tools/usb

[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 --- 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 +- tools/usb/usbip/src/usbipd_app.c

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

2016-04-26 Thread Nobuo Iwata
modification. Signed-off-by: Nobuo Iwata --- 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 +++ b/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 --- drivers/usb/usbip/stub_tx.c | 6 +- 1

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

2016-03-23 Thread Nobuo Iwata
version info 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 --- drivers/usb/usbip/stub_dev.c | 3 +- drivers/usb/usbip/usbip_common.c | 7 ++ drivers/usb/usbip/usbip_c

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

2016-03-22 Thread Nobuo Iwata
_eh] 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

[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 --- drivers/usb/usbip/stub_dev.c | 3 +-- drivers/usb/usbip/usbip_common.c | 7 +++ 2 files changed, 8

[PATCH v1 1/1] usbip: adding names db to port operation

2016-03-22 Thread Nobuo Iwata
bus/dev 005/002 AFTER) Most vendor string will be converted. Imported USB devices Port 00: at Low Speed(1.5Mbps) Hewlett-Packard : unknown product (03f0:0224) 3-1 -> usbip://10.0.2.15:3240/5-1 -> remote bus/dev 005/002 Signed-off-by: Nobuo Iwata

  1   2   >