[PATCH 0/3] USB: PHY: minor include cleanups

2016-02-02 Thread Bjorn Helgaas
Remove some gpio and regulator #includes when they can be replaced by trivial forward struct declarations. Also move a linux/gpio/consumer.h #include from a header to the single .c files that uses it. --- Bjorn Helgaas (3): usb: phy: generic: use forward declarations instead of #includes

[PATCH 1/3] usb: phy: generic: use forward declarations instead of #includes

2016-02-02 Thread Bjorn Helgaas
In include/linux/usb/usb_phy_generic.h, use a forward declaration for struct gpio_desc instead of including linux/gpio/consumer.h. Of the files that include usb_phy_generic.h, only drivers/usb/phy/phy-generic.c uses the gpiod_*() interfaces from linux/gpio/consumer.h, so include consumer.h

[PATCH 3/3] usb: phy: phy-am335x: remove include of regulator/consumer.h

2016-02-02 Thread Bjorn Helgaas
phy-am335x.c doesn't use any interfaces from linux/regulator/consumer.h, so stop including it. Signed-off-by: Bjorn Helgaas CC: Sebastian Andrzej Siewior --- drivers/usb/phy/phy-am335x.c |1 - 1 file changed, 1 deletion(-) diff --git

[PATCH 2/3] usb: phy: generic: use forward declarations instead of #includes

2016-02-02 Thread Bjorn Helgaas
In drivers/usb/phy/phy-generic.h, use forward declarations for struct regulator and struct gpio_desc instead of including linux/regulator/consumer.h and linux/gpio/consumer.h. phy-generic.c is included three places (phy-am335x.c, phy-generic.c, phy-keystone.c). Of these, phy-am335x.c and

Re: [PATCH 0/3] USB: PHY: minor include cleanups

2016-02-02 Thread Mark Brown
On Tue, Feb 02, 2016 at 02:02:30PM -0600, Bjorn Helgaas wrote: > Remove some gpio and regulator #includes when they can be replaced by > trivial forward struct declarations. Also move a linux/gpio/consumer.h > #include from a header to the single .c files that uses it. Please don't CC me on

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

2016-02-02 Thread Doug Anderson
Kever, On Mon, Feb 1, 2016 at 11:04 PM, Kever Yang wrote: >>> Oh, now I get what you're saying! >>> >>> A) You've got dwc2_release_channel() -> dwc2_deactivate_qh() -> >>> dwc2_hcd_qh_deactivate() >>> ...and always in that case we'll do a select / queue, so we don't

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

2016-02-02 Thread Doug Anderson
Kever, On Mon, Feb 1, 2016 at 11:46 PM, Kever Yang wrote: > 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

Re: [PATCH v6 0/22] usb: dwc2: host: Fix and speed up all the stuff, especially with splits

2016-02-02 Thread John Youn
On 1/28/2016 6:20 PM, Douglas Anderson wrote: > This is a bit of catchall series for all the bug fix and performance > patches I've been working on over the last few months. Note that for > dwc2 we need to do LOTS in software and need super low interrupt > latency, so most performance

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

2016-02-02 Thread Kever Yang
Doug, Thanks for your detail debug information, pls add my Reviewed-by for this patch. Thanks, - Kever On 02/03/2016 06:47 AM, Doug Anderson wrote: Kever, On Mon, Feb 1, 2016 at 11:46 PM, Kever Yang wrote: Doug, On 01/29/2016 10:20 AM, Douglas Anderson wrote:

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

2016-02-02 Thread Mathias Nyman
On 01.02.2016 18:18, Arnd Bergmann wrote: 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'

USB Raw HID

2016-02-02 Thread Suresh Gupta
I want to write end to end raw HID interface for some specific user defined data communication on USB. Can anyone 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

Re: [PATCH] usb: xhci: fix build warning

2016-02-02 Thread Mathias Nyman
On 02.02.2016 08:30, Sudip Mukherjee wrote: 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

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

2016-02-02 Thread Bjørn Mork
Sergei Shtylyov writes: > On 2/2/2016 4:39 AM, John Youn wrote: > >> 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:

Re: [PATCH v7 00/10] usb: early: add support for early printk through USB3 debug port

2016-02-02 Thread Lu Baolu
On 01/26/2016 08:58 PM, Lu Baolu wrote: > Hi, > > This patch series adds support for early printk through USB3 debug port. > USB3 debug port is described in xHCI specification as an optional extended > capability. > > Patch 1 to 9 add the driver for xHCI debug capability. It interfaces with >

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

2016-02-02 Thread Martyn Welch
On 02/02/16 10:41, Karl Palsson wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martyn Welch wrote: The cp2105 is the only one of these devices that muxes GPIO with serial control signals. The cp2102, cp2103 and cp2108 provide both GPIO and serial

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

2016-02-02 Thread Karl Palsson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martyn Welch wrote: > > > > The cp2105 is the only one of these devices that muxes GPIO > with serial control signals. The cp2102, cp2103 and cp2108 > provide both GPIO and serial control signals separately, so the >

Re: [PATCH v2] Add support for usbfs zerocopy.

2016-02-02 Thread Steinar H. Gunderson
On Mon, Jan 25, 2016 at 09:03:57AM +0100, Steinar H. Gunderson wrote: > I did git rebase --ignore-date HEAD^ just to reset the date. Sending it as an > attachment just to be sure. Hi Greg, Did this work for you? Is there anything else I should do to this patch? /* Steinar */ -- Software

Re: USB Raw HID

2016-02-02 Thread Greg KH
On Tue, Feb 02, 2016 at 08:28:51AM +, Suresh Gupta wrote: > I want to write end to end raw HID interface for some specific user defined > data communication on USB. Can anyone help me or point me >   > 1. What all changes I need in device/host driver. > 2. How it interact with application at

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

2016-02-02 Thread Sergei Shtylyov
On 02/02/2016 07:36 PM, Joshua Henderson wrote: From: Cristian Birsan Commit 6b6e97107f12f3a9f7 (USB: musb: fix isochronous TXDMA (take 2)) introduces Again, wrong commit style. Commit citing style, I meant. And I really doubt that blaming my commit

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

2016-02-02 Thread Sergei Shtylyov
Hello. On 2/2/2016 3:37 AM, Joshua Henderson wrote: 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. scripts/checkpatch.pl now enforces certain

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

2016-02-02 Thread Sergei Shtylyov
On 2/2/2016 3:37 AM, Joshua Henderson wrote: From: Cristian Birsan Commit 6b6e97107f12f3a9f7 (USB: musb: fix isochronous TXDMA (take 2)) introduces Again, wrong commit style. And I really doubt that blaming my commit was correct. :-) a problem setting

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

2016-02-02 Thread Joshua Henderson
Sergei, On 02/02/2016 06:32 AM, Sergei Shtylyov wrote: > On 2/2/2016 3:37 AM, Joshua Henderson wrote: > >> From: Cristian Birsan >> >> Commit 6b6e97107f12f3a9f7 (USB: musb: fix isochronous TXDMA (take 2)) >> introduces > >Again, wrong commit style. And I

[PATCH 1/1] usb: usbip: Fix possible deadlocks reported by lockdep

2016-02-02 Thread Andrew Goodbody
Change spin_lock calls to spin_lock_irqsave to prevent attmpted recursive lock taking in interrupt context. This patch fixes Bug 109351 https://bugzilla.kernel.org/show_bug.cgi?id=109351 Signed-off-by: Andrew Goodbody --- drivers/usb/usbip/usbip_event.c | 5

RE: USB Raw HID

2016-02-02 Thread Suresh Gupta
> -Original Message- > From: Greg KH [mailto:gre...@linuxfoundation.org] > Sent: Tuesday, February 02, 2016 10:19 PM > To: Suresh Gupta ; suresh gupta > > Cc: linux-usb@vger.kernel.org > Subject: Re: USB Raw HID > > On Tue, Feb 02, 2016

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

2016-02-02 Thread Sergei Shtylyov
Hello. On 2/2/2016 4:42 AM, John Youn wrote: 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

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

2016-02-02 Thread Sergei Shtylyov
On 2/2/2016 4:39 AM, John Youn wrote: 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 +-