Re: [PATCH v5 1/2] usb: host: plat: Enable xhci plat runtime PM

2017-03-22 Thread Baolin Wang
Hi, On 22 March 2017 at 20:43, Mathias Nyman wrote: > On 22.03.2017 12:40, Baolin Wang wrote: >> >> Hi, >> >> On 22 March 2017 at 17:00, Felipe Balbi wrote: >>> >>> >>> Hi, >>> >>> Baolin Wang writes: I

[PATCH] net: usbnet: support 64bit stats in qmi_wwan driver

2017-03-22 Thread Greg Ungerer
Add support for the net stats64 counters to the usbnet core and then to the qmi_wwan driver. This is a strait forward addition of 64bit counters for RX and TX packets and byte counts. It is done in the same style as for the other net drivers that support stats64. The bulk of the change is to the

[PATCHv2] phy: cpcap-usb: Add CPCAP PMIC USB support

2017-03-22 Thread Tony Lindgren
Some Motorola phones like droid 4 use a custom CPCAP PMIC that has a multiplexing USB PHY. This USB PHY can operate at least in four modes using pin multiplexing and two control GPIOS: - Pass through companion PHY for the SoC USB PHY - ULPI PHY for the SoC - Pass through USB for the modem - UART

Re: [PATCH] phy: cpcap-usb: Add CPCAP PMIC USB support

2017-03-22 Thread Tony Lindgren
* Sebastian Reichel [170321 19:20]: > Hi, > > On Thu, Mar 16, 2017 at 08:51:52PM -0700, Tony Lindgren wrote: > > Some Motorola phones like droid 4 use a custom CPCAP PMIC that has a > > multiplexing USB PHY. > > > > This USB PHY can operate at least in four modes using pin

Re: [PATCH v17 0/3] USB Type-C Connector class

2017-03-22 Thread Mats Karrman
On 03/21/2017 11:37 AM, Heikki Krogerus wrote: I'm lost in the long thread here, is this series still ready to be merged in, or is there another version that is being worked on? There was one documentation fix proposed Mats. The rest of the thread was not about these patches. I'll send one

Re: [PATCH net-next 0/7] Clean up PHY MMD accessors

2017-03-22 Thread David Miller
From: Russell King - ARM Linux Date: Tue, 21 Mar 2017 16:35:55 + > This series cleans up phylib's MMD accessors, so that we have a common > way of accessing the Clause 45 register set. > > The current situation is far from ideal - we have phy_(read|write)_mmd() >

Re: USB3.0 regression on ipq806x

2017-03-22 Thread Mathias Nyman
On 22.03.2017 19:18, Thomas Reifferscheid wrote: Am 08.03.2017 um 12:14 schrieb Thomas Reifferscheid: [...] > ] usb 3-1: new high-speed USB device number 2 using xhci-hcd > ] usb 4-1: new SuperSpeed USB device number 2 using xhci-hcd Things have changed with 4.9 kernel. The thumbdrive is no

Re: [PATCH net 0/2] r8152: fix the rx settings of RTL8153

2017-03-22 Thread David Miller
From: Hayes Wang Date: Mon, 20 Mar 2017 16:13:43 +0800 > The RMS and the rx early size should base on the same rx size. However, > the RMS is set to 9K bytes now and the rx early depends on mtu. For using > the rx buffer effectively, sync the two settings according to the

Re: Dell Inspiron 5558/0VNM2T hangs at resume from suspend when USB 3 is enabled

2017-03-22 Thread Mathias Nyman
On 22.03.2017 00:52, Diego Viola wrote: On Tue, Mar 21, 2017 at 12:29 PM, Diego Viola wrote: On Tue, Mar 21, 2017 at 10:04 AM, Diego Viola wrote: On Mon, Mar 20, 2017 at 8:15 PM, Diego Viola wrote: On Mon, Mar 20, 2017 at

Re: USB3.0 regression on ipq806x

2017-03-22 Thread Thomas Reifferscheid
Am 08.03.2017 um 12:14 schrieb Thomas Reifferscheid: [...] > ] usb 3-1: new high-speed USB device number 2 using xhci-hcd > ] usb 4-1: new SuperSpeed USB device number 2 using xhci-hcd Things have changed with 4.9 kernel. The thumbdrive is no longer getting recognized as high-speed and

Re: [PATCH v1] usb: dwc3: pci: Switch to devm_acpi_dev_add_driver_gpios()

2017-03-22 Thread Felipe Balbi
Hi, Andy Shevchenko writes: > Switch to use managed variant of acpi_dev_add_driver_gpios() to simplify > error path and fix potentially wrong assignment if ->probe() fails. > > While here, add a debug message in case assignment fails to allow user > see the

[PATCH v1] usb: dwc3: pci: Switch to devm_acpi_dev_add_driver_gpios()

2017-03-22 Thread Andy Shevchenko
Switch to use managed variant of acpi_dev_add_driver_gpios() to simplify error path and fix potentially wrong assignment if ->probe() fails. While here, add a debug message in case assignment fails to allow user see the cause of a potential issue. Signed-off-by: Andy Shevchenko

Re: [2/2] zd1211rw: fix NULL-deref at probe

2017-03-22 Thread Johan Hovold
On Wed, Mar 22, 2017 at 03:02:12PM +0200, Kalle Valo wrote: > Johan Hovold writes: > > > On Wed, Mar 22, 2017 at 09:04:15AM +, Kalle Valo wrote: > >> Johan Hovold wrote: > >> > Make sure to check the number of endpoints to avoid dereferencing a > >> >

Re: [PATCH v3] usb: xhci: bInterval quirk for TI TUSB73x0

2017-03-22 Thread Mathias Nyman
On 22.03.2017 13:43, Roger Quadros wrote: As per [1] issue #4, "The periodic EP scheduler always tries to schedule the EPs that have large intervals (interval equal to or greater than 128 microframes) into different microframes. So it maintains an internal counter and increments for each large

Re: [2/2] zd1211rw: fix NULL-deref at probe

2017-03-22 Thread Kalle Valo
Johan Hovold writes: > On Wed, Mar 22, 2017 at 09:04:15AM +, Kalle Valo wrote: >> Johan Hovold wrote: >> > Make sure to check the number of endpoints to avoid dereferencing a >> > NULL-pointer or accessing memory beyond the endpoint array should a >> >

Re: [2/2] zd1211rw: fix NULL-deref at probe

2017-03-22 Thread Johan Hovold
On Wed, Mar 22, 2017 at 09:04:15AM +, Kalle Valo wrote: > Johan Hovold wrote: > > Make sure to check the number of endpoints to avoid dereferencing a > > NULL-pointer or accessing memory beyond the endpoint array should a > > malicious device lack the expected endpoints. > >

Re: [PATCH v5 1/2] usb: host: plat: Enable xhci plat runtime PM

2017-03-22 Thread Mathias Nyman
On 22.03.2017 12:40, Baolin Wang wrote: Hi, On 22 March 2017 at 17:00, Felipe Balbi wrote: Hi, Baolin Wang writes: I don't yet understand why we can't just keep runtime pm disabled as a default for xhci platform devices. It could be enabled by

[PATCH v3] usb: xhci: bInterval quirk for TI TUSB73x0

2017-03-22 Thread Roger Quadros
As per [1] issue #4, "The periodic EP scheduler always tries to schedule the EPs that have large intervals (interval equal to or greater than 128 microframes) into different microframes. So it maintains an internal counter and increments for each large interval EP added. When the counter is

Re: [PATCH v5 1/2] usb: host: plat: Enable xhci plat runtime PM

2017-03-22 Thread Baolin Wang
Hi, On 22 March 2017 at 17:00, Felipe Balbi wrote: > > Hi, > > Baolin Wang writes: >> I don't yet understand why we can't just keep runtime pm disabled as a >> default for xhci platform devices. >> It could be enabled by whatever creates the

Re: [PATCH] usb: gadget: Correct usb EP argument for BOT status request

2017-03-22 Thread Felipe Balbi
Hi, "Nicholas A. Bellinger" writes: > Hi Manish, > > (Added target-devel CC') > > On Mon, 2017-03-20 at 15:05 +0530, Manish Narani wrote: >> This patch corrects the argument in usb_ep_free_request as it is >> mistakenly set to ep_out. It should be ep_in for status request.

Re: usb: gadget: configfs: uvc and mass storage on single udc?

2017-03-22 Thread Felipe Balbi
Hi, Ganesh Biradar writes: > Hello experts, > > I'm trying to implement two functions on single udc configuration i.e > uvc device class and mass storage. individually it is working fine but > coming to multi role it is failing. > > kernel 4.4: try v4.11-rc3, then we'll talk

Re: [2/2] zd1211rw: fix NULL-deref at probe

2017-03-22 Thread Kalle Valo
Johan Hovold wrote: > Make sure to check the number of endpoints to avoid dereferencing a > NULL-pointer or accessing memory beyond the endpoint array should a > malicious device lack the expected endpoints. > > Fixes: a1030e92c150 ("[PATCH] zd1211rw: Convert installer CDROM

Re: [PATCH v5 1/2] usb: host: plat: Enable xhci plat runtime PM

2017-03-22 Thread Felipe Balbi
Hi, Baolin Wang writes: > I don't yet understand why we can't just keep runtime pm disabled as a > default for xhci platform devices. > It could be enabled by whatever creates the platform device by setting > some > device property > (or

Re: [kbuild-all] [PATCH 1/2] usb: phy: Introduce one extcon device into usb phy

2017-03-22 Thread Baolin Wang
Hi, On 22 March 2017 at 14:32, Ye Xiaolong wrote: > On 03/20, Baolin Wang wrote: >>Hi, >> >> >>On 19 March 2017 at 19:42, kbuild test robot wrote: >>> Hi Baolin, >>> >>> [auto build test ERROR on balbi-usb/next] >>> [also build test ERROR on v4.11-rc2

Re: [kbuild-all] [PATCH 1/2] usb: phy: Introduce one extcon device into usb phy

2017-03-22 Thread Ye Xiaolong
On 03/20, Baolin Wang wrote: >Hi, > > >On 19 March 2017 at 19:42, kbuild test robot wrote: >> Hi Baolin, >> >> [auto build test ERROR on balbi-usb/next] >> [also build test ERROR on v4.11-rc2 next-20170310] >> [if your patch is applied to the wrong git tree, please drop us a note