Re: [PATCH v6 20/22] usb: dwc2: host: Properly set even/odd frame

2016-02-01 Thread Kever Yang
Doug, On 01/29/2016 10:20 AM, Douglas Anderson wrote: When setting up ISO and INT transfers dwc2 needs to specify whether the transfer is for an even or an odd frame (or microframe if the controller is running in high speed mode). The controller appears to use this as a simple way to figure out

Re: [PATCH v6 18/22] usb: dwc2: host: Schedule periodic right away if it's time

2016-02-01 Thread Kever Yang
Doug, On 02/02/2016 08:36 AM, Doug Anderson wrote: Kever, On Sun, Jan 31, 2016 at 8:36 PM, Doug Anderson wrote: Kever, On Sun, Jan 31, 2016 at 7:32 PM, Kever Yang wrote: Doug, On 02/01/2016 06:09 AM, Doug Anderson wrote: Kever, On Sun, Jan 31, 2016 at 1:36 AM, Kever Yang wrote: Doug,

USB RAW HID

2016-02-01 Thread suresh gupta
I want to write a end to end raw HID interface for some specific user defined data communication on USB. Can any one help me or point me 1. What all changes I need in device/host driver. 2. How it interact with application at device side. 3. How it interact with Host side application. Any clue an

[PATCH] usb: xhci: fix build warning

2016-02-01 Thread Sudip Mukherjee
We were getting build warning about: drivers/usb/host/xhci.c: In function ‘xhci_add_ep_to_interval_table’: drivers/usb/host/xhci.c:2499:2: warning: enumeration value ‘USB_SPEED_SUPER_PLUS’ not handled in switch Fix it by adding SuperSpeedPlus USB3.1 devices as the behaviour is same as wit

[PATCH 17/19] usb: dwc3: Update speed checks for SuperSpeedPlus

2016-02-01 Thread John Youn
Update various places where the speed is checked so that it takes into account SuperSpeedPlus properly. Signed-off-by: John Youn --- drivers/usb/dwc3/ep0.c| 9 ++--- drivers/usb/dwc3/gadget.c | 13 - 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/drivers/usb

[PATCH 06/19] usb: gadget: Update usb_assign_descriptors for SuperSpeedPlus

2016-02-01 Thread John Youn
Add the 'ssp_descriptors' parameter to the usb_assign_descriptors() function. This allows a function driver to add descriptors for SuperSpeedPlus speeds if it supports it. Also update all uses of this function in the gadget subsystem so that they pass NULL for the ssp_descriptors parameters. Sign

[PATCH 15/19] usb: dwc3: DWC_usb31 controller check

2016-02-01 Thread John Youn
Add a convenience function to check if the controller is DWC_usb31. Signed-off-by: John Youn --- drivers/usb/dwc3/core.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h index 2913068..15281c1 100644 --- a/drivers/usb/dwc3/core.h +++ b/d

[PATCH 08/19] usb: gadget: Update config for SuperSpeedPlus

2016-02-01 Thread John Youn
When a function is added to a configuration with usb_add_function(), the configuration speed flags are updated. These flags indicate for which speeds the configuration is valid for. This patch adds a flag in the configuration for SuperSpeedPlus and also updates this based on the existence of ssp_d

[PATCH 12/19] usb: gadget: composite: Configure the usb_ep for SuperSpeedPlus

2016-02-01 Thread John Youn
Configure the usb_ep using the SuperSpeedPlus descriptors if connected in SuperSpeedPlus. Signed-off-by: John Youn --- drivers/usb/gadget/composite.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/usb/gadget/composite.c b/drivers/usb/gadget/composite.c index

[PATCH 19/19] usb: dwc3: Enable SuperSpeedPlus

2016-02-01 Thread John Youn
Enable SuperSpeedPlus by programming the DCFG.speed and after enumerating, set gadget->speed appropriately. Signed-off-by: John Youn --- drivers/usb/dwc3/gadget.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadg

[PATCH 18/19] usb: dwc3: Update maximum_speed for SuperSpeedPlus

2016-02-01 Thread John Youn
If the maximum_speed is not set, set it to a known value, either SuperSpeed or SuperSpeedPlus based on the type of controller we are using. If we are on DWC_usb31 controller, check the PHY interface to see if it is capable of SuperSpeedPlus. Also this check is moved after dwc3_core_init() so that

[PATCH 16/19] usb: dwc3: Update register fields for SuperSpeedPlus

2016-02-01 Thread John Youn
Update various registers fields definitions for the DWC_usb31 controller for SuperSpeedPlus support. Signed-off-by: John Youn --- drivers/usb/dwc3/core.h | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h index 15281c1..6b13e

[PATCH 05/19] usb: gadget: composite: Return SSP Dev Cap descriptor

2016-02-01 Thread John Youn
If a gadget supports SuperSpeedPlus or higher speeds, return a SuperSpeedPlus USB Device Capability descriptor. Currently this implementation returns a fixed descriptor with typical values set. Signed-off-by: John Youn --- drivers/usb/gadget/composite.c | 42

[PATCH 13/19] usb: gadget: composite: Update debug message for SuperSpeedPlus

2016-02-01 Thread John Youn
Update the debug message reporting the speeds that a configuration supports for SuperSpeedPlus. Signed-off-by: John Youn --- drivers/usb/gadget/composite.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/usb/gadget/composite.c b/drivers/usb/gadget/composite.c index

[PATCH 11/19] usb: gadget: composite: Write SuperSpeedPlus config descriptors

2016-02-01 Thread John Youn
Enable writing of SuperSpeedPlus descriptors for any SuperSpeedPlus capable configuration when connected in SuperSpeedPlus. Signed-off-by: John Youn --- drivers/usb/gadget/composite.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/usb/gadget/composite.c b/driver

[PATCH 10/19] usb: gadget: composite: Add function to get descriptors

2016-02-01 Thread John Youn
There are a couple places in the code that get the function descriptors based on the speed. Move this lookup into a function call and add support to handle the SuperSpeedPlus descriptors as well. Signed-off-by: John Youn --- drivers/usb/gadget/composite.c | 53 +--

[PATCH 14/19] usb: gadget: f_mass_storage: Enable SuperSpeedPlus

2016-02-01 Thread John Youn
Enable superspeed plus configuration for the mass storage gadget. The mass storage function doesn't do anything special for SuperSpeedPlus. Just pass in the same SuperSpeed descriptors for SuperSpeedPlus. Signed-off-by: John Youn --- drivers/usb/gadget/function/f_mass_storage.c | 2 +- 1 file c

[PATCH 02/19] usb: ch9: Add size macro for SSP dev cap descriptor

2016-02-01 Thread John Youn
The SuperspeedPlus Device Capability Descriptor has a variable size depending on the number of sublink speed attributes. This patch adds a macro to calculate that size. The macro takes one argument, the Sublink Speed Attribute Count (SSAC) as reported by the descriptor in bmAttributes[4:0]. See U

[PATCH 09/19] usb: gadget: composite: Count configs for SuperSpeedPlus

2016-02-01 Thread John Youn
If enumerated in SuperSpeedPlus, count the configurations that support it. Signed-off-by: John Youn --- drivers/usb/gadget/composite.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/usb/gadget/composite.c b/drivers/usb/gadget/composite.c index 560330f..44ad7aa

[PATCH 07/19] usb: gadget: Update function for SuperSpeedPlus

2016-02-01 Thread John Youn
Add a ssp_descriptors member to struct usb_function and handle the initialization and cleanup of it. This holds the SuperSpeedPlus descriptors for a function that supports SuperSpeedPlus. This is added by usb_assign_descriptors(). Signed-off-by: John Youn --- drivers/usb/gadget/config.c | 6 ++

[PATCH 00/19] usb: gadget: Add support for SuperSpeedPlus

2016-02-01 Thread John Youn
This series of patches adds SuperSpeedPlus support to the composite gadget framework. After this series the composite gadget framework should be able to support SuperSpeedPlus functions and gadgets. Additionally, the f_mass_storage function and the DWC3 gadget are updated to support SuperSpeedPlus

[PATCH 03/19] usb: gadget: Add gadget_is_superspeed_plus()

2016-02-01 Thread John Youn
Add a function to check for SuperSpeedPlus capable gadgets. Signed-off-by: John Youn --- include/linux/usb/gadget.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/include/linux/usb/gadget.h b/include/linux/usb/gadget.h index d82d006..d6a1bda 100644 --- a/include/linux/usb/gadget

[PATCH 04/19] usb: gadget: composite: Return bcdUSB 0x0310

2016-02-01 Thread John Youn
The USB 3.1 specification replaces the USB 3.0 specification and all new devices that are running at SuperSpeed or higher speeds must report a bcdUSB of 0x0310. Signed-off-by: John Youn --- drivers/usb/gadget/composite.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers

[PATCH 01/19] usb: ch9: Add USB_SPEED_SUPER_PLUS

2016-02-01 Thread John Youn
Add USB_SPEED_SUPER_PLUS to usb_device_speed enumeration and add an entry in the speed_names array for it. Signed-off-by: John Youn --- drivers/usb/common/common.c | 1 + include/uapi/linux/usb/ch9.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/usb/common/common.c b/drivers/usb

Re: [PATCH v6 18/22] usb: dwc2: host: Schedule periodic right away if it's time

2016-02-01 Thread Doug Anderson
Kever, On Sun, Jan 31, 2016 at 8:36 PM, Doug Anderson wrote: > Kever, > > On Sun, Jan 31, 2016 at 7:32 PM, Kever Yang wrote: >> Doug, >> >> >> On 02/01/2016 06:09 AM, Doug Anderson wrote: >>> >>> Kever, >>> >>> On Sun, Jan 31, 2016 at 1:36 AM, Kever Yang >>> wrote: Doug, >>>

[PATCH 2/2] usb: musb: Fix DMA desired mode for Mentor DMA engine

2016-02-01 Thread Joshua Henderson
From: Cristian Birsan Commit 6b6e97107f12f3a9f7 (USB: musb: fix isochronous TXDMA (take 2)) introduces a problem setting the desired channel mode for the Mentor DMA engine. There is a case where the pointer of the channel DMA mode is incorrectly assigned to a pointer value, when it should be ass

[PATCH 1/2] usb: musb: Fix DMA for host mode

2016-02-01 Thread Joshua Henderson
From: Cristian Birsan Commit ac33cdb166811223cc (usb: musb: Remove ifdefs for musb_host_rx in musb_host.c part5) introduces a problem setting DMA host mode. This fixes the done condition that advances the musb schedule. Without this patch the the msub_advance_schedule() is called immediately aft

Re: [PATCH v2 0/2] usb: dwc2: Fix regressions on bcm2835

2016-02-01 Thread John Youn
On 1/26/2016 8:14 AM, Doug Anderson wrote: > Hi, > > On Thu, Jan 21, 2016 at 3:28 PM, Heiko Stuebner wrote: >> Am Montag, 11. Januar 2016, 16:32:00 schrieb John Youn: >>> This series fixes a couple regressions reported on Raspberry Pi. >> >> same regressions (Isaw strange usb resets) seem to affe

我的个人主页是

2016-02-01 Thread 我的个人主页是
你的老朋友邀你来Q群:343257759

[PATCH] USB: cp210x: add IDs for GE B650V3 and B850V3 boards

2016-02-01 Thread Akshay Bhat
From: Ken Lin Add USB ID for cp2104/5 devices on GE B650v3 and B850v3 boards. Signed-off-by: Ken Lin Signed-off-by: Akshay Bhat --- drivers/usb/serial/cp210x.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/serial/cp210x.c b/drivers/usb/serial/cp210x.c index 987813b..7c319e

[PATCH] usb: xhci: fix build error for USB_SPEED_SUPER_PLUS

2016-02-01 Thread Arnd Bergmann
A recent patch introduced support for superspeed plus (USB3.1), but that caused a new gcc warning in the XHCI code: usb/host/xhci.c: In function 'xhci_drop_ep_from_interval_table': usb/host/xhci.c:2440:2: error: enumeration value 'USB_SPEED_SUPER_PLUS' not handled in switch [-Werror=switch] This

Re: USB: gadget: add USB Audio Gadget driver

2016-02-01 Thread Alan Stern
On Sun, 31 Jan 2016, Clemens Ladisch wrote: > Alan Stern wrote: > > On Sun, 31 Jan 2016, Clemens Ladisch wrote: > >> Alan Stern wrote: > >>> On Fri, 29 Jan 2016, Dan Carpenter wrote: > The patch c6994e6f067c: "USB: gadget: add USB Audio Gadget driver" > from Jun 3, 2009, leads to the fol

Re: [PATCH v4] USB: serial: cp210x: Adding GPIO support for CP2105

2016-02-01 Thread Martyn Welch
On 31/01/16 19:54, Johan Hovold wrote: On Mon, Jan 18, 2016 at 02:14:37PM +, Martyn Welch wrote: This patch adds support for the GPIO found on the CP2105. Unlike the GPIO provided by some of the other devices supported by the cp210x driver, the GPIO on the CP2015 is muxed on pins otherwise

Re: [PATCH 11/14] USB: serial: mos7840: move constants to right

2016-02-01 Thread Bjørn Mork
Mathieu OTHACEHE writes: > On Sun, Jan 31, 2016 at 10:33:54PM +0100, Bjørn Mork wrote: > >> I feel I'm missing something here, so I have to ask the stupid question: >> What could possibly be the benefit here? Is it faster? Safer? Easier >> to read? > > I don't think it will be faster or safer, m

Re: [PATCH 11/14] USB: serial: mos7840: move constants to right

2016-02-01 Thread Mathieu OTHACEHE
On Sun, Jan 31, 2016 at 10:33:54PM +0100, Bjørn Mork wrote: > Mathieu OTHACEHE writes: > > > This patch fixes the following coccinelle warnings: > > > > drivers/usb/serial/mos7840.c:2042:4-10: Move constant to right. > > drivers/usb/serial/mos7840.c:2062:16-22: Move constant to right. > > > > Sig