Re: question on trust in chaoskey

2016-05-19 Thread Dave Tian
> On May 19, 2016, at 10:59 PM, Dave Tian wrote: > > > >> On May 19, 2016, at 8:06 PM, Keith Packard wrote: >> >> Oliver Neukum writes: >> >>> I think we would need to use a form of public key cryptography >>> in the same

Re: [PATCH v8 13/14] usb: gadget: udc: adapt to OTG core

2016-05-19 Thread Peter Chen
On Wed, May 18, 2016 at 03:45:11PM +0300, Roger Quadros wrote: > On 18/05/16 06:18, Peter Chen wrote: > > On Mon, May 16, 2016 at 12:51:53PM +0300, Roger Quadros wrote: > >> On 16/05/16 12:23, Peter Chen wrote: > >>> On Mon, May 16, 2016 at 11:26:57AM +0300, Roger Quadros wrote: > Hi, >

Re: [PATCH] - silence UBSAN complaint in ehci-hcd.

2016-05-19 Thread Valdis . Kletnieks
On Thu, 19 May 2016 17:50:31 -0700, Greg Kroah-Hartman said: > On Thu, May 19, 2016 at 05:19:00PM -0400, Valdis Kletnieks wrote: > > UBSAN throws a complaint: > > > > [2.418579] UBSAN: Undefined behaviour in > > drivers/usb/host/ehci-hub.c:877:47 > > [2.418582] index -1 is out of range

Re: [PATCH] - silence UBSAN complaint in ehci-hcd.

2016-05-19 Thread Greg Kroah-Hartman
On Thu, May 19, 2016 at 05:19:00PM -0400, Valdis Kletnieks wrote: > UBSAN throws a complaint: > > [2.418579] UBSAN: Undefined behaviour in > drivers/usb/host/ehci-hub.c:877:47 > [2.418582] index -1 is out of range for type 'u32 [1]' > > though it's only on the hostpc[] part, not on the

[PATCH v2 2/6] usb: dwc3: gadget: Initialize the TRB ring

2016-05-19 Thread John Youn
Clears out all the TRBs in the ring to clean up any stale data that might be in them from the previous time the endpoint was enabled. Also removed the existing clear of the LINK trb since the entire ring is cleard just before. Signed-off-by: John Youn ---

[PATCH v2 6/6] usb: dwc3: gadget: Handle TRB index 0 when full or empty

2016-05-19 Thread John Youn
If the trb->enqueue == trb->dequeue, then it could be full or empty. This could also happen at TRB index 0, so modify the check to handle that condition. At index 0, the previous TRB is the one just before the link TRB. Signed-off-by: John Youn ---

[PATCH v2 1/6] usb: dwc3: gadget: Simplify skipping of link TRBs

2016-05-19 Thread John Youn
Make the skipping of the link TRBS built-in to the increment operation. This simplifies the code wherever we increment the trb index and ensures that we never end up pointing to a link trb. Signed-off-by: John Youn --- drivers/usb/dwc3/gadget.c | 34

[PATCH v2 0/6] usb: dwc3: gadget: TRB ring handling fixes

2016-05-19 Thread John Youn
This series addresses a few issues with the TRB ring handling and calculation of free space on the ring. v2: - Split up patches into individual fixes with better descriptions. - Added dwc3_ep_prev_trb() to get the previous TRB. - Moved the increment calculation into one function and documented

[PATCH v2 3/6] usb: dwc3: gadget: Don't prepare TRBs if no space

2016-05-19 Thread John Youn
If trbs_left == 0, we don't have any space left in the TRB ring so don't prepare anything. Signed-off-by: John Youn --- drivers/usb/dwc3/gadget.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index

[PATCH v2 5/6] usb: dwc3: gadget: Account for link TRB in TRBs left

2016-05-19 Thread John Youn
The TRBs left calculation didn't account for the link TRB taking up one spot. If the trb_dequeue < trb_enqueue, then the result includes the link TRB slot so it must be adjusted. Signed-off-by: John Youn --- drivers/usb/dwc3/gadget.c | 3 +++ 1 file changed, 3

[PATCH v2 4/6] usb: dwc3: gadget: Account for max size in TRB space

2016-05-19 Thread John Youn
The current calculation takes dep->trb_dequeue - dep->trb_enqueue to find the TRB space left. If you enqueue 1, that results in: (u8) 0 - (u8) 1 = 0xff = 255 TRBs left. This is correct if DWC3_TRB_NUM == 256. If DWC3_TRB_NUM is less than 256 (but still a power of 2) you need to mod the result

Re: question on trust in chaoskey

2016-05-19 Thread Keith Packard
Oliver Neukum writes: > I think we would need to use a form of public key cryptography > in the same manner used to verify authorship of emails. The host > would provide a nonce value that the device encrypts and returns. > The host would verify the signature. We could

[PATCH] - silence UBSAN complaint in ehci-hcd.

2016-05-19 Thread Valdis Kletnieks
UBSAN throws a complaint: [2.418579] UBSAN: Undefined behaviour in drivers/usb/host/ehci-hub.c:877:47 [2.418582] index -1 is out of range for type 'u32 [1]' though it's only on the hostpc[] part, not on the port_status[] on the previous line which has the same exact index calculation.

Re: [PATCH] usb: echi-hcd: Add ehci_setup check before echi_shutdown

2016-05-19 Thread Andy Gross
On 19 May 2016 at 05:12, Srinivas Kandagatla wrote: > +++ b/drivers/usb/host/ehci-hcd.c > @@ -368,6 +368,15 @@ static void ehci_shutdown(struct usb_hcd *hcd) > { > struct ehci_hcd *ehci = hcd_to_ehci(hcd); > > + /** > +* Protect the system

Re: [PATCH] usb: echi-hcd: Add ehci_setup check before echi_shutdown

2016-05-19 Thread Andy Gross
On 19 May 2016 at 05:12, Srinivas Kandagatla wrote: > This patch protects system from crashing at shutdown in > cases where usb host is not added yet from OTG controller driver. > As ehci_setup() not done yet, so stop accessing registers or > variables initialized

[PATCH] USB: EHCI: avoid undefined pointer arithmetic and placate UBSAN

2016-05-19 Thread Alan Stern
Several people have reported that UBSAN doesn't like the pointer arithmetic in ehci_hub_control(): u32 __iomem *status_reg = >regs->port_status[ (wIndex & 0xff) - 1]; u32 __iomem *hostpc_reg = >regs->hostpc[(wIndex & 0xff) - 1]; If wIndex

Re: question on trust in chaoskey

2016-05-19 Thread Keith Packard
Oliver Neukum writes: > Good point. The logical answer would be to not ship the key. That means > that users would "format" their chaoskeys and get their private key into > the kernel by an attribute or ioctl. Now *there's* a good idea. Ship the firmware and firmware loader

Re: UBSAN whinge in ihci-hub.c

2016-05-19 Thread Alan Stern
On Thu, 19 May 2016, Andrey Ryabinin wrote: > 2016-05-18 22:28 GMT+03:00 Alan Stern : > > On Wed, 18 May 2016, Andrey Ryabinin wrote: > > > >> 2016-05-18 19:09 GMT+03:00 Alan Stern : > >> > On Wed, 18 May 2016, Andrey Ryabinin wrote: > >> > >

Re: question on trust in chaoskey

2016-05-19 Thread Oliver Neukum
On Thu, 2016-05-19 at 12:52 -0700, Keith Packard wrote: > Oliver Neukum writes: > > > I think we would need to use a form of public key cryptography > > in the same manner used to verify authorship of emails. The host > > would provide a nonce value that the device encrypts and

Re: question on trust in chaoskey

2016-05-19 Thread Keith Packard
Oliver Neukum writes: > I think we would need to use a form of public key cryptography > in the same manner used to verify authorship of emails. The host > would provide a nonce value that the device encrypts and returns. > The host would verify the signature. We're shipping

Re: question on trust in chaoskey

2016-05-19 Thread Oliver Neukum
On Thu, 2016-05-19 at 14:12 -0400, Dave Tian wrote: > > The Chaoskey device explicitly does not address physical > > attacks. Assuming physical security makes things a lot easier, and > > one > > of the simplifications is that we can assume that any physical > > device > > connected to the

Re: [RFC 4/8] usb: phy: move TCSR driver into new file

2016-05-19 Thread Andy Gross
On 18 May 2016 at 16:24, Arnd Bergmann wrote: > +/* > + * This abstracts the TCSR register area in Qualcomm SoCs, originally > + * introduced by Tim Bird as part of the phy-msm-usb.ko device driver, > + * and split out by Arnd Bergmann into a separate file. > + * > + * This file

Re: [PATCH 1/1] net: pegasus: remove dead coding

2016-05-19 Thread David Miller
From: Heinrich Schuchardt Date: Wed, 18 May 2016 02:13:30 +0200 > (!count || count < 4) is always true. > So let's remove the coding which is dead at least since 2005. > > Signed-off-by: Heinrich Schuchardt Applied. -- To unsubscribe from this list:

Re: [PATCH net,stable v2] net: cdc_ncm: update datagram size after changing mtu

2016-05-19 Thread Bjørn Mork
Robert Dobrowolski writes: > From: Rafal Redzimski > > Current implementation updates the mtu size and notify cdc_ncm > device using USB_CDC_SET_MAX_DATAGRAM_SIZE request about datagram > size change instead of changing

Re: [PATCH 2/2] usb: dwc3: gadget: Various fixes to trbs_left calculation

2016-05-19 Thread John Youn
On 5/19/2016 12:51 AM, Felipe Balbi wrote: > > Hi, > > John Youn writes: >> This patch fixes up some issues related to the trb_left calculation. >> >> This calculation sometimes included the link trb slot in the trbs_left >> and sometimes didn't. > > good catch. But this

Re: [RFC PATCHv2] usb: USB Type-C Connector Class

2016-05-19 Thread Guenter Roeck
Hello Heikki, On Thu, May 19, 2016 at 03:44:54PM +0300, Heikki Krogerus wrote: > The purpose of this class is to provide unified interface for user > space to get the status and basic information about USB Type-C > Connectors in the system, control data role swapping, and when USB PD > is

Re: [PATCHv2 00/15] Get MUSB PM runtime working again

2016-05-19 Thread Tony Lindgren
* Tony Lindgren [160519 08:28]: > +static void dsps_musb_set_power(struct musb *musb, bool enabled) > +{ > + struct dsps_glue *glue = dev_get_drvdata(musb->controller->parent); > + int err; > + > + if (enabled == glue->powered) { > +

composite gadget with _real_ USB device

2016-05-19 Thread Shea Ako
Hello, I’ve been learning about and playing with configfs and functionfs to create composite user space USB gadgets. My objective is to create a composite USB gadget that incorporates a custom functionfs function of my own creation along with some _real_ USB devices connected to my linux

Re: question on trust in chaoskey

2016-05-19 Thread Keith Packard
Oliver Neukum writes: > Hi, > > I've been going through the drivers with an eye on security. > And a question arose. How do we know that a device that claims > to be a chaoskey is really a chaoskey? A fine question, and one we've thought about extensively. The Chaoskey device

Re: UBSAN whinge in ihci-hub.c

2016-05-19 Thread Andrey Ryabinin
2016-05-18 22:28 GMT+03:00 Alan Stern : > On Wed, 18 May 2016, Andrey Ryabinin wrote: > >> 2016-05-18 19:09 GMT+03:00 Alan Stern : >> > On Wed, 18 May 2016, Andrey Ryabinin wrote: >> > >> >> 2016-05-18 17:40 GMT+03:00 Alan Stern

RE: MUSB driver on AM3352 dropping USB packets

2016-05-19 Thread Andrew Goodbody
> From: Bin Liu [mailto:b-...@ti.com] > Hi, > > On Fri, May 06, 2016 at 10:41:46AM +, Andrew Goodbody wrote: > > > From: Bin Liu [mailto:b-...@ti.com] > > > On Thu, May 05, 2016 at 04:02:55PM +, Andrew Goodbody wrote: > > > > > From: Bin Liu [mailto:b-...@ti.com] On Thu, May 05, 2016 at >

Re: [RFC PATCHv2] usb: USB Type-C Connector Class

2016-05-19 Thread Greg KH
On Thu, May 19, 2016 at 04:48:46PM +0200, Oliver Neukum wrote: > On Thu, 2016-05-19 at 15:44 +0300, Heikki Krogerus wrote: > > > + dev->class = _class; > > + dev->parent = parent; > > + dev->type = _partner_dev_type; > > + dev_set_name(dev, "%s-partner", dev_name(>dev)); > > + > > + ret

Re: xhci DWC3 flavor problem

2016-05-19 Thread Joao Pinto
After a few moments the schedule problem happen again: # INFO: task kworker/0:1:349 blocked for more than 120 seconds. Not tainted 4.6.0-rc5 #9 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. kworker/0:1 D ff8008086c60 0 349 2 0x

Re: xhci DWC3 flavor problem

2016-05-19 Thread Joao Pinto
Hi Felipe and Mathias, On 5/19/2016 1:22 PM, Mathias Nyman wrote: > On 19.05.2016 14:23, Joao Pinto wrote: >> Hi Felipe, >> >> On 5/19/2016 11:32 AM, Felipe Balbi wrote: >>> >>> Hi, >>> >>> >>> Note that we really did get a command timeout. Can you add a little >>> extra debugging to try and

Re: [RFC 0/8] usb: phy: msm: various cleanups

2016-05-19 Thread Andy Gross
On 19 May 2016 at 01:52, Peter Chen wrote: > > > On Thu, May 19, 2016 at 5:24 AM, Arnd Bergmann wrote: >> >> I stumbled over this warning last week, which showed up after I had >> removed an incorrect patch from my randconfig build setup: >> >>

Re: [PATCHv2 00/15] Get MUSB PM runtime working again

2016-05-19 Thread Tony Lindgren
Hi, * Bin Liu [160518 11:12]: > On Wed, May 18, 2016 at 11:07:37AM -0700, Tony Lindgren wrote: > > > > Is this with or without the $subject series? > > Without. OK sounds like you have a fix coming for that issue. > > > I tried to enable some dynamic-debug log, but was unable

[PATCH] usb: musb: only restore devctl when session was set in backup

2016-05-19 Thread Bin Liu
If the session bit was not set in the backup of devctl register, restoring devctl would clear the session bit. Therefor, only restore devctl register when the session bit was set in the backup. This solves the device enumeration failure in otg mode exposed by commit 56f487c (PM / Runtime: Update

[PATCH v2 2/2] usb: quirks: Add no-lpm quirk for Acer C120 LED Projector

2016-05-19 Thread Hans de Goede
The Acer C120 LED Projector is a USB-3 connected pico projector which takes both its power and video data from USB-3. In combination with some hubs this device does not play well with lpm, so disable lpm for it. Signed-off-by: Hans de Goede --- Changes in v2: -Properly sort

[PATCH v2 1/2] usb: quirks: Fix sorting

2016-05-19 Thread Hans de Goede
Properly sort all the entries by vendor id. Signed-off-by: Hans de Goede --- Changes in v2: -This is a new patch in v2 of this patch-set --- drivers/usb/core/quirks.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git

Re: [RFC PATCHv2] usb: USB Type-C Connector Class

2016-05-19 Thread Oliver Neukum
On Thu, 2016-05-19 at 15:44 +0300, Heikki Krogerus wrote: > + dev->class = _class; > + dev->parent = parent; > + dev->type = _partner_dev_type; > + dev_set_name(dev, "%s-partner", dev_name(>dev)); > + > + ret = device_register(dev); > + if (ret) { > +

Re: [RFC PATCHv2] usb: USB Type-C Connector Class

2016-05-19 Thread Oliver Neukum
On Thu, 2016-05-19 at 15:44 +0300, Heikki Krogerus wrote: > The purpose of this class is to provide unified interface for user > space to get the status and basic information about USB Type-C > Connectors in the system, control data role swapping, and when USB PD > is available, also power role

question on trust in chaoskey

2016-05-19 Thread Oliver Neukum
Hi, I've been going through the drivers with an eye on security. And a question arose. How do we know that a device that claims to be a chaoskey is really a chaoskey? Regards Oliver -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a

Re: [PATCH] usb: echi-hcd: Add ehci_setup check before echi_shutdown

2016-05-19 Thread Alan Stern
On Thu, 19 May 2016, Srinivas Kandagatla wrote: > This patch protects system from crashing at shutdown in > cases where usb host is not added yet from OTG controller driver. > As ehci_setup() not done yet, so stop accessing registers or > variables initialized as part of ehci_setup(). > > The

[PATCH] USB: serial: cp210x: use kmemdup

2016-05-19 Thread Muhammad Falak R Wani
Use kmemdup when some other buffer is immediately copied into allocated region. It replaces call to allocation followed by memcpy, by a single call to kmemdup. Signed-off-by: Muhammad Falak R Wani --- drivers/usb/serial/cp210x.c | 4 +--- 1 file changed, 1 insertion(+), 3

[PATCH] net: usb: ch9200: use kmemdup

2016-05-19 Thread Muhammad Falak R Wani
Use kmemdup when some other buffer is immediately copied into allocated region. It replaces call to allocation followed by memcpy, by a single call to kmemdup. Signed-off-by: Muhammad Falak R Wani --- drivers/net/usb/ch9200.c | 3 +-- 1 file changed, 1 insertion(+), 2

ffs-test fails with warning (-19) No such device

2016-05-19 Thread Jan.Huber
I'm trying to establish a high performance USB connection from device/gadget to host. On the USB gadget side I'm running on a Atmel ATSAMA5D35-EK. The Linux Kernel version is 4.1 (4.1.0-linux4sam_5.2-00045-g633e08a) and I'm using configfs to set things up. I strictly followed the steps

Re: xhci DWC3 flavor problem

2016-05-19 Thread Joao Pinto
Hi Mathias and Felipe, On 5/19/2016 1:22 PM, Mathias Nyman wrote: > On 19.05.2016 14:23, Joao Pinto wrote: >> Hi Felipe, >> >> On 5/19/2016 11:32 AM, Felipe Balbi wrote: >>> >>> Hi, >>> >>> >>> Note that we really did get a command timeout. Can you add a little >>> extra debugging to try and

[RFC PATCHv2] usb: USB Type-C Connector Class

2016-05-19 Thread Heikki Krogerus
The purpose of this class is to provide unified interface for user space to get the status and basic information about USB Type-C Connectors in the system, control data role swapping, and when USB PD is available, also power role swapping and Alternate Modes. Signed-off-by: Heikki Krogerus

Re: xhci DWC3 flavor problem

2016-05-19 Thread Felipe Balbi
Hi, Joao Pinto writes: > Hi Felipe, > > On 5/19/2016 11:32 AM, Felipe Balbi wrote: >> >> Hi, >> >> Joao Pinto writes: >>> Hi Felipe and Mathias, >>> >>> Sending kernel log with extra xhci messages in attachment! >>> Thanks you for the help!

Re: xhci DWC3 flavor problem

2016-05-19 Thread Mathias Nyman
On 19.05.2016 14:23, Joao Pinto wrote: Hi Felipe, On 5/19/2016 11:32 AM, Felipe Balbi wrote: Hi, Note that we really did get a command timeout. Can you add a little extra debugging to try and figure out why that command failed? After instrumenting and capturing FPGA signals, the driver

Re: xhci DWC3 flavor problem

2016-05-19 Thread Joao Pinto
Hi Felipe, On 5/19/2016 11:32 AM, Felipe Balbi wrote: > > Hi, > > Joao Pinto writes: >> Hi Felipe and Mathias, >> >> Sending kernel log with extra xhci messages in attachment! >> Thanks you for the help! > > yeah, no problems. So here's the interesting part: > >

Re: xhci DWC3 flavor problem

2016-05-19 Thread Felipe Balbi
Hi, Joao Pinto writes: > Hi Felipe and Mathias, > > Sending kernel log with extra xhci messages in attachment! > Thanks you for the help! yeah, no problems. So here's the interesting part: *INSERTING PEN DRIVE # xhci-hcd

Re: xhci DWC3 flavor problem

2016-05-19 Thread Joao Pinto
Hi Felipe and Mathias, Sending kernel log with extra xhci messages in attachment! Thanks you for the help! On 5/19/2016 11:02 AM, Joao Pinto wrote: > Hi Felipe! > > On 5/19/2016 10:57 AM, Felipe Balbi wrote: >> >> Hi João, >> >> Adding Mathias, who's xHCI's maintainer >> >> Joao Pinto

Re: xhci DWC3 flavor problem

2016-05-19 Thread Felipe Balbi
Hi João, Adding Mathias, who's xHCI's maintainer Joao Pinto writes: > Hi Felipe, > > I am trying to bring up a DWC USB 3.0 Host with linux (v4.6-rc5) > running in a ARM64 development board. Just to be clear, is this Juno with dwc3 in FPGA or do you have dwc3 in ASIC?

[PATCH net,stable v2] net: cdc_ncm: update datagram size after changing mtu

2016-05-19 Thread Robert Dobrowolski
From: Rafal Redzimski Current implementation updates the mtu size and notify cdc_ncm device using USB_CDC_SET_MAX_DATAGRAM_SIZE request about datagram size change instead of changing rx_urb_size. Whenever mtu is being changed, datagram size should also be updated.

xhci DWC3 flavor problem

2016-05-19 Thread Joao Pinto
Hi Felipe, I am trying to bring up a DWC USB 3.0 Host with linux (v4.6-rc5) running in a ARM64 development board. I have implemented the following suggested fix to overcome the DMA problem I was having: https://lkml.org/lkml/2016/3/31/609 I received one interrupt but I am getting cyclic

RE: [PATCH] usb: gadget: f_fs: report error if excess data received

2016-05-19 Thread Du, Changbin
Hi, > > I'd prefer fail the request at all, and it is better done in HW. > > Because per the USB Spec that device can return NAK if a function was > > unable to accept data From the host. The DWC3 has not been design as > > this, if software fail the transfer, it is a little weird for host. > > >

Re: [PATCH 2/2] usb: dwc3: gadget: Various fixes to trbs_left calculation

2016-05-19 Thread Felipe Balbi
Hi, John Youn writes: > This patch fixes up some issues related to the trb_left calculation. > > This calculation sometimes included the link trb slot in the trbs_left > and sometimes didn't. good catch. But this patch seems like it can be broken into smaller pieces. See

Re: [PATCH] usb: gadget: f_fs: report error if excess data received

2016-05-19 Thread Michal Nazarewicz
On Thu, May 19 2016, Changbin Du wrote: >> On Wed, May 18 2016, Felipe Balbi wrote: >> > we've been through this before. This needs to be done at the gadget >> > layer. Gadget driver can over-allocate ahead of time if >> > gadget->quirk_ep_out_aligned_size is true, then we avoid memcpy() at >> >

Re: [PATCH v8 13/14] usb: gadget: udc: adapt to OTG core

2016-05-19 Thread Roger Quadros
On 18/05/16 17:46, Jun Li wrote: > > I didn't want to have complex Kconfig so decided to have otg as built-in only. What do you want me to change in existing code? and why? >>> >>> Remove those stuff which only for pass diff driver config Like every >>> controller driver need

Re: [PATCH 1/2] usb: dwc3: gadget: Simplify skipping of link TRBs

2016-05-19 Thread Felipe Balbi
Hi, John Youn writes: > Make the skipping of the link TRBS build-in to the increment and > decrement operations. This simplifies the code wherever we increment and > decrement and ensures that we never end up pointing to a link trb. > > Signed-off-by: John Youn

[PATCH 2/2] usb: dwc3: gadget: Various fixes to trbs_left calculation

2016-05-19 Thread John Youn
This patch fixes up some issues related to the trb_left calculation. This calculation sometimes included the link trb slot in the trbs_left and sometimes didn't. In the case where the dequeue < enqueue, this number does not include the link trb and should be used as-is. Otherwise it will include

[PATCH 0/2] dwc3: gadget: Fix trbs left fixes

2016-05-19 Thread John Youn
Hi Felipe, I see you touched some stuff with the trb calculations in your recent dwc3 patch series. I had very similar changes in my tree in which I'm doing some isoc enhancements. So I rebased them against your patches and tested. They seem to work ok so far and they fix a couple issues with the

Re: [PATCH 10/22] usb: dwc3: gadget: initialize NUMP based on RxFIFO Size

2016-05-19 Thread Felipe Balbi
Hi, John Youn writes: >> @@ -1589,6 +1578,46 @@ static void dwc3_gadget_disable_irq(struct dwc3 *dwc) >> static irqreturn_t dwc3_interrupt(int irq, void *_dwc); >> static irqreturn_t dwc3_thread_interrupt(int irq, void *_dwc); >> >> +/** >> + * dwc3_gadget_setup_nump

Re: [PATCH 11/22] usb: dwc3: gadget: clear LST from previous TRB on Update Transfer

2016-05-19 Thread Felipe Balbi
Hi, Paul Zimmerman writes: > Felipe Balbi writes: > >> If we're going to issue a Update Transfer command, >> let's clear LST bit from previous TRB. This will let >> us continue processing TRBs and convert previous IRQ >> into XferInProgress,