Re: [PATCH v2 0/5] usb: gadget: Fix gadget deactivaton feature

2015-05-27 Thread Robert Baldyga
Hi Felipe, On 05/26/2015 07:08 PM, Felipe Balbi wrote: > On Mon, May 04, 2015 at 02:55:10PM +0200, Robert Baldyga wrote: >> Hi, >> >> This patch set introduces two functions usb_gadget_deactivate() and >> usb_gadget_activate(), designed to prevent udc-core from showing binded >> gadget to host unt

Re: usb:gadget:hid:Add BOOT mode support

2015-05-27 Thread Golmer Palmer
Alan Stern writes: > > On Tue, 26 May 2015, Golmer Palmer wrote: > > > Alan Stern ...> writes: > > > > So please, can you add also some minimal support inside Set_Protocol() > > to "change" from mode "0" to mode "1" (and viceversa) assuming that both > > modes are equal? > > Okay, a revise

Re: [PATCH 1/1] dbgp: Supply config descriptor and accept set config command.

2015-05-27 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 26.05.2015 21:50, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > commit 2d148ea63fe50bf30071cb3e6c87fbd32c081cba > Author: Vladimir Serbinenko > Date: Tue May 26 21:35:06 2015 +0200 > Tested and works as expected in coreboot and GRUB. Booted Linux > recognizes > and it works the same

Re: [PATCH] usb: ulpi: don't register drivers if bus doesn't exist

2015-05-27 Thread Heikki Krogerus
Hi Greg, > > But couldn't we add a helper function to drivers/base/bus.c that the > > bus drivers can use to at least check was the bus already loaded or > > not? It looks like there are a couple of bus drivers that use the > > struct bus member "p" to check that. > > > > Greg, what do you think?

Re: [PATCH] usb: ulpi: don't register drivers if bus doesn't exist

2015-05-27 Thread Sudip Mukherjee
On Wed, May 27, 2015 at 11:39:33AM +0300, Heikki Krogerus wrote: > Hi Greg, > > I can appreciate now that fixing the core problem like I2C did is > wrong, but I still feel that the driver core should provide something > like the helper for checking if the bus was registered already or not. > Other

Re: MUSB dual-role on AM335x behaving weirdly

2015-05-27 Thread Alexandre Belloni
Hi, On 26/05/2015 at 09:51:18 -0500, Felipe Balbi wrote : > On Thu, May 14, 2015 at 04:36:33PM -0500, Bin Liu wrote: > > Alexandre, > > > > On Thu, May 14, 2015 at 4:26 PM, Alexandre Belloni > > wrote: > > > On 14/05/2015 at 16:16:12 -0500, Bin Liu wrote : > > >> I think I found the root cause o

Optiplex 9020 reboots rather than shutting down if USB3 enabled

2015-05-27 Thread Owen Dunn
[1.] Optiplex 9020 reboots rather than shutting down if USB3 enabled [2.] I have a large number of Dell Optiplex 9020 machines, and when they are asked to shutdown with e.g. shutdown -h now, they shut down successfully and then approximately four seconds later they start up again. This proble

[PATCH] usb: gadget: f_fs: do not set cancel function on synchronous {read,write}

2015-05-27 Thread Rui Miguel Silva
do not try to set cancel function in synchronous operations in ffs_epfile_{read,write}_iter. With, 70e60d917 gadget/function/f_fs.c: switch to ->{read,write}_iter() if CONFIG_AIO is disable there is no problem as kiocb_set_cancel_fn is a nop, with this option enabled it will try to use ctx that is

[PATCH 3/9] usb: add ADP, HNP and SRP feature options to gadget structure.

2015-05-27 Thread Li Jun
From: Macpaul Lin Add ADP, HNP and SRP feature options to gadget structure. Signed-off-by: Macpaul Lin --- include/linux/usb/gadget.h | 9 + 1 file changed, 9 insertions(+) diff --git a/include/linux/usb/gadget.h b/include/linux/usb/gadget.h index 4f3dfb7..ea167d4 100644 --- a/include

[PATCH 5/9] usb: gadget: composite: add USB_DT_OTG request handling

2015-05-27 Thread Li Jun
From: Macpaul Lin Copy usb_otg_descriptor from config's descriptor if host requests USB_DT_OTG. Signed-off-by: Macpaul Lin Signed-off-by: Li Jun --- drivers/usb/gadget/composite.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/drivers/usb/gadget/composite.c b/drivers/

[PATCH 9/9] usb: chipidea: update ci_otg_is_fsm_mode conditions

2015-05-27 Thread Li Jun
After introduce usb otg properties, update ci_otg_is_fsm_mode conditions to be depending on both usb hardware properties and usb driver config, also resolve a compile issue after this API change in debug.c. Signed-off-by: Li Jun --- drivers/usb/chipidea/ci.h| 4 ++-- drivers/usb/chipidea/deb

[PATCH 0/6] Mediatek xHCI support

2015-05-27 Thread chunfeng.yun
The patch supports MediaTek's xHCI controller. There are some differences from xHCI spec: 1. The interval is specified in 250 * 8ns increments for Interrupt Moderation Interval(IMODI) of the Interrupter Moderation(IMOD) register, it is 8 times as much as that defined in xHCI spec. 2. For the valu

[PATCH 2/6] dt-bindings: Add a binding for Mediatek xHCI host controller

2015-05-27 Thread chunfeng.yun
From: Chunfeng Yun add a DT binding documentation of xHCI host controller for the MT8173 SoC from Mediatek. Signed-off-by: Chunfeng Yun --- Documentation/devicetree/bindings/usb/mt8173-xhci.txt | 19 +++ 1 file changed, 19 insertions(+) create mode 100644 Documentation/devicet

[PATCH 4/6] usb: phy: add usb3.0 phy driver for mt65xx SoCs

2015-05-27 Thread chunfeng.yun
From: Chunfeng Yun Signed-off-by: Chunfeng Yun --- drivers/usb/phy/Kconfig | 10 + drivers/usb/phy/Makefile | 1 + drivers/usb/phy/phy-mt65xx-usb3.c | 724 ++ 3 files changed, 735 insertions(+) create mode 100644 drivers/usb/phy/phy-mt6

[PATCH 6/6] arm64: dts: mediatek: add xHCI & usb phy for mt8173

2015-05-27 Thread chunfeng.yun
From: Chunfeng Yun Signed-off-by: Chunfeng Yun --- arch/arm64/boot/dts/mediatek/mt8173-evb.dts | 14 ++ arch/arm64/boot/dts/mediatek/mt8173.dtsi| 24 2 files changed, 38 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8173-evb.dts b/arch/arm6

[PATCH 3/6] xhci: probe phy before add usb_hcd

2015-05-27 Thread chunfeng.yun
From: Chunfeng Yun find the phy driver before add primary usb_hcd to avoid acessing xHCI register which may hangup the system when the phy is not loaded yet and the related powers or clocks put in phy driver are not enabled. Signed-off-by: Chunfeng Yun --- drivers/usb/host/xhci-plat.c | 34 +++

[PATCH 1/6] dt-bindings: Add usb3.0 phy binding for MT65xx SoCs

2015-05-27 Thread chunfeng.yun
From: Chunfeng Yun add a DT binding documentation of usb3.0 phy for MT65xx SoCs from Mediatek. Signed-off-by: Chunfeng Yun --- .../devicetree/bindings/usb/mt65xx-u3phy.txt | 37 ++ 1 file changed, 37 insertions(+) create mode 100644 Documentation/devicetree/bindings/

[PATCH 5/6] xhci: mediatek: support MTK xHCI host controller

2015-05-27 Thread chunfeng.yun
From: Chunfeng Yun MTK xhci host controller defines some extra SW scheduling parameters for HW to minimize the scheduling effort for synchronous and interrupt endpoints. The parameters are put into reseved DWs of slot context and endpoint context. Signed-off-by: Chunfeng Yun --- drivers/usb/ho

[PATCH 2/9] usb: add USB_OTG_ADP definition

2015-05-27 Thread Li Jun
From: Macpaul Lin Add USB_OTG_ADP definition for usb_otg_descriptor.bmAttributes. Signed-off-by: Macpaul Lin Signed-off-by: Li Jun --- include/uapi/linux/usb/ch9.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/usb/ch9.h b/include/uapi/linux/usb/ch9.h index 67204f1..ce

[PATCH 4/9] usb: gdaget: composite: override OTG capabilities when add config

2015-05-27 Thread Li Jun
From: Macpaul Lin Update usb_otg_descriptor for ADP/SRP/HNP features if usb HW has any configrations of them. Signed-off-by: Macpaul Lin Signed-off-by: Li Jun --- drivers/usb/gadget/composite.c | 31 +++ 1 file changed, 31 insertions(+) diff --git a/drivers/usb/ga

[PATCH 8/9] usb: chipidea: udc: set usb gadeget's otg config

2015-05-27 Thread Li Jun
Set gadget's otg features according to controller's capability and usb property in device tree. Signed-off-by: Li Jun --- drivers/usb/chipidea/core.c | 12 drivers/usb/chipidea/udc.c | 19 ++- include/linux/usb/chipidea.h | 3 +++ 3 files changed, 33 insertions(+

[PATCH 1/9] usb: introduce OTG version number config

2015-05-27 Thread Li Jun
From: Macpaul Lin Add CONFIG_USB_OTG_VERSION to identify the OTG and EH supplement release number with which the OTG device is compliant, also update the usb_otg_descriptor for OTG 2.0 and later release to include this OTG version number. Signed-off-by: Macpaul Lin Signed-off-by: Li Jun --- d

[PATCH 6/9] doc: dt-binding: ci-hdrc-imx: add otg related properties

2015-05-27 Thread Li Jun
Add srp, hnp and adp support for usb OTG port, then those OTG features don't have to be decided by usb driver. Signed-off-by: Li Jun --- Documentation/devicetree/bindings/usb/ci-hdrc-imx.txt | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/ci-hdrc-i

[PATCH 0/9] usb gadget update for OTG 2.0

2015-05-27 Thread Li Jun
Hi, This is a follow-up of Macpaul Lin's previous patchset to resolve usb gadget driver work with OTG 2.0, main changes: 1. keep one usb_otg_descriptor definition and introduce a kernel config to identify the OTG release version, if OTG 2.0 or later, add bcdOTG. 2. Override the usb_otg_descrip

[PATCH 7/9] usb: common: add API to get usb otg features from device tree

2015-05-27 Thread Li Jun
Check property of usb hardware to get if SRP, HNP and ADP is supported. Signed-off-by: Li Jun --- drivers/usb/common/common.c | 45 + include/linux/usb/of.h | 15 +++ 2 files changed, 60 insertions(+) diff --git a/drivers/usb/common/c

Re: [PATCH 1/3] phy-sun4i-usb: Add a sunxi specific function for setting squelch-detect

2015-05-27 Thread Kishon Vijay Abraham I
Felipe, On Tuesday 26 May 2015 09:08 PM, Felipe Balbi wrote: On Sun, Mar 29, 2015 at 12:50:46PM +0200, Hans de Goede wrote: The sunxi otg phy has a bug where it wrongly detects a high speed squelch when reset on the root port gets de-asserted with a lo-speed device. The workaround for this is

Re: [PATCH 3/6] xhci: probe phy before add usb_hcd

2015-05-27 Thread Felipe Balbi
On Wed, May 27, 2015 at 07:48:00PM +0800, chunfeng@mediatek.com wrote: > From: Chunfeng Yun > > find the phy driver before add primary usb_hcd to avoid acessing > xHCI register which may hangup the system when the phy is not loaded > yet and the related powers or clocks put in phy driver are

Re: possible race condition for usb_stor_port_reset and usb_reset_and_verify_device

2015-05-27 Thread yoma sophian
Hi alan: 2015-05-07 2:16 GMT+08:00 Alan Stern : > On Thu, 7 May 2015, yoma sophian wrote: > >> > Besides, the kernel already contains a thread that calls >> > sd_check_events periodically. Why do you need to write a new one? >> I create the thread since some buggy devices needs to periodically >>

[PATCH 2/2] USB: hcd.h : Removed an unnecessary function prototype usb_find_interface_driver()

2015-05-27 Thread Abhishek Bist
This function is used to call before 2.6.x version of linux kernel but since then I haven't seen it's relative usage and it's not being used any where right now after checking it through linux.crossrefrence.So, IMHO it would be relevant to remove this obselete function from kernel mainline. Sign

Re: possible race condition for usb_stor_port_reset and usb_reset_and_verify_device

2015-05-27 Thread Alan Stern
On Wed, 27 May 2015, yoma sophian wrote: > After reading the kernel power document, freezing-of-tasks.txt , can I > get the below conclusion: > if I put my thread in freezable, it will get frozen automatically > whenever the system goes in to suspend or hibernate. It's not entirely automatic. Yo

Re: [PATCH 2/2] USB: hcd.h : Removed an unnecessary function prototype usb_find_interface_driver()

2015-05-27 Thread Greg KH
On Wed, May 27, 2015 at 07:19:15PM +0530, Abhishek Bist wrote: > This function is used to call before 2.6.x version of linux kernel but since > then I haven't seen it's relative usage and it's not > being used any where right now after checking it through > linux.crossrefrence.So, IMHO it would b

Re: [PATCH 2/2] USB: hcd.h : Removed an unnecessary function prototype usb_find_interface_driver()

2015-05-27 Thread Greg KH
On Wed, May 27, 2015 at 07:19:15PM +0530, Abhishek Bist wrote: > This function is used to call before 2.6.x version of linux kernel but since > then I haven't seen it's relative usage and it's not > being used any where right now after checking it through > linux.crossrefrence.So, IMHO it would b

Re: PROBLEM: USB drive errors with newer kernel versions

2015-05-27 Thread Alan Stern
On Tue, 26 May 2015, Gary Dalmadge wrote: > Please see below. Please let me know if you need additional information. Here's the problem, from right near the start of your trace: > 8800cf87c000 2445467361 S Bo:1:004:2 -115 31 = 55534243 d200 > 0a35

Re: [PATCH] usb: ulpi: don't register drivers if bus doesn't exist

2015-05-27 Thread Alan Stern
On Wed, 27 May 2015, Heikki Krogerus wrote: > This problem is not ulpi specific. We have the same issue with every > single bus. With a bus like PCI it's just really unlikely to hit it > because PCI bus driver uses postcore_initcall. But if there was > a PCI driver that used postcore_initcall itse

excessive usb traffic with FT230x

2015-05-27 Thread Karl Palsson
Hi, I've been using OpenWrt's "usb activity" led trigger to display usb-serial traffic over a cp210x dongle quite successfully, but after replacing the cp210x with a FT230x, I find that I get constant USB traffic (every millisecond) as soon as the port is opened. I've put a usbmon capture availa

Re: [PATCH] usb: ulpi: don't register drivers if bus doesn't exist

2015-05-27 Thread Greg KH
On Wed, May 27, 2015 at 11:16:34AM -0400, Alan Stern wrote: > On Wed, 27 May 2015, Heikki Krogerus wrote: > > > This problem is not ulpi specific. We have the same issue with every > > single bus. With a bus like PCI it's just really unlikely to hit it > > because PCI bus driver uses postcore_init

Re: excessive usb traffic with FT230x

2015-05-27 Thread Johan Hovold
On Wed, May 27, 2015 at 02:48:18PM -, Karl Palsson wrote: > > Hi, > > I've been using OpenWrt's "usb activity" led trigger to display > usb-serial traffic over a cp210x dongle quite successfully, but after > replacing the cp210x with a FT230x, I find that I get constant USB > traffic (every m

Re: [PATCH 2/2] USB: hcd.h : Removed an unnecessary function prototype usb_find_interface_driver()

2015-05-27 Thread Paul Bolle
On Wed, 2015-05-27 at 19:19 +0530, Abhishek Bist wrote: > This function is used to call before 2.6.x version of linux kernel but > since then I haven't seen it's relative usage and it's not > being used any where right now after checking it through > linux.crossrefrence. This goes into detail way

Re: Re: excessive usb traffic with FT230x

2015-05-27 Thread Karl Palsson
Johan Hovold wrote: > > > > The usbmon traces seem to be a continual reporting of the "0x0160" shown > > in the ftdi_get_modem_status lines. Is this actually _meant_ to be > > happening? Can I turn it off? Any other suggestions? > > This is the device reporting the modem and line status ever

Re: usb:gadget:hid:Add BOOT mode support

2015-05-27 Thread Alan Stern
On Wed, 27 May 2015, Golmer Palmer wrote: > Hi Alan, > > Thank you for the new patch! > However, a comment: > > * At page 74 of the specifications, > section F.3 Boot Keyboard Requirements, > (http://www.usb.org/developers/hidpage/HID1_11.pdf) > is defined that: > "The Boot Keyboard shall, upon

Re: Re: excessive usb traffic with FT230x

2015-05-27 Thread Johan Hovold
On Wed, May 27, 2015 at 03:50:34PM -, Karl Palsson wrote: > > Johan Hovold wrote: > > > > > > The usbmon traces seem to be a continual reporting of the "0x0160" shown > > > in the ftdi_get_modem_status lines. Is this actually _meant_ to be > > > happening? Can I turn it off? Any other sug

Re: Re: excessive usb traffic with FT230x

2015-05-27 Thread Greg KH
On Wed, May 27, 2015 at 03:50:34PM -, Karl Palsson wrote: > > Johan Hovold wrote: > > > > > > The usbmon traces seem to be a continual reporting of the "0x0160" shown > > > in the ftdi_get_modem_status lines. Is this actually _meant_ to be > > > happening? Can I turn it off? Any other sug

Re: [PATCH] usb: ulpi: don't register drivers if bus doesn't exist

2015-05-27 Thread David Cohen
Hi Greg, On Tue, May 26, 2015 at 07:41:18PM -0700, Greg KH wrote: > On Tue, May 26, 2015 at 10:54:01AM -0700, David Cohen wrote: > > Hi, > > > > On Mon, May 25, 2015 at 07:00:13PM +0200, Bjørn Mork wrote: > > > Greg KH writes: > > > > > > > If there are other bus drivers that do this, I'll go f

Re: [PATCH v4 1/1] usb: ulpi: ulpi_init should be executed in subsys_initcall

2015-05-27 Thread David Cohen
Hi, On Tue, May 26, 2015 at 07:37:02PM -0700, Greg Kroah-Hartman wrote: > On Wed, May 27, 2015 at 09:45:37AM +0800, Lu Baolu wrote: > > Phy drivers and the ulpi interface providers depend on the > > registration of the ulpi bus. Ulpi registers the bus in > > module_init(). This could cause unnece

Re: Re: Re: excessive usb traffic with FT230x

2015-05-27 Thread Karl Palsson
Greg KH wrote: > > > If I'm not interested in modem status, can I disable this entirely? I > > don't even have modem lines connected. > > Is this data packet somehow causing a problem with your system? If so, > I suggest using a different type of usb to serial device, but it might > be hard

[PATCH 2/3] usb: musb: ux500: fix build warnings

2015-05-27 Thread Felipe Balbi
This patch fixes the following build warnings: drivers/usb/musb/ux500.c:346:12: warning: ‘ux500_suspend’ defined but not used [-Wunused-function] drivers/usb/musb/ux500.c:357:12: warning: ‘ux500_resume’ defined but not used [-Wunused-function] Signed-off-by: Felipe Balbi --- drivers/usb/musb/ux

[PATCH 1/3] usb: musb: am35x: fix build warnings

2015-05-27 Thread Felipe Balbi
This patch fixes the following build warnings: drivers/usb/musb/am35x.c:573:12: warning: ‘am35x_suspend’ defined but not used [-Wunused-function] drivers/usb/musb/am35x.c:589:12: warning: ‘am35x_resume’ defined but not used [-Wunused-function] drivers/usb/musb/am35x.c:573:12: warning: ‘am35x_suspe

[PATCH 3/3] usb: gadget: atmel: fix build warnings

2015-05-27 Thread Felipe Balbi
This patch fixes the following build warnings: drivers/usb/gadget/udc/atmel_usba_udc.c:2207:12: warning: ‘usba_udc_suspend’ defined but not used [-Wunused-function] static int usba_udc_suspend(struct device *dev) drivers/usb/gadget/udc/atmel_usba_udc.c:2236:12: warning: ‘usba_udc_resume’ defined b

Re: [PATCH 01/11] usb: phy: return error on failure

2015-05-27 Thread Felipe Balbi
On Wed, May 27, 2015 at 04:28:50AM +, Kaukab, Yousaf wrote: > > -Original Message- > > From: Felipe Balbi [mailto:ba...@ti.com] > > Sent: Wednesday, May 27, 2015 12:20 PM > > To: Kaukab, Yousaf > > Cc: ba...@ti.com; linux-usb@vger.kernel.org > > Subject: Re: [PATCH 01/11] usb: phy: retu

[PATCH] USB: hcd.h : Removed an unnecessary function prototype usb_find_interface_driver()

2015-05-27 Thread Abhishek Bist
This function is used to call in early version of linux kernel in order to find out the interface used by a usb device. But now it's use is completely abolished. So,it would be relevant to remove this obselete function from kernel mainline. Signed-off-by: Abhishek Bist --- include/linux/usb/hcd

Re: [RESEND][PATCH] Bluetooth: Make request workqueue freezable

2015-05-27 Thread Laura Abbott
On 05/21/2015 08:13 PM, Marcel Holtmann wrote: Hi Laura, Then avoiding the failed firmware is no solution, indeed. If it's a new probe, it should be never executed during resume. Can you expand this comment? What's wrong with probing during resume? The USB stack does carry out probes during

Re: [PATCH v4 1/1] usb: ulpi: ulpi_init should be executed in subsys_initcall

2015-05-27 Thread Lu, Baolu
On 05/28/2015 12:53 AM, David Cohen wrote: Hi, On Tue, May 26, 2015 at 07:37:02PM -0700, Greg Kroah-Hartman wrote: On Wed, May 27, 2015 at 09:45:37AM +0800, Lu Baolu wrote: Phy drivers and the ulpi interface providers depend on the registration of the ulpi bus. Ulpi registers the bus in mod

Re: [PATCH 1/9] usb: introduce OTG version number config

2015-05-27 Thread Peter Chen
On Wed, May 27, 2015 at 07:50:01PM +0800, Li Jun wrote: > From: Macpaul Lin > > Add CONFIG_USB_OTG_VERSION to identify the OTG and EH supplement release > number > with which the OTG device is compliant, also update the usb_otg_descriptor for > OTG 2.0 and later release to include this OTG versi

Re: [PATCH 2/9] usb: add USB_OTG_ADP definition

2015-05-27 Thread Peter Chen
On Wed, May 27, 2015 at 07:50:02PM +0800, Li Jun wrote: > From: Macpaul Lin > > Add USB_OTG_ADP definition for usb_otg_descriptor.bmAttributes. > > Signed-off-by: Macpaul Lin > Signed-off-by: Li Jun > --- > include/uapi/linux/usb/ch9.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a

Re: [PATCH 3/9] usb: add ADP, HNP and SRP feature options to gadget structure.

2015-05-27 Thread Peter Chen
On Wed, May 27, 2015 at 07:50:03PM +0800, Li Jun wrote: > From: Macpaul Lin > > Add ADP, HNP and SRP feature options to gadget structure. > > Signed-off-by: Macpaul Lin > --- > include/linux/usb/gadget.h | 9 + > 1 file changed, 9 insertions(+) > > diff --git a/include/linux/usb/gadge

Re: [PATCH 4/9] usb: gdaget: composite: override OTG capabilities when add config

2015-05-27 Thread Peter Chen
On Wed, May 27, 2015 at 07:50:04PM +0800, Li Jun wrote: > From: Macpaul Lin > > Update usb_otg_descriptor for ADP/SRP/HNP features if usb HW has any > configrations of them. > > Signed-off-by: Macpaul Lin > Signed-off-by: Li Jun > --- > drivers/usb/gadget/composite.c | 31

Re: [PATCH 5/9] usb: gadget: composite: add USB_DT_OTG request handling

2015-05-27 Thread Peter Chen
On Wed, May 27, 2015 at 07:50:05PM +0800, Li Jun wrote: > From: Macpaul Lin > > Copy usb_otg_descriptor from config's descriptor if host requests USB_DT_OTG. > > Signed-off-by: Macpaul Lin > Signed-off-by: Li Jun > --- > drivers/usb/gadget/composite.c | 18 ++ > 1 file changed

Re: [PATCH 6/9] doc: dt-binding: ci-hdrc-imx: add otg related properties

2015-05-27 Thread Peter Chen
On Wed, May 27, 2015 at 07:50:06PM +0800, Li Jun wrote: > Add srp, hnp and adp support for usb OTG port, then those OTG features don't > have to be decided by usb driver. > Please always cc to dt ML and maintainer about dt changes. > Signed-off-by: Li Jun > --- > Documentation/devicetree/bindi

Re: [PATCH 8/9] usb: chipidea: udc: set usb gadeget's otg config

2015-05-27 Thread Peter Chen
On Wed, May 27, 2015 at 07:50:08PM +0800, Li Jun wrote: > Set gadget's otg features according to controller's capability and usb > property > in device tree. > > Signed-off-by: Li Jun > --- > drivers/usb/chipidea/core.c | 12 > drivers/usb/chipidea/udc.c | 19 ++-

Re: [PATCH 9/9] usb: chipidea: update ci_otg_is_fsm_mode conditions

2015-05-27 Thread Peter Chen
On Wed, May 27, 2015 at 07:50:09PM +0800, Li Jun wrote: > After introduce usb otg properties, update ci_otg_is_fsm_mode conditions to be > depending on both usb hardware properties and usb driver config, also resolve > a compile issue after this API change in debug.c. > > Signed-off-by: Li Jun >

Re: [PATCH 7/9] usb: common: add API to get usb otg features from device tree

2015-05-27 Thread Peter Chen
On Wed, May 27, 2015 at 07:50:07PM +0800, Li Jun wrote: > Check property of usb hardware to get if SRP, HNP and ADP is supported. > > Signed-off-by: Li Jun > --- > drivers/usb/common/common.c | 45 > + > include/linux/usb/of.h | 15 ++

Re: [PATCH 6/9] doc: dt-binding: ci-hdrc-imx: add otg related properties

2015-05-27 Thread Peter Chen
On Wed, May 27, 2015 at 07:50:06PM +0800, Li Jun wrote: > Add srp, hnp and adp support for usb OTG port, then those OTG features don't > have to be decided by usb driver. > Add this change to: Documentation/devicetree/bindings/usb/generic.txt > Signed-off-by: Li Jun > --- > Documentation/devic

Re: [PATCH 1/9] usb: introduce OTG version number config

2015-05-27 Thread Li Jun
On Thu, May 28, 2015 at 09:15:05AM +0800, Peter Chen wrote: > On Wed, May 27, 2015 at 07:50:01PM +0800, Li Jun wrote: > > From: Macpaul Lin > > > > Add CONFIG_USB_OTG_VERSION to identify the OTG and EH supplement release > > number > > with which the OTG device is compliant, also update the usb_

USB: OOPS 4.1.0-rc5-next-20150527 after lsusb -v

2015-05-27 Thread Chris Ruehl
0-rc5-next-20150527-dirty ehci_hcd [5.280280] usb usb1: SerialNumber: ci_hdrc.0 [5.286528] usb usb1: no of_node; not parsing pinctrl DT [5.293375] hub 1-0:1.0: no of_node; not parsing pinctrl DT [5.299273] hub 1-0:1.0: USB hub found [5.303821] hub 1-0:1.0: 1 port det

USB: OOPS 4.1.0-rc5-next-20150527 on boot usb-stick-plugged

2015-05-27 Thread Chris Ruehl
] [f4424184] *pgd=1452(bad) [6.273042] Internal error: : 8 [#1] ARM [6.276990] Modules linked in: [6.280111] CPU: 0 PID: 318 Comm: kworker/0:1 Not tainted 4.1.0-rc5-next-20150527-dirty #39 [6.288495] Hardware name: GTSYS i.MX27GTSIR (Device Tree Support) [6.294747] Workqueue

Re: [PATCH 1/9] usb: introduce OTG version number config

2015-05-27 Thread Peter Chen
On Thu, May 28, 2015 at 10:00:52AM +0800, Li Jun wrote: > On Thu, May 28, 2015 at 09:15:05AM +0800, Peter Chen wrote: > > On Wed, May 27, 2015 at 07:50:01PM +0800, Li Jun wrote: > > > From: Macpaul Lin > > > > > > Add CONFIG_USB_OTG_VERSION to identify the OTG and EH supplement release > > > num

Re: USB: OOPS 4.1.0-rc5-next-20150527 after lsusb -v

2015-05-27 Thread Chris Ruehl
oller [5.272756] usb usb1: Manufacturer: Linux 4.1.0-rc5-next-20150527-dirty ehci_hcd [5.280280] usb usb1: SerialNumber: ci_hdrc.0 [5.286528] usb usb1: no of_node; not parsing pinctrl DT [5.293375] hub 1-0:1.0: no of_node; not parsing pinctrl DT [5.299273] hub 1-0:1.0: USB hub

Re: USB: OOPS 4.1.0-rc5-next-20150527 after lsusb -v

2015-05-27 Thread Peter Chen
.260384] usb usb1: New USB device strings: Mfr=3, Product=2, > SerialNumber=1 > [5.267748] usb usb1: Product: EHCI Host Controller > [5.272756] usb usb1: Manufacturer: Linux 4.1.0-rc5-next-20150527-dirty > ehci_hcd > [5.280280] usb usb1: SerialNumber: ci_hdrc.0 > [5.286528] usb

Re: USB: OOPS 4.1.0-rc5-next-20150527 after lsusb -v

2015-05-27 Thread Chris Ruehl
0-rc5-next-20150527-dirty ehci_hcd [5.280280] usb usb1: SerialNumber: ci_hdrc.0 [5.286528] usb usb1: no of_node; not parsing pinctrl DT [5.293375] hub 1-0:1.0: no of_node; not parsing pinctrl DT [5.299273] hub 1-0:1.0: USB hub found [5.303821] hub 1-0:1.0: 1 port det

Re: [PATCH 9/9] usb: chipidea: update ci_otg_is_fsm_mode conditions

2015-05-27 Thread Li Jun
On Thu, May 28, 2015 at 09:37:47AM +0800, Peter Chen wrote: > On Wed, May 27, 2015 at 07:50:09PM +0800, Li Jun wrote: > > After introduce usb otg properties, update ci_otg_is_fsm_mode conditions to > > be > > depending on both usb hardware properties and usb driver config, also > > resolve > > a

Re: USB: OOPS 4.1.0-rc5-next-20150527 after lsusb -v

2015-05-27 Thread Chris Ruehl
ber=1 [5.267748] usb usb1: Product: EHCI Host Controller [5.272756] usb usb1: Manufacturer: Linux 4.1.0-rc5-next-20150527-dirty ehci_hcd [5.280280] usb usb1: SerialNumber: ci_hdrc.0 [5.286528] usb usb1: no of_node; not parsing pinctrl DT [5.293375] hub 1-0:1.0: no of_node; not pa

Re: [PATCH 00/21] On-demand device registration

2015-05-27 Thread Rob Herring
On Mon, May 25, 2015 at 9:53 AM, Tomeu Vizoso wrote: > Hello, > > I have a problem with the panel on my Tegra Chromebook taking longer than > expected to be ready during boot (Stéphane Marchesin reported what is > basically the same issue in [0]), and have looked into ordered probing as a > better

Re: USB: OOPS 4.1.0-rc5-next-20150527 after lsusb -v

2015-05-27 Thread Chris Ruehl
More majordomo info at http://vger.kernel.org/majordomo-info.html Seams to me the driver specific bus_resume call is broken. ChipIdea? (gdb) list *(hcd_bus_resume+0x58) 0x2cc0 is in hcd_bus_resume (drivers/usb/core/hcd.c:). 2217return -ENOENT; 2218if (HCD_RH_RUNNING(hcd

Re: USB: OOPS 4.1.0-rc5-next-20150527 after lsusb -v

2015-05-27 Thread Chris Ruehl
On Thursday, May 28, 2015 12:41 PM, Chris Ruehl wrote: More majordomo info at http://vger.kernel.org/majordomo-info.html Seams to me the driver specific bus_resume call is broken. ChipIdea? (gdb) list *(hcd_bus_resume+0x58) 0x2cc0 is in hcd_bus_resume (drivers/usb/core/hcd.c:). 2217

Re: [PATCH] usb: ulpi: don't register drivers if bus doesn't exist

2015-05-27 Thread Sudip Mukherjee
On Wed, May 27, 2015 at 08:21:16AM -0700, Greg KH wrote: > On Wed, May 27, 2015 at 11:16:34AM -0400, Alan Stern wrote: > > On Wed, 27 May 2015, Heikki Krogerus wrote: > > Maybe we need to test for this in the driver core, not allowing drivers > for busses that are not registered, that might solve

Re: USB: OOPS 4.1.0-rc5-next-20150527 on boot usb-stick-plugged

2015-05-27 Thread Felipe Balbi
On Thu, May 28, 2015 at 11:15:47AM +0800, Chris Ruehl wrote: > Hi, > > this is an other OOPS happen when the memory stick is plugged while boot > its hits a problem in the usb_hub_wq. > > If you need more details please let me know. > > > [6.258589] Unhandled fault: external abort on non-li

Re: USB: OOPS 4.1.0-rc5-next-20150527 after lsusb -v

2015-05-27 Thread Felipe Balbi
260384] usb usb1: New USB device strings: Mfr=3, Product=2, > SerialNumber=1 > [5.267748] usb usb1: Product: EHCI Host Controller > [5.272756] usb usb1: Manufacturer: Linux 4.1.0-rc5-next-20150527-dirty > ehci_hcd > [5.280280] usb usb1: SerialNumber: ci_hdrc.0 > [

Re: [PATCH] usb: ulpi: don't register drivers if bus doesn't exist

2015-05-27 Thread Felipe Balbi
On Thu, May 28, 2015 at 11:09:38AM +0530, Sudip Mukherjee wrote: > On Wed, May 27, 2015 at 08:21:16AM -0700, Greg KH wrote: > > On Wed, May 27, 2015 at 11:16:34AM -0400, Alan Stern wrote: > > > On Wed, 27 May 2015, Heikki Krogerus wrote: > > > > Maybe we need to test for this in the driver core, n

[PATCH v4 02/11] usbip: readme and manuals about exporting devices

2015-05-27 Thread Nobuo Iwata
This patch adds function and usage of export to README and manuals. The wording, 'server' and 'client' is changed also. For existing attach command, the daemon runs device side machine and attach command is executed in application side machine. Then 'server' is used for device side and 'client'

[PATCH v4 00/11] usbip: features to USB over WebSocket

2015-05-27 Thread Nobuo Iwata
Dear all, This series of patches introduces WebSocket to USB/IP. 0. Version info v4) # Fixed regression of usbip list --remote v3) # Coding style for goto err labels are fixed. # Defined magic numbers for open_hc_device() argument. # Corrected include .../uapi/linux/usbip_ux.h as . # Modified

[PATCH v4 01/11] usbip: exporting devices

2015-05-27 Thread Nobuo Iwata
USB/IP supports a function to import USB devices from application-side machine by attach command. The usage is as following. dev:# (Physically attach your USB device.) dev:# insmod usbip-core.ko and usbip-host.ko dev:# usbipd -D // Start usbip daemon. dev:# usbip list -l // List local USB devices

[PATCH v4 05/11] usbip: tools for userspace URBs transmission

2015-05-27 Thread Nobuo Iwata
Originally, USB/IP transmits requests and response PDUs for preparation to transfer URBs in user space, after completion of the preparation, URBs are transmitted in kernel space. To make easy to introduce application network protocols like WebSocket, the driver, usbip_ux.ko, forwards URBs to US

[PATCH v4 03/11] usbip: safe completion against usb_kill_urb()

2015-05-27 Thread Nobuo Iwata
stub_shutdown_connection() : drivers/usb/usbip/stub_dev.c stub_device_cleanup_urbs() : drivers/usb/usbip/stub_main.c requests to kill pending URBs and clears priv lists. stub_complete() : drivers/usb/usbip/stub_tx.c might be called with URBs to have been requested to kill. To avoid kernel

[PATCH v4 04/11] usbip: kernel module for userspace URBs transmission

2015-05-27 Thread Nobuo Iwata
Originally, USB/IP transmits requests and response PDUs for preparation to transfer URBs in user space, after the preparation, URBs are transmitted in kernel space. To make easy to introduce application network protocols like WebSocket and so on, the driver, usbip_ux.ko, forwards URBs to USB/IP

[PATCH v4 08/11] usbip: letting connection establishment replaceable

2015-05-27 Thread Nobuo Iwata
To introduce some application protocols like WebSocket, this patch allows to substitute connection establishment and termination. In combination with previous patch, both connection and transmission can be replaced. usbip_connection_operations_t includes open and close operation. Open method r

[PATCH v4 07/11] usbip: letting send and receive replaceable

2015-05-27 Thread Nobuo Iwata
This patch allows to substitute send, receive and shutdown routines for both a) request/response PDUs among utilities and b) user space URBs transmission. usbip_sock_t is introduced instead of sockfd. it includes function pointers of send/receive/shutdown routines, an argument for the routines

[PATCH v4 06/11] usbip: readme about user space URBs transmission

2015-05-27 Thread Nobuo Iwata
Addition to README regarding user space URBs transmission. Signed-off-by: Nobuo Iwata --- tools/usb/usbip/README | 22 ++ 1 file changed, 22 insertions(+) diff --git a/tools/usb/usbip/README b/tools/usb/usbip/README index 74f4afb..6b61da5 100644 --- a/tools/usb/usbip/README

[PATCH v4 10/11] usbip: added const qualifier to arguments of some functions

2015-05-27 Thread Nobuo Iwata
This patch adds 'const' qualifier to 'char*' arguments of library interfaces to make acceptable std::string.c_str(). Essentially, these qualifiers are better to be used even if not to use C++. Although, I just added to functions related to previous patch. Also, it changes C++ reserved words (ie

[PATCH v4 09/11] usbip: deriving functions as libraries

2015-05-27 Thread Nobuo Iwata
To utilize core parts of USB/IP to application protocol implementations, this patch derives libraries by exposing some functions of utilities and removing some unnecessary portions. Following functions are exposed. For command: - usbip_attach_device() - usbip_detach_port() - usbip_bind_device()

[PATCH v4 11/11] usbip: USB over WebSocket

2015-05-27 Thread Nobuo Iwata
This patch adds utilities transmit packets via WebSocket protocol. WebSocket version of utilities as following. usbws : command usbwsa : application-side daemon usbwsd : device-side daemon The command supports all sub-command (ie. list, connect, disconnect, port, bind, unbind, attach and de

Re: USB: OOPS 4.1.0-rc5-next-20150527 on boot usb-stick-plugged

2015-05-27 Thread Chris Ruehl
On Thu, May 28, 2015 at 11:15:47AM +0800, Chris Ruehl wrote: Hi, this is an other OOPS happen when the memory stick is plugged while boot its hits a problem in the usb_hub_wq. If you need more details please let me know. [6.258589] Unhandled fault: external abort on non-linefetch (0x008)

Re: USB Host Controller no PCD interrupt and CCS and CSC update on the device disconnect

2015-05-27 Thread Rong Wang
Hi Alan, On Tue, May 26, 2015 at 11:32 PM, Alan Stern wrote: > On Tue, 26 May 2015, Rong Wang wrote: > >> > It seems that your customer wants to change the hardware, not the >> > software. >> >> Yes. We plan to do a hardware modification. But we want to make as little >> change as possible. So we

Re: [PATCH] usb: ulpi: don't register drivers if bus doesn't exist

2015-05-27 Thread Sudip Mukherjee
On Thu, May 28, 2015 at 12:54:59AM -0500, Felipe Balbi wrote: > On Thu, May 28, 2015 at 11:09:38AM +0530, Sudip Mukherjee wrote: > > On Wed, May 27, 2015 at 08:21:16AM -0700, Greg KH wrote: > > > On Wed, May 27, 2015 at 11:16:34AM -0400, Alan Stern wrote: > > > > On Wed, 27 May 2015, Heikki Krogeru

Re: [PATCH] usb: ulpi: don't register drivers if bus doesn't exist

2015-05-27 Thread Sudip Mukherjee
On Thu, May 28, 2015 at 12:12:56PM +0530, Sudip Mukherjee wrote: > On Thu, May 28, 2015 at 12:54:59AM -0500, Felipe Balbi wrote: > > On Thu, May 28, 2015 at 11:09:38AM +0530, Sudip Mukherjee wrote: > > > On Wed, May 27, 2015 at 08:21:16AM -0700, Greg KH wrote: > > > > On Wed, May 27, 2015 at 11:16: