[PATCHv4] net: usbnet: support 64bit stats

2017-04-02 Thread Greg Ungerer
Add support for the net stats64 counters to the usbnet core. With that in place put the hooks into every usbnet driver to use it. This is a strait forward addition of 64bit counters for RX and TX packet and byte counts. It is done in the same style as for the other net drivers that support

Re: [PATCH] dwc2: gadget: Fix in control write transfers

2017-04-02 Thread Minas Harutyunyan
Hi, On 3/30/2017 2:42 PM, Felipe Balbi wrote: > > Hi, > > Minas Harutyunyan writes: >> After data out stage gadget driver should not initate ZLP on control EP, >> because it is up to function driver. > > not true always, depends on return value from ->setup().

Re: [PATCH v2 3/4] usb: dwc3: add dual-role support

2017-04-02 Thread John Youn
On 03/30/2017 02:27 AM, Felipe Balbi wrote: > > Hi > > Roger Quadros writes: > For something that simple, we wouldn't even need to use OTG FSM layer > because that brings no benefit for such a simple requirement. no no. I think you got it wrong. I'm not using the

Re: dwc2_hc_chhltd_intr_dma - ChHltd set errors?

2017-04-02 Thread John Youn
On 03/31/2017 04:04 PM, John Stultz wrote: > On Thu, Mar 2, 2017 at 12:00 PM, John Stultz wrote: >> Hey John, >> We've noticed that when using usb ethernet adapters on HiKey, we >> occasionally see errors like: >> >> dwc2 f72c.usb: dwc2_hc_chhltd_intr_dma: Channel 0

Re: [PATCH v6 0/4] phy: USB and PCIe phy drivers for Qcom chipsets

2017-04-02 Thread Vivek Gautam
On 03/20/2017 07:24 PM, Vivek Gautam wrote: This patch series adds couple of PHY drivers for Qualcomm chipsets. a) qcom-qusb2 phy driver: that provides High Speed USB functionality. b) qcom-qmp phy driver: that is a combo phy providing support for USB3, PCIe, UFS and few other controllers.

Re: [PATCH v2] usb: dwc2: Make sure we disconnect the gadget state

2017-04-02 Thread John Youn
On 03/29/2017 08:23 PM, John Stultz wrote: > I had seen some odd behavior with HiKey's usb-gadget interface > that I finally seemed to have chased down. Basically every other > time I plugged in the OTG port, the gadget interface would > properly initialize. The other times, I'd get a big WARN_ON

Re: Patch for drivers/usb/serial/ch341.c enabling parity

2017-04-02 Thread Fabio Estevam
On Sun, Apr 2, 2017 at 3:00 PM, Leif Neland wrote: > There is a patch > > https://github.com/karlp/ch341-linux/blob/master/0001-usb-serial-ch341-Add-parity-support.patch > > which enables parity selection for the ch341 USB-RS485 adapter. > > From: Karl Palsson

Re: [PATCH v2 01/22] tmplcvt: make the tool more robust

2017-04-02 Thread Jonathan Corbet
On Thu, 30 Mar 2017 07:45:35 -0300 Mauro Carvalho Chehab wrote: > Currently, the script just assumes to be called at > Documentation/sphinx/. Change it to work on any directory, > and make it abort if something gets wrong. > > Also, be sure that both parameters are

Re: [Bug] One sector less reported through usb-storage than actual hard disk capacity

2017-04-02 Thread Alan Stern
On Sun, 2 Apr 2017, Guan Xin wrote: > Bus 002 Device 004: ID 0bc2:2322 Seagate RSS LLC > Device Descriptor: > bLength18 > bDescriptorType 1 > bcdUSB 2.10 > bDeviceClass0 > bDeviceSubClass 0 > bDeviceProtocol 0 >

Patch for drivers/usb/serial/ch341.c enabling parity

2017-04-02 Thread Leif Neland
There is a patch https://github.com/karlp/ch341-linux/blob/master/0001-usb-serial-ch341-Add-parity-support.patch which enables parity selection for the ch341 USB-RS485 adapter. From: Karl Palsson Date: Tue, 18 Mar 2014 23:33:27 + This adapter is available for cheap on

Re: Patch for drivers/usb/serial/ch341.c enabling parity

2017-04-02 Thread Joe Perches
On Sun, 2017-04-02 at 18:57 +0200, Leif Neland wrote: > There is a patch > https://github.com/karlp/ch341-linux/blob/master/0001-usb-serial-ch341-Add-parity-support.patch > which enables parity selection for the ch341 USB-RS485 adapter. > > From: Karl Palsson Date: Tue, 18

Re: [Bug] One sector less reported through usb-storage than actual hard disk capacity

2017-04-02 Thread Guan Xin
Bus 002 Device 004: ID 0bc2:2322 Seagate RSS LLC Device Descriptor: bLength18 bDescriptorType 1 bcdUSB 2.10 bDeviceClass0 bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize064 idVendor 0x0bc2

Re: [Bug] One sector less reported through usb-storage than actual hard disk capacity

2017-04-02 Thread Alan Stern
On Sun, 2 Apr 2017, Guan Xin wrote: > When used through a USB-SATA bridge, disk capacity and optimal IO size > are reported one sector too less. e.g., > > with USB-SATA bridge: > > dmesg: > [ 4542.387857] usb 3-1.2: Product: Expansion > [ 4542.387871] usb 3-1.2: Manufacturer: Seagate > [

[Bug] One sector less reported through usb-storage than actual hard disk capacity

2017-04-02 Thread Guan Xin
When used through a USB-SATA bridge, disk capacity and optimal IO size are reported one sector too less. e.g., with USB-SATA bridge: dmesg: [ 4542.387857] usb 3-1.2: Product: Expansion [ 4542.387871] usb 3-1.2: Manufacturer: Seagate [ 4542.387874] usb 3-1.2: SerialNumber: [ 4542.439329]