Re: [Patch V3 0/2] usb: gadget: zero: Add support for interrupt EP

2014-07-18 Thread Amit Virdi
On 7/17/2014 8:06 PM, Felipe Balbi wrote: that's good, thanks. But my tree is now closed for v3.17, once v3.17-rc1 is out I'll start queueing for v3.18. No probs! I'll send the patch with updated commit msg. BTW, I think you mean you'll queue for kernel v3.17 (v3.16 is yet to be released as

[PATCH V2] USB: Fix persist resume of some SS USB devices

2014-07-18 Thread Pratyush Anand
Problem Summary: Problem has been observed generally with PM states where VBUS goes off during suspend. There are some SS USB devices which take longer time for link training compared to many others. Such devices fail to reconnect with same old address which was associated with it before suspend.

Re: [RFC PATCH] usb: dwc3: core: allow vendor drivers to check probe status

2014-07-18 Thread Lee Jones
On Thu, 17 Jul 2014, Felipe Balbi wrote: Hi, On Thu, Jul 17, 2014 at 06:13:33PM +0100, Lee Jones wrote: This patch provides mechanism for subordinate devices to check whether the DWC3 core probed successfully or otherwise. Useful if PHYs are required to configure controllers, but

[PATCH] usb: gadget: serial: replace {V,}DBG macro with dev_{v,}dbg

2014-07-18 Thread Richard Leitner
Replace the VDBG and DBG macro with the kernels proper debug macros (dev_vdbg and dev_dbg) in f_acm.c, f_obex.c f_serial.c Signed-off-by: Richard Leitner richard.leit...@skidata.com --- drivers/usb/gadget/f_acm.c| 41 - drivers/usb/gadget/f_obex.c

Re: [PATCH] usbcore: don't log on consecutive debounce failures of the same port

2014-07-18 Thread Oliver Neukum
On Thu, 2014-07-17 at 17:13 -0700, Greg KH wrote: On Mon, Jul 14, 2014 at 10:47:55PM +0200, Oliver Neukum wrote: I see no sane way to come up with numbers. Unless you want to measure the time between spurious event. But that would really be overkill. I'd rather fix a concrete issue.

[PATCH 3/9] usb: musb_am335x: source cleanup

2014-07-18 Thread Lothar Waßmann
- remove comma after end of list delimiter The empty entry must always be the last item in the list, thus there is no point in having a trailing comma to facilitate adding succeding entries. Remove the comma, so that inadvertedly adding an entry after the end of list sentinel will

[PATCH 6/9] usb: musb: core: properly setup the HW before registering it to the USB core

2014-07-18 Thread Lothar Waßmann
Without this patch overriding the USBOTG_ID pin by setting the iddig bit in the USB_MODE register doesn't work because it happens too late to be recognized correctly. Signed-off-by: Lothar Waßmann l...@karo-electronics.de --- drivers/usb/musb/musb_core.c | 12 +++- 1 file changed, 7

[PATCH 7/9] usb: phy: am335x: setup the gen_phy function pointers _before_ adding the phy

2014-07-18 Thread Lothar Waßmann
Make sure all parameters are correctly set up before registering the PHY with the USB framework. Signed-off-by: Lothar Waßmann l...@karo-electronics.de --- drivers/usb/phy/phy-am335x.c |5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/usb/phy/phy-am335x.c

[PATCH 9/9] usb: musb: musb_am335x: reinstate module loading/unloading support

2014-07-18 Thread Lothar Waßmann
There is no need to throw the baby out with the bath due to a bad failure analysis. The commit: 7adb5c876e9c usb: musb: Fix panic upon musb_am335x module removal came to a wrong conclusion about the cause of the crash it was fixing. The real culprit was the phy-am335x module that was removed from

[PATCH 1/9] usb: musb: core: cleanup - remove some useless 'break's from switch statements

2014-07-18 Thread Lothar Waßmann
Signed-off-by: Lothar Waßmann l...@karo-electronics.de --- drivers/usb/musb/musb_core.c |4 1 file changed, 4 deletions(-) diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c index b841ee0..8623112 100644 --- a/drivers/usb/musb/musb_core.c +++

[PATCH 2/9] usb: phy: am335x: group the #includes by subdirs

2014-07-18 Thread Lothar Waßmann
Signed-off-by: Lothar Waßmann l...@karo-electronics.de --- drivers/usb/phy/phy-am335x.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/usb/phy/phy-am335x.c b/drivers/usb/phy/phy-am335x.c index b70e055..91c71ab 100644 --- a/drivers/usb/phy/phy-am335x.c +++

[PATCH 0/9] usb: musb: several bugfixes for the musb driver

2014-07-18 Thread Lothar Waßmann
The first three patches do some source code cleanup in the files that are modified in the subsequent patches. Patch 4 carries the proper fix reported in commit: 7adb5c876e9c (usb: musb: Fix panic upon musb_am335x module removal) Patch 6 makes the USBOTG_ID pin override via the USB_MODE

[PATCH 5/9] usb: musb: print error message with dev_err() instead of dev_dbg()

2014-07-18 Thread Lothar Waßmann
Signed-off-by: Lothar Waßmann l...@karo-electronics.de --- drivers/usb/musb/musb_core.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c index 8623112..f867b44 100644 --- a/drivers/usb/musb/musb_core.c +++

[PATCH 4/9] usb: phy: am335x-control: prevent module from being unloaded when in use

2014-07-18 Thread Lothar Waßmann
This patch fixes the real cause of the crash that was fixed by commit 7adb5c876e9c usb: musb: Fix panic upon musb_am335x module removal Signed-off-by: Lothar Waßmann l...@karo-electronics.de --- drivers/usb/phy/phy-am335x-control.c | 10 ++ 1 file changed, 10 insertions(+) diff --git

[PATCH 8/9] usb: phy: am335x: call usb_gen_phy_init()/usb_gen_phy_shutdown() in am335x_init()/am335x_shutdown()

2014-07-18 Thread Lothar Waßmann
This patch makes it possible to use the musb driver with HW that requires external regulators or clocks. Signed-off-by: Lothar Waßmann l...@karo-electronics.de --- drivers/usb/phy/phy-am335x.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/phy/phy-am335x.c

[RFC] usb: gadget: serial: remove PREFIX macro

2014-07-18 Thread Richard Leitner
Remove the ttyGS PREFIX macro from u_serial.c and replace all occurences with the hardcoded ttyGS string. This macro was mostly used in a few debug/warning messages and a lot of hardcoded ttyGS existed beneath. It may have been used for renaming the tty, but if done so most debug messages would

re: usb: gadget: NCM: Add transmit multi-frame.

2014-07-18 Thread Dan Carpenter
Hello Jim Baxter, This is a semi-automatic email about new static checker warnings. The patch 6d3865f9d41f: usb: gadget: NCM: Add transmit multi-frame. from Jul 7, 2014, leads to the following Smatch complaint: drivers/usb/gadget/function/u_ether.c:564 eth_start_xmit() error: we

Re: [PATCH v2] usb: phy: msm: Make phy_reset clk and reset line optional.

2014-07-18 Thread Prakash Burla
tested-by: Prakash Burla prakash.bu...@smartplayin.com This driver tested on IFC6410 with USB Driver. On Fri, Jul 18, 2014 at 1:46 AM, Srinivas Kandagatla srinivas.kandaga...@linaro.org wrote: This patch makes the phy reset clk and reset line optional as this clk is not available on boards like

Re: [PATCH v2 10/12] usb: dwc2/gadget: assign TX FIFO dynamically

2014-07-18 Thread Robert Baldyga
On 07/16/2014 09:58 PM, Paul Zimmerman wrote: From: Robert Baldyga [mailto:r.bald...@samsung.com] Sent: Wednesday, July 16, 2014 3:22 AM Because we have not enough memory to have each TX FIFO of size at least 3072 bytes (the maximum single packet size), we create four FIFOs of lenght 1024,

[PATCH v3 11/12] usb: dwc2/gadget: disable clock when it's not needed

2014-07-18 Thread Robert Baldyga
When device is stopped or suspended clock is not needed so we can disable it for this time. Signed-off-by: Robert Baldyga r.bald...@samsung.com --- drivers/usb/dwc2/gadget.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/usb/dwc2/gadget.c b/drivers/usb/dwc2/gadget.c index

[PATCH v3 09/12] usb: dwc2/gadget: delay enabling irq once hardware is configured properly

2014-07-18 Thread Robert Baldyga
From: Marek Szyprowski m.szyprow...@samsung.com This patch fixes kernel panic/interrupt storm/etc issues if bootloader left s3c-hsotg module in enabled state. Now interrupt handler is enabled only after proper configuration of hardware registers. Signed-off-by: Marek Szyprowski

[PATCH v3 07/12] usb: dwc2/gadget: break infinite loop in endpoint disable code

2014-07-18 Thread Robert Baldyga
From: Marek Szyprowski m.szyprow...@samsung.com This patch fixes possible freeze caused by infinite loop in interrupt context. Signed-off-by: Marek Szyprowski m.szyprow...@samsung.com Signed-off-by: Robert Baldyga r.bald...@samsung.com --- drivers/usb/dwc2/gadget.c | 1 + 1 file changed, 1

[PATCH v3 10/12] usb: dwc2/gadget: assign TX FIFO dynamically

2014-07-18 Thread Robert Baldyga
Because we have not enough memory to have each TX FIFO of size at least 3072 bytes (the maximum single packet size with 3 transactions per microframe), we create four FIFOs of lenght 1024, and four of length 3072 bytes, and assing them to endpoints dynamically according to maxpacket size value of

[PATCH v3 08/12] usb: dwc2/gadget: do not call disconnect method in pullup

2014-07-18 Thread Robert Baldyga
From: Marek Szyprowski m.szyprow...@samsung.com This leads to potential spinlock recursion in composite framework, other udc drivers also don't call it directly from pullup method. Signed-off-by: Marek Szyprowski m.szyprow...@samsung.com Signed-off-by: Robert Baldyga r.bald...@samsung.com ---

[PATCH v3 01/12] usb: dwc2/gadget: fix phy disable sequence

2014-07-18 Thread Robert Baldyga
From: Kamil Debski k.deb...@samsung.com When the driver is removed s3c_hsotg_phy_disable is called three times instead of once. This results in decreasing of the phy reference counter below zero and thus consecutive inserts of the module fails. This patch removes calls to s3c_hsotg_phy_disable

[PATCH v3 00/12] usb: dwc2/gadget: fix series

2014-07-18 Thread Robert Baldyga
Hello, This patchset contains fixes for dwc2 gadget driver. It touches PHY, FIFO configuration, initialization sequence and adds many other small fixes. Best regards Robert Baldyga Samsung RD Institute Poland Changelog: v3: - use endpoint index instead of FIFO index for EPFIFO - extend patch

Re: [PATCH] usb: core: allow zero packet flag for interrupt urbs

2014-07-18 Thread Amit Virdi
On 7/17/2014 8:25 PM, Alan Stern wrote: I can't say this is actually wrong, but have you ever encountered a situation where this would be needed? How often does anyone need to do a multi-packet transfer over an interrupt endpoint? Honestly, I haven't found any such real device yet. I did this

Re: [PATCH 1/9] usb: musb: core: cleanup - remove some useless 'break's from switch statements

2014-07-18 Thread Felipe Balbi
HI, On Fri, Jul 18, 2014 at 11:31:22AM +0200, Lothar Waßmann wrote: no commit log == no commit, also the worst thing you can do is have your bug fixes depend on cleanups. This is *not* a bug fix by any stretch of the imagination. Signed-off-by: Lothar Waßmann l...@karo-electronics.de ---

Re: [PATCH 2/9] usb: phy: am335x: group the #includes by subdirs

2014-07-18 Thread Felipe Balbi
On Fri, Jul 18, 2014 at 11:31:23AM +0200, Lothar Waßmann wrote: no commit log. Not a bug fix. Signed-off-by: Lothar Waßmann l...@karo-electronics.de --- drivers/usb/phy/phy-am335x.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/usb/phy/phy-am335x.c

Re: [PATCH 3/9] usb: musb_am335x: source cleanup

2014-07-18 Thread Felipe Balbi
On Fri, Jul 18, 2014 at 11:31:24AM +0200, Lothar Waßmann wrote: - remove comma after end of list delimiter The empty entry must always be the last item in the list, thus there is no point in having a trailing comma to facilitate adding succeding entries. Remove the comma, so that

Re: [PATCH 4/9] usb: phy: am335x-control: prevent module from being unloaded when in use

2014-07-18 Thread Felipe Balbi
On Fri, Jul 18, 2014 at 11:31:25AM +0200, Lothar Waßmann wrote: This patch fixes the real cause of the crash that was fixed by commit 7adb5c876e9c usb: musb: Fix panic upon musb_am335x module removal Signed-off-by: Lothar Waßmann l...@karo-electronics.de what is the real cause of the crash ?

Re: [PATCH 5/9] usb: musb: print error message with dev_err() instead of dev_dbg()

2014-07-18 Thread Felipe Balbi
On Fri, Jul 18, 2014 at 11:31:26AM +0200, Lothar Waßmann wrote: no commit log. Not a bug fix. Signed-off-by: Lothar Waßmann l...@karo-electronics.de --- drivers/usb/musb/musb_core.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/musb/musb_core.c

Re: [PATCH 6/9] usb: musb: core: properly setup the HW before registering it to the USB core

2014-07-18 Thread Felipe Balbi
On Fri, Jul 18, 2014 at 11:31:27AM +0200, Lothar Waßmann wrote: Without this patch overriding the USBOTG_ID pin by setting the iddig bit in the USB_MODE register doesn't work because it happens too late to be recognized correctly. and how did you test this ? Why is it too late ? What was your

Re: [PATCH 7/9] usb: phy: am335x: setup the gen_phy function pointers _before_ adding the phy

2014-07-18 Thread Felipe Balbi
On Fri, Jul 18, 2014 at 11:31:28AM +0200, Lothar Waßmann wrote: Make sure all parameters are correctly set up before registering the PHY with the USB framework. Signed-off-by: Lothar Waßmann l...@karo-electronics.de --- drivers/usb/phy/phy-am335x.c |5 +++-- 1 file changed, 3

Re: [PATCH 8/9] usb: phy: am335x: call usb_gen_phy_init()/usb_gen_phy_shutdown() in am335x_init()/am335x_shutdown()

2014-07-18 Thread Felipe Balbi
Hi, On Fri, Jul 18, 2014 at 11:31:29AM +0200, Lothar Waßmann wrote: This patch makes it possible to use the musb driver with HW that requires external regulators or clocks. can you provide an example of such HW ? Are you not using the internal PHYs ? Signed-off-by: Lothar Waßmann

Re: xhci error: Transfer event TRB DMA ptr not part of current TD

2014-07-18 Thread Hans de Goede
Hi, On 07/10/2014 01:17 PM, Hans de Goede wrote: Hi Sarah, Matthias, et al, I've been running a full Linux distro from an uas enclosure with a ssd for testing purposes (mostly for testing the distro on different hardware but also for uas testing). While testing this on a Thinkpad T440s I

Re: xhci throws EPROTO errors under load with CONFIG_DMA_API_DEBUG=Y

2014-07-18 Thread Hans de Goede
Hi, On 07/17/2014 06:08 PM, Hans de Goede wrote: Hi all, It has cost me quite some time to get to the bottom of this (which is not even the real bottom). When I generate heavy-io (make -j4 modules or cp -pr a git clone of the kernel), urbs start completing with EPROTO errors when using a

[BUG] Lockdep splat in usb network gadget

2014-07-18 Thread Thomas Gleixner
On a Intel E660/EG20T system I can observe the following lockdep splats: [ 10.154920] = [ 10.156026] [ INFO: inconsistent lock state ] [ 10.156026] 3.16.0-rc5+ #13 Not tainted [ 10.156026] - [ 10.156026] inconsistent

[PATCH 0/3] xhci: Treat not finding the event_seg on COMP_STOP the same as COMP_STOP_INVAL

2014-07-18 Thread Hans de Goede
Hi All, Here is a small patch-set fixing the following error: xhci error: Transfer event TRB DMA ptr not part of current TD Being logged when using uas on a Haswell chipset xhci controller. The first 2 patches just add some debugging output which I've found to be helpful to solve this bug and

[PATCH 1/3] xhci: Print hcc params, version and quirks on init

2014-07-18 Thread Hans de Goede
To help debugging xhci problems. Signed-off-by: Hans de Goede hdego...@redhat.com --- drivers/usb/host/xhci.c | 4 drivers/usb/host/xhci.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c index 7436d5f..7d02e1b 100644 ---

[PATCH 3/3] xhci: Treat not finding the event_seg on COMP_STOP the same as COMP_STOP_INVAL

2014-07-18 Thread Hans de Goede
When using a Renesas uPD720231 chipset usb-3 uas to sata bridge with a 120G Crucial M500 ssd, model string: Crucial_ CT120M500SSD1, together with a the integrated Intel xhci controller on a Haswell laptop: 00:14.0 USB controller [0c03]: Intel Corporation 8 Series USB xHCI HC [8086:9c31] (rev 04)

[PATCH 2/3] xhci: Log ep-index and comp-code on TRB DMA ptr not part of current TD

2014-07-18 Thread Hans de Goede
These errors should never happen, so lets add some extra info when they happen to make figuring out what is going on easier. Signed-off-by: Hans de Goede hdego...@redhat.com --- drivers/usb/host/xhci-ring.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

RE: [PATCH 2/3] xhci: Log ep-index and comp-code on TRB DMA ptr not part of current TD

2014-07-18 Thread David Laight
From: Hans de Goede These errors should never happen, so lets add some extra info when they happen to make figuring out what is going on easier. I've previously posted a patch that include the 'DMA ptr' itself. IIRC I was generating one of the error events where the pointer is the address of a

Re: [PATCH 2/3] USB: OHCI: fix bugs in debug routines

2014-07-18 Thread Alan Stern
On Thu, 17 Jul 2014, Greg KH wrote: On Thu, Jul 17, 2014 at 04:32:26PM -0400, Alan Stern wrote: The debug routine fill_async_buffer() in ohci-hcd is buggy: It never produces any output because it forgets to initialize the output buffer size. Also, the debug routine ohci_dump() has an

Re: [PATCH] usb: core: allow zero packet flag for interrupt urbs

2014-07-18 Thread Alan Stern
On Fri, 18 Jul 2014, Amit Virdi wrote: On 7/17/2014 8:25 PM, Alan Stern wrote: I can't say this is actually wrong, but have you ever encountered a situation where this would be needed? How often does anyone need to do a multi-packet transfer over an interrupt endpoint? Honestly, I

Re: [RFC PATCH] usb: dwc3: core: allow vendor drivers to check probe status

2014-07-18 Thread Felipe Balbi
Hi, On Fri, Jul 18, 2014 at 08:11:15AM +0100, Lee Jones wrote: snip diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index eb69eb9..171ca52 100644 --- a/drivers/usb/dwc3/core.c +++ b/drivers/usb/dwc3/core.c @@ -47,6 +47,14 @@ /*

Re: [PATCH] usb: lvstest: Fix sparse warnings generated by kbuild test bot

2014-07-18 Thread Alan Stern
On Fri, 18 Jul 2014, Pratyush Anand wrote: Following sparse warnings were reported by kbuild test bot drivers/usb/misc/lvstest.c:314:28: sparse: incorrect type in assignment (different base types) drivers/usb/misc/lvstest.c:314:28:expected unsigned short [unsigned] [usertype]

Re: [PATCH V2] USB: Fix persist resume of some SS USB devices

2014-07-18 Thread Alan Stern
On Fri, 18 Jul 2014, Pratyush Anand wrote: Problem Summary: Problem has been observed generally with PM states where VBUS goes off during suspend. There are some SS USB devices which take longer time for link training compared to many others. Such devices fail to reconnect with same old

Re: [PATCH net,stable] net: huawei_cdc_ncm: add subclass 3 devices

2014-07-18 Thread Enrico Mioso
Seems interesting That's fine. Acked-By: Enrico Mioso mrkiko...@gmail.com On Thu, 17 Jul 2014, Bjørn Mork wrote: ==Date: Thu, 17 Jul 2014 13:34:09 ==From: Bjørn Mork bj...@mork.no ==To: net...@vger.kernel.org ==Cc: linux-usb@vger.kernel.org, Bjørn Mork bj...@mork.no, ==Enrico Mioso

Re: [PATCH 0/9] usb: musb: several bugfixes for the musb driver

2014-07-18 Thread Ezequiel Garcia
Hi Lothar, On 18 Jul 11:31 AM, Lothar Waßmann wrote: The first three patches do some source code cleanup in the files that are modified in the subsequent patches. I've applied patches 4 and 9 on a recent -next, after fixing a conflict due to patch 3 (usb: musb_am335x: source cleanup):

Re: [PATCH 0/9] usb: musb: several bugfixes for the musb driver

2014-07-18 Thread Felipe Balbi
Hi, On Fri, Jul 18, 2014 at 01:16:36PM -0300, Ezequiel Garcia wrote: Hi Lothar, On 18 Jul 11:31 AM, Lothar Waßmann wrote: The first three patches do some source code cleanup in the files that are modified in the subsequent patches. I've applied patches 4 and 9 on a recent -next,

[PATCH 1/6] ARM: dts: vf610: add USB PHY and controller

2014-07-18 Thread Stefan Agner
This adds USB PHY and USB controller nodes. Vybrid SoCs have two independent USB cores which each supports DR (dual role). However, real OTG is not supported since the OTG ID pin is not available. The PHYs are located within the anadig register range, hence we need to change the length of the

[PATCH 5/6] usb: phy: mxs: Add VF610 USB PHY support

2014-07-18 Thread Stefan Agner
This adds support for the USB PHY in Vybrid VF610. We assume that the disconnection without VBUS is also needed for Vybrid. For all other flags, the presumption of innocence applies. Signed-off-by: Stefan Agner ste...@agner.ch --- drivers/usb/phy/phy-mxs-usb.c | 5 + 1 file changed, 5

[PATCH 2/6] ARM: imx: clk-vf610: add USBPHY clocks

2014-07-18 Thread Stefan Agner
This commit adds PLL7 which is required for USBPHY1. It also adds the USB PHY and USB Controller clocks and the gates to enable them. Signed-off-by: Stefan Agner ste...@agner.ch --- All the main PLLs are currently turned on by boot ROM or boot loader, within the kernel we only set the fixed

[PATCH 4/6] chipidea: usbmisc_imx: Add USB support for VF610 SoCs

2014-07-18 Thread Stefan Agner
This adds Vybrid VF610 SoC support. The IP is very similar to i.MX6, however the non-core registers are spread in two different register areas. Hence we support multiple registers which are addressed by the index of usbmisc. Signed-off-by: Stefan Agner ste...@agner.ch --- I tried first to create

[PATCH 0/6] vf610: Add USB support

2014-07-18 Thread Stefan Agner
This patchset adds USB support for Vybrid VF610 SoC. It extends the clock framework to support the USB PHY cocks, extends the device tree files and adds support for the non-core registers in the usbmisc_imx driver. This patchset needs the eSDHC length fix available in Shawn's for-next branch.

[PATCH 3/6] ARM: dts: vf610: Add usbmisc for non-core registers

2014-07-18 Thread Stefan Agner
Add device tree node for usbmisc which controls the non-core USB registers. This is required to use the property to disable the over- current detection. Signed-off-by: Stefan Agner ste...@agner.ch --- arch/arm/boot/dts/vf610.dtsi | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-)

Re: Iso trbs for xhci arrangement

2014-07-18 Thread vichy
hi Paul: Driver prepare ep ring like below xhci.0: @2796e150 279cfb04 000404fc 80021415 //xx xhci.0: @2796e160 279d 06f8 0625 //normal xhci.0: @2796e170 279d06f8 0bf4 80021625 but event ring get below

Re: hcd.c Fix me statements

2014-07-18 Thread Nick Krause
On Fri, Jul 18, 2014 at 10:45 AM, Alan Stern st...@rowland.harvard.edu wrote: On Fri, 18 Jul 2014, Nick Krause wrote: I am assuming this is a stupid question but since I am new I will ask it anyway. Can the usb_bus structure be Null? If can I will send it a patch removing the fix mes on

Re: Build Errors when building usb directory

2014-07-18 Thread Randy Dunlap
On 07/18/2014 10:45 AM, Nick Krause wrote: Hey Greg and others, When I built the usb directory today to check a patch I am also sending to. I seem to hitting a few compiler errors and a lot of warnings. I am going to attach a file of my log of this build. Cheers Nick Hi, What command(s)

RE: Iso trbs for xhci arrangement

2014-07-18 Thread Paul Zimmerman
From: vichy [mailto:vichy@gmail.com] Sent: Friday, July 18, 2014 10:13 AM Driver prepare ep ring like below xhci.0: @2796e150 279cfb04 000404fc 80021415 //xx xhci.0: @2796e160 279d 06f8 0625 //normal xhci.0:

Re: [PATCH] usb-core: Remove Fix mes in file hcd.c

2014-07-18 Thread Alan Stern
On Fri, 18 Jul 2014, Nicholas Krause wrote: I am removing two fix mes in this file as after dicussing then it seems there is no reason to check against Null for usb_device as it can never be NULL and this is check is therefore not needed. Signed-off-by: Nicholas Krause xerofo...@gmail.com

RE: [PATCH v3 00/12] usb: dwc2/gadget: fix series

2014-07-18 Thread Paul Zimmerman
From: Robert Baldyga [mailto:r.bald...@samsung.com] Sent: Friday, July 18, 2014 4:39 AM This patchset contains fixes for dwc2 gadget driver. It touches PHY, FIFO configuration, initialization sequence and adds many other small fixes. Best regards Robert Baldyga Samsung RD Institute

Re: [PATCH 2/3] USB: OHCI: fix bugs in debug routines

2014-07-18 Thread Greg KH
On Fri, Jul 18, 2014 at 10:17:20AM -0400, Alan Stern wrote: On Thu, 17 Jul 2014, Greg KH wrote: On Thu, Jul 17, 2014 at 04:32:26PM -0400, Alan Stern wrote: The debug routine fill_async_buffer() in ohci-hcd is buggy: It never produces any output because it forgets to initialize the

Re: [PATCH] usb-core: Remove Fix mes in file hcd.c

2014-07-18 Thread Nick Krause
On Fri, Jul 18, 2014 at 3:09 PM, Alan Stern st...@rowland.harvard.edu wrote: On Fri, 18 Jul 2014, Nicholas Krause wrote: I am removing two fix mes in this file as after dicussing then it seems there is no reason to check against Null for usb_device as it can never be NULL and this is check

Re: Build Errors when building usb directory

2014-07-18 Thread Nick Krause
On Fri, Jul 18, 2014 at 2:10 PM, Randy Dunlap rdun...@infradead.org wrote: On 07/18/2014 10:45 AM, Nick Krause wrote: Hey Greg and others, When I built the usb directory today to check a patch I am also sending to. I seem to hitting a few compiler errors and a lot of warnings. I am going to

[PATCH 1/6] USB: OHCI: revert the ZF Micro orphan-TD quirk

2014-07-18 Thread Alan Stern
This patch reverts the important parts of commit 89a0fd18a96e (USB: OHCI handles more ZFMicro quirks), namely, the parts related to handling orphan TDs for interrupt endpoints. A later patch in this series will introduce a more general mechanism that applies to all endpoint types and all

[PATCH 2/6] USB: OHCI: no shortcut for unlinking URBS from a dead controller

2014-07-18 Thread Alan Stern
When an URB is unlinked from a dead controller, ohci-hcd gives back the URB with no regard for cleaning up the internal data structures. This won't play nicely with the upcoming changes to the TD done list. Therefore make ohci_urb_dequeue() call finish_unlinks(), which uses td_done() to do a

[PATCH 3/6] USB: OHCI: redesign the TD done list

2014-07-18 Thread Alan Stern
This patch changes the way ohci-hcd handles the TD done list. In addition to relying on the TD pointers stored by the controller hardware, we need to handle TDs that the hardware has forgotten about. This means the list has to exist even while the dl_done_list() routine isn't running. That

[PATCH 0/6] USB: OHCI: work with controllers that lose TDs

2014-07-18 Thread Alan Stern
Some OHCI controllers (most notably those made by NVIDIA, but others too) sometimes lose track of completed Transfer Descriptors. When a TD completes, the controller is supposed to add it to the start of the Done Queue, to let the driver know the transfer is finished. The buggy controllers

[PATCH 4/6] USB: OHCI: make URB completions single-threaded

2014-07-18 Thread Alan Stern
URBs for a particular endpoint should complete sequentially. That is, we shouldn't call the completion handler for one URB until the handler for the previous URB has returned. When the OHCI watchdog routine is added, there will be two paths for completing URBs: interrupt handler and watchdog

[PATCH 6/6] USB: OHCI: add check for stopped frame counter

2014-07-18 Thread Alan Stern
This patch adds an extra check to ohci-hcd's I/O watchdog routine. If the controller stops updating the frame counter, we will assume it is dead. But there has to be an exception: Some controllers stop the frame counter when no ports are connected. Check to make sure there is at least one

[PATCH 5/6] USB: OHCI: add I/O watchdog for orphan TDs

2014-07-18 Thread Alan Stern
Some OHCI controllers have a bug: They fail to add completed TDs to the done queue. Examining this queue is the only method ohci-hcd has for telling when a transfer is complete; failure to add a TD can result in an URB that never completes and cannot be unlinked. This patch adds a watchdog

Re: [PATCH] usbcore: don't log on consecutive debounce failures of the same port

2014-07-18 Thread Greg KH
On Fri, Jul 18, 2014 at 08:48:19AM +0200, Oliver Neukum wrote: On Thu, 2014-07-17 at 17:13 -0700, Greg KH wrote: On Mon, Jul 14, 2014 at 10:47:55PM +0200, Oliver Neukum wrote: I see no sane way to come up with numbers. Unless you want to measure the time between spurious event. But

Re: Build Errors when building usb directory

2014-07-18 Thread Randy Dunlap
On 07/18/2014 12:59 PM, Nick Krause wrote: On Fri, Jul 18, 2014 at 2:10 PM, Randy Dunlap rdun...@infradead.org wrote: On 07/18/2014 10:45 AM, Nick Krause wrote: Hey Greg and others, When I built the usb directory today to check a patch I am also sending to. I seem to hitting a few compiler

Re: [PATCH 0/6] USB: OHCI: work with controllers that lose TDs

2014-07-18 Thread Greg KH
On Fri, Jul 18, 2014 at 04:25:23PM -0400, Alan Stern wrote: Some OHCI controllers (most notably those made by NVIDIA, but others too) sometimes lose track of completed Transfer Descriptors. When a TD completes, the controller is supposed to add it to the start of the Done Queue, to let the

Re: Build Errors when building usb directory

2014-07-18 Thread Nick Krause
On Fri, Jul 18, 2014 at 7:29 PM, Randy Dunlap rdun...@infradead.org wrote: On 07/18/2014 12:59 PM, Nick Krause wrote: On Fri, Jul 18, 2014 at 2:10 PM, Randy Dunlap rdun...@infradead.org wrote: On 07/18/2014 10:45 AM, Nick Krause wrote: Hey Greg and others, When I built the usb directory today

Re: [PATCH] usb-core: Remove Fix mes in file hcd.c

2014-07-18 Thread Sasha Levin
On 07/18/2014 01:34 PM, Nicholas Krause wrote: I am removing two fix mes in this file as after dicussing then it seems there is no reason to check against Null for usb_device as it can never be NULL and this is check is therefore not needed. Signed-off-by: Nicholas Krause

Re: [PATCH] usb-core: Remove Fix mes in file hcd.c

2014-07-18 Thread Nick Krause
Sorry didn't run spell check. I will resend this patch with the correct information as needed. Thanks for the advice, Sasha. Cheers Nick On Fri, Jul 18, 2014 at 10:36 PM, Sasha Levin sas...@kernel.org wrote: On 07/18/2014 01:34 PM, Nicholas Krause wrote: I am removing two fix mes in this file

3.14.12 and USB option_instat_callback with 3G DONGLE

2014-07-18 Thread ressy66
Since upgrading from 3.12.24 kernel to 3.14.10, and today, .12 kernel log and dmesg are flooded with constant messages option1 ttyUSB0: option_instat_callback: error -2 The device still works, it sends and receives SMS's as well, I tried setting verbose usb debug to see if it offers any more