Re: [PATCH v3 07/13] usb: chipidea: add OTG fsm operation functions implemenation.

2014-03-05 Thread Li Jun
On Wed, Mar 05, 2014 at 04:28:14PM +0800, Peter Chen wrote: > On Thu, Feb 27, 2014 at 07:38:25AM +0800, Li Jun wrote: > > Add OTG HNP and SRP operation functions implementation: > > - charge vbus > > - drive vbus > > - connection signaling > > - drive sof > > - start data pulse > > - add fsm timer

Re: [PATCH] staging: usbip: userspace: increase version to 2.0

2014-03-05 Thread Andrew Grover
On Wed, Mar 5, 2014 at 10:14 PM, Valentina Manea wrote: > On Tue, Mar 4, 2014 at 9:20 PM, Greg KH wrote: >> On Tue, Mar 04, 2014 at 09:16:39PM +0200, Valentina Manea wrote: >>> -AC_INIT([usbip-utils], [1.1.1], [linux-usb@vger.kernel.org]) >>> +AC_INIT([usbip-utils], [2.0], [linux-usb@vger.kernel.

[PATCH net-next 3/3] r8152: remove rtl8152_get_stats

2014-03-05 Thread Hayes Wang
The rtl8152_get_stats() returns the point address of the struct net_device_stats. This could be got from struct net_device directly. Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 21 ++--- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/drivers/net/usb/r8

[PATCH net-next 1/3] r8152: deal with the empty line and space

2014-03-05 Thread Hayes Wang
Add or remove some empty lines. Replace the spaces with the tabs. Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index 0654bd3..c8bad62 100644 --- a/drivers/net/u

[PATCH net-next 2/3] r8152: replace tp->netdev with netdev

2014-03-05 Thread Hayes Wang
Replace some tp->netdev with netdev. Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index c8bad62..151398b 100644 --- a/drivers/net/usb/r8152.c +++ b/drivers/net/u

[PATCH net-next 0/3] r8152: cleanups

2014-03-05 Thread Hayes Wang
Deal with some empty lines and spaces, replace some tp->netdev with netdev, and remove the unnecessary function. Hayes Wang (3): r8152: deal with the empty line and space r8152: replace tp->netdev with netdev r8152: remove rtl8152_get_stats drivers/net/usb/r8152.c | 36

Re: xHCI regression in stable 3.13.5 with USB3 card reader (Bisected)

2014-03-05 Thread Robert Hancock
On 05/03/14 11:17 PM, Robert Hancock wrote: I have a USB 3.0 multi-card reader device: Bus 004 Device 002: ID 05e3:0743 Genesys Logic, Inc. which seems to work fine in 3.13.4 (Fedora version kernel-3.13.4-200 specifically) but fails in 3.13.5 (specifically kernel-3.13.5-202). Below is what I ge

Re: [PATCH] staging: usbip: userspace: increase version to 2.0

2014-03-05 Thread Valentina Manea
On Tue, Mar 4, 2014 at 9:20 PM, Greg KH wrote: > On Tue, Mar 04, 2014 at 09:16:39PM +0200, Valentina Manea wrote: >> Signed-off-by: Valentina Manea >> --- >> drivers/staging/usbip/userspace/configure.ac | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/drivers/staging/u

Re: [PATCH 01/12] staging: usbip: userspace: migrate usbip_bind to libudev

2014-03-05 Thread Valentina Manea
On Wed, Mar 5, 2014 at 12:15 PM, Dan Carpenter wrote: > On Wed, Mar 05, 2014 at 12:42:59PM +0300, Dan Carpenter wrote: >> On Tue, Mar 04, 2014 at 09:10:41PM +0200, Valentina Manea wrote: >> > diff --git a/drivers/staging/usbip/userspace/libsrc/usbip_common.h >> > b/drivers/staging/usbip/userspace

[PATCH v2] staging: usbip: claim ports used by shared devices

2014-03-05 Thread Valentina Manea
A device should not be able to be used concurrently both by the server and the client. Claiming the port used by the shared device ensures no interface drivers bind to it and that it is not usable from the server. Signed-off-by: Valentina Manea --- Changes since v1: * add commit description * mov

RE: USB remote wakeup through gpio interrupt

2014-03-05 Thread Peter Chen
> > Hi Peter, > > Thanks for your reply. > > I can use pm_runtime_get in interrupt handler, but i am not getting your > idea of using pm_runtime_put in interrupt handler? > After your device finishes using usb, it may need to toggle gpio to trigger interrupt, and you can suspend usb at thi

Re: USB remote wakeup through gpio interrupt

2014-03-05 Thread Jagdish Gedia
Hi Peter, Thanks for your reply. I can use pm_runtime_get in interrupt handler, but i am not getting your idea of using pm_runtime_put in interrupt handler? My device is usb telephony modem, which will give interrupt through gpio when call comes. so at that time i want to wakeup the usb function

Re: [PATCH v3 13/13] Documentation: ABI: usb: chipidea USB OTG HNP sysfs interface description.

2014-03-05 Thread Peter Chen
On Thu, Feb 27, 2014 at 07:38:31AM +0800, Li Jun wrote: > This patch adds sysfs interface description for chipidea USB OTG role switch > in HNP. > > Signed-off-by: Li Jun > --- > .../ABI/testing/sysfs-platform-chipidea-usb-otg| 55 > > 1 file changed, 55 insertions(+)

Re: [PATCH v3 12/13] usb: chipidea: debug: add debug file for controller registers dump.

2014-03-05 Thread Peter Chen
On Thu, Feb 27, 2014 at 07:38:30AM +0800, Li Jun wrote: > This patch adds below registers dump for debug: > - USBINTR > - USBSTS > - USBMODE > - USBCMD > - PORTSC > - OTGSC > > Signed-off-by: Li Jun > --- > drivers/usb/chipidea/debug.c | 48 > ++ > 1 fi

Re: [PATCH v3 10/13] usb: chipidea: add sys inputs for OTG fsm input.

2014-03-05 Thread Peter Chen
On Thu, Feb 27, 2014 at 07:38:28AM +0800, Li Jun wrote: > This patch adds sys input to control and show OTG fsm inputs by application, > user can do host and preipheral role switch by change these inputs. > > Signed-off-by: Li Jun > --- > drivers/usb/chipidea/otg.c |1 + > drivers/usb/ch

Re: [PATCH v3 09/13] usb: chipidea: OTG HNP and SRP fsm implementation.

2014-03-05 Thread Peter Chen
On Thu, Feb 27, 2014 at 07:38:27AM +0800, Li Jun wrote: > USB OTG interrupt handling and fsm transition according to USB OTG > and EH 2.0, update otg timer timeout handlers. > > Signed-off-by: Li Jun > --- > drivers/usb/chipidea/core.c| 10 ++- > drivers/usb/chipidea/otg.c |9 +- >

Re: [PATCH v3 08/13] usb: chipidea: OTG fsm timers initialization.

2014-03-05 Thread Peter Chen
On Thu, Feb 27, 2014 at 07:38:26AM +0800, Li Jun wrote: > This patch adds OTG fsm timers initialization, which use controller's 1ms > interrupt as timeout counter, also adds some local timers which are not > in otg_fsm_timer list. > > Signed-off-by: Li Jun > --- > drivers/usb/chipidea/bits.h

xHCI regression in stable 3.13.5 with USB3 card reader

2014-03-05 Thread Robert Hancock
I have a USB 3.0 multi-card reader device: Bus 004 Device 002: ID 05e3:0743 Genesys Logic, Inc. which seems to work fine in 3.13.4 (Fedora version kernel-3.13.4-200 specifically) but fails in 3.13.5 (specifically kernel-3.13.5-202). Below is what I get in dmesg. Essentially there's a bunch of

Re: [PATCH net-next v2 12/13] r8152: add additional parameter for non x86 platform

2014-03-05 Thread David Miller
From: Hayes Wang Date: Wed, 5 Mar 2014 14:49:27 +0800 > Add additional parameter for non x86 platform for better throughput. > > Signed-off-by: Hayes Wang This commit message tells me absolutely nothing. First of all, it doesn't say what the issue is, why is the chip slower on non-x86 platfor

Re: Delivery Status Notification (Failure)

2014-03-05 Thread Jagdish Gedia
Hi Alan, Thanks for you informative reply. I will try your suggestion. yes, i will not get more than one wakeup per second. I have tried below things. My usb device is using the cdc-acm.c driver. inside cdc-acm.c file, static struct usb_device *usb_device; static int acm_probe(, )

RE: USB remote wakeup through gpio interrupt

2014-03-05 Thread Peter Chen
> > > Hi, > > There is some inconsistency in remote wakeup functionality in my > > custom board. so I want to wakeup the runtime suspended USB host > > through interrupt. My USB device is connected to the board through USB > > interface and some gpios. device will give interrupt on processor gpi

RE: USB Host support for mx25

2014-03-05 Thread Peter Chen
> Here are my changes: > > diff --git a/arch/arm/boot/dts/imx25-pdk.dts b/arch/arm/boot/dts/imx25- > pdk.dts index 7a6d21f..fc91592 100644 > --- a/arch/arm/boot/dts/imx25-pdk.dts > +++ b/arch/arm/boot/dts/imx25-pdk.dts > @@ -107,3 +107,8 @@ > fsl,uart-has-rtscts; > status = "okay

uhci_hcd: DMA-API: cpu touching an active dma mapped cacheline

2014-03-05 Thread Dave Jones
WARNING: CPU: 3 PID: 25477 at lib/dma-debug.c:593 debug_dma_assert_idle+0x1ba/0x223() uhci_hcd :00:1d.2: DMA-API: cpu touching an active dma mapped cacheline [cln=0x02355f80] Modules linked in: fuse tun l2tp_ppp l2tp_netlink l2tp_core can_raw can_bcm scsi_transport_iscsi nfc caif_soc

Re: BUG: USB Reset-Resume Mechanism does not work for runtime resume

2014-03-05 Thread Peter Chen
On Wed, Mar 05, 2014 at 11:26:06AM -0500, Alan Stern wrote: > On Wed, 5 Mar 2014, Poulain, Loic wrote: > > > + function 'do_rebind_interface' is in charge of unbind and rebind the > > interfaces with the 'need_binfind' flag set. > > + However this method is only called in 'usb_resume_complete'. >

Re: USB Host support for mx25

2014-03-05 Thread Fabio Estevam
Hi Peter, On Wed, Mar 5, 2014 at 10:33 PM, Peter Chen wrote: > The nop phy driver is at: drivers/usb/phy/phy-generic.c > The compatible string is: "usb-nop-xceiv" This is not enough. Here are my changes: diff --git a/arch/arm/boot/dts/imx25-pdk.dts b/arch/arm/boot/dts/imx25-pdk.dts index 7a6d

RE: USB Host support for mx25

2014-03-05 Thread Peter Chen
> Hi, > > Has anyone succeeded on getting USB host support on mx25 with the > chipidea driver? > > I am trying to add USB host1 support for mx25pdk and I am starting to > debug it, but > > > Looking at imx25.dtsi we have: > > usbphy1: usbphy@1 { > compatible = "n

Re: [PATCH v6 part1 6/8] usb: find internal hub tier mismatch via acpi

2014-03-05 Thread Dan Williams
On Wed, 2014-03-05 at 16:44 -0500, Alan Stern wrote: > On Wed, 5 Mar 2014, Dan Williams wrote: > > > 8< > > Subject: usb: find internal hub tier mismatch via acpi > > > > From: Dan Williams > > > > ACPI identifies peer ports by setting their 'group_token' and > > 'group_position' _P

Re: [PATCH RESEND] SCSI: sd: don't fail if the device doesn't recognize SYNCHRONIZE CACHE

2014-03-05 Thread Dan Williams
On Mon, Mar 3, 2014 at 1:25 PM, Daniel Mack wrote: > From: Alan Stern > > Evidently some wacky USB-ATA bridges don't recognize the SYNCHRONIZE > CACHE command, as shown in this email thread: > > http://marc.info/?t=13897835622&r=1&w=2 > > The fact that we can't tell them to drain thei

Re: [PATCH v9 0/4] phy: Add new Exynos USB 2.0 PHY driver

2014-03-05 Thread Tobias Jakobi
Hello Kamil, this looks very good. I just tested the patchset on my ODROID-X2 (Exynos4412-based board) and the USB stability issues I mentioned to you before (with the older patchset) seem to be gone. All devices on the USB behave normally (mass storage, ethernet and bluetooth). With best wishe

OTG102/EzCapture2 no audio

2014-03-05 Thread David Woodfall
I recently bought one of these and have video but no audio. # lsmod | grep cx231 cx231xx_alsa7824 0 cx231xx 143824 1 cx231xx_alsa cx2341x16463 1 cx231xx v4l2_common 3850 3 cx2341x,cx231xx,cx25840 videobuf_vmalloc3975 1 cx231xx v

Re: [PATCH v6 part1 7/8] usb: sysfs link peer ports

2014-03-05 Thread Alan Stern
On Wed, 5 Mar 2014, Dan Williams wrote: > 8<- > Subject: usb: sysfs link peer ports > > From: Dan Williams > > The usb topology after this change will have symlinks between usb3 ports > and their usb2 peers, for example: > > usb2/2-1/2-1:1.0/2-1-port1/peer => ../../../../usb3/3-1/3-1:1

Re: [PATCH v6 part1 6/8] usb: find internal hub tier mismatch via acpi

2014-03-05 Thread Alan Stern
On Wed, 5 Mar 2014, Dan Williams wrote: > 8< > Subject: usb: find internal hub tier mismatch via acpi > > From: Dan Williams > > ACPI identifies peer ports by setting their 'group_token' and > 'group_position' _PLD data to the same value. If a platform has tier > mismatch [1] , ACP

[PATCHv5] usb: dwc2: Add function to calculate correct FIFO sizes

2014-03-05 Thread dinguyen
From: Dinh Nguyen The dwc2 IP on the SOCFPGA cannot use the default HW configured FIFO sizes. The total FIFO depth as read from GHWCFG3 reports 0x1f80 or 8064 32-bit words. But the GRXFSIZ, GNPTXFSIZ, and HPTXFSIZ register defaults to 0x2000 or 8192 32-bit words. So the driver cannot just use the

[PATCHv4] usb: dwc2: Add function to calculate correct FIFO sizes

2014-03-05 Thread dinguyen
From: Dinh Nguyen The dwc2 IP on the SOCFPGA cannot use the default HW configured FIFO sizes. The total FIFO depth as read from GHWCFG3 reports 0x1f80 or 8064 32-bit words. But the GRXFSIZ, GNPTXFSIZ, and HPTXFSIZ register defaults to 0x2000 or 8192 32-bit words. So the driver cannot just use the

USB Host support for mx25

2014-03-05 Thread Fabio Estevam
Hi, Has anyone succeeded on getting USB host support on mx25 with the chipidea driver? I am trying to add USB host1 support for mx25pdk and I am starting to debug it, but Looking at imx25.dtsi we have: usbphy1: usbphy@1 { compatible = "nop-usbphy"; s

Re: [PATCH v6 part1 4/8] usb: assign default peer ports for root hubs

2014-03-05 Thread Dan Williams
On Wed, Mar 5, 2014 at 12:18 PM, Alan Stern wrote: > On Wed, 5 Mar 2014, Dan Williams wrote: > >> Please have a look at the following. I'm sure Greg will be happy that >> we are killing these bugs before they become fodder for -stable. Thanks > > Wow, do you really think all these changes will e

Re: [PATCH v6 part1 5/8] usb: assign usb3 external hub port peers

2014-03-05 Thread Alan Stern
On Wed, 5 Mar 2014, Dan Williams wrote: > 8<--- > Subject: usb: assign usb3 external hub port peers > > From: Dan Williams > > Given that root hub port peers are already established, external hub peer > ports can be determined by traversing the device topology: > > 1/ ascend to the parent

Re: [PATCH v6 part1 4/8] usb: assign default peer ports for root hubs

2014-03-05 Thread Alan Stern
On Wed, 5 Mar 2014, Dan Williams wrote: > Please have a look at the following. I'm sure Greg will be happy that > we are killing these bugs before they become fodder for -stable. Thanks Wow, do you really think all these changes will ever go into -stable? I'm doubtful; they're rather large.

Re: [PATCH v6 part1 8/8] usb: block suspension of superspeed port while hispeed peer is active

2014-03-05 Thread Dan Williams
On Mon, 2014-03-03 at 18:42 -0800, Dan Williams wrote: > On Fri, 2014-02-28 at 15:18 -0800, Dan Williams wrote: > > ClearPortFeature(PORT_POWER) on a usb3 port places the port in either a > > DSPORT.Powered-off-detect / DSPORT.Powered-off-reset loop, or the > > DSPORT.Powered-off state. There is n

Re: [PATCH v6 part1 7/8] usb: sysfs link peer ports

2014-03-05 Thread Dan Williams
On Mon, 2014-03-03 at 18:39 -0800, Dan Williams wrote: > On Fri, 2014-02-28 at 15:18 -0800, Dan Williams wrote: > > The usb topology after this change will have symlinks between usb3 ports > > and their usb2 peers, for example: > > > > usb2/2-1/2-1:1.0/2-1-port1/peer => ../../../../usb3/3-1/3-1:1.

Re: [PATCH v6 part1 6/8] usb: find internal hub tier mismatch via acpi

2014-03-05 Thread Dan Williams
On Tue, 2014-03-04 at 11:33 -0500, Alan Stern wrote: > > static struct usb_port *find_default_peer(struct usb_hub *hub, int port1) > > { > > + struct usb_port *port_dev = hub->ports[port1 - 1]; > > struct usb_device *hdev = hub->hdev; > > struct usb_device *peer_hdev = NULL; > > str

Re: [PATCH v5 6/6] arm/dts: added dt properties to adapt to the new phy framwork

2014-03-05 Thread Tony Lindgren
* Kishon Vijay Abraham I [140305 04:46]: > Tony/Benoit, > > On Monday 03 March 2014 05:08 PM, Kishon Vijay Abraham I wrote: > >Added device tree bindings for dwc3, usb2 and usb3 PHYs. The documentation > >of these can be found at > >Documentation/devicetree/bindings/phy/phy-bindings.txt > >and D

Re: [PATCH v6 part1 5/8] usb: assign usb3 external hub port peers

2014-03-05 Thread Dan Williams
On Mon, 2014-03-03 at 18:33 -0800, Dan Williams wrote: > Subject: usb: assign usb3 external hub port peers > > From: Dan Williams > > Given that root hub port peers are already established, external hub peer > ports can be determined by traversing the device topology: > > 1/ ascend to the paren

Re: [PATCH v6 part1 4/8] usb: assign default peer ports for root hubs

2014-03-05 Thread Dan Williams
On Tue, 2014-03-04 at 10:58 -0500, Alan Stern wrote: > On Mon, 3 Mar 2014, Dan Williams wrote: > > > Ok, so the root issue is that the peering code needs to see > > hcd->primary_hcd = NULL to know that there is no longer a peer. I > > update usb_remove_hcd() to clear out ->shared_hcd and ->primar

Re: [PATCH] usb: gadget: add temporary __uses_feature_flags

2014-03-05 Thread Greg KH
On Wed, Mar 05, 2014 at 09:45:22AM -0600, Felipe Balbi wrote: > On Mon, Mar 03, 2014 at 04:52:27PM -0600, Felipe Balbi wrote: > > On Mon, Mar 03, 2014 at 02:46:32PM -0800, Greg KH wrote: > > > On Mon, Mar 03, 2014 at 11:04:02AM -0600, Felipe Balbi wrote: > > > > during the conversion to a new metho

Re: [PATCH 08/23] libusbg: Fix wrong binding parsing.

2014-03-05 Thread Sergei Shtylyov
Hello. On 03/05/2014 05:14 PM, Krzysztof Opasiak wrote: usbg_parse_bindings() function has done parsing incorrectly and in inefficent way. Changes made in this function provide better performance and fix wrong linking issue when having two instances of the same function. Signed-off-by: Krzys

Re: [PATCH] usb: musb: Remove dependency on BROKEN and mach/ headers from da8xx glue

2014-03-05 Thread Felipe Balbi
On Wed, Mar 05, 2014 at 01:11:15PM +0100, Christian Riesch wrote: > Signed-off-by: Christian Riesch > Cc: Felipe Balbi > --- > Hi, > > I have successfully tested this driver with kernel 3.14-rc5 on a custom > Texas Instruments AM1808 board in gadget mode, RNDIS network gadget. > Therefore I thin

Re: [PATCH 02/12] phy: omap-control: Update DT binding information

2014-03-05 Thread Tony Lindgren
* Roger Quadros [140305 04:26]: > + George > > Tony, > > On 03/04/2014 06:28 PM, Tony Lindgren wrote: > > * Roger Quadros [140304 01:17]: > >> Hi Tony, > >> > >> On 03/03/2014 09:02 PM, Tony Lindgren wrote: > >>> * Roger Quadros [140303 07:10]: > Move omap-control binding information to t

Re: BUG: USB Reset-Resume Mechanism does not work for runtime resume

2014-03-05 Thread Alan Stern
On Wed, 5 Mar 2014, Poulain, Loic wrote: > + function 'do_rebind_interface' is in charge of unbind and rebind the > interfaces with the 'need_binfind' flag set. > + However this method is only called in 'usb_resume_complete'. > + Problem is that 'usb_resume_complete' is a dev_pm_ops callback (cor

Re: BUG: USB Reset-Resume Mechanism does not work for runtime resume

2014-03-05 Thread Alan Stern
On Wed, 5 Mar 2014, Oliver Neukum wrote: > On Wed, 2014-03-05 at 09:40 +, Poulain, Loic wrote: > > Hi, > > > > I think there is an issue with the reset-resume mechanism during USB > > runtime resume, leaving the interfaces suspended forever. > > > > - Context: > > > > Android platform, runn

Re: USB remote wakeup through gpio interrupt

2014-03-05 Thread Alan Stern
On Wed, 5 Mar 2014, Jagdish Gedia wrote: > Hi, > There is some inconsistency in remote wakeup functionality in my > custom board. so I want to wakeup the runtime suspended USB host > through interrupt. My USB device is connected to the board through USB > interface and some gpios. device will give

Re: [PATCH v9 3/4] phy: Add new Exynos USB 2.0 PHY driver

2014-03-05 Thread Tomasz Figa
On 05.03.2014 16:28, Kamil Debski wrote: Add a new driver for the Exynos USB 2.0 PHY. The new driver uses the generic PHY framework. The driver includes support for the Exynos 4x10 and 4x12 SoC families. Signed-off-by: Kamil Debski --- .../devicetree/bindings/phy/samsung-phy.txt| 53

Re: [PATCH v9 2/4] phy: core: Add devm_of_phy_get to phy-core

2014-03-05 Thread Tomasz Figa
On 05.03.2014 16:28, Kamil Debski wrote: Adding devm_of_phy_get will allow to get phys by supplying a pointer to the struct device_node instead of struct device. Signed-off-by: Kamil Debski --- drivers/phy/phy-core.c | 31 +++ include/linux/phy/phy.h |8 +++

Re: [PATCH v9 1/4] phy: core: Add an exported of_phy_get function

2014-03-05 Thread Tomasz Figa
On 05.03.2014 16:28, Kamil Debski wrote: Previously the of_phy_get function took a struct device * and was declared static. It was impossible to call it from another driver and thus it was impossible to get phy defined for a given node. The old function was renamed to _of_phy_get and was left for

Re: [PATCH 06/11] usb: dwc3: core: allocate scratch buffers

2014-03-05 Thread Felipe Balbi
On Wed, Mar 05, 2014 at 04:47:31PM +0530, George Cherian wrote: > On 2/26/2014 1:10 AM, Felipe Balbi wrote: > >We must read HWPARAMS4 register to figure out > >how many scratch buffers we should allocate. > > > >Later patch will use "Set Scratchpad Buffer > >Array" command to pass the pointer to th

Re: [PATCH] usb: gadget: add temporary __uses_feature_flags

2014-03-05 Thread Felipe Balbi
On Mon, Mar 03, 2014 at 04:52:27PM -0600, Felipe Balbi wrote: > On Mon, Mar 03, 2014 at 02:46:32PM -0800, Greg KH wrote: > > On Mon, Mar 03, 2014 at 11:04:02AM -0600, Felipe Balbi wrote: > > > during the conversion to a new method of finding > > > proper endpoints, we need to give our users a > > >

Re: [PATCHv3] usb: dwc2: Add function to calculate correct FIFO sizes

2014-03-05 Thread Felipe Balbi
Hi, On Wed, Mar 05, 2014 at 12:08:08AM -0600, dingu...@altera.com wrote: > From: Dinh Nguyen > > The dwc2 IP on the SOCFPGA cannot use the default HW configured > FIFO sizes. The total FIFO depth as read from GHWCFG3 reports 0x1f80 or 8064 > 32-bit words. But the GRXFSIZ, GNPTXFSIZ, and HPTXFSIZ

[PATCH v9 3/4] phy: Add new Exynos USB 2.0 PHY driver

2014-03-05 Thread Kamil Debski
Add a new driver for the Exynos USB 2.0 PHY. The new driver uses the generic PHY framework. The driver includes support for the Exynos 4x10 and 4x12 SoC families. Signed-off-by: Kamil Debski --- .../devicetree/bindings/phy/samsung-phy.txt| 53 Documentation/phy/samsung-usb2.txt

[PATCH v9 2/4] phy: core: Add devm_of_phy_get to phy-core

2014-03-05 Thread Kamil Debski
Adding devm_of_phy_get will allow to get phys by supplying a pointer to the struct device_node instead of struct device. Signed-off-by: Kamil Debski --- drivers/phy/phy-core.c | 31 +++ include/linux/phy/phy.h |8 2 files changed, 39 insertions(+) dif

[PATCH v9 0/4] phy: Add new Exynos USB 2.0 PHY driver

2014-03-05 Thread Kamil Debski
Hi, This is the ninth version of this patchset. First and most significant change since v6 is that this patchset includes only patches touching the Generic PHY Framework. Patches to the USB controllers were stripped as they require additional work. S5PV210 support is also omitted - it requires mor

[PATCH v9 4/4] phy: Add Exynos 5250 support to the Exynos USB 2.0 PHY driver

2014-03-05 Thread Kamil Debski
Add support for Exynos 5250. This driver is to replace the old USB 2.0 PHY driver. Signed-off-by: Kamil Debski --- .../devicetree/bindings/phy/samsung-phy.txt|1 + drivers/phy/Kconfig| 11 + drivers/phy/Makefile |1 +

[PATCH v9 1/4] phy: core: Add an exported of_phy_get function

2014-03-05 Thread Kamil Debski
Previously the of_phy_get function took a struct device * and was declared static. It was impossible to call it from another driver and thus it was impossible to get phy defined for a given node. The old function was renamed to _of_phy_get and was left for internal use. of_phy_get function was adde

Re: [PATCH v5 2/6] usb: dwc3: adapt dwc3 core to use Generic PHY Framework

2014-03-05 Thread Roger Quadros
On 03/05/2014 04:47 PM, Kishon Vijay Abraham I wrote: > Roger, > > On Wednesday 05 March 2014 08:13 PM, Roger Quadros wrote: >> Hi Kishon, >> >> On 03/03/2014 01:38 PM, Kishon Vijay Abraham I wrote: >>> Adapted dwc3 core to use the Generic PHY Framework. So for init, exit, >>> power_on and power_o

Re: [PATCH v2] usb: gadget: return the right length in ffs_epfile_io()

2014-03-05 Thread Felipe Balbi
On Tue, Mar 04, 2014 at 11:38:32PM +, Liu, Chuansheng wrote: > Hi Balbi, > > > -Original Message- > > From: Felipe Balbi [mailto:ba...@ti.com] > > Sent: Wednesday, March 05, 2014 3:56 AM > > To: Michal Nazarewicz > > Cc: Robert Baldyga; Felipe Balbi; Sergei Shtylyov; Liu, Chuansheng; >

Re: BUG: USB Reset-Resume Mechanism does not work for runtime resume

2014-03-05 Thread Oliver Neukum
On Wed, 2014-03-05 at 09:40 +, Poulain, Loic wrote: > Hi, > > I think there is an issue with the reset-resume mechanism during USB > runtime resume, leaving the interfaces suspended forever. > > - Context: > > Android platform, running a 3.13 + Google AOSP patches kernel. > I'm facing a USB

Re: [PATCH v5 2/6] usb: dwc3: adapt dwc3 core to use Generic PHY Framework

2014-03-05 Thread Kishon Vijay Abraham I
Roger, On Wednesday 05 March 2014 08:13 PM, Roger Quadros wrote: Hi Kishon, On 03/03/2014 01:38 PM, Kishon Vijay Abraham I wrote: Adapted dwc3 core to use the Generic PHY Framework. So for init, exit, power_on and power_off the following APIs are used phy_init(), phy_exit(), phy_power_on() and

Re: [PATCH v5 2/6] usb: dwc3: adapt dwc3 core to use Generic PHY Framework

2014-03-05 Thread Roger Quadros
Hi Kishon, On 03/03/2014 01:38 PM, Kishon Vijay Abraham I wrote: > Adapted dwc3 core to use the Generic PHY Framework. So for init, exit, > power_on and power_off the following APIs are used phy_init(), phy_exit(), > phy_power_on() and phy_power_off(). > > However using the old USB phy library wo

Re: [PATCH v8 4/4] phy: Add Exynos 5250 support to the Exynos USB 2.0 PHY driver

2014-03-05 Thread Kishon Vijay Abraham I
Hi, On Wednesday 05 March 2014 07:48 PM, Kamil Debski wrote: Add support for Exynos 5250. This driver is to replace the old USB 2.0 PHY driver. Pls fix this error too.. Applying: phy: Add Exynos 5250 support to the Exynos USB 2.0 PHY driver /home/kishon/repos/linux-phy/.git/rebase-apply/patch

Re: [PATCH v8 3/4] phy: Add new Exynos USB 2.0 PHY driver

2014-03-05 Thread Kishon Vijay Abraham I
Kamil, On Wednesday 05 March 2014 07:48 PM, Kamil Debski wrote: Add a new driver for the Exynos USB 2.0 PHY. The new driver uses the generic PHY framework. The driver includes support for the Exynos 4x10 and 4x12 SoC families. Pls fix these errors which I get while applying your patch. Applyi

[PATCH 15/23] libusbg: Add return value to usb function related functions.

2014-03-05 Thread Krzysztof Opasiak
Each usbg_set_*() may fail so it should have a return value to notify user about reason of failure. To be consistent with rest of API usbg_create_function() should also return error code to notify user about reasons of failure instead of binary information (NULL or not). Signed-off-by: Krzysztof

USB remote wakeup through gpio interrupt

2014-03-05 Thread Jagdish Gedia
Hi, There is some inconsistency in remote wakeup functionality in my custom board. so I want to wakeup the runtime suspended USB host through interrupt. My USB device is connected to the board through USB interface and some gpios. device will give interrupt on processor gpio when it needs attention

[PATCH v8 3/4] phy: Add new Exynos USB 2.0 PHY driver

2014-03-05 Thread Kamil Debski
Add a new driver for the Exynos USB 2.0 PHY. The new driver uses the generic PHY framework. The driver includes support for the Exynos 4x10 and 4x12 SoC families. Signed-off-by: Kamil Debski --- .../devicetree/bindings/phy/samsung-phy.txt| 53 Documentation/phy/samsung-usb2.txt

[PATCH 16/23] libusbg: Add return value to config related functions.

2014-03-05 Thread Krzysztof Opasiak
Each usbg_set_config_*() may fail so it should have a return value to notify user about reason of failure. To be consistent with rest of API usbg_create_config() should also return error code to notify user about reasons of failure instead of binary information (NULL or not). Signed-off-by: Krzys

[PATCH v8 1/4] phy: core: Add an exported of_phy_get function

2014-03-05 Thread Kamil Debski
Previously the of_phy_get function took a struct device * and was declared static. It was impossible to call it from another driver and thus it was impossible to get phy defined for a given node. The old function was renamed to _of_phy_get and was left for internal use. of_phy_get function was adde

[PATCH v8 4/4] phy: Add Exynos 5250 support to the Exynos USB 2.0 PHY driver

2014-03-05 Thread Kamil Debski
Add support for Exynos 5250. This driver is to replace the old USB 2.0 PHY driver. Signed-off-by: Kamil Debski --- .../devicetree/bindings/phy/samsung-phy.txt|1 + drivers/phy/Kconfig| 11 + drivers/phy/Makefile |1 +

[PATCH v8 2/4] phy: core: Add devm_of_phy_get to phy-core

2014-03-05 Thread Kamil Debski
Adding devm_of_phy_get will allow to get phys by supplying a pointer to the struct device_node instead of struct device. Signed-off-by: Kamil Debski --- drivers/phy/phy-core.c | 31 +++ include/linux/phy/phy.h |8 2 files changed, 39 insertions(+) dif

[PATCH v8 0/4] phy: Add new Exynos USB 2.0 PHY driver

2014-03-05 Thread Kamil Debski
Hi, This is the eighth version of this patchset. First and most significant change since v6 is that this patchset includes only patches touching the Generic PHY Framework. Patches to the USB controllers were stripped as they require additional work. S5PV210 support is also omitted - it requires mo

[PATCH 23/23] libusbg: Update examples to use returned error codes.

2014-03-05 Thread Krzysztof Opasiak
Examples provided with the library should use returned error codes and provide information to user. Remove todo baceuse it has been already done. Signed-off-by: Krzysztof Opasiak --- examples/gadget-acm-ecm.c | 51 +++-- examples/show-gadgets.c | 40

[PATCH 19/23] libusbg: Return error code instead of NULL pointer - config.

2014-03-05 Thread Krzysztof Opasiak
Change usbg_get_config_strs() and usbg_get_config_attrs() to return usbg_error instead of NULL pointer. Signed-off-by: Krzysztof Opasiak --- include/usbg/usbg.h |9 - src/usbg.c | 50 +- 2 files changed, 29 insertions(+), 30

[PATCH 20/23] libusbg: Change usbg_get_function_attrs() to return error code.

2014-03-05 Thread Krzysztof Opasiak
usbg_get_function_attrs() may fail due to many reasons so it should notify the user about exact reason of failure instead of returning only NULL pointer. Add also USBG_ERROR_NOT_SUPPORTED to usbg_set_function_attrs(). Signed-off-by: Krzysztof Opasiak --- include/usbg/usbg.h |5 ++-- src/usb

[PATCH 21/23] libusbg: Return error code instead of -1.

2014-03-05 Thread Krzysztof Opasiak
Change usbg_add_config_function() to return usbg_error instead of returning 0 or -1. Signed-off-by: Krzysztof Opasiak --- include/usbg/usbg.h |2 +- src/usbg.c | 14 -- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/include/usbg/usbg.h b/include/usbg/us

[PATCH 22/23] libusbg: Add functions for getting error strings.

2014-03-05 Thread Krzysztof Opasiak
Add usbg_error_name() to get error name as a string. Add usbg_strerror() to get brief error description in English. Signed-off-by: Krzysztof Opasiak --- include/usbg/usbg.h | 16 ++ src/usbg.c | 86 +++ 2 files changed, 102 in

[PATCH 18/23] libusbg: Return error code instead of NULL pointer.

2014-03-05 Thread Krzysztof Opasiak
Change usbg_get_gadget_strs() and usbg_get_gadget_attrs() to return usbg_error instead of NULL pointer. Signed-off-by: Krzysztof Opasiak Conflicts: src/usbg.c --- include/usbg/usbg.h | 10 -- src/usbg.c | 43 ++- 2 files chan

[PATCH 17/23] libusbg: Add return value to usbg_enable/disable_gadget().

2014-03-05 Thread Krzysztof Opasiak
Enabling and disabling gadget may fail due to many reasons so those functions should notify user about it. Signed-off-by: Krzysztof Opasiak --- include/usbg/usbg.h | 10 +--- src/usbg.c | 67 ++- 2 files changed, 57 insertions(+),

[PATCH 14/23] libusbg: Add return value to usbg_set_gadget_*() functions.

2014-03-05 Thread Krzysztof Opasiak
Setting each of attribute may fail due to a lot of reasons so those functions should report this failure to a user. Signed-off-by: Krzysztof Opasiak --- include/usbg/usbg.h | 33 +--- src/usbg.c | 85 +-- 2 files change

[PATCH 11/23] libusbg: Return usbg_error instead of char* in usbg_get_*_name().

2014-03-05 Thread Krzysztof Opasiak
API should be consistent and use error codes to determine what type of error occurred instead of returning NULL only. Signed-off-by: Krzysztof Opasiak --- include/usbg/usbg.h | 24 ++--- src/usbg.c | 60 --- 2 files cha

[PATCH 13/23] libusbg: Add return value to gadget creation functions.

2014-03-05 Thread Krzysztof Opasiak
Functions related to gadget creation should return error codes instead of pointer. Signed-off-by: Krzysztof Opasiak --- examples/gadget-acm-ecm.c |4 +- include/usbg/usbg.h | 21 ++-- src/usbg.c| 258 + 3 files changed, 185

[PATCH 12/23] libusbg: Add parenthesis to INSERT_TAILQ_STRING_ORDER macro.

2014-03-05 Thread Krzysztof Opasiak
Surround each pointer in macro with parenthesis to avid errors related to operator precedence. Signed-off-by: Krzysztof Opasiak --- src/usbg.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/usbg.c b/src/usbg.c index 56588c0..d5c36c9 100644 --- a/src/us

[PATCH 10/23] libusbg: Return usbg_error instead of -1 in usbg_*_len().

2014-03-05 Thread Krzysztof Opasiak
Functions which provides user length of some internal strings should return usbg_error instead of -1. Signed-off-by: Krzysztof Opasiak --- include/usbg/usbg.h | 12 ++-- src/usbg.c | 12 ++-- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/include/us

[PATCH 09/23] libusbg: Add error handling to usbg_init() and related functions.

2014-03-05 Thread Krzysztof Opasiak
Assumption that all malloc() and read()/write() finish correctly is too bold. Errors should be handled and propagated to upper layers of library and returned to user. Signed-off-by: Krzysztof Opasiak Conflicts: src/usbg.c --- examples/gadget-acm-ecm.c |5 +- examples/show-gadgets.c

[PATCH 08/23] libusbg: Fix wrong binding parsing.

2014-03-05 Thread Krzysztof Opasiak
usbg_parse_bindings() function has done parsing incorrectly and in inefficent way. Changes made in this function provide better performance and fix wrong linking issue when having two instances of the same function. Signed-off-by: Krzysztof Opasiak --- src/usbg.c | 34 -

[PATCH 06/23] libusbg: Refresh function attributes while each get.

2014-03-05 Thread Krzysztof Opasiak
Function attributes may be changed by kernel or other user so they should not be cached in library structures. Signed-off-by: Krzysztof Opasiak --- src/usbg.c | 31 +++ 1 file changed, 11 insertions(+), 20 deletions(-) diff --git a/src/usbg.c b/src/usbg.c index 63b

[PATCH 07/23] libusbg: Add internal free functions for each library structure.

2014-03-05 Thread Krzysztof Opasiak
Library should have internal API for freing structures instead of copy pasting same code in different places. Signed-off-by: Krzysztof Opasiak --- src/usbg.c | 77 +++- 1 file changed, 50 insertions(+), 27 deletions(-) diff --git a/src/u

[PATCH 04/23] libusbg: Refresh config attributes while each get.

2014-03-05 Thread Krzysztof Opasiak
Config attributes may be changed by kernel or other user so they should not be cached in library structures. Signed-off-by: Krzysztof Opasiak --- src/usbg.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/usbg.c b/src/usbg.c index 4a69b9c..e11f44e 100644 --- a

[PATCH 05/23] libusbg: Refresh config strings while each get.

2014-03-05 Thread Krzysztof Opasiak
Config strings should not be cached in library. Removing internal strings structure allowed to add full support for multilingual strings. Signed-off-by: Krzysztof Opasiak --- examples/show-gadgets.c |2 +- include/usbg/usbg.h |3 ++- src/usbg.c | 31 ---

[PATCH 03/23] libusbg: Refresh gadget strings while each get.

2014-03-05 Thread Krzysztof Opasiak
Gadget strings should not be cached in library. Removing internal strings structure allowed to add full support for multilingual strings. Signed-off-by: Krzysztof Opasiak --- examples/show-gadgets.c |2 +- include/usbg/usbg.h |6 -- src/usbg.c | 48

[PATCH 02/23] libusbg: Refresh gadget attributes while each get.

2014-03-05 Thread Krzysztof Opasiak
Gadget attributes may be changed by kernel or other user so they should not be cached in library structures. Signed-off-by: Krzysztof Opasiak --- src/usbg.c | 16 +--- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/src/usbg.c b/src/usbg.c index 91165b8..ae26434 10064

[PATCH 00/23] libusbg: Add error code propagation and attributes refreshing.

2014-03-05 Thread Krzysztof Opasiak
Dear Matt, I have prepared next series of patches. This time I have added error code propagation which you have palced at todo list. In this series I have also removed caching gadget/function/config attributes in internal structures. Thos attributes may be changed by kernel when enabling gadget,

[PATCH 01/23] libusbg: Remove unused variables to make compiler happy.

2014-03-05 Thread Krzysztof Opasiak
Signed-off-by: Krzysztof Opasiak --- examples/gadget-acm-ecm.c |1 - examples/show-gadgets.c |1 - src/usbg.c|2 -- 3 files changed, 4 deletions(-) diff --git a/examples/gadget-acm-ecm.c b/examples/gadget-acm-ecm.c index b3c776d..5b027b6 100644 --- a/examples/gadget

Re: [PATCH v5 6/6] arm/dts: added dt properties to adapt to the new phy framwork

2014-03-05 Thread Kishon Vijay Abraham I
Tony/Benoit, On Monday 03 March 2014 05:08 PM, Kishon Vijay Abraham I wrote: Added device tree bindings for dwc3, usb2 and usb3 PHYs. The documentation of these can be found at Documentation/devicetree/bindings/phy/phy-bindings.txt and Documentation/devicetree/bindings/phy/ti-phy.txt. Can this

  1   2   >