RE: [PATCH v6 00/15] staging: typec: tcpci: move out of staging

2018-06-06 Thread Jun Li
Hi Mats, > -Original Message- > From: Mats Karrman [mailto:mats.dev.l...@gmail.com] > Sent: 2018年6月7日 5:45 > To: Jun Li ; robh...@kernel.org; gre...@linuxfoundation.org; > heikki.kroge...@linux.intel.com; li...@roeck-us.net > Cc: cw00.c...@samsung.com; a.ha...@samsung.com; shufan_...@richte

Re: [PATCH v6 00/15] staging: typec: tcpci: move out of staging

2018-06-06 Thread Mats Karrman
Hello Li Jun, I have been testing these patches on top of usb-next using an i.MX6, a nxp ptn5110 evaluation board and a bunch of usbc devices. So far everything seem to work fine! :-) However, I have only tested host mode and I have some test cases left I want to cover. Just to let you know your

USB role switches, usb-connector, typec and device trees

2018-06-06 Thread Mats Karrman
Hello Gentlemen, I'm trying to get my head around USB role switches in connection with Type-C ports and device-trees. So far I have not found much documentation, e.g. there are no device-tree bindings documented and really no good examples in existing device trees, although there has been some a

Re: [PATCH 1/1] usb: chipidea: host: fix disconnection detect issue

2018-06-06 Thread Martin Blumenstingl
Hi Peter, Hi Mats, On Wed, Jun 6, 2018 at 4:04 AM, Peter Chen wrote: > The commit 4e88d4c08301 ("usb: add a flag to skip PHY > initialization to struct usb_hcd") delete the assignment > for hcd->usb_phy, it causes usb_phy_notify_connect{disconnect) > are not called, the USB PHY driver is not noti

Re: External USB fuzzing

2018-06-06 Thread Alan Stern
On Wed, 6 Jun 2018, Andrey Konovalov wrote: > On Tue, Jun 5, 2018 at 10:06 PM, Alan Stern wrote: > > On Tue, 5 Jun 2018, Andrey Konovalov wrote: > > [...] > > > What do you need that's different from what gadgetfs provides? > > 1. It does some sanity checks on the provided USB descriptors, whi

Re: External USB fuzzing

2018-06-06 Thread Andrey Konovalov
On Tue, Jun 5, 2018 at 10:06 PM, Alan Stern wrote: > On Tue, 5 Jun 2018, Andrey Konovalov wrote: [...] > What do you need that's different from what gadgetfs provides? 1. It does some sanity checks on the provided USB descriptors, which we don't really want, since providing improper descriptors

Re: [Query] checking hub port status while USB 2.0 port is resuming.

2018-06-06 Thread Alan Stern
On Wed, 6 Jun 2018, Anshuman Gupta wrote: > On Wed, Jun 06, 2018 at 09:49:59AM -0400, Alan Stern wrote: > > On Wed, 6 Jun 2018, Anshuman Gupta wrote: > > > > > > > > In any case, when the system wakes up because of a signal received > > > > > > by a > > > > > > USB host controller, there should

[PATCH -next] usb: dwc3: Fix error return code in dwc3_qcom_probe()

2018-06-06 Thread Wei Yongjun
Fix to return error code -ENODEV from the get device failed error handling case instead of 0, as done elsewhere in this function. Fixes: a4333c3a6ba9 ("usb: dwc3: Add Qualcomm DWC3 glue driver") Signed-off-by: Wei Yongjun --- drivers/usb/dwc3/dwc3-qcom.c | 1 + 1 file changed, 1 insertion(+) di

Re: [Query] checking hub port status while USB 2.0 port is resuming.

2018-06-06 Thread Alan Stern
On Wed, 6 Jun 2018, Anshuman Gupta wrote: > > > > In any case, when the system wakes up because of a signal received by a > > > > USB host controller, there should be a wakeup event associated with the > > > > host controller. Don't you get those events? > Yes we are getting those PM events but

Re: [PATCH 1/1] usb: chipidea: host: fix disconnection detect issue

2018-06-06 Thread Mats Karrman
On 2018-06-06 04:04, Peter Chen wrote: The commit 4e88d4c08301 ("usb: add a flag to skip PHY initialization to struct usb_hcd") delete the assignment for hcd->usb_phy, it causes usb_phy_notify_connect{disconnect) are not called, the USB PHY driver is not notified of hot plug event, then the disc