Re: [PATCH 1/2] usb: musb: musb_cppi41: Fix the address of teardown and autoreq registers

2017-09-11 Thread Alexandre Bailon
On 08/15/2017 12:12 PM, Sergei Shtylyov wrote: > Hello! > > On 8/13/2017 3:04 PM, Alexandre Bailon wrote: > >> The DA8xx and DSPS platforms don't use the same address for few >> registers. >> On Da8xx, this is causing some issues (e.g. teardown that doesn't work). >> Configure the address of the re

Re: [PATCH 1/2] usb: musb: musb_cppi41: Fix the address of teardown and autoreq registers

2017-09-11 Thread Alexandre Bailon
Hi Bin, Sekhar On 09/07/2017 07:16 PM, Bin Liu wrote: > On Mon, Sep 04, 2017 at 06:32:11PM +0530, Sekhar Nori wrote: >> On Monday 14 August 2017 07:06 PM, Sekhar Nori wrote: >>> On Monday 14 August 2017 07:01 PM, Sekhar Nori wrote: Hi, On Sunday 13 August 2017 05:34 PM, Alexandre Bai

[PATCH v3 4/5] typec: tcpm: Move out of staging

2017-09-11 Thread Guenter Roeck
Move tcpm (USB Type-C Port Manager) out of staging. Signed-off-by: Guenter Roeck --- v2: Use format-patch -M v3: No change drivers/staging/typec/Kconfig | 8 drivers/staging/typec/Makefile| 1 - drivers/staging/typec/TODO

[PATCH v3 2/5] staging: typec: tcpm: Document data structures

2017-09-11 Thread Guenter Roeck
Document struct tcpc_config and struct tcpc_dev. Drop unused TCPC_USB_SWITCH_RESTORE. Signed-off-by: Guenter Roeck --- v2, v3: No change drivers/staging/typec/tcpm.h | 57 ++-- 1 file changed, 50 insertions(+), 7 deletions(-) diff --git a/drivers/staging

[PATCH v3 1/5] staging: typec: tcpm: Drop commented out code

2017-09-11 Thread Guenter Roeck
Commented out code can be added as needed. Drop it. Also drop TODO and an obsolete XXX comment. Signed-off-by: Guenter Roeck --- v2, v3: No change drivers/staging/typec/tcpm.c | 37 + 1 file changed, 1 insertion(+), 36 deletions(-) diff --git a/drivers/stagi

[PATCH v3 5/5] usb: typec: fusb302: Move out of staging

2017-09-11 Thread Guenter Roeck
The driver is in good enough shape to be moved out of staging. Do it. Signed-off-by: Guenter Roeck --- v2: Use format-patch -M v3: No change drivers/staging/typec/Kconfig| 2 -- drivers/staging/typec/Makefile | 1 - drivers/staging/typec/fusb302/T

[PATCH v3 3/5] staging: typec: pd: Document struct pd_message

2017-09-11 Thread Guenter Roeck
struct pd_message is the format of a PD message as seen on the wire. Signed-off-by: Guenter Roeck --- v2: No change v3: Fix document tag drivers/staging/typec/pd.h | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/staging/typec/pd.h b/drivers/staging/typec/pd.h index 30b32ad72acd

Re: Fwd: RH Bugzilla - Bug 1482649 - Logitech USB Unified Receiver+M570 need 'waking' up by click after kernel update

2017-09-11 Thread Alan Stern
On Sun, 10 Sep 2017, Michael Simms wrote: > Hi Alan, thanks for the cat instruction, it was very helpful. As > suggested I'm replying from my Google Mail account to see if this will > be accepted by the kernel mail server. It did work. > /sys/bus/usb/devices/2-1.3/2-1.3:0/power empty for both 4.

Re: [PATCH] HID: usbhid: get/put around clearing needs_remote_wakeup

2017-09-11 Thread Benson Leung
Hi Oliver, On Mon, Sep 11, 2017 at 01:02:52PM -0700, Benson Leung wrote: > Thanks for the pointer. I'll respin the patch with the no_resume version of > usb_autopm_get_interface and retest. > I went and tried this patch but with usb_autopm_get_interface_no_resume instead and the original bug I w

Re: [PATCH v3 2/3] dt-bindings: mt8173-xhci: add generic compatible and rename file

2017-09-11 Thread Rob Herring
On Wed, Aug 30, 2017 at 07:34:10PM +0800, Chunfeng Yun wrote: > The mt8173-xhci.txt actually holds the bindings for all mediatek > SoCs with xHCI controller, so add a generic compatible and change > the name to mediatek,mtk-xhci.txt to reflect that. > > Signed-off-by: Chunfeng Yun > --- > .../us

Re: [PATCH] HID: usbhid: get/put around clearing needs_remote_wakeup

2017-09-11 Thread Benson Leung
Hi Oliver, On Sat, Sep 09, 2017 at 09:35:52AM +0200, Oliver Neukum wrote: > Am Freitag, den 08.09.2017, 10:43 -0700 schrieb Dmitry Torokhov: > > From: Benson Leung > > > > usbhid->intf->needs_remote_wakeup is set when a device is opened, and is > > cleared when a device is closed. > > > > In us

Re: [PATCH 1/5] staging: typec: tcpm: Drop commented out code

2017-09-11 Thread Guenter Roeck
On Mon, Sep 11, 2017 at 11:26:01AM -0700, Greg Kroah-Hartman wrote: > On Mon, Sep 11, 2017 at 10:37:11AM -0700, Guenter Roeck wrote: > > On Mon, Sep 11, 2017 at 09:23:34AM -0700, Greg Kroah-Hartman wrote: > > > On Sun, Sep 10, 2017 at 01:37:01PM -0700, Guenter Roeck wrote: > > > > Commented out cod

Re: usb/gadget: stalls in dummy_timer

2017-09-11 Thread Dmitry Torokhov
On Mon, Sep 11, 2017 at 8:15 AM, Andrey Konovalov wrote: > On Mon, Sep 11, 2017 at 3:25 PM, Alan Stern wrote: >> On Mon, 11 Sep 2017, Andrey Konovalov wrote: >> >>> Hi! >>> >>> I've been getting stall reports like this one while fuzzing the USB >>> stack with gadgetfs. I'm wondering whether this

Re: [PATCH 1/5] staging: typec: tcpm: Drop commented out code

2017-09-11 Thread Greg Kroah-Hartman
On Mon, Sep 11, 2017 at 10:37:11AM -0700, Guenter Roeck wrote: > On Mon, Sep 11, 2017 at 09:23:34AM -0700, Greg Kroah-Hartman wrote: > > On Sun, Sep 10, 2017 at 01:37:01PM -0700, Guenter Roeck wrote: > > > Commented out code can be added as needed. Drop it. > > > Also drop TODO and an obsolete XXX

Re: [PATCH 1/5] staging: typec: tcpm: Drop commented out code

2017-09-11 Thread Guenter Roeck
On Mon, Sep 11, 2017 at 09:23:34AM -0700, Greg Kroah-Hartman wrote: > On Sun, Sep 10, 2017 at 01:37:01PM -0700, Guenter Roeck wrote: > > Commented out code can be added as needed. Drop it. > > Also drop TODO and an obsolete XXX comment. > > > > Signed-off-by: Guenter Roeck > > --- > > drivers/st

[PATCH] usb: gadget: udc: fix snps_udc_plat.c build errors

2017-09-11 Thread Randy Dunlap
From: Randy Dunlap Fix build errors that happen when CONFIG_EXTCON=m and CONFIG_USB_SNP_UDC_PLAT=y by preventing that combination in Kconfig. CONFIG_EXTCON can still be disabled or enabled for this driver since has stubs for the disabled case, but if CONFIG_EXTCON=m, USB_SNP_UDC_PLAT is restrict

Re: [PATCH 1/5] staging: typec: tcpm: Drop commented out code

2017-09-11 Thread Greg Kroah-Hartman
On Sun, Sep 10, 2017 at 01:37:01PM -0700, Guenter Roeck wrote: > Commented out code can be added as needed. Drop it. > Also drop TODO and an obsolete XXX comment. > > Signed-off-by: Guenter Roeck > --- > drivers/staging/typec/tcpm.c | 37 + > 1 file changed, 1

[PATCH] USB: serial: option: add support for TP-Link LTE module

2017-09-11 Thread Henryk Heisig
This commit adds support for TP-Link LTE mPCIe module is used in in TP-Link MR200v1, MR6400v1 and v2 routers. Signed-off-by: Henryk Heisig --- drivers/usb/serial/option.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c index ebe51f1

usb/gadget: null-ptr-deref in dev_ioctl

2017-09-11 Thread Andrey Konovalov
Hi! It seems that gadget->ops can be NULL so it probably needs to be checked as well as gadget->ops->ioctl in dev_ioctl() in drivers/usb/gadget/legacy/inode.c. kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: [#1]

Re: USB: serial: option: add support for TP-Link LTE module

2017-09-11 Thread Greg KH
On Mon, Sep 11, 2017 at 03:44:03PM +0200, Henryk Heisig wrote: > commit 4b3dbf9093d8b5ced1a3c13cfa4113e897eb3b16 > Author: Henryk Heisig > Date:   Mon Sep 11 14:15:22 2017 +0200 > >     USB: serial: option: add support for TP-Link LTE module > >     This commit adds support for TP-Link LTE mPCIe

Re: usb/gadget: stalls in dummy_timer

2017-09-11 Thread Andrey Konovalov
On Mon, Sep 11, 2017 at 3:25 PM, Alan Stern wrote: > On Mon, 11 Sep 2017, Andrey Konovalov wrote: > >> Hi! >> >> I've been getting stall reports like this one while fuzzing the USB >> stack with gadgetfs. I'm wondering whether this is a bug in gadgetfs >> or is this report induced by the changes I

Re: g_hid loading unloading crash

2017-09-11 Thread prabhu kalyan
sorry in my last mail i sent the wrong linux kernel version here it is. Linux imx6ulevk 4.1.15-2.1.0+g30278ab #31 SMP PREEMPT Mon Sep 11 11:31:00 IST 2017 armv7l GNU/Linux On Mon, Sep 11, 2017 at 7:47 PM, prabhu kalyan wrote: > the file > > On Mon, Sep 11, 2017 at 7:46 PM, prabhu kalyan > wrot

Re: g_hid loading unloading crash

2017-09-11 Thread Fabio Estevam
On Mon, Sep 11, 2017 at 11:16 AM, prabhu kalyan wrote: > Dear Fabio, > > My main objective is to switch between HID, VCP, Mass storage mode. > But as the g_hid.ko crashes i am not able to switch mode. > > I am using nxp kernel Linux cpu49-ub 4.4.0-31-generic > #50~14.04.1-Ubuntu SMP Wed Jul 13 01:

Re: g_hid loading unloading crash

2017-09-11 Thread prabhu kalyan
the file On Mon, Sep 11, 2017 at 7:46 PM, prabhu kalyan wrote: > Dear Fabio, > > My main objective is to switch between HID, VCP, Mass storage mode. > But as the g_hid.ko crashes i am not able to switch mode. > > I am using nxp kernel Linux cpu49-ub 4.4.0-31-generic > #50~14.04.1-Ubuntu SMP Wed J

Re: g_hid loading unloading crash

2017-09-11 Thread prabhu kalyan
Dear Fabio, My main objective is to switch between HID, VCP, Mass storage mode. But as the g_hid.ko crashes i am not able to switch mode. I am using nxp kernel Linux cpu49-ub 4.4.0-31-generic #50~14.04.1-Ubuntu SMP Wed Jul 13 01:06:37 UTC 2016 i686 i686 i686 GNU/Linux Can you please check if it

USB: serial: option: add support for TP-Link LTE module

2017-09-11 Thread Henryk Heisig
commit 4b3dbf9093d8b5ced1a3c13cfa4113e897eb3b16 Author: Henryk Heisig Date:   Mon Sep 11 14:15:22 2017 +0200     USB: serial: option: add support for TP-Link LTE module     This commit adds support for TP-Link LTE mPCIe module is used     in in TP-Link MR200v1, MR6400v1 and v2 routers.     Sig

Re: g_hid loading unloading crash

2017-09-11 Thread Fabio Estevam
On Mon, Sep 11, 2017 at 10:32 AM, PRABHU wrote: > Dear all, > I was trying to do a stress test on module insertion and removal. 1st time > modprobe g_hid and rmmod g_hid works. second time when doing insmod g_hid > crashes the core. > > crash trace > > > root@imx6ulevk:~# modprobe

g_hid loading unloading crash

2017-09-11 Thread prabhu kalyan
Dear all, I was trying to do a stress test on module insertion and removal. 1st time modprobe g_hid and rmmod g_hid works. second time when doing insmod g_hid crashes the core. crash trace root@imx6ulevk:~# modprobe ci_hdrc ci_hdrc.0: Device No Response g_hid Unable to handle ker

g_hid loading unloading crash

2017-09-11 Thread PRABHU
Dear all, I was trying to do a stress test on module insertion and removal. 1st time modprobe g_hid and rmmod g_hid works. second time when doing insmod g_hid crashes the core. crash trace root@imx6ulevk:~# modprobe ci_hdrc ci_hdrc.0: Device No Response g_hid Unable to handle

Re: usb/gadget: stalls in dummy_timer

2017-09-11 Thread Alan Stern
On Mon, 11 Sep 2017, Andrey Konovalov wrote: > Hi! > > I've been getting stall reports like this one while fuzzing the USB > stack with gadgetfs. I'm wondering whether this is a bug in gadgetfs > or is this report induced by the changes I've made to the USB core > code. I didn't touch gadgetfs co

Re: Add TI ICDI as a simple usb serial device

2017-09-11 Thread Greg KH
On Mon, Sep 11, 2017 at 12:22:57PM +, Dashi DS1 Cao wrote: > Sorry! Should have submitted the patch inline: > > --- > drivers/usb/serial/usb-serial-simple.c | 8 +++- > 1 file changed, 7 insertions(+), 1 deletion(-) > > diff --git a/drivers/usb/serial/usb-serial-simple.c > b/drivers/usb

RE: Add TI ICDI as a simple usb serial device

2017-09-11 Thread Dashi DS1 Cao
Sorry! Should have submitted the patch inline: --- drivers/usb/serial/usb-serial-simple.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/usb/serial/usb-serial-simple.c b/drivers/usb/serial/usb-serial-simple.c index e98b6e5..7727eab 100644 --- a/drivers/usb/ser

Add TI ICDI as a simple usb serial device

2017-09-11 Thread Dashi DS1 Cao
Hi, The TI ICDI is an integrated debugger interface for its TM4C series microcontroller chip. It is a USB interface which can be used just like a USB serial device. A few lines of codes added to the file "drivers/usb/serial/usb-serial-simple.c" accomplishes this job. And it can be used to upload

Re: [PATCH 2/2] usb: host: Implement workaround for Erratum A-009668

2017-09-11 Thread Greg Kroah-Hartman
On Mon, Sep 11, 2017 at 05:43:27PM +0800, yinbo@nxp.com wrote: > From: "yinbo.zhu" > > Description: This issue is observed in USB 2.0 mode > when the USB 3.0 host controller is connected to a > FS/LS device via a hub. > The host controller issues start-split (SSPLIT) and > complete-split (CS

Re: [PATCH 1/2] usb: host: Implement workaround for Erratum A-009611

2017-09-11 Thread Greg Kroah-Hartman
On Mon, Sep 11, 2017 at 05:41:32PM +0800, yinbo@nxp.com wrote: > From: "yinbo.zhu" Please use your "real" name in the from portion, I don't think you have a "." in your name, right? :) And what hardware is this erratum for? Please put that in the subject line as well, as well as xhci, othe

usb/gadget: stalls in dummy_timer

2017-09-11 Thread Andrey Konovalov
Hi! I've been getting stall reports like this one while fuzzing the USB stack with gadgetfs. I'm wondering whether this is a bug in gadgetfs or is this report induced by the changes I've made to the USB core code. I didn't touch gadgetfs code though (except for adding a few printk's). I'm on comm

Re: [PATCH 3/5] staging: typec: pd: Document struct pd_message

2017-09-11 Thread Sergei Shtylyov
Hello. On 9/10/2017 11:37 PM, Guenter Roeck wrote: struct pd_message is the format of a PD message as seen on the wire. Signed-off-by: Guenter Roeck --- drivers/staging/typec/pd.h | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/staging/typec/pd.h b/drivers/staging/typec/pd

[PATCH 2/2] usb: host: Implement workaround for Erratum A-009668

2017-09-11 Thread yinbo.zhu
From: "yinbo.zhu" Description: This issue is observed in USB 2.0 mode when the USB 3.0 host controller is connected to a FS/LS device via a hub. The host controller issues start-split (SSPLIT) and complete-split (CSPLIT) tokens to accomplish a split-transaction. A split-transaction consists of a

[PATCH 1/2] usb: host: Implement workaround for Erratum A-009611

2017-09-11 Thread yinbo.zhu
From: "yinbo.zhu" Description: This is a occasional problem where the software issues an End Transfer command while a USB transfer is in progress, resulting in the TxFIFO being flushed when the lower layer is waiting for data,causing the super speed (SS) transmit to get blocked. If the End Trans

Re: [PATCH v1 10/10] tty/serial: atmel: Prevent a warning on suspend

2017-09-11 Thread Romain Izard
2017-09-08 17:36 GMT+02:00 Romain Izard : > The atmel serial port driver reported the following warning on suspend: > atmel_usart f802.serial: ttyS1: Unable to drain transmitter > > As the ATMEL_US_TXEMPTY status bit in ATMEL_US_CSR is always cleared > when the transmitter is disabled, we need

Re: [PATCH] usb: dwc3: gadget: only unmap requests from DMA if mapped

2017-09-11 Thread Felipe Balbi
Hi, Thinh Nguyen writes: >> Felipe Balbi writes: >>> Thinh Nguyen writes: >>> Hi Felipe, On 9/7/2017 12:16 AM, Felipe Balbi wrote: drivers/usb/dwc3/gadget.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/driv