Re: Multiple generic PHY instances for DWC3 USB IP

2018-04-04 Thread Masahiro Yamada
Hi Arnd, 2018-04-04 17:43 GMT+09:00 Arnd Bergmann : > On Wed, Apr 4, 2018 at 10:00 AM, Felipe Balbi > wrote: >> >> Hi, >> >> Masahiro Yamada writes: > Each DWC3 instance is connected with > multiple HS PHYs and multiple SS PHYs, > depending on the number of ports. in that c

Re: Multiple generic PHY instances for DWC3 USB IP

2018-04-04 Thread Arnd Bergmann
On Wed, Apr 4, 2018 at 10:00 AM, Felipe Balbi wrote: > > Hi, > > Masahiro Yamada writes: Each DWC3 instance is connected with multiple HS PHYs and multiple SS PHYs, depending on the number of ports. >>> >>> in that case, you shouldn't need dwc3 at all. A Host-only dwc3 is xHCI >>>

Re: Multiple generic PHY instances for DWC3 USB IP

2018-04-04 Thread Felipe Balbi
Hi, Masahiro Yamada writes: >>> Each DWC3 instance is connected with >>> multiple HS PHYs and multiple SS PHYs, >>> depending on the number of ports. >> >> in that case, you shouldn't need dwc3 at all. A Host-only dwc3 is xHCI >> compliant. If you really don't have the gadget block, there's no n

Re: Multiple generic PHY instances for DWC3 USB IP

2018-04-04 Thread Masahiro Yamada
2018-04-04 15:04 GMT+09:00 Felipe Balbi : > > Hi, > > Masahiro Yamada writes: >> 2018-04-04 14:36 GMT+09:00 Felipe Balbi : >>> >>> Hi, >>> >>> Masahiro Yamada writes: Currently, DWC3 core IP (drivers/usb/dwc3/core.c) can take only one PHY phandle for each of SS, HS. (phy-names DT p

Re: Multiple generic PHY instances for DWC3 USB IP

2018-04-03 Thread Felipe Balbi
Hi, Masahiro Yamada writes: > 2018-04-04 14:36 GMT+09:00 Felipe Balbi : >> >> Hi, >> >> Masahiro Yamada writes: >>> Currently, DWC3 core IP (drivers/usb/dwc3/core.c) >>> can take only one PHY phandle for each of SS, HS. >>> (phy-names DT property is "usb2-phy" and "usb3-phy" for each) >> >> We

Re: Multiple generic PHY instances for DWC3 USB IP

2018-04-03 Thread Masahiro Yamada
2018-04-04 14:36 GMT+09:00 Felipe Balbi : > > Hi, > > Masahiro Yamada writes: >> Currently, DWC3 core IP (drivers/usb/dwc3/core.c) >> can take only one PHY phandle for each of SS, HS. >> (phy-names DT property is "usb2-phy" and "usb3-phy" for each) > > We never had any other requirements :-) > >>

Re: Multiple generic PHY instances for DWC3 USB IP

2018-04-03 Thread Felipe Balbi
Hi, Masahiro Yamada writes: > Currently, DWC3 core IP (drivers/usb/dwc3/core.c) > can take only one PHY phandle for each of SS, HS. > (phy-names DT property is "usb2-phy" and "usb3-phy" for each) We never had any other requirements :-) > The DWC3 core IP is provided by Synopsys, > but some SoC

Multiple generic PHY instances for DWC3 USB IP

2018-04-03 Thread Masahiro Yamada
Hi. Currently, DWC3 core IP (drivers/usb/dwc3/core.c) can take only one PHY phandle for each of SS, HS. (phy-names DT property is "usb2-phy" and "usb3-phy" for each) The DWC3 core IP is provided by Synopsys, but some SoC-dependent parts (a.k.a glue-layer) are implemented by SoC venders. The num

Re: [PATCH] tools: usb usbip - update README USB/IP driver location

2017-01-19 Thread Shuah Khan
On 01/19/2017 07:15 AM, Shuah Khan wrote: > On 01/19/2017 02:35 AM, Greg KH wrote: >> On Fri, Jan 13, 2017 at 04:38:32PM -0700, Shuah Khan wrote: >>> Update USB/IP driver location in README. >>> >>> Signed-off-by: Shuah Khan >>> Reviewed-by: Krzysztof

Re: [PATCH] tools: usb usbip - update README USB/IP driver location

2017-01-19 Thread Shuah Khan
On 01/19/2017 02:35 AM, Greg KH wrote: > On Fri, Jan 13, 2017 at 04:38:32PM -0700, Shuah Khan wrote: >> Update USB/IP driver location in README. >> >> Signed-off-by: Shuah Khan >> Reviewed-by: Krzysztof Opasiak >> --- >> tools/usb/usbip/README | 2 +

Re: [PATCH] tools: usb usbip - update README USB/IP driver location

2017-01-19 Thread Greg KH
On Fri, Jan 13, 2017 at 04:38:32PM -0700, Shuah Khan wrote: > Update USB/IP driver location in README. > > Signed-off-by: Shuah Khan > Reviewed-by: Krzysztof Opasiak > --- > tools/usb/usbip/README | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --g

Re: [PATCH] tools: usb usbip - update README USB/IP driver location

2017-01-15 Thread Krzysztof Opasiak
On 01/14/2017 12:38 AM, Shuah Khan wrote: > Update USB/IP driver location in README. > > Signed-off-by: Shuah Khan Reviewed-by: Krzysztof Opasiak Best regards, -- Krzysztof Opasiak Samsung R&D Institute Poland Samsung Electronics -- To unsubscribe from this list: send the line

[PATCH] tools: usb usbip - update README USB/IP driver location

2017-01-13 Thread Shuah Khan
Update USB/IP driver location in README. Signed-off-by: Shuah Khan --- tools/usb/usbip/README | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/usb/usbip/README b/tools/usb/usbip/README index 831f49f..f349ef4 100644 --- a/tools/usb/usbip/README +++ b/tools/usb/usbip

patch "usb: ip: remove unnecessary & operation" added to usb-next

2016-11-18 Thread gregkh
This is a note to let you know that I've just added the patch titled usb: ip: remove unnecessary & operation to my usb git tree which can be found at git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git in the usb-next branch. The patch will show up in the next relea

patch "usb: ip: remove unnecessary & operation" added to usb-testing

2016-11-18 Thread gregkh
This is a note to let you know that I've just added the patch titled usb: ip: remove unnecessary & operation to my usb git tree which can be found at git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git in the usb-testing branch. The patch will show up in the next r

[PATCH 43/82] usb: ip: remove unnecessary & operation

2016-10-31 Thread Felipe Balbi
Now that usb_endpoint_maxp() only returns the lowest 11 bits from wMaxPacketSize, we can remove the & operation from this driver. Cc: Valentina Manea Cc: Shuah Khan Cc: Signed-off-by: Felipe Balbi --- drivers/usb/usbip/vudc_dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --g

[RFC/PATCH 42/45] usb: ip: remove unnecessary & operation

2016-09-28 Thread Felipe Balbi
Now that usb_endpoint_maxp() only returns the lowest 11 bits from wMaxPacketSize, we can remove the & operation from this driver. Cc: Valentina Manea Cc: Shuah Khan Cc: Signed-off-by: Felipe Balbi --- drivers/usb/usbip/vudc_dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --g

Re: [PATCH 00/12] Add USB Device Controller for USB/IP protocol

2016-04-26 Thread Greg KH
On Tue, Mar 08, 2016 at 09:48:55PM +0100, Krzysztof Opasiak wrote: > Hi, > > This series extends USB/IP support in Kernel by adding an emulated > USB Device Controller. This allows to virtually connect USB gadget > created on a server to some remote machine as if it would be a ful

[PATCH 01/12] usbip: vudc: Add header for USB/IP UDC

2016-03-08 Thread Krzysztof Opasiak
From: Igor Kotrasinski Add header with definitions needed by vudc driver. This commit is a result of cooperation between Samsung R&D Institute Poland and Open Operating Systems Student Society at University of Warsaw (O2S3@UW) consisting of: Igor Kotrasinski Karol Kosik Ewelina Ko

[PATCH 00/12] Add USB Device Controller for USB/IP protocol

2016-03-08 Thread Krzysztof Opasiak
Hi, This series extends USB/IP support in Kernel by adding an emulated USB Device Controller. This allows to virtually connect USB gadget created on a server to some remote machine as if it would be a fully functional USB device. -- Current design

RE: Deadlock in USB/IP driver

2016-01-21 Thread Andrew Goodbody
Is there anyone who can help me with this deadlock? Thanks, Andrew > -Original Message- > From: Andrew Goodbody > Sent: 14 December 2015 16:23 > To: linux-usb@vger.kernel.org > Subject: Deadlock in USB/IP driver > > https://bugzilla.kernel.org/show_bug.cgi?id=109

Deadlock in USB/IP driver

2015-12-14 Thread Andrew Goodbody
so I am simply attaching the file this time. Andrew Dec 10 15:03:20 cbrx-fw01 kernel: [ 220.497958] usbip_core: USB/IP Core v1.0.0 Dec 10 15:03:20 cbrx-fw01 kernel: [ 220.499707] vhci_hcd vhci_hcd: USB/IP Virtual Host Controller Dec 10 15:03:20 cbrx-fw01 kernel: [ 220.499713] vhci_hcd vhci_hcd

Locking problem in USB/IP

2015-12-10 Thread Andrew Goodbody
I have an application using the USB/IP drivers and I turned on the lock debugging and checking options in the kernel. I now get this deadlock report in syslog Dec 11 15:03:20 cbrx-fw01 kernel: [ 220.497958] usbip_core: USB/IP Core v1.0.0 Dec 10 15:03:20 cbrx-fw01 kernel: [ 220.499707

RE: [PATCH 01/13] USB/IP: exporting devices

2015-04-19 Thread fx IWATA NOBUO
Dear Valentina, Thank you for reviewing. > > For this, export function, connection is established from device-side > machine to application-side machine. > > > > Following use cases are supposed for the export function. > > 1) Server application or cloud service serves distributed ubiquitous > d

Re: [PATCH 01/13] USB/IP: exporting devices

2015-04-19 Thread Valentina Manea
Hi, On Fri, Apr 3, 2015 at 3:33 AM, Nobuo Iwata wrote: > > For this, export function, connection is established from device-side machine > to application-side machine. > > Following use cases are supposed for the export function. > 1) Server application or cloud service serves distributed ubiqui

RE: [PATCH 04/13] USB/IP: kernel module for userspace URBs transmission

2015-04-13 Thread fx IWATA NOBUO
ider your patches to > be merged. My pleasure. > I don't think that question was really answered. Sorry. I misread that your question ('this work') was about SSL. > Why do you need / want websockets here? WebSocket is needed for USB/IP in internet. Linux is the most pop

RE: [PATCH 04/13] USB/IP: kernel module for userspace URBs transmission

2015-04-05 Thread fx IWATA NOBUO
to:g...@kroah.com] > Sent: Friday, April 03, 2015 5:07 PM > To: fx IWATA NOBUO > Cc: valentina.mane...@gmail.com; shuah...@samsung.com; > linux-usb@vger.kernel.org; fx MICHIMURA TADAO > Subject: Re: [PATCH 04/13] USB/IP: kernel module for userspace URBs > transmission > >

Re: [PATCH 04/13] USB/IP: kernel module for userspace URBs transmission

2015-04-03 Thread Greg KH
On Fri, Apr 03, 2015 at 09:33:32AM +0900, Nobuo Iwata wrote: > Originally, USB/IP transmits requests and response PDUs for preparation to > transfer URBs in user space, after the preparation, URBs are transmitted in > kernel space. > > To make easy to introduce application ne

[PATCH 13/13] USB/IP: USB over WebSocket

2015-04-02 Thread Nobuo Iwata
package's source code in directory DIR. Usually + `configure' can determine that directory automatically. + +`configure' also accepts some other, not widely useful, options. Run +`configure --help' for more details. + diff --git a/tools/usb/usbip/websocket/Makefile.am b/too

[PATCH 02/13] USB/IP: readme and manuals about exporting devices

2015-04-02 Thread Nobuo Iwata
0: at Full Speed(12Mbps) diff --git a/tools/usb/usbip/doc/usbip.8 b/tools/usb/usbip/doc/usbip.8 index a6097be..dfaabba 100644 --- a/tools/usb/usbip/doc/usbip.8 +++ b/tools/usb/usbip/doc/usbip.8 @@ -6,9 +6,12 @@ usbip \- manage USB/IP devices [\fIoptions\fR] <\fIcommand\fR> <\fIargs\fR>

[PATCH 05/13] USB/IP: tools for userspace URBs transmission

2015-04-02 Thread Nobuo Iwata
Originally, USB/IP transmits requests and response PDUs for preparation to transfer URBs in user space, after completion of the preparation, URBs are transmitted in kernel space. To make easy to introduce application network protocols like SSL, WebSocket, the driver, usbip_ux.ko, forwards URBs

[PATCH 08/13] USB/IP: USB/IP with SSL

2015-04-02 Thread Nobuo Iwata
ext); + } +#endif close(sock->fd); free(sock); } diff --git a/tools/usb/usbip/src/usbip_network.h b/tools/usb/usbip/src/usbip_network.h index 1c304e0..3f7d0d3 100644 --- a/tools/usb/usbip/src/usbip_network.h +++ b/tools/usb/usbip/src/usbip_network.h @@ -17,6 +17,

[PATCH 09/13] USB/IP: readme and manuals about USB/IP with SSL

2015-04-02 Thread Nobuo Iwata
Addition to README and manuals regarding USB/IP with SSL. Signed-off-by: Nobuo Iwata --- tools/usb/usbip/README | 13 - tools/usb/usbip/doc/usbip.8 | 38 +++--- tools/usb/usbip/doc/usbipa.8 | 34 ++ tools/usb

[PATCH 07/13] USB/IP: letting send and receive replaceable

2015-04-02 Thread Nobuo Iwata
This patch allows to substitute send, receive and shutdown routines for both a) request/response PDUs among utilities and b) user space URBs transmission. usbip_sock_t is introduced instead of sockfd. it includes function pointers of send/receive/shutdown routines, an argument for the routines,

[PATCH 12/13] USB/IP: added const qualifier to arguments of some functions

2015-04-02 Thread Nobuo Iwata
This patch adds 'const' qualifier to 'char*' arguments of library interfaces to make acceptable std::string.c_str(). Essentially, these qualifiers are better to be used even if not to use C++. Although, I just added to functions related to previous patch. Also, it changes C++ reserved words (ie

[PATCH 04/13] USB/IP: kernel module for userspace URBs transmission

2015-04-02 Thread Nobuo Iwata
Originally, USB/IP transmits requests and response PDUs for preparation to transfer URBs in user space, after the preparation, URBs are transmitted in kernel space. To make easy to introduce application network protocols like SSL, WebSocket and so on, the driver, usbip_ux.ko, forwards URBs to

[PATCH 01/13] USB/IP: exporting devices

2015-04-02 Thread Nobuo Iwata
USB/IP supports a function to import USB devices from application-side machine by attach command. The usage is as following. dev:# (Physically attach your USB device.) dev:# insmod usbip-core.ko and usbip-host.ko dev:# usbipd -D // Start usbip daemon. dev:# usbip list -l // List local USB devices

[PATCH 03/13] USB/IP: safe completion against usb_kill_urb()

2015-04-02 Thread Nobuo Iwata
stub_shutdown_connection() : drivers/usb/usbip/stub_dev.c stub_device_cleanup_urbs() : drivers/usb/usbip/stub_main.c requests to kill pending URBs and clears priv lists. stub_complete() : drivers/usb/usbip/stub_tx.c might be called with URBs to have been requested to kill. To avoid kernel

[PATCH 06/13] USB/IP: readme about user space URBs transmission

2015-04-02 Thread Nobuo Iwata
and receive URBs in kernel space. The usbip_ux.ko kernel module alternates the route to user space by forwarding USBs through USB/IP utilities (ie. usbip, usbipd, usbipa). When userspace transmission enabled, usbip attach and connect will continue executing until usbip detach or disconnect is

[PATCH 10/13] USB/IP: letting connection establishment replaceable

2015-04-02 Thread Nobuo Iwata
To introduce some application protocols like WebSocket, this patch allows to substitute connection establishment and termination. In combination with previous patch, both connection and transmission can be replaced. usbip_connection_operations_t includes open and close operation. Open method re

[PATCH 00/13] USB/IP: features to USB over WebSocket

2015-04-02 Thread Nobuo Iwata
Dear all, This series of patches introduces WebSocket to USB/IP. It also includes some independent features effective in themselves. 1) Exporting devices Export request and response PDU had been defined in a header but not been used. Now it works! Also, it supports senarios, for example

[PATCH 11/13] USB/IP: deriving functions as libraries

2015-04-02 Thread Nobuo Iwata
To utilize core parts of USB/IP to application protocol implementations, this patch derives libraries by exposing some functions of utilities and removing some unnecessary portions. Following functions are exposed. For command: - usbip_attach_device() - usbip_detach_port() - usbip_bind_device

Re: [PATCH 1/1] USB-IP: Deletion of unnecessary checks before the function call "usb_put_dev"

2014-11-21 Thread Valentina Manea
On Fri, Nov 21, 2014 at 5:36 PM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Fri, 21 Nov 2014 16:33:18 +0100 > > The usb_put_dev() function tests whether its argument is NULL and then > returns immediately. Thus the test around the call is not needed. > > This issue was detected by us

[PATCH 1/1] USB-IP: Deletion of unnecessary checks before the function call "usb_put_dev"

2014-11-21 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 21 Nov 2014 16:33:18 +0100 The usb_put_dev() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drive

Re: [PATCH 4/4] MAINTAINERS: Add an entry for USB/IP driver

2014-08-25 Thread gregkh
On Wed, Aug 20, 2014 at 12:44:45PM +0530, sanjeev sharma wrote: > Hello Valentina, > > I have started looking into USB IP Project and this look's very interesting > and > Do we have anything left in this Project apart from reviewing user-land > protocol ? What do you

[PATCH 4/4] MAINTAINERS: Add an entry for USB/IP driver

2014-08-19 Thread Valentina Manea
This patch adds an entry in MAINTAINERS file for USB/IP driver. Signed-off-by: Valentina Manea --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index aefa948..76ac03d 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9515,6 +9515,14 @@ S

Re: USB/IP

2014-02-17 Thread Greg KH
On Tue, Feb 18, 2014 at 12:04:23AM +0700, konst...@ngs.ru wrote: > Greetings. > > How can I build USB/IP kernel modules and userspace tools > sparsely from linux kernel tree? > > > I've tried > > make O=/home/build/directory/ drivers/staging/usbip/ > >

USB/IP

2014-02-17 Thread konstunn
Greetings. How can I build USB/IP kernel modules and userspace tools sparsely from linux kernel tree? I've tried make O=/home/build/directory/ drivers/staging/usbip/ but this only compiles .c files to .o files, but doesn't link them to kernel object .ko files. And I nee

RE: USB/IP

2014-02-10 Thread David Laight
From: Greg KH > > I found it much easier to build a non-initrd kernel (ie one that > > has all the devices needed to boot builtin) than to work out > > how to build one that contains an initrd image. > > Then you are using the wrong distro, as a simple 'make install' in the > kernel directory shou

Re: USB/IP

2014-02-10 Thread Greg KH
On Mon, Feb 10, 2014 at 09:52:52AM +, David Laight wrote: > From: Peter Stuge > > konst...@ngs.ru wrote: > > > If so, which linux distro is worth being chosen for > > > building and testing that custom kernel and, especially, > > > usbip, in particular, and does distro really matter? > > > > I

RE: USB/IP

2014-02-10 Thread David Laight
From: Peter Stuge > konst...@ngs.ru wrote: > > If so, which linux distro is worth being chosen for > > building and testing that custom kernel and, especially, > > usbip, in particular, and does distro really matter? > > It depends on how much "value add" the distribution has around the > kernel.

Re: USB/IP

2014-02-09 Thread Peter Stuge
konst...@ngs.ru wrote: > If so, which linux distro is worth being chosen for > building and testing that custom kernel and, especially, > usbip, in particular, and does distro really matter? It depends on how much "value add" the distribution has around the kernel. The well-known distributions al

Re: USB/IP

2014-02-09 Thread Greg KH
On Sun, Feb 09, 2014 at 01:52:50PM +0700, konst...@ngs.ru wrote: > So, as far as I've concerned, I'd better build the whole > custom linux kernel with the usbip debug-driver built-in > to debug usbip, wouldn't I? Yes, but build it as a module to make things easier than rebooting all the time. Or

USB/IP

2014-02-08 Thread konstunn
Greetings. I've got an educational challenging task to develop my own or to improve an existing one USB device over IP network sharing system. And I've made a decision to explore USB/IP project. I've tried to explore it on my own, but I still have questions which I haven't

USB/IP: sharing USB device disappearing at client side

2013-09-24 Thread Gonglei (Arei)
> usb-storage linux-166:# virsh attach-device suse usb.xml Device attached successfully linux-166:# cat usb.xml Dmesg log : [13603.742271] vhci_hcd vhci_hcd: USB/IP Virtual Host Controller [13603.742278] vhci_hcd vhci_hcd: new USB bus registered, assigned bu