Re: [PATCH] rndis_host: Set random MAC for ZTE MF910

2016-07-14 Thread Kristian Evensen
Hi Bjørn, On Thu, Jul 14, 2016 at 12:23 AM, Bjørn Mork wrote: > > Or how about the more generic?: > > if (bp[0] & 0x02) > eth_hw_addr_random(net); > else > ether_addr_copy(net->dev_addr, bp); > > That would catch similar screwups from other vendors

Re: [PATCH] rndis_host: Set random MAC for ZTE MF910

2016-07-14 Thread Kristian Evensen
On Thu, Jul 14, 2016 at 9:54 AM, Kristian Evensen wrote: > Hi Bjørn, > > On Thu, Jul 14, 2016 at 12:23 AM, Bjørn Mork wrote: >> >> Or how about the more generic?: >> >> if (bp[0] & 0x02) >> eth_hw_addr_random(net); >> else >> ether_addr_copy(net->de

[PATCH net-next] rndis_host: Set valid random MAC on buggy devices

2016-07-14 Thread Kristian Evensen
From: Kristian Evensen Some devices of the same type all export the same, random MAC address. This behavior has been seen on the ZTE MF910, MF823 and MF831, and there are probably more devices out there. Fix this by generating a valid random MAC address if we read a random MAC from device. Also,

Re: [PATCH 1/4] usbnet: move the CDC parser into USB core

2016-07-14 Thread Bjørn Mork
Oliver Neukum writes: > The dependencies were impossible to handle preventing > drivers for CDC devices not which are not network drivers > from using the common parser. > > Signed-off-by: Oliver Neukum > --- > drivers/net/usb/usbnet.c | 138 > drivers

[PATCH] usb: xhci-plat: Add generic PHY support

2016-07-14 Thread Srinath Mannam
Generic phy support added in xhci platform driver. In the case of multiple phys to the xhci controller, this approach is helpful to pass multiple phandles to xhci platform driver from xhci device node. Signed-off-by: Srinath Mannam Reviewed-by: Ray Jui Reviewed-by: Scott Branden diff --git a/d

Re: [PATCH] usb: xhci-plat: Add generic PHY support

2016-07-14 Thread Srinath Mannam
++ Felipe Balbi Thanks & Regards, Srinath Mannam. On Thu, Jul 14, 2016 at 2:03 PM, Srinath Mannam wrote: > Generic phy support added in xhci platform driver. > In the case of multiple phys to the xhci controller, this approach > is helpful to pass multiple phandles to xhci platform driver from >

[PATCH v7 0/5] support rockchip dwc3 driver

2016-07-14 Thread William Wu
This series add support for rockchip dwc3 driver, and add additional optional properties for specific platforms (e.g., rockchip rk3399 platform). William Wu (5): usb: dwc3: of-simple: add compatible for rockchip rk3399 usb: dwc3: add dis_u2_freeclk_exists_quirk usb: dwc3: make usb2 phy utmi

[PATCH v7 3/5] usb: dwc3: make usb2 phy utmi interface configurable in DT

2016-07-14 Thread William Wu
Add snps,phyif-utmi-width devicetree property to configure the UTMI+ PHY with an 8- or 16-bit interface. UTMI+ PHY interface is a hardware property, and it's platform dependent. Normally,the PHYIF can be configured during coreconsultant. But for some specific USB cores(e.g. rk3399 SoC DWC3), the de

[PATCH v7 2/5] usb: dwc3: add dis_u2_freeclk_exists_quirk

2016-07-14 Thread William Wu
Add a quirk to clear the GUSB2PHYCFG.U2_FREECLK_EXISTS bit, which specifies whether the USB2.0 PHY provides a free-running PHY clock, which is active when the clock control input is active. Signed-off-by: William Wu --- Changes in v7: - None Changes in v6: - use '-' instead of '_' in dts (Rob He

[PATCH v7 4/5] usb: dwc3: add dis_del_phy_power_chg_quirk

2016-07-14 Thread William Wu
Add a quirk to clear the GUSB3PIPECTL.DELAYP1TRANS bit, which specifies whether disable delay PHY power change from P0 to P1/P2/P3 when link state changing from U0 to U1/U2/U3 respectively. Signed-off-by: William Wu --- Changes in v7: - None Changes in v6: - use '-' instead of '_' in dts (Rob He

[PATCH v7 1/5] usb: dwc3: of-simple: add compatible for rockchip rk3399

2016-07-14 Thread William Wu
Rockchip platform merely enable usb3 clocks and populate its children. So we can use this generic glue layer to support Rockchip dwc3. Signed-off-by: William Wu --- Changes in v7: - None Changes in v6: - None Changes in v5: - change compatible from "rockchip,dwc3" to "rockchip,rk3399-dwc3" (Hei

[PATCH v7 5/5] usb: dwc3: rockchip: add devicetree bindings documentation

2016-07-14 Thread William Wu
This patch adds the devicetree documentation required for Rockchip USB3.0 core wrapper consisting of USB3.0 IP from Synopsys. It supports DRD mode, and could operate in device mode (SS, HS, FS) and host mode (SS, HS, FS, LS). Signed-off-by: William Wu Acked-by: Rob Herring --- Changes in v7: -

Re: [PATCH 2/4] cdc-acm: use the common parser

2016-07-14 Thread Bjørn Mork
Oliver Neukum writes: > This introduces the common parser for extra CDC headers now that it no longer > depends on usbnet. > > Signed-off-by: Oliver Neukum > --- > drivers/usb/class/cdc-acm.c | 68 > +++-- > 1 file changed, 10 insertions(+), 58 deletions

Re: [PATCH 4/4] cdc-wdm: use the common CDC parser

2016-07-14 Thread Bjørn Mork
Oliver Neukum writes: > Now that the common parser resides in USB core, it can > be used for CDC-WDM. Looking good to me. Nice code reduction without any additional cost here. Reviewed-by: Bjørn Mork Bjørn -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body o

Re: [PATCH 3/4] cdc-acm: cleanup error handling

2016-07-14 Thread Bjørn Mork
Oliver Neukum writes: > A small update to unify error handling during probe(). > > Signed-off-by: Oliver Neukum > --- > drivers/usb/class/cdc-acm.c | 9 +++-- > 1 file changed, 3 insertions(+), 6 deletions(-) > > diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c > index

[PATCH] usb: serial: use variable for status

2016-07-14 Thread Oliver Neukum
This patch turns status in a variable read once from the URB. The long term plan is to deliver status to the callback. In addition it makes the code a bit more elegant. Signed-off-by: Oliver Neukum --- drivers/usb/serial/generic.c | 18 ++ 1 file changed, 10 insertions(+), 8 dele

Re: [PATCH] usb: serial: use variable for status

2016-07-14 Thread Bjørn Mork
Oliver Neukum writes: > @@ -360,22 +361,22 @@ void usb_serial_generic_read_bulk_callback(struct urb > *urb) > > dev_dbg(&port->dev, "%s - urb %d, len %d\n", __func__, i, > urb->actual_length); > - switch (urb->status) { > + sw

Re: [PATCH V2 0/1] usb: add HCD providers

2016-07-14 Thread Peter Chen
On Wed, Jul 13, 2016 at 04:40:53PM +0200, Rafał Miłecki wrote: > On 13 July 2016 at 15:50, Felipe Balbi wrote: > > Rafał Miłecki writes: > >> On 13 July 2016 at 15:20, Felipe Balbi > >> wrote: > >>> Rafał Miłecki writes: > Hi again, > > This is my second try of getting HCD provi

Re: [PATCH] usb: xhci-plat: Add generic PHY support

2016-07-14 Thread Felipe Balbi
Hi, Srinath Mannam writes: > Generic phy support added in xhci platform driver. > In the case of multiple phys to the xhci controller, this approach > is helpful to pass multiple phandles to xhci platform driver from > xhci device node. > > Signed-off-by: Srinath Mannam > Reviewed-by: Ray Jui

Re: [PATCH V2 0/1] usb: add HCD providers

2016-07-14 Thread Felipe Balbi
Hi, Peter Chen writes: > On Wed, Jul 13, 2016 at 04:40:53PM +0200, Rafał Miłecki wrote: >> On 13 July 2016 at 15:50, Felipe Balbi wrote: >> > Rafał Miłecki writes: >> >> On 13 July 2016 at 15:20, Felipe Balbi >> >> wrote: >> >>> Rafał Miłecki writes: >> Hi again, >> >> This i

[PATCH] usb: MAINTAINERS: Oliver Neukum is the new uas maintainer

2016-07-14 Thread Hans de Goede
Oliver Neukum is taking over uas maintainership from me and Gerd Hoffmann. Cc: Oliver Neukum Cc: Gerd Hoffmann Signed-off-by: Hans de Goede --- MAINTAINERS | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 5c728d1..9c220f0 100644 --- a/MAINTA

Re: [PATCH] usb: MAINTAINERS: Oliver Neukum is the new uas maintainer

2016-07-14 Thread Oliver Neukum
On Thu, 2016-07-14 at 14:26 +0200, Hans de Goede wrote: > Oliver Neukum is taking over uas maintainership from me and > Gerd Hoffmann. > > Cc: Oliver Neukum > Cc: Gerd Hoffmann > Signed-off-by: Hans de Goede Acked-by: Oliver Neukum -- To unsubscribe from this list: send the line "unsubscribe

[PATCH v2 1/5] usb: serial: use variable for status

2016-07-14 Thread Oliver Neukum
This patch turns status in a variable read once from the URB. The long term plan is to deliver status to the callback. In addition it makes the code a bit more elegant. Signed-off-by: Oliver Neukum --- drivers/usb/serial/generic.c | 18 ++ 1 file changed, 10 insertions(+), 8 dele

[PATCH v2 4/5] usb: serial: visor: clean up dev_dbg

2016-07-14 Thread Oliver Neukum
dev_dbg() already can state the function name. No need to state it again explicitly. Signed-off-by: Oliver Neukum --- drivers/usb/serial/visor.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/usb/serial/visor.c b/drivers/usb/serial/visor.c index 337a0be..

[PATCH v2 5/5] usb: serial: whiteheat: clean up dev_dbg

2016-07-14 Thread Oliver Neukum
dev_dbg() already can state the function name. No need to state it again explicitly. Signed-off-by: Oliver Neukum --- drivers/usb/serial/whiteheat.c | 37 ++--- 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/drivers/usb/serial/whiteheat.c b/driver

[PATCH v2 3/5] usb: serial: usb_wwan.c: clean up dev_dbg

2016-07-14 Thread Oliver Neukum
dev_dbg() already can state the function name. No need to state it again explicitly. Signed-off-by: Oliver Neukum --- drivers/usb/serial/usb_wwan.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/usb/serial/usb_wwan.c b/drivers/usb/serial/usb_ww

[PATCH 0 / 5]cleanup of serial drivers

2016-07-14 Thread Oliver Neukum
This assigns urb->status to a variable and as Bjorn notes, these drivers were often mechanically converted to dev_dbg and abuse it. So here's a cleanup. -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.org More majordomo info

[PATCH v2 2/5] usb: serial: removing redundant __func__

2016-07-14 Thread Oliver Neukum
dev_dbg already states the function it is called from. Printing it again is wasted space. Signed-off-by: Oliver Neukum --- drivers/usb/serial/generic.c | 33 + 1 file changed, 13 insertions(+), 20 deletions(-) diff --git a/drivers/usb/serial/generic.c b/drivers/u

[PATCH 4/5] cdc-wdm: use the common CDC parser

2016-07-14 Thread Oliver Neukum
Now that the common parser resides in USB core, it can be used for CDC-WDM. Signed-off-by: Oliver Neukum --- drivers/usb/class/cdc-wdm.c | 30 +- 1 file changed, 5 insertions(+), 25 deletions(-) diff --git a/drivers/usb/class/cdc-wdm.c b/drivers/usb/class/cdc-wdm.c i

[PATCH 2/5] cdc-acm: use the common parser

2016-07-14 Thread Oliver Neukum
This introduces the common parser for extra CDC headers now that it no longer depends on usbnet. Signed-off-by: Oliver Neukum --- drivers/usb/class/cdc-acm.c | 69 +++-- 1 file changed, 10 insertions(+), 59 deletions(-) diff --git a/drivers/usb/class/cdc-

[PATCH 1/5] usbnet: move the CDC parser into USB core

2016-07-14 Thread Oliver Neukum
The dependencies were impossible to handle preventing drivers for CDC devices not which are not network drivers from using the common parser. Signed-off-by: Oliver Neukum --- drivers/net/usb/usbnet.c | 138 drivers/usb/core/message.c | 153 +

[PATCH 5/5] cdc-acm: beautify probe()

2016-07-14 Thread Oliver Neukum
This removes some overly long lines by renaming variables and giving them local scope. Signed-off-by: Oliver Neukum --- drivers/usb/class/cdc-acm.c | 44 1 file changed, 24 insertions(+), 20 deletions(-) diff --git a/drivers/usb/class/cdc-acm.c b/dri

[PATCH 0 / 5] move the common CDC parser

2016-07-14 Thread Oliver Neukum
Experience has shown that making all CDC drivers depend on usbnet is not practical, because some of them are not network drivers. So this patch moves the common parser from usbnet into the messages helpers of usbcore. The rest of the series applies it to the non-network CDC drivers. I hope it can

[PATCH 3/5] cdc-acm: cleanup error handling

2016-07-14 Thread Oliver Neukum
A small update to unify error handling during probe(). Signed-off-by: Oliver Neukum --- drivers/usb/class/cdc-acm.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c index 70bd642..1857fad 100644 --- a/drivers/us

Re: [PATCH] usb: ehci-platform: use helper variables in probe function

2016-07-14 Thread Alan Stern
On Wed, 13 Jul 2016, Rafał Miłecki wrote: > Probing function was using &dev->dev and dev->dev.of_node over 20 times > so I believe it made sense to use helper variables for both of them. > To avoid some uncommon variable name for struct device I first replaced > existing dev variable with pdev. >

RE: [PATCH] usb3: Fixed usb3 device is not detected in s0 when hotplug usb3 disk under S3

2016-07-14 Thread Alan Stern
On Thu, 14 Jul 2016, Huang, Huki wrote: > On Mon, 11 Jul 2016: Alan Stern wrote: > > > On Mon, 11 Jul 2016, Huang, Huki wrote: > > > > When end user inserts a usb3 device and put dut to s3. > > > What does "dut" mean? > > DUT : Device under test Don't call it that in the patch description. "

Re: [PATCH] usb: MAINTAINERS: Oliver Neukum is the new uas maintainer

2016-07-14 Thread Gerd Hoffmann
On Do, 2016-07-14 at 14:26 +0200, Hans de Goede wrote: > Oliver Neukum is taking over uas maintainership from me and > Gerd Hoffmann. > > Cc: Oliver Neukum > Cc: Gerd Hoffmann > Signed-off-by: Hans de Goede Acked-by: Gerd Hoffmann -- To unsubscribe from this list: send the line "unsubscribe

Re: [PATCH] usb: ehci-platform: use helper variables in probe function

2016-07-14 Thread Rafał Miłecki
On 14 July 2016 at 16:11, Alan Stern wrote: > On Wed, 13 Jul 2016, Rafał Miłecki wrote: > >> Probing function was using &dev->dev and dev->dev.of_node over 20 times >> so I believe it made sense to use helper variables for both of them. >> To avoid some uncommon variable name for struct device I f

Re: [PATCH V2 0/1] usb: add HCD providers

2016-07-14 Thread Rafał Miłecki
On 14 July 2016 at 11:48, Peter Chen wrote: > On Wed, Jul 13, 2016 at 04:40:53PM +0200, Rafał Miłecki wrote: >> On 13 July 2016 at 15:50, Felipe Balbi wrote: >> > Rafał Miłecki writes: >> >> On 13 July 2016 at 15:20, Felipe Balbi >> >> wrote: >> >>> Rafał Miłecki writes: >> Hi again, >>

[PATCH] r8152: add MODULE_VERSION

2016-07-14 Thread Grant Grundler
ethtool -i provides a driver version that is hard coded. Export the same value via "modinfo". Signed-off-by: Grant Grundler --- drivers/net/usb/r8152.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index 0da72d3..1c01ed5 100644 --- a/driver

USBIP problem with windows client

2016-07-14 Thread Max Lapan
Hi! I'm trying to get working USBIP server on 3.16.0 kernel and winxp client (windows driver is from sf.net). I did 'usbip attach' to my device (hp scanner) on server and started usbipd. Windows machine can successfully obtain list of devices available on server, but when I'm trying to attach it

Re: [RFC PATCH 0/5] USB Audio Gadget refactoring

2016-07-14 Thread Ruslan Bilovol
Ping? On Wed, Jun 8, 2016 at 11:03 AM, Ruslan Bilovol wrote: > Hi guys, > > Any feedback on this patch series? Has anybody had a chance to test it? > > Regards, > Ruslan > > On Tue, May 24, 2016 at 2:50 AM, Ruslan Bilovol > wrote: >> I came to this patch series when wanted to do two things: >>

Re: [PATCH v2 5/5] usb: serial: whiteheat: clean up dev_dbg

2016-07-14 Thread Greg KH
On Thu, Jul 14, 2016 at 03:01:44PM +0200, Oliver Neukum wrote: > dev_dbg() already can state the function name. No it doesn't. It shows the device, and driver bound to that device, but not a function name. > No need to state it again explicitly. I think it might still be needed here, if the str

Re: [PATCH v2 2/5] usb: serial: removing redundant __func__

2016-07-14 Thread Greg KH
On Thu, Jul 14, 2016 at 03:01:41PM +0200, Oliver Neukum wrote: > dev_dbg already states the function it is called from. Printing > it again is wasted space. Nope, it's not printed "again", test it and see :) -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a

Re: [PATCH v2 4/5] usb: serial: visor: clean up dev_dbg

2016-07-14 Thread Greg KH
On Thu, Jul 14, 2016 at 03:01:43PM +0200, Oliver Neukum wrote: > dev_dbg() already can state the function name. > No need to state it again explicitly. Nope, not true :) -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.org Mo

Re: [PATCH v2 3/5] usb: serial: usb_wwan.c: clean up dev_dbg

2016-07-14 Thread Greg KH
On Thu, Jul 14, 2016 at 03:01:42PM +0200, Oliver Neukum wrote: > dev_dbg() already can state the function name. > No need to state it again explicitly. Same comment as before... -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kerne

Re: [PATCH v2 2/5] usb: serial: removing redundant __func__

2016-07-14 Thread Oliver Neukum
On Fri, 2016-07-15 at 06:45 +0900, Greg KH wrote: > On Thu, Jul 14, 2016 at 03:01:41PM +0200, Oliver Neukum wrote: > > dev_dbg already states the function it is called from. Printing > > it again is wasted space. > > Nope, it's not printed "again", test it and see :) > > echo -n "module usbcore

Re: [PATCH v2 2/5] usb: serial: removing redundant __func__

2016-07-14 Thread Greg KH
On Fri, Jul 15, 2016 at 12:06:55AM +0200, Oliver Neukum wrote: > On Fri, 2016-07-15 at 06:45 +0900, Greg KH wrote: > > On Thu, Jul 14, 2016 at 03:01:41PM +0200, Oliver Neukum wrote: > > > dev_dbg already states the function it is called from. Printing > > > it again is wasted space. > > > > Nope,

Re: [PATCH v2 5/5] usb: serial: whiteheat: clean up dev_dbg

2016-07-14 Thread Bjørn Mork
Greg KH writes: > On Thu, Jul 14, 2016 at 03:01:44PM +0200, Oliver Neukum wrote: >> dev_dbg() already can state the function name. > > No it doesn't. It shows the device, and driver bound to that device, > but not a function name. Use dynamic debugging. You can have the function name, line numb

Re: [PATCH] usb: ehci-platform: use helper variables in probe function

2016-07-14 Thread Alan Stern
On Thu, 14 Jul 2016, Rafał Miłecki wrote: > > Okay except for... > > > >> - priv->num_phys = of_count_phandle_with_args(dev->dev.of_node, > >> - "phys", "#phy-cells"); > >> + priv->num_phys = of_count_phandle_with_args(np, "phys", > >> +

bug 120981 - usb controller reset / disconnect -

2016-07-14 Thread Warren Postma
I am also able to reproduce this USB disconnect glitch on a Dell Xeon workstation. Is there any way I can get more verbose output to dmesg: On Sat, Jun 25, 2016 at 12:29:39PM +, bugzilla-dae...@bugzilla.kernel.org wrote: > https://bugzilla.kernel.org/show_bug.cgi?id=120981 > > Bu

Re: [PATCH v2 5/5] usb: serial: whiteheat: clean up dev_dbg

2016-07-14 Thread Greg KH
On Fri, Jul 15, 2016 at 02:36:27AM +0200, Bjørn Mork wrote: > Greg KH writes: > > On Thu, Jul 14, 2016 at 03:01:44PM +0200, Oliver Neukum wrote: > >> dev_dbg() already can state the function name. > > > > No it doesn't. It shows the device, and driver bound to that device, > > but not a function

[PATCH 0/2] usb: typec: Introduce USB PD sink state machine driver and add PD sink support for Intel BXT PMIC Type-C phy

2016-07-14 Thread Bin Gao
This series introduce a USB PD(Power Delivery) sink port simple state machine driver and adds USB PD sink port support for Intel BXT Whiskey Cove PMIC Type-C phy driver. This series depends on these two patches: https://lkml.org/lkml/2016/6/29/349 https://lkml.org/lkml/2016/6/29/350 Bin Gao (1):

[PATCH 1/2] usb: typec: Add USB Power Delivery sink port support

2016-07-14 Thread Bin Gao
This patch implements a simple USB Power Delivery sink port state machine. It assumes the hardware only handles PD packet transmitting and receiving over the CC line of the USB Type-C connector. The state transition is completely controlled by software. This patch only implement the sink port funct

[PATCH 2/2] usb: typec: add PD sink port support for Intel Whiskey Cove PMIC Typc-C PHY driver

2016-07-14 Thread Bin Gao
From: Chandra Sekhar Anagani This adds PD sink port support for the USB Type-C PHY on Intel WhiskeyCove PMIC which is available on some of the Intel Broxton SoC based platforms. This patch depends on these two patches: https://lkml.org/lkml/2016/6/29/349 https://lkml.org/lkml/2016/6/29/350 Sign

Re: [PATCH V2 0/1] usb: add HCD providers

2016-07-14 Thread Peter Chen
On Thu, Jul 14, 2016 at 05:52:43PM +0200, Rafał Miłecki wrote: > On 14 July 2016 at 11:48, Peter Chen wrote: > > On Wed, Jul 13, 2016 at 04:40:53PM +0200, Rafał Miłecki wrote: > >> On 13 July 2016 at 15:50, Felipe Balbi > >> wrote: > >> > Rafał Miłecki writes: > >> >> On 13 July 2016 at 15:20,

[PATCH V2] usb: ehci-platform: use helper variables in probe function

2016-07-14 Thread Rafał Miłecki
Probing function was using &dev->dev and dev->dev.of_node over 20 times so I believe it made sense to use helper variables for both of them. To avoid some uncommon variable name for struct device I first replaced existing dev variable with pdev. Signed-off-by: Rafał Miłecki Acked-by: Alan Stern

[PATCH] usb: ohci-platform: use helper variables in probe function

2016-07-14 Thread Rafał Miłecki
Probing function was using &dev->dev and dev->dev.of_node over 20 times so I believe it made sense to use helper variables for both of them. To avoid some uncommon variable name for struct device I first replaced existing dev variable with pdev. Signed-off-by: Rafał Miłecki --- drivers/usb/host/

Re: [PATCH V2 0/1] usb: add HCD providers

2016-07-14 Thread Rafał Miłecki
On 15 July 2016 at 04:28, Peter Chen wrote: > On Thu, Jul 14, 2016 at 05:52:43PM +0200, Rafał Miłecki wrote: >> On 14 July 2016 at 11:48, Peter Chen wrote: >> > On Wed, Jul 13, 2016 at 04:40:53PM +0200, Rafał Miłecki wrote: >> >> Thanks for your effort and looking at this closely. You're right, I

Re: bug 120981 - usb controller reset / disconnect -

2016-07-14 Thread Peter Chen
On Thu, Jul 14, 2016 at 09:13:28PM -0400, Warren Postma wrote: > I am also able to reproduce this USB disconnect glitch on a Dell Xeon > workstation. Is there any way I can get more verbose output to dmesg: > > > On Sat, Jun 25, 2016 at 12:29:39PM +, > bugzilla-dae...@bugzilla.kernel.org wro

Re: [PATCH V2 0/1] usb: add HCD providers

2016-07-14 Thread Peter Chen
On Fri, Jul 15, 2016 at 07:48:11AM +0200, Rafał Miłecki wrote: > >> > Below I supply another thought, please check if it is feasible. > >> > In below design, you don't need to change any usb codes. > >> > > >> > dts: > >> > > >> > led_1 { > >> > led_gpio_1; > >> > usb_port = &ohci_p

Re: [PATCH 1/2] usb: typec: Add USB Power Delivery sink port support

2016-07-14 Thread Oliver Neukum
On Thu, 2016-07-14 at 19:14 -0700, Bin Gao wrote: > This patch implements a simple USB Power Delivery sink port state machine. > It assumes the hardware only handles PD packet transmitting and receiving > over the CC line of the USB Type-C connector. The state transition is > completely controlled

Re: [patch] usb: gadget: fsl_qe_udc: off by one in setup_received_handle()

2016-07-14 Thread Peter Chen
On Wed, Jul 13, 2016 at 01:14:33PM +0300, Dan Carpenter wrote: > The udc->eps[] array has USB_MAX_ENDPOINTS elements so > should be >=. > > Fixes: 3948f0e0c999 ('usb: add Freescale QE/CPM USB peripheral controller > driver') > Signed-off-by: Dan Carpenter > > diff --git a/drivers/usb/gadget/udc