Dear all,
This series of patches introduces WebSocket to USB/IP.
0. Version info
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 calle
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
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 WebSocket
and so on, the driver, usbip_ux.ko, forwards URBs to USB/IP
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
This patch adds function and usage of export to README and manuals.
The wording, 'server' and 'client' is changed also.
For existing attach command, the daemon runs device side machine and
attach command is executed in application side machine. Then 'server'
is used for device side and 'client'
Addition to README regarding user space URBs transmission.
Signed-off-by: Nobuo Iwata
---
tools/usb/usbip/README | 22 ++
1 file changed, 22 insertions(+)
diff --git a/tools/usb/usbip/README b/tools/usb/usbip/README
index 74f4afb..6b61da5 100644
--- a/tools/usb/usbip/README
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
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 r
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 WebSocket,
the driver, usbip_ux.ko, forwards URBs to US
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
This patch adds utilities transmit packets via WebSocket protocol.
WebSocket version of utilities as following.
usbws : command
usbwsa : application-side daemon
usbwsd : device-side daemon
The command supports all sub-command (ie. list, connect, disconnect,
port, bind, unbind, attach and de
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()
On Mon, Apr 13, 2015 at 10:09:27PM +0200, Marek Belisko wrote:
> From: "H. Nikolaus Schaller"
>
> While trying to test a Cinterion GSM/GPS/3G module I had reconfigured
> the USB interface by mistake and therefore needed to run a different
> USB driver than CDC-ACM. It turned out that I need the "
On Tue, 14 Apr 2015 08:50:01 +0200 Olivier Sobrie wrote:
> Hello Neil,
>
> On Tue, Apr 14, 2015 at 11:03:03AM +1000, NeilBrown wrote:
> > On Tue, 14 Apr 2015 09:36:34 +1000 NeilBrown wrote:
> >
> > >
> > >
> > > Prior to
> > > commit 29bd3bc1194c624ce863cab2a7da9bc1f0c3b47b
> > > hso: fi
On Mon, Apr 13, 2015 at 04:24:50PM -0400, Alan Stern wrote:
> On Mon, 13 Apr 2015, Mathias Nyman wrote:
>
> > Another difference between EHCI and xHCI iss that xHCI needs to reset (the
> > host side)
> > of a control endpoint if it stalled.
> >
> > From xHCI 1.0 4.8.3:
> >
> > "A STALL detect
> >
> > On Sun, Apr 12, 2015 at 12:06:10PM +0200, Stefan Wahren wrote:
> > > [...]
> > >
> > > I think the problem has something to with USB OTG, because GPIO 65
> > > is on the same pin for USB_OTG_ID.
> > > My idea was to set "dr_mode" in olinuxino dts explicit to "host" and
> > > it works, but
On 13/04/15 15:48, Mathias Nyman wrote:
> Hi
>
> On 09.04.2015 12:22, Roger Quadros wrote:
>> Hi,
>>
>> On 07/04/15 17:23, Mathias Nyman wrote:
>>> Hi
>>>
>>> On 02.04.2015 15:23, Roger Quadros wrote:
HCD core allocates memory for HCD private data in
usb_create_[shared_]hcd() so make use
Phil and I found out a problem with commit:
7e860a6e7aa6 ("cdc-acm: add sanity checks")
It added some sanity checks to ignore potential garbage in CDC headers but
also introduced a potential infinite loop. This can happen at the first
loop iteration (elength = 0 in that case) if the descriptio
On 10/04/15 12:18, Chanwoo Choi wrote:
> On 04/10/2015 05:46 PM, Robert Baldyga wrote:
>> On 04/10/2015 10:10 AM, Chanwoo Choi wrote:
>>> On 04/10/2015 04:45 PM, Robert Baldyga wrote:
On 04/10/2015 09:17 AM, Chanwoo Choi wrote:
> Hi Robert,
>
> On 04/09/2015 06:24 PM, Robert Baldyg
Fixed Kishon's id.
On 14/04/15 13:01, Roger Quadros wrote:
> On 10/04/15 12:18, Chanwoo Choi wrote:
>> On 04/10/2015 05:46 PM, Robert Baldyga wrote:
>>> On 04/10/2015 10:10 AM, Chanwoo Choi wrote:
On 04/10/2015 04:45 PM, Robert Baldyga wrote:
> On 04/10/2015 09:17 AM, Chanwoo Choi wrote:
Hi Thomas,
On 30/03/15 16:15, Roger Quadros wrote:
> Without this system suspend is broken on systems that have
> drivers calling enable/disable_irq_wake() for interrupts based off
> the dummy irq hook.
> (e.g. drivers/gpio/gpio-pcf857x.c)
>
> http://article.gmane.org/gmane.linux.kernel/1879035
>
On 04/14/2015 07:02 PM, Roger Quadros wrote:
> Fixed Kishon's id.
>
> On 14/04/15 13:01, Roger Quadros wrote:
>> On 10/04/15 12:18, Chanwoo Choi wrote:
>>> On 04/10/2015 05:46 PM, Robert Baldyga wrote:
On 04/10/2015 10:10 AM, Chanwoo Choi wrote:
> On 04/10/2015 04:45 PM, Robert Baldyga wr
On 14/04/15 13:31, Chanwoo Choi wrote:
> On 04/14/2015 07:02 PM, Roger Quadros wrote:
>> Fixed Kishon's id.
>>
>> On 14/04/15 13:01, Roger Quadros wrote:
>>> On 10/04/15 12:18, Chanwoo Choi wrote:
On 04/10/2015 05:46 PM, Robert Baldyga wrote:
> On 04/10/2015 10:10 AM, Chanwoo Choi wrote:
>
struct otg_fsm is the interface to the OTG state machine.
Document the input, output and internal state variables.
Definations are taken from Table 7-2 and Table 7-4 of
the USB OTG & EH Specification Rev.2.0
Re-arrange some of the members as per use case for more
clarity.
Signed-off-by: Roger Qu
Now that we have dual-role support working at USB core,
enable dual-role support for usb1 controller.
Signed-off-by: Roger Quadros
---
arch/arm/boot/dts/dra7-evm.dts | 2 +-
arch/arm/boot/dts/dra72-evm.dts | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/boot/dts/
we need to unlock the usb_lock mutex before calling
usb_otg_register_gadget() else it will cause a
circular locking dependency.
Signed-off-by: Roger Quadros
---
drivers/usb/gadget/udc/udc-core.c | 13 +++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/drivers/usb/gadget
The OTG state machine needs a mechanism to start and
stop the gadget controller. Add usb_gadget_start()
and usb_gadget_stop().
Signed-off-by: Roger Quadros
---
drivers/usb/gadget/udc/udc-core.c | 74 +++
include/linux/usb/gadget.h| 3 ++
2 files chang
We need to differentiat between "otg" and "dual-role" operation.
dual-role means capability to operate as host or device depending
on the ID pin status but no support for any of the OTG features
like SRP, HNP and on the fly role-swap.
The only way to change the role for a dual-role device is to
to
If usb/otg-fsm.h and usb/composite.h are included together
then it results in the build warning [1].
Prevent that by moving the VDBG defination into the
usb-otg-fsm.c file where it is used.
Also get rid of MPC_LOC which doesn't seem to be used
by anyone.
[1] - warning fixed by this patch:
In
DRD mode is a reduced functionality OTG mode. In this mode
we don't support SRP, HNP and dynamic role-swap.
In DRD operation, the controller mode (Host or Peripheral)
is decided based on the ID pin status. Once a cable plug (Type-A
or Type-B) is attached the controller selects the state
and doesn'
This is an attempt to centralize OTG/Dual-role functionality in the kernel.
As of now I've got Dual-role functionality working pretty reliably on
dra7-evm. xhci side of things for OTG/DRD use are fixed in
http://thread.gmane.org/gmane.linux.kernel/1923161
Changelog:
-
v2
- Use add/remove_h
This is the a_set_b_hnp_enable flag in the OTG state machine
diagram and must be set when the A-Host has successfully set
the b_hnp_enable feature of the OTG-B-Peripheral attached to it.
When this bit changes we kick our OTG FSM to make note of the
change and act accordingly.
Signed-off-by: Roger
The OTG core instantiates the OTG Finite State Machine
per OTG controller and manages starting/stopping the
host and gadget controllers based on the bus state.
It provides APIs for the following tasks
- Registering an OTG capable controller
- Registering Host and Gadget controllers to OTG core
-
Register with the USB OTG core. Since we don't support
OTG yet we just work as a dual-role device even
if device tree says "otg".
Use extcon framework to get VBUS/ID cable events and
kick the OTG state machine.
Signed-off-by: Roger Quadros
---
drivers/usb/dwc3/core.c | 146
Move the state_changed variable into struct otg_fsm
so that we can support multiple instances.
Signed-off-by: Roger Quadros
---
drivers/usb/common/usb-otg-fsm.c | 10 --
include/linux/usb/otg-fsm.h | 1 +
2 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/drivers/usb/co
The existing usb_add/remove_hcd() functionality
remains unchanged for non-OTG devices. For OTG
devices they only register the HCD with the OTG core.
Introduce _usb_add/remove_hcd() for use by OTG core.
These functions actually add/remove the HCD.
Signed-off-by: Roger Quadros
---
drivers/usb/com
Register with OTG core when gadget function driver
is available and unregister when function driver is unbound.
Ignore softconnect sysfs control when we're in OTG
mode as OTG FSM takes care of gadget softconnect using
the b_bus_req mechanism.
Signed-off-by: Roger Quadros
---
drivers/usb/gadget/
Hello.
On 4/13/2015 7:20 PM, Sergei Shtylyov wrote:
Phil and I found out a problem with commit:
7e860a6e ("cdc-acm: add sanity checks")
It added some sanity checks to ignore potential garbage in CDC headers but
also introduced a potential infinite loop. This can happen at the first
lo
USB 2.01+ full-speed devices can have extended descriptor as well
and can support LPM.
Signed-off-by: Rupesh Tatiya
---
drivers/usb/core/hub.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c
index 9ef2d2c..1ed7b5d 100644
--- a/d
On Mon, Apr 13, 2015 at 03:10:46PM -0700, Arun Ramamurthy wrote:
> Getting phys by index instead of phy names so that we do
> not have to create a naming scheme when multiple phys
> are present
>
> Signed-off-by: Arun Ramamurthy
> Reviewed-by: Ray Jui
> Reviewed-by: Scott Branden
> ---
> drive
On 04/14/2015 07:38 PM, Roger Quadros wrote:
> On 14/04/15 13:31, Chanwoo Choi wrote:
>> On 04/14/2015 07:02 PM, Roger Quadros wrote:
>>> Fixed Kishon's id.
>>>
>>> On 14/04/15 13:01, Roger Quadros wrote:
On 10/04/15 12:18, Chanwoo Choi wrote:
> On 04/10/2015 05:46 PM, Robert Baldyga wrote
On Tuesday 14 April 2015 13:19:34 Greg Kroah-Hartman wrote:
> On Mon, Apr 13, 2015 at 03:10:46PM -0700, Arun Ramamurthy wrote:
> > Getting phys by index instead of phy names so that we do
> > not have to create a naming scheme when multiple phys
> > are present
> >
> > Signed-off-by: Arun Ramamurt
Replace old pr_* with dev_* debugging macros
Signed-off-by: Oliver Neukum
---
drivers/input/ff-core.c | 10 --
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/drivers/input/ff-core.c b/drivers/input/ff-core.c
index f50f6dd..b81c88c 100644
--- a/drivers/input/ff-core.c
+++ b
On Tue, Apr 14, 2015 at 01:33:08PM +0200, Arnd Bergmann wrote:
> On Tuesday 14 April 2015 13:19:34 Greg Kroah-Hartman wrote:
> > On Mon, Apr 13, 2015 at 03:10:46PM -0700, Arun Ramamurthy wrote:
> > > Getting phys by index instead of phy names so that we do
> > > not have to create a naming scheme w
Added the USB serial console device ID for KCF Technologies PRN device
which has a USB port for its serial console.
Signed-off-by: Mark Edwards
---
drivers/usb/serial/cp210x.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/usb/serial/cp210x.c b/drivers/usb/serial/cp210x.c
index 84ce
On Tuesday 14 April 2015 14:37:37 Greg Kroah-Hartman wrote:
> On Tue, Apr 14, 2015 at 01:33:08PM +0200, Arnd Bergmann wrote:
> > This is true, but all other drivers do the same for GENERIC_PHY at the
> > moment. If this one gets changed, we should probably apply the same
> > solution to all current
On Tue, Apr 14, 2015 at 03:17:30PM +0200, Arnd Bergmann wrote:
> On Tuesday 14 April 2015 14:37:37 Greg Kroah-Hartman wrote:
> > On Tue, Apr 14, 2015 at 01:33:08PM +0200, Arnd Bergmann wrote:
> > > This is true, but all other drivers do the same for GENERIC_PHY at the
> > > moment. If this one gets
Hi Roger,
On 14/04/2015 12:13, Roger Quadros wrote:
> Hi Thomas,
>
> On 30/03/15 16:15, Roger Quadros wrote:
>> Without this system suspend is broken on systems that have
>> drivers calling enable/disable_irq_wake() for interrupts based off
>> the dummy irq hook.
>> (e.g. drivers/gpio/gpio-pcf857
On Tue, Apr 14, 2015 at 01:46:56AM +0200, frederik.hofe wrote:
> SanDisk Ultra Fit (32 GB version)
> USB 3.0 Flash Drive
>
> I have this USB stick that works fine when using it with win7 or Linux.
> But if I try to boot linux from it (Be it a installation image or xubuntu
> installed on it from an
Hi Stefan,
On Tue, Apr 14, 2015 at 5:43 AM, Peter Chen wrote:
>> So setting "dr_mode" to "host" is the one and only solution for this case?
> From my point, yes.
I also agree this could be a good solution.
Care to submit a patch with this fix?
Thanks,
Fabio Estevam
--
To unsubscribe from th
Hi,
On Tuesday 14 April 2015 06:57 PM, Greg Kroah-Hartman wrote:
On Tue, Apr 14, 2015 at 03:17:30PM +0200, Arnd Bergmann wrote:
On Tuesday 14 April 2015 14:37:37 Greg Kroah-Hartman wrote:
On Tue, Apr 14, 2015 at 01:33:08PM +0200, Arnd Bergmann wrote:
This is true, but all other drivers do the
Hi Arnd,
On Tuesday 14 April 2015 06:47 PM, Arnd Bergmann wrote:
On Tuesday 14 April 2015 14:37:37 Greg Kroah-Hartman wrote:
On Tue, Apr 14, 2015 at 01:33:08PM +0200, Arnd Bergmann wrote:
This is true, but all other drivers do the same for GENERIC_PHY at the
moment. If this one gets changed, w
On Mon, 13 Apr 2015, Arun Ramamurthy wrote:
> Getting phys by index instead of phy names so that we do
> not have to create a naming scheme when multiple phys
> are present
>
> Signed-off-by: Arun Ramamurthy
> Reviewed-by: Ray Jui
> Reviewed-by: Scott Branden
You have not responded to the com
On Tue, 14 Apr 2015, Alistair Grant wrote:
> Hi Mathias and Alan,
>
> As Mathias requested, I've included the usbmon output with the patch
> applied.
>
> It didn't make any difference to the end result, the mouse still fails
> to initialise correctly (no real surprise, I think), but is getting t
Hi,
(always Cc linux-usb)
On Mon, Apr 13, 2015 at 11:23:28PM -0500, Linux mail wrote:
> Hi Felipe,
>
> Do you know why this patch is not in the mainline. It seems the ehset.c
> mainline implementation is not passing the Suspend/Resume test.
which patch ?
--
balbi
signature.asc
Description:
Hi,
On Thu, Feb 05, 2015 at 02:21:42PM +0100, Maxime Ripard wrote:
> Hi,
>
> On Thu, Jan 22, 2015 at 08:37:45AM +0100, Yegor Yefremov wrote:
> > I have the same experience with 3.15. The switching is working when
> > CONFIG_USB_MUSB_DUAL_ROLE is set and dr_mode = "otg". But since 3.16
> > it seem
On Tue, 14 Apr 2015, frederik.hofe wrote:
> SanDisk Ultra Fit (32 GB version)
> USB 3.0 Flash Drive
>
> I have this USB stick that works fine when using it with win7 or Linux.
> But if I try to boot linux from it (Be it a installation image or
> xubuntu installed on it from another usb stick) th
On Tue, 14 Apr 2015, Graeme Gill wrote:
> Hi,
>
> I have a user reporting a problem with a particular USB HID device
> on Linux that I suspect is a Linux driver issue, or possibly
> a failure in my (user mode driver) to handle an unexpected
> Linux USB response.
>
> The device is an X-Rite Color
My apologies Alan, I missed that comment I was indeed trying to avoid
the 80 column rule. It looks like i will have to resend this patch, so i
will reformat the code then. Thanks
On 15-04-14 07:41 AM, Alan Stern wrote:
On Mon, 13 Apr 2015, Arun Ramamurthy wrote:
Getting phys by index instead
On 15-04-14 07:21 AM, Kishon Vijay Abraham I wrote:
Hi,
On Tuesday 14 April 2015 06:57 PM, Greg Kroah-Hartman wrote:
On Tue, Apr 14, 2015 at 03:17:30PM +0200, Arnd Bergmann wrote:
On Tuesday 14 April 2015 14:37:37 Greg Kroah-Hartman wrote:
On Tue, Apr 14, 2015 at 01:33:08PM +0200, Arnd Berg
Hi Fabio,
> Fabio Estevam hat am 14. April 2015 um 16:15 geschrieben:
>
>
> Hi Stefan,
>
> On Tue, Apr 14, 2015 at 5:43 AM, Peter Chen wrote:
>
> >> So setting "dr_mode" to "host" is the one and only solution for this case?
>
> > From my point, yes.
>
> I also agree this could be a good solution
On Tue, Apr 14, 2015 at 02:06:10PM +0200, Oliver Neukum wrote:
> Replace old pr_* with dev_* debugging macros
Not so new anymore ;)
Applied, thank you.
>
> Signed-off-by: Oliver Neukum
> ---
> drivers/input/ff-core.c | 10 --
> 1 file changed, 4 insertions(+), 6 deletions(-)
>
> diff
On Tuesday 14 April 2015 11:05:35 Arun Ramamurthy wrote:
> >
> > [1] ->
> > https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/kbuild/kconfig-language.txt#n111
> >
> Kishon,removing select GENERIC_PHY also breaks the builds for certain
> architectures (i386 and x84_
On Tue, Apr 14, 2015 at 08:29:34PM +0900, Chanwoo Choi wrote:
> On 04/14/2015 07:38 PM, Roger Quadros wrote:
> > On 14/04/15 13:31, Chanwoo Choi wrote:
> >> On 04/14/2015 07:02 PM, Roger Quadros wrote:
> >>> Fixed Kishon's id.
> >>>
> >>> On 14/04/15 13:01, Roger Quadros wrote:
> On 10/04/15 1
On Tue, Apr 14, 2015 at 08:52:34AM -0400, Mark Edwards wrote:
> Added the USB serial console device ID for KCF Technologies PRN device
> which has a USB port for its serial console.
>
> Signed-off-by: Mark Edwards
Thanks for the patch. I'll queue it up for 4.1.
Johan
--
To unsubscribe from this
65 matches
Mail list logo