Re: [PATCH v1] ACPI: Switch to use generic UUID API

2017-05-09 Thread Zhang Rui
On Thu, 2017-05-04 at 12:21 +0300, Andy Shevchenko wrote: > acpi_evaluate_dsm() and friends take a pointer to a raw buffer of 16 > bytes. Instead we convert them to use uuid_le type. At the same time > we > convert current users. > > acpi_str_to_uuid() becomes useless after the conversion and

Re: Chipidea USB controller hangs in peripheral mode under high memory bus pressure

2017-05-09 Thread Peter Chen
On Tue, May 09, 2017 at 11:47:07AM +0200, Thomas Entner / EE wrote: > > Am 08.05.2017 um 03:56 schrieb Peter Chen: > >On Fri, May 05, 2017 at 04:10:14PM +0200, Thomas Entner / EE wrote: > >>>When we reduce the max packet size to 256, things appear to work stable > >>>(but very slow). > >>> >

Re: [PATCH] usb: chipidea: imx: Do not access CLKONOFF on i.MX51

2017-05-09 Thread Andrey Smirnov
On Mon, May 8, 2017 at 5:47 PM, Peter Chen wrote: > On Mon, May 08, 2017 at 07:15:01AM -0700, Andrey Smirnov wrote: >> Unlike i.MX53, i.MX51's USBOH3 register file does not implemenent >> registers past offset 0x018, which includes >> MX53_USB_CLKONOFF_CTRL_OFFSET and

Fwd: Issues with exposing USB serial dongle to guest VM

2017-05-09 Thread Philip Prindeville
Greg pointed out to me that he’s turned over ownership of drivers/usb/serial/pl2303.c … so I thought I’d contact the list instead. > Begin forwarded message: > > From: Philip Prindeville > Subject: Issues with exposing USB serial dongle to guest VM > Date:

RE: [PATCH] xhci: remove GFP_DMA flag from allocation

2017-05-09 Thread David Laight
From: Mathias Nyman > Sent: 09 May 2017 12:24 > On 08.05.2017 09:26, Mathias Nyman wrote: > > On 05.05.2017 15:05, Matthias Lange wrote: > >> There is no reason to restrict allocations to the first 16MB ISA DMA > >> addresses. ... What about the 4G boundary? IIRC dma_alloc_coherent() is most

RE: [PATCH 5/7] usb: dwc3: debug: remove static char buffer from dwc3_decode_event()

2017-05-09 Thread David Laight
From: Felipe Balbi > Sent: 09 May 2017 08:07 > Instead, we can require caller to pass a buffer for the function to > use. This cleans things quite a bit. ... > -dwc3_gadget_event_string(const struct dwc3_event_devt *event) > +dwc3_gadget_event_string(char *str, const struct dwc3_event_devt *event)

Re: [PATCH 7/7] usb: dwc3: add ReST documentation

2017-05-09 Thread Bin Liu
On Tue, May 09, 2017 at 04:27:45PM +0300, Felipe Balbi wrote: > > Hi, > > Greg Kroah-Hartman writes: > >>> Greg Kroah-Hartman writes: > >> > On Tue, May 09, 2017 at 10:10:45AM +0300, Felipe Balbi wrote: > >> >> > >> >> Hi, > >> >> > >>

Re: XHCI is slow during boot (bios/efi) and leaves many dmesg messages

2017-05-09 Thread Maël Lavault
On Tue, 2017-05-09 at 11:34 +0300, Felipe Balbi wrote: > Hi, > > Maël Lavault writes: > > Le 28 avr. 2017 15:57, "Maël Lavault" > .com > > > a écrit : > > > > On Fri, 2017-04-28 at 16:58 +0300, Mathias Nyman wrote: > > > On

Re: XHCI is slow during boot (bios/efi) and leaves many dmesg messages

2017-05-09 Thread Maël Lavault
On Tue, 2017-05-09 at 11:34 +0300, Felipe Balbi wrote: > Hi, > > Maël Lavault writes: > > Le 28 avr. 2017 15:57, "Maël Lavault" > .com > > > a écrit : > > > > On Fri, 2017-04-28 at 16:58 +0300, Mathias Nyman wrote: > > > On

Re: dwc3 udc driver

2017-05-09 Thread Ed Lizard
I found my udc in v4.6. I played around with the kernel config for a while and found the option that enables it. I think I changed dwc3 from 'dual role' (otg I guess) to 'peripherial' and got it's UDC and got a few gadgets going. We are using xilinx ZynqMP SOC and the BSP they support for

Re: [PATCH 7/7] usb: dwc3: add ReST documentation

2017-05-09 Thread Felipe Balbi
Hi, Greg Kroah-Hartman writes: >>> Greg Kroah-Hartman writes: >> > On Tue, May 09, 2017 at 10:10:45AM +0300, Felipe Balbi wrote: >> >> >> >> Hi, >> >> >> >> Felipe Balbi writes: >> >> > Document a few

Re: [PATCH 7/7] usb: dwc3: add ReST documentation

2017-05-09 Thread Greg Kroah-Hartman
On Tue, May 09, 2017 at 12:29:15PM +0300, Felipe Balbi wrote: > > Hi, > > Greg Kroah-Hartman writes: > > On Tue, May 09, 2017 at 10:10:45AM +0300, Felipe Balbi wrote: > >> > >> Hi, > >> > >> Felipe Balbi writes: > >> > Document a few

Re: [PATCH] xhci: remove GFP_DMA flag from allocation

2017-05-09 Thread Mathias Nyman
On 08.05.2017 09:26, Mathias Nyman wrote: On 05.05.2017 15:05, Matthias Lange wrote: There is no reason to restrict allocations to the first 16MB ISA DMA addresses. Signed-off-by: Matthias Lange --- Thanks, added to queue. Will send forward after rc1 Added

Re: [PATCH v3] USB: serial: ftdi_sio: fix setting latency for unprivileged users

2017-05-09 Thread Johan Hovold
On Tue, May 09, 2017 at 11:31:04AM +0200, Anthony Mallet wrote: > On Monday 8 May 2017, at 17:38, Johan Hovold wrote: > > You can read (and also change) the latency-timer value used through > > sysfs: > > > > # cat /sys/bus/usb-serial/devices/ttyUSB0/latency_timer > > 16 > > > > if

Re: USB CDP (charging downstream port) charging over Chipidea HDRC in host mode

2017-05-09 Thread Jayan John
On Tue, May 9, 2017 at 1:10 PM, Peter Chen wrote: > On Tue, May 09, 2017 at 12:51:53PM +0530, Jayan John wrote: >> On Tue, May 9, 2017 at 6:24 AM, Peter Chen wrote: >> > On Fri, May 05, 2017 at 10:40:01AM +0530, Jayan John wrote: >> >> I would like

Re: Chipidea USB controller hangs in peripheral mode under high memory bus pressure

2017-05-09 Thread Thomas Entner / EE
Am 08.05.2017 um 03:56 schrieb Peter Chen: On Fri, May 05, 2017 at 04:10:14PM +0200, Thomas Entner / EE wrote: When we reduce the max packet size to 256, things appear to work stable (but very slow). When we use a max packet size of 720 we still see lock-ups (which is a bit of surprise to me,

Re: [PATCH v3] USB: serial: ftdi_sio: fix setting latency for unprivileged users

2017-05-09 Thread Anthony Mallet
On Monday 8 May 2017, at 17:38, Johan Hovold wrote: > You can read (and also change) the latency-timer value used through > sysfs: > > # cat /sys/bus/usb-serial/devices/ttyUSB0/latency_timer > 16 > > if that's what you needed? But unless you change it, you can infer the > value to

Re: [PATCH 7/7] usb: dwc3: add ReST documentation

2017-05-09 Thread Felipe Balbi
Hi, Greg Kroah-Hartman writes: > On Tue, May 09, 2017 at 10:10:45AM +0300, Felipe Balbi wrote: >> >> Hi, >> >> Felipe Balbi writes: >> > Document a few details about DWC3 in order to help people report bugs >> > and debug DWC3. >> >

Re: [PATCH 7/7] usb: dwc3: add ReST documentation

2017-05-09 Thread Greg Kroah-Hartman
On Tue, May 09, 2017 at 10:10:45AM +0300, Felipe Balbi wrote: > > Hi, > > Felipe Balbi writes: > > Document a few details about DWC3 in order to help people report bugs > > and debug DWC3. > > > > Signed-off-by: Felipe Balbi > > --- >

Re: XHCI is slow during boot (bios/efi) and leaves many dmesg messages

2017-05-09 Thread Felipe Balbi
Hi, Maël Lavault writes: > Le 28 avr. 2017 15:57, "Maël Lavault" > a écrit : > On Fri, 2017-04-28 at 16:58 +0300, Mathias Nyman wrote: >> On 21.04.2017 11:08, Maël Lavault wrote: >> > On Tue, 2017-04-18 at 16:58 +0200, Maël

Re: XHCI is slow during boot (bios/efi) and leaves many dmesg messages

2017-05-09 Thread Maël Lavault
Le 28 avr. 2017 15:57, "Maël Lavault" a écrit : On Fri, 2017-04-28 at 16:58 +0300, Mathias Nyman wrote: > On 21.04.2017 11:08, Maël Lavault wrote: > > On Tue, 2017-04-18 at 16:58 +0200, Maël Lavault wrote: > > > Hi, > > > > > > I can't find how to reply to an

Re: [PATCH v1] ACPI: Switch to use generic UUID API

2017-05-09 Thread Mathias Nyman
diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c index 7b86508ac8cf..93b4f0de9418 100644 --- a/drivers/usb/host/xhci-pci.c +++ b/drivers/usb/host/xhci-pci.c @@ -210,13 +210,12 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci) #ifdef CONFIG_ACPI

Re: [PATCH v1] ACPI: Switch to use generic UUID API

2017-05-09 Thread Felipe Balbi
Hi, Andy Shevchenko writes: > acpi_evaluate_dsm() and friends take a pointer to a raw buffer of 16 > bytes. Instead we convert them to use uuid_le type. At the same time we > convert current users. > > acpi_str_to_uuid() becomes useless after the conversion

Re: [PATCH v2] usb: cdc-wdm: use memdup_user

2017-05-09 Thread Oliver Neukum
Am Montag, den 08.05.2017, 23:14 +0800 schrieb Geliang Tang: > Use memdup_user() helper instead of open-coding to simplify the code. > > Signed-off-by: Geliang Tang Acked-by: Oliver Neukum -- To unsubscribe from this list: send the line "unsubscribe

Re: USB CDP (charging downstream port) charging over Chipidea HDRC in host mode

2017-05-09 Thread Peter Chen
On Tue, May 09, 2017 at 12:51:53PM +0530, Jayan John wrote: > On Tue, May 9, 2017 at 6:24 AM, Peter Chen wrote: > > On Fri, May 05, 2017 at 10:40:01AM +0530, Jayan John wrote: > >> I would like to add CDP (charging downstream port) capability over my > >> OTG port in host

Re: How to improve resume time of USB device on Lenovo X60t?

2017-05-09 Thread Paul Menzel
BUG -M drivers/usb/core That gave me an error. I used ``` $ make CFLAGS="-DVERBOSE_DEBUG" drivers/usb/core/usbcore.ko ``` and copied that module over the present one, rebooted, and did as you asked. ``` $ echo 'module usbcore =p' | sudo tee /sys/kernel/debug/dyn

Re: USB CDP (charging downstream port) charging over Chipidea HDRC in host mode

2017-05-09 Thread Jayan John
On Tue, May 9, 2017 at 6:24 AM, Peter Chen wrote: > On Fri, May 05, 2017 at 10:40:01AM +0530, Jayan John wrote: >> I would like to add CDP (charging downstream port) capability over my >> OTG port in host mode. I am using an iMX6q platform with Chipidea HDRC >> (highspeed

Re: [PATCH 7/7] usb: dwc3: add ReST documentation

2017-05-09 Thread Felipe Balbi
Hi, Felipe Balbi writes: > Document a few details about DWC3 in order to help people report bugs > and debug DWC3. > > Signed-off-by: Felipe Balbi > --- > Documentation/usb/dwc3.rst | 712 >

[PATCH 6/7] usb: dwc3: trace: decode ctrl request

2017-05-09 Thread Felipe Balbi
Instead of *always* dumping raw ctrl bytes, let's decode standard requests which will make the lives of those debugging DWC3 quite a bit easier. Output will now look like so: irq/34-dwc3-1594 [000] d..1 107.573081: dwc3_ctrl_req: Get Device Descriptor(Index = 0, Length = 18) irq/34-dwc3-1594

[PATCH 7/7] usb: dwc3: add ReST documentation

2017-05-09 Thread Felipe Balbi
Document a few details about DWC3 in order to help people report bugs and debug DWC3. Signed-off-by: Felipe Balbi --- Documentation/usb/dwc3.rst | 712 + 1 file changed, 712 insertions(+) create mode 100644

[PATCH 3/7] usb: dwc3: gadget: slight cleanup to dwc3_process_event_entry()

2017-05-09 Thread Felipe Balbi
No functional changes, just a slight readability improvement. Signed-off-by: Felipe Balbi --- drivers/usb/dwc3/gadget.c | 16 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index

[PATCH 2/7] usb: dwc3: debugfs: slightly improve output of trb_ring

2017-05-09 Thread Felipe Balbi
Instead of printing out enqueue and dequeue pointer value as a header to the output, let's mark the TRBs in question with 'E' and 'D'. The output looks slightly easier to read. Signed-off-by: Felipe Balbi --- drivers/usb/dwc3/debugfs.c | 9 - 1 file

[PATCH 4/7] usb: dwc3: trace: rely on __string() and __assign_str()

2017-05-09 Thread Felipe Balbi
Instead of going for a 512 byte buffer and using snprintf(), let's rely on helps __string() and __assign_str() where possible. Signed-off-by: Felipe Balbi --- drivers/usb/dwc3/trace.h | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff

[PATCH 5/7] usb: dwc3: debug: remove static char buffer from dwc3_decode_event()

2017-05-09 Thread Felipe Balbi
Instead, we can require caller to pass a buffer for the function to use. This cleans things quite a bit. Signed-off-by: Felipe Balbi --- drivers/usb/dwc3/debug.h | 13 ++--- drivers/usb/dwc3/trace.h | 4 +++- 2 files changed, 9 insertions(+), 8

[PATCH 1/7] usb: dwc3: update documentation

2017-05-09 Thread Felipe Balbi
No functional changes, just making sure we can use these for ReST docs later. Signed-off-by: Felipe Balbi --- drivers/usb/dwc3/core.h | 44 + drivers/usb/dwc3/ep0.c| 2 +- drivers/usb/dwc3/gadget.c | 121

Re: dwc3 udc driver

2017-05-09 Thread Felipe Balbi
Hi, Ed Lizard writes: > I'm having trouble seeing the udc driver for dwc3 in /sys/class/udc. > > We are moving platforms from musb on 2.6.37 to dwc3 on 4.6. Whew, a lot why v4.6? why not v4.10 fresh out of the oven? Who's making you stuck on older kernels? Seems like