Re: [PATCH] usb: devio: fix mmap() on non-coherent DMA architectures

2019-09-04 Thread Greg KH
On Mon, Aug 05, 2019 at 05:17:13PM +0200, Greg KH wrote: > On Fri, Aug 02, 2019 at 10:57:00AM -0700, Gavin Li wrote: > > usbfs mmap() looks like it was introduced for 4.6 in commit > > f7d34b445abc, so it should probably be backported to 4.9 and onwards. > > This issue has been present since the in

[PATCH] usb: cdns3: Fix use after free in probe error handling

2019-09-04 Thread Dan Carpenter
We can't use "wrap" after it has been freed. Fixes: 7733f6c32e36 ("usb: cdns3: Add Cadence USB3 DRD Driver") Signed-off-by: Dan Carpenter --- drivers/usb/cdns3/cdns3-pci-wrap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/usb/cdns3/cdns3-pci-wrap.c b/drivers/usb

[GIT PULL] USB-serial updates for 5.4-rc1

2019-09-04 Thread Johan Hovold
The following changes since commit d1abaeb3be7b5fa6d7a1fbbd2e14e3310005c4c1: Linux 5.3-rc5 (2019-08-18 14:31:08 -0700) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/johan/usb-serial.git tags/usb-serial-5.4-rc1 for you to fetch changes up to 7a786b8

Re: [GIT PULL] USB-serial updates for 5.4-rc1

2019-09-04 Thread Greg Kroah-Hartman
On Wed, Sep 04, 2019 at 05:03:56PM +0200, Johan Hovold wrote: > The following changes since commit d1abaeb3be7b5fa6d7a1fbbd2e14e3310005c4c1: > > Linux 5.3-rc5 (2019-08-18 14:31:08 -0700) > > are available in the Git repository at: > > https://git.kernel.org/pub/scm/linux/kernel/git/johan/usb

[PATCH AUTOSEL 5.2 43/94] r8152: Set memory to all 0xFFs on failed reg reads

2019-09-04 Thread Sasha Levin
From: Prashant Malani [ Upstream commit f53a7ad189594a112167efaf17ea8d0242b5ac00 ] get_registers() blindly copies the memory written to by the usb_control_msg() call even if the underlying urb failed. This could lead to junk register values being read by the driver, since some indirect callers

Re: Lacie Rugged USB3-FW does not work with UAS

2019-09-04 Thread Nathan Stratton Treadway
On Mon, Sep 02, 2019 at 22:10:01 +0200, Julian Sikorski wrote: > thanks for the patch! It appears that we got the drives confused, the > one needing quirks is 059f:1061. Unfortunately, even after hand-editing > the patch to match (attached for confirmation), uas is still not > working. The dmesg

[PATCH v4] usb: typec: ucsi: add support for separate DP altmode devices

2019-09-04 Thread Ajay Gupta
From: Ajay Gupta CCGx controller used on NVIDIA GPU card has two separate display altmode for two DP pin assignments. UCSI specification doesn't prohibits using separate display altmode. Current UCSI Type-C framework expects only one display altmode for all DP pin assignment. This patch squashes

Re: Lacie Rugged USB3-FW does not work with UAS

2019-09-04 Thread Julian Sikorski
W dniu 04.09.2019 o 17:58, Nathan Stratton Treadway pisze: On Mon, Sep 02, 2019 at 22:10:01 +0200, Julian Sikorski wrote: thanks for the patch! It appears that we got the drives confused, the one needing quirks is 059f:1061. Unfortunately, even after hand-editing the patch to match (attached for

[PATCH] USB: serial: FTDI: Add device IDs for Sienna and Echelon PL-20

2019-09-04 Thread beni . mahler
From: Beni Mahler Both devices added here have a FTDI chip inside. The device from Echelon is called 'Network Interface' it is actually a LON network gateway. ID 0403:8348 Future Technology Devices International, Ltd https://www.eltako.com/fileadmin/downloads/de/datenblatt/Datenblatt_PL-SW-PR

Re: WARNING in hso_free_net_device

2019-09-04 Thread Stephen Hemminger
On Wed, 4 Sep 2019 16:27:50 -0400 Hui Peng wrote: > Hi, all: > > I looked at the bug a little. > > The issue is that in the error handling code, hso_free_net_device > unregisters > > the net_device (hso_net->net)  by calling unregister_netdev. In the > error handling code path, > > hso_net->n

[PATCH 08/11] usb: Add USB subsystem notifications [ver #8]

2019-09-04 Thread David Howells
Add a USB subsystem notification mechanism whereby notifications about hardware events such as device connection, disconnection, reset and I/O errors, can be reported to a monitoring process asynchronously. Firstly, an event queue needs to be created: fd = open("/dev/event_queue", O_RDWR)

[PATCH 09/11] Add sample notification program [ver #8]

2019-09-04 Thread David Howells
This needs to be linked with -lkeyutils. It is run like: ./watch_test and watches "/" for mount changes and the current session keyring for key changes: # keyctl add user a a @s 1035096409 # keyctl unlink 1035096409 @s producing: # ./watch_test

RE: [PATCH v2] usb: gadget: udc: renesas_usb3: add suspend event support

2019-09-04 Thread Yoshihiro Shimoda
Hi Veeraiyan, Thank you for the patch! > From: Veeraiyan Chidambaram, Sent: Wednesday, September 4, 2019 11:48 PM > --- a/drivers/usb/gadget/udc/renesas_usb3.c > +++ b/drivers/usb/gadget/udc/renesas_usb3.c > @@ -767,6 +767,20 @@ static void usb3_irq_epc_int_1_resume(struct > renesas_usb3 *usb3)

RE: [EXT] Re: [PATCH v1] usb: dwc3: remove the call trace of USBx_GFLADJ

2019-09-04 Thread Yinbo Zhu
Hi Balbi, If no other doubts, please help apply it. Thanks, Regards, Yinbo Zhu. -Original Message- From: Felipe Balbi Sent: 2019年8月27日 19:55 To: Ran Wang ; Yinbo Zhu ; Greg Kroah-Hartman ; linux-usb@vger.kernel.org; open list Cc: Xiaobo Xie ; Jiafei Pan Subject: RE: [EXT] Re: [PATC

Re: WARNING in hso_free_net_device

2019-09-04 Thread Hui Peng
Can you guys have  a look at the attached patch? On 9/4/19 6:41 PM, Stephen Hemminger wrote: > On Wed, 4 Sep 2019 16:27:50 -0400 > Hui Peng wrote: > >> Hi, all: >> >> I looked at the bug a little. >> >> The issue is that in the error handling code, hso_free_net_device >> unregisters >> >> the net

[GIT PULL] usb: chipidea: changes for v5.4-rc1

2019-09-04 Thread Peter Chen
The following changes since commit cdfee5623290bc893f595636b44fa28e8207c5b3: driver core: initialize a default DMA mask for platform device (2019-08-22 09:41:55 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/peter.chen/usb.git/ tags/usb-ci-v5.4

Re: [PATCH 1/8] clk: tegra: Add PLLE HW power sequencer control

2019-09-04 Thread JC Kuo
On 7/4/19 8:16 PM, Jon Hunter wrote: > > On 14/06/2019 08:46, JC Kuo wrote: >> PLLE hardware power sequencer has to be enabled after PEX/SATA >> UPHY PLL's sequencers are enabled. >> >> tegra210_plle_hw_sequence_start() for XUSB PADCTL driver to enable >> PLLE hardware sequencer at proper time. >>