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
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
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()
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
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
Addition to README regarding user space URBs transmission.
Signed-off-by: Nobuo Iwata nobuo.iw...@fujixerox.co.jp
---
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
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
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
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
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
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
On Mon, Apr 13, 2015 at 10:09:27PM +0200, Marek Belisko wrote:
From: H. Nikolaus Schaller h...@goldelico.com
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
On Tue, 14 Apr 2015 08:50:01 +0200 Olivier Sobrie oliv...@sobrie.be 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 ne...@suse.de wrote:
Prior to
commit 29bd3bc1194c624ce863cab2a7da9bc1f0c3b47b
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 description
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 i'm not sure that is the
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 of that
mechanism to
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 detected on any stage
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 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:
On 04/10/2015
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:
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 rog...@ti.com
---
drivers/usb/gadget/udc/udc-core.c | 13 +++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git
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 rog...@ti.com
---
drivers/usb/gadget/udc/udc-core.c | 74 +++
include/linux/usb/gadget.h| 3 ++
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
Now that we have dual-role support working at USB core,
enable dual-role support for usb1 controller.
Signed-off-by: Roger Quadros rog...@ti.com
---
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
Replace old pr_* with dev_* debugging macros
Signed-off-by: Oliver Neukum oneu...@suse.de
---
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
---
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
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
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
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:
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
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 04/10/2015
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 Baldyga wrote:
Hi Chanwoo,
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 Robert,
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 rog...@ti.com
---
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 rog...@ti.com
---
drivers/usb/common/usb-otg-fsm.c | 10 --
include/linux/usb/otg-fsm.h | 1 +
2 files changed, 5 insertions(+), 6 deletions(-)
diff --git
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 rog...@ti.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 rog...@ti.com
---
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 Ramamurthy
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 wrote:
On
USB 2.01+ full-speed devices can have extended descriptor as well
and can support LPM.
Signed-off-by: Rupesh Tatiya rtat...@codeaurora.org
---
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
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 arun.ramamur...@broadcom.com
Reviewed-by: Ray Jui r...@broadcom.com
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
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 ColorMunki
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
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:
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) then I
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
Hi Fabio,
Fabio Estevam feste...@gmail.com hat am 14. April 2015 um 16:15 geschrieben:
Hi Stefan,
On Tue, Apr 14, 2015 at 5:43 AM, Peter Chen peter.c...@freescale.com wrote:
So setting dr_mode to host is the one and only solution for this case?
From my point, yes.
I also agree this
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 arun.ramamur...@broadcom.com
Reviewed-by: Ray Jui r...@broadcom.com
Reviewed-by: Scott
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,
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 the
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 seems to be
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
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 12:18, Chanwoo Choi
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-pcf857x.c)
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 another
Hi Stefan,
On Tue, Apr 14, 2015 at 5:43 AM, Peter Chen peter.c...@freescale.com 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
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_64). Is
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 users
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 when
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 oneu...@suse.de
---
drivers/input/ff-core.c | 10 --
1 file changed, 4 insertions(+), 6 deletions(-)
63 matches
Mail list logo