Line6 podstudio UX1 - driver crash on usb_hcd_map_urb_for_dma

2019-04-26 Thread Christo Gouws
Hi, I have a Line6 Pod Studio UX1 card, but each time I plug it in, I get the following crash in dmesg on Ubuntu 18.04 Linux my-pc 4.20.8-042008-generic #201902121544 SMP Tue Feb 12 20:46:50 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux I've also tested this with a Fedora 30 v5.0.6-300 kernel, but stil

Re: Use device tree to disable U1/U2 in gadget devices based on DWC3

2019-04-26 Thread Claus H. Stovgaard
On Wed, 2019-04-24 at 14:33 -0400, Alan Stern wrote: > On Wed, 24 Apr 2019, Claus H. Stovgaard wrote: > > > > > Hi Balbi and other USB developers. > > > > I am developing camera devices based on Xilinx ZynqMP, using the > > gadget framework and the build-in dwc3 core of the ZynqMP as USB3 > > co

Re: Use device tree to disable U1/U2 in gadget devices based on DWC3

2019-04-26 Thread Claus H. Stovgaard
On Thu, 2019-04-25 at 13:11 -0700, Rob Weber wrote: > Hi Everyone, > > On Wed, Apr 24, 2019 at 02:33:48PM -0400, Alan Stern wrote: > > > > On Wed, 24 Apr 2019, Claus H. Stovgaard wrote: > > > > > > > > Hi Balbi and other USB developers. > > > > > > I am developing camera devices based on Xilin

[PATCH 4/4] usb: xhci: add endpoint context tracing when an endpoint is added

2019-04-26 Thread Mathias Nyman
The configure endpoint command configures all the endpoints that were flagged to be added or dropped. To know the content of each of the added endpoints we need to add tracing to the .add_endpoint() callback, just after initializing all the context values. Signed-off-by: Mathias Nyman --- drive

[PATCH 1/4] usb: xhci: add Immediate Data Transfer support

2019-04-26 Thread Mathias Nyman
From: Nicolas Saenz Julienne Immediate data transfers (IDT) allow the HCD to copy small chunks of data (up to 8bytes) directly into its output transfer TRBs. This avoids the somewhat expensive DMA mappings that are performed by default on most URBs submissions. In the case an URB was suitable fo

[PATCH 0/4] xhci features for usb-next

2019-04-26 Thread Mathias Nyman
Hi Greg A few features for usb next, mostly tracing and debugging features, but also support for Immediate Data Transfer for small (up to 8 bytes) data transfers -Mathias Mathias Nyman (3): xhci: add port and bus number to port dynamic debugging xhci: Add tracing for input control context

[PATCH 3/4] xhci: Add tracing for input control context

2019-04-26 Thread Mathias Nyman
Add tracing for the add and drop bits in the input control context used in Address device, configure endpoint, evaluate context commands. The add and drop bits tell xHC which enpoints are added and dropped. Signed-off-by: Mathias Nyman --- drivers/usb/host/xhci-trace.h | 25

Linux crash when using FTDI FT232R USB to serial converter on AMD boards.

2019-04-26 Thread starost...@gmail.com
Hello all, we are development and manufacturing company that use your FT232R serial converter for couple of years with our software. We consume about a hundreds pcs of FT232R per yer. We use FT232R as USB serial converter with direct access (no virtual serial port) and as a "hardware key" usin

Re: [PATCH 01/14] usb: dwc2: Fix dwc2_restore_device_registers() function.

2019-04-26 Thread Doug Anderson
Hi, On Fri, Apr 12, 2019 at 6:38 AM Artur Petrosyan wrote: > > - Added backup of DCFG register. > - Added Set the Power-On Programming done bit. > > Signed-off-by: Artur Petrosyan > --- > drivers/usb/dwc2/gadget.c | 10 ++ > 1 file changed, 10 insertions(+) > > diff --git a/drivers/usb/

Re: [PATCH v1 03/14] usb: dwc2: Fix wakeup detected and session request interrupt handlers.

2019-04-26 Thread Doug Anderson
Hi, On Fri, Apr 19, 2019 at 1:05 PM Artur Petrosyan wrote: > > @@ -426,8 +438,6 @@ static void dwc2_handle_wakeup_detected_intr(struct > dwc2_hsotg *hsotg) > /* Change to L0 state */ > hsotg->lx_state = DWC2_L0; > } else { > - if (hsotg->para

Re: [PATCH v1 04/14] usb: dwc2: Fix suspend state in host mode for partial power down.

2019-04-26 Thread Doug Anderson
Hi, On Fri, Apr 19, 2019 at 1:05 PM Artur Petrosyan wrote: > > - In dwc2_port_suspend() function added waiting for the > HPRT0.PrtSusp register field to be set. > > - In _dwc2_hcd_suspend() function added checking of > "hsotg->flags.b.port_connect_status" port connection > status if port co

Re: [PATCH v1 05/14] usb: dwc2: Add port conn. sts. checking in _dwc2_hcd_resume() function.

2019-04-26 Thread Doug Anderson
Hi, On Fri, Apr 19, 2019 at 11:53 AM Artur Petrosyan wrote: > > Added port connection status checking which prevents exiting from > Partial Power Down mode from _dwc2_hcd_resume() when no entering > to Partial Power Down mode happened. > > Signed-off-by: Artur Petrosyan > --- > drivers/usb/dwc2

Re: [PATCH v1 06/14] usb: dwc2: Add part. power down exit from dwc2_conn_id_status_change().

2019-04-26 Thread Doug Anderson
Hi, On Fri, Apr 19, 2019 at 11:53 AM Artur Petrosyan wrote: > > Before changing to connector B exiting from Partial > Power Down is required. > > - Added exiting from Partial Power Down mode when > connector ID status changes to "connId B". > Because if connector ID status changed to B connec

Re: [PATCH v1 08/14] usb: dwc2: Add default param to control power optimization.

2019-04-26 Thread Doug Anderson
Hi, On Fri, Apr 19, 2019 at 11:53 AM Artur Petrosyan wrote: > > - Added a default param "power_saving" to enable or > disable hibernation or partial power down features. > > - Printed hibernation param in hw_params_show and > power_saving param in params_show. > > Signed-off-by: Artur Petrosy

Re: [PATCH v1 09/14] usb: dwc2: Update dwc2_handle_usb_suspend_intr function.

2019-04-26 Thread Doug Anderson
Hi, On Fri, Apr 19, 2019 at 11:53 AM Artur Petrosyan wrote: > > To avoid working in two modes (partial power down > and hibernation) changed conditions for entering > partial power down or hibernation. > > Instead of checking hw_params.power_optimized and > hw_params.hibernation now checking powe

Re: [PATCH v1 12/14] usb: dwc2: Clear fifo_map when resetting core.

2019-04-26 Thread Doug Anderson
Hi, On Fri, Apr 19, 2019 at 1:06 PM Artur Petrosyan wrote: > > If core enters host hibernation when switching from > device mode to host mode disconnection of host cable > asserts a WARNING in dwc2_hsotg_init_fifo() that > fifo_map is not cleared. > > To avoid the WARNING, fifo_map should be clea

Re: [PATCH v1 14/14] usb: dwc2: Add enter/exit hibernation from system issued suspend/resume

2019-04-26 Thread Doug Anderson
Hi, On Fri, Apr 19, 2019 at 1:05 PM Artur Petrosyan wrote: > > Added a new flow of entering and exiting hibernation when PC is > hibernated or suspended. > > Signed-off-by: Artur Petrosyan > --- > drivers/usb/dwc2/hcd.c | 128 > +++-- > 1 file change