Re: Linux USB file storage gadget with new UDC

2013-03-29 Thread victor yeo
Hi, >> f59e13c0 3246885432 S Bo:2:046:1 -115 31 = 55534243 0c00 0010 >> 8a28 0008 00 >> f59e13c0 3246885582 C Bo:2:046:1 0 31 > >> f59e15c0 3246885594 S Bi:2:046:1 -115 4096 < >> f59e15c0 3247150217 C Bi:2:046:1 -75 0 > > This is the problem. -75 is -EOVERFLO

Re: usb video capture issue due to uvc_complete callback spends more time

2013-03-29 Thread Laurent Pinchart
On Friday 29 March 2013 05:24:27 B, Ravi wrote: > On Thu, Mar 28, 2013 at 9:27 PM, Felipe Balbi wrote: > On Thu, Mar 28, 2013 at 03:23:46PM +0200, Felipe Balbi wrote: > > On Thu, Mar 28, 2013 at 08:53:03PM +0800, Ming Lei wrote: > > > On Thu, Mar 28, 2013 at 8:30 PM, B, Ravi wrote: > > > > For exa

RE: usb video capture issue due to uvc_complete callback spends more time

2013-03-29 Thread B, Ravi
Laurent > > > On Thu, Mar 28, 2013 at 08:53:03PM +0800, Ming Lei wrote: > > > > On Thu, Mar 28, 2013 at 8:30 PM, B, Ravi wrote: > > > > > For example, in one iteration I have observed, the time taken by > > > > > uvc_video_decode_isoc() was 2175 usec. In this maximum amount of > > > > > time was

RE: usb video capture issue due to uvc_complete callback spends more time

2013-03-29 Thread B, Ravi
> > Laurent > > > > > On Thu, Mar 28, 2013 at 08:53:03PM +0800, Ming Lei wrote: > > > > > On Thu, Mar 28, 2013 at 8:30 PM, B, Ravi wrote: > > > > > > For example, in one iteration I have observed, the time taken by > > > > > > uvc_video_decode_isoc() was 2175 usec. In this maximum amount of > >

RE: usb video capture issue due to uvc_complete callback spends more time

2013-03-29 Thread B, Ravi
Laurent > > > > Since the uvc_video_complete() callback handler called from > interrupt > > > > context, video post processing or memcpy can be deferred to tasklet > or > > > > bottom half, rather than doing it in interrupt context. > > > > > > If that's the only way to fix the issue, yes. Howeve

Re: [PATCH] usb: ehci: mark unlink_empty_async_suspended() as __maybe_unused

2013-03-29 Thread Alan Stern
On Thu, 28 Mar 2013, Arnd Bergmann wrote: > Patch 4d053fdac3 "usb: ehci: unlink_empty_async_suspended() only used > with CONFIG_PM" tried to hide the unlink_empty_async_suspended function > inside of an #ifdef to work around an unused function warning. > > Unfortunately that had the effect of int

Re: [PATCH] usb: ehci: mark unlink_empty_async_suspended() as __maybe_unused

2013-03-29 Thread Alan Stern
On Fri, 29 Mar 2013, Tony Prisk wrote: > On 29/03/13 10:16, Arnd Bergmann wrote: > > On Thursday 28 March 2013, Arnd Bergmann wrote: > >> Patch 4d053fdac3 "usb: ehci: unlink_empty_async_suspended() only used > >> with CONFIG_PM" tried to hide the unlink_empty_async_suspended function > >> inside o

Re: [PATCH 2/4] usb: introduce usb force power off mechanism

2013-03-29 Thread Alan Stern
On Fri, 29 Mar 2013, Lan Tianyu wrote: > Actually, I exposed pm qos flags for usb port via dev_pm_qos_expose_flags(). > It creates power/pm_qos_no_power_off under usb port sysfs directory. > User can echo 0 > pm_qos_no_power_off to power off the empty port. Before it's too late, we should conside

RE: usb video capture issue due to uvc_complete callback spends more time

2013-03-29 Thread B, Ravi
Laurent/Ming Lei > > > > > > Since the uvc_video_complete() callback handler called from > > interrupt > > > > > context, video post processing or memcpy can be deferred to > tasklet > > or > > > > > bottom half, rather than doing it in interrupt context. > > > > > > > > If that's the only way to

Re: Linux USB file storage gadget with new UDC

2013-03-29 Thread Alan Stern
On Fri, 29 Mar 2013, victor yeo wrote: > Thanks. Working on this problem now. Another problem observed for > SCSI_READ_10 command, when reading from the SD card, the gadget driver > never sends the MBR address, the FAT boot record address, the start of FAT > address, and the start of FAT cluster a

RE: [PATCH v2 1/2] usb: chipidea: big-endian support

2013-03-29 Thread Alexander Shishkin
Svetoslav Neykov writes: > Hi Michael, > > On Thu, March 28, 2013 4:13 PM Michael Grzeschik wrote: >>On Thu, Mar 28, 2013 at 11:28:32AM +0200, Alexander Shishkin wrote: >>> Svetoslav Neykov writes: >>> >>> > Convert between big-endian and little-endian format when accessing the > usb controlle

RE: [PATCH v2 1/2] usb: chipidea: big-endian support

2013-03-29 Thread Alexander Shishkin
Svetoslav Neykov writes: > Alexander Shishkin wrote: >> Svetoslav Neykov writes: >> >>> Convert between big-endian and little-endian format when accessing the > usb controller structures which are little-endian by specification. >>> Fix cases where the little-endian memory layout is taken for gr

Re: [PATCH v9 3/8] usb: chipidea: udc: read status of td only once in hardware_dequeue

2013-03-29 Thread Alexander Shishkin
Michael Grzeschik writes: > This patch changes the read of the td status to one atomic operation to > analyse coherent bits. > > Signed-off-by: Michael Grzeschik > --- > drivers/usb/chipidea/udc.c | 8 +--- > 1 file changed, 5 insertions(+), 3 deletions(-) > > diff --git a/drivers/usb/chipi

Re: [PATCH v9 4/8] usb: chipidea: udc: rework ep_enable cap setting

2013-03-29 Thread Alexander Shishkin
Michael Grzeschik writes: > This patch reworks the cap value from several read > and write operations to one single operation. > > Signed-off-by: Michael Grzeschik > Reviewed-by: Felipe Balbi > --- > drivers/usb/chipidea/udc.c | 17 - > 1 file changed, 8 insertions(+), 9 deleti

Re: [PATCH v9 7/8] usb: chipidea: udc: prepare qhead with dma_alloc_coherent

2013-03-29 Thread Alexander Shishkin
Michael Grzeschik writes: > The prepared memory for the qhead needs to be contiguos and 2K aligned. > We change the code from allocating extra buffer for every ep qhead to > one big area. This patch lowers the amount of code to prepare the > memory. > > Signed-off-by: Michael Grzeschik > --- >

[RFC v2] ehci-hub.c - conflicting quirks handlings for MPC8349 / MAX4967

2013-03-29 Thread Christian Engelmayer
Hi, I am currently looking into a seeming regression in ehci-hub.c where a change triggered by the behaviour of the MAX4967 USB power supply chip has broken the handling of the MPC8349 USB controller at that point. I'd like to come up with a patch solving the issue for both chips and would appreci

Re: [PATCH v9 0/8] usb: chipidea: udc: cleanups and fixes for v3.10

2013-03-29 Thread Alexander Shishkin
Michael Grzeschik writes: > Hi, Hi, > this series contains simples fixes and cleanup patches for > the chipidea udc. It is based on Alexander Shishkins ci-for-greg. This is not really true, since your 7/8 relied on the alignment fix, which didn't make it anywhere yet. Some other problems I fo

Re: Linux USB file storage gadget with new UDC

2013-03-29 Thread victor yeo
Hi, >> Thanks. Working on this problem now. Another problem observed for >> SCSI_READ_10 command, when reading from the SD card, the gadget driver >> never sends the MBR address, the FAT boot record address, the start of FAT >> address, and the start of FAT cluster address to the SD card driver. >

[ANNOUNCE] chipidea: tree for Mar 29

2013-03-29 Thread Alexander Shishkin
Hi, I have massaged some more patches into the chipidea tree and rebased it on top of updated usb-next. Currently we have 26 patches: * reworked debugging, * a ton of fixes from Michael and some from others, * usbmisc updates, added quirks for imx25 and imx53, * support for big-endian cpus

Re: [PATCH v4 0/6] support other fsl SoCs with usbmisc + small fixes

2013-03-29 Thread Alexander Shishkin
Greg KH writes: > If I don't hear back from you by Wednesday this week, with a specific > plan for how to get all of these fixes to me by the end of this week, > I'm going to assume that you are missing, and will just start taking > chipidea patches directly myself, sorry. Actually it looks like

Re: [PATCH v4 0/6] support other fsl SoCs with usbmisc + small fixes

2013-03-29 Thread Greg KH
On Fri, Mar 29, 2013 at 06:00:36PM +0200, Alexander Shishkin wrote: > Greg KH writes: > > > If I don't hear back from you by Wednesday this week, with a specific > > plan for how to get all of these fixes to me by the end of this week, > > I'm going to assume that you are missing, and will just s

Re: [RFC v2] ehci-hub.c - conflicting quirks handlings for MPC8349 / MAX4967

2013-03-29 Thread Alan Stern
On Fri, 29 Mar 2013, Christian Engelmayer wrote: > Hi, > > I am currently looking into a seeming regression in ehci-hub.c where a change > triggered by the behaviour of the MAX4967 USB power supply chip has broken the > handling of the MPC8349 USB controller at that point. I'd like to come up > w

Re: [PATCH v9 0/8] usb: chipidea: udc: cleanups and fixes for v3.10

2013-03-29 Thread Michael Grzeschik
Hi Alexander, On Fri, Mar 29, 2013 at 05:32:59PM +0200, Alexander Shishkin wrote: > Michael Grzeschik writes: > > usb: chipidea: udc: don't truncate requests to single tds > > usb: chipidea: udc: move _ep_queue into an unlocked function > > usb: chipidea: udc: prepare qhead with dma_alloc_c

Re: [PATCH 2/4] usb: introduce usb force power off mechanism

2013-03-29 Thread Sarah Sharp
On Fri, Mar 29, 2013 at 02:37:24PM +0800, Lan Tianyu wrote: > On 2013/3/29 6:43, Sarah Sharp wrote: > >On Thu, Mar 28, 2013 at 05:00:23PM -0400, Alan Stern wrote: > >>On Thu, 28 Mar 2013, Sarah Sharp wrote: > >>>On Thu, Mar 28, 2013 at 01:11:02AM +0800, Lan Tianyu wrote: > >Now I'm a bit confused a

[PATCH v3 0/1] usb: musb: improve throughput in HOST mode

2013-03-29 Thread Ruslan Bilovol
Hi guys, This is a resend (and v3) of my patch: http://permalink.gmane.org/gmane.linux.usb.general/67238 At this moment it has been successfully tested and used on top of 3.0 and 3.4 kernels on omap4 devices so it would be great to have it in upstream too. Regards, Ruslan v3: Implementation has

[PATCH v3 1/1] usb: musb: implement (un)map_urb_for_dma hooks

2013-03-29 Thread Ruslan Bilovol
MUSB controller cannot work in DMA mode with misaligned buffers, switching in PIO mode. HCD core has hooks that allow to override the default DMA mapping and unmapping routines for host controllers that have special DMA requirements, such as alignment constraints. It is observed that work in PIO

Re: [PATCH 2/4] usb: introduce usb force power off mechanism

2013-03-29 Thread Alan Stern
On Fri, 29 Mar 2013, Sarah Sharp wrote: > However, what happens if you echo 0 to pm_qos_no_power_off, the > power/control is set to auto, and there's a suspended USB device > attached to the port with remote wakeup enabled? Will the port be > powered off? I don't think it will with the current p

Re: [PATCH v3 1/7] USB: EHCI: make ehci-orion a separate driver

2013-03-29 Thread Alan Stern
On Thu, 28 Mar 2013, Arnd Bergmann wrote: > From: Manjunath Goudar > > Separate the Orion host controller driver from ehci-hcd host > code into its own driver module because of following reason. ... On the whole this patch is good. > --- a/drivers/usb/host/Kconfig > +++ b/drivers/usb/host/Kcon

Re: [PATCH v3 2/7] USB: EHCI: make ehci-spear a separate driver

2013-03-29 Thread Alan Stern
On Thu, 28 Mar 2013, Arnd Bergmann wrote: > From: Manjunath Goudar > > Separate the SPEAr host controller driver from ehci-hcd host code > so that it can be built as a separate driver module. > This work is part of enabling multi-platform kernels on ARM; > however, note that other changes are st

Re: [PATCH 2/4] usb: introduce usb force power off mechanism

2013-03-29 Thread Sarah Sharp
On Fri, Mar 29, 2013 at 01:23:14PM -0400, Alan Stern wrote: > On Fri, 29 Mar 2013, Sarah Sharp wrote: > > > However, what happens if you echo 0 to pm_qos_no_power_off, the > > power/control is set to auto, and there's a suspended USB device > > attached to the port with remote wakeup enabled? Wil

Re: [PATCH 1/2 v3] usbnet: allow status interrupt URB to always be active

2013-03-29 Thread David Miller
From: Dan Williams Date: Thu, 28 Mar 2013 11:30:07 -0500 > + if (test_bit (EVENT_DEV_ASLEEP, &dev->flags)) > + return -EINVAL; > + > + mutex_lock (&dev->interrupt_mutex); Please do not put a space between a function name and the openning parenthesis in the call. These are no

Re: [PATCH 2/2 v3] sierra_net: keep status interrupt URB active

2013-03-29 Thread David Miller
Please respin this along with patch #1 when you fix the coding style issues I mentioned, thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH v3 3/7] USB: EHCI: make ehci-s5p a separate driver

2013-03-29 Thread Alan Stern
On Thu, 28 Mar 2013, Arnd Bergmann wrote: > From: Manjunath Goudar > > Separate the Samsung S5P/EXYNOS host controller driver from ehci-hcd > host code so that it can be built as a separate driver module. > This work is part of enabling multi-platform kernels on ARM; > however, note that other

Re: [PATCH v3 4/7] USB: EHCI: export ehci_shutdown

2013-03-29 Thread Alan Stern
On Thu, 28 Mar 2013, Arnd Bergmann wrote: > The ehci_shutdown function is used by the platform specific ehci backends > for at91, tegra and ps3. In order to turn any of these into separate > modules, we need to make this function globally visible and export it. Actually, I think this is not neces

Re: [PATCH v3 5/7] USB: EHCI: make ehci-atmel a separate driver

2013-03-29 Thread Alan Stern
On Thu, 28 Mar 2013, Arnd Bergmann wrote: > From: Manjunath Goudar > > Separate the Atmel host controller driver from ehci-hcd host code > so that it can be built as a separate driver module. > This work is part of enabling multi-platform kernels on ARM; > however, note that other changes are st

Re: [PATCH v3 6/7] USB: EHCI: make ehci-msm a separate driver

2013-03-29 Thread Alan Stern
On Thu, 28 Mar 2013, Arnd Bergmann wrote: > From: Manjunath Goudar > > Separate the Qualcomm QSD/MSM on-chip host controller driver from > ehci-hcd host code so that it can be built as a separate driver module. > This work is part of enabling multi-platform kernels on ARM; > however, note that

Re: [PATCH v3 7/7] USB: OHCI: avoid conflicting platform drivers

2013-03-29 Thread Alan Stern
On Thu, 28 Mar 2013, Arnd Bergmann wrote: > Like the EHCI driver, OHCI supports a large number of different platform > glue drivers by directly including them, which causes problems with > conflicting macro definitions in some cases. As more ARM architecture > specific back-ends are required to co

Re: [PATCH 2/4] usb: introduce usb force power off mechanism

2013-03-29 Thread Alan Stern
On Fri, 29 Mar 2013, Sarah Sharp wrote: > > Also, bear in mind that the proposed patch does not give userspace a > > way to power off ports via usbfs. What the new code does is a > > power-off reset -- it turns off power to the port, waits a short time, > > and then turns power back on. > > I

Re: [RFC PATCH 2/5] USB: remove USB_EHCI_BIG_ENDIAN_{DESC,MMIO} depends on architecture symbol

2013-03-29 Thread Anatolij Gustschin
Hello Florian, On Tue, 26 Mar 2013 19:06:14 +0100 Florian Fainelli wrote: ... > diff --git a/arch/powerpc/platforms/52xx/Kconfig > b/arch/powerpc/platforms/52xx/Kconfig > index 90f4496..65232cb 100644 > --- a/arch/powerpc/platforms/52xx/Kconfig > +++ b/arch/powerpc/platforms/52xx/Kconfig > @@ -3

Re: Help with xHCI, uvcvideo driver, and "Unknown event condition, HC probably busted"

2013-03-29 Thread Ezequiel Garcia
Hi Ryan, Small world, uh? On Tue, Mar 26, 2013 at 02:55:48PM -0700, Ryan Press wrote: > I'm working to get the 3.9-rc1 kernel working on the Globalscale > Mirabox > http://www.globalscaletechnologies.com/p-58-mirabox-development-kit.aspx. > The PCIe driver by Thomas Petazzoni is not in mainline

[PATCH] usb: PS3 EHCI remove unneeded ehci_shutdown

2013-03-29 Thread Geoff Levand
Remove an unneeded call to ehci_shutdown() in ps3_ehci_remove(). This removal will allow for a loadable ehci driver. Cc: Arnd Bergmann Signed-off-by: Geoff Levand --- drivers/usb/host/ehci-ps3.c |1 - 1 file changed, 1 deletion(-) diff --git a/drivers/usb/host/ehci-ps3.c b/drivers/usb/host

Re: [PATCH v3 4/7] USB: EHCI: export ehci_shutdown

2013-03-29 Thread Geoff Levand
Hi Alan, > Actually, I think this is not necessary. Instead those three glue > files ought to be changed. They should not need to call > ehci_shutdown() directly. I sent out a separate patch that removes the ehci_shutdown() call in ps3_ehci_remove(). I tested it by removing and installing the

[PATCH 00/27] usb: chipidea: updates for v3.10

2013-03-29 Thread Alexander Shishkin
Hi Greg, This is an update for chipidea usb controller driver for usb-next. Some of these patches, though mostly mine, date as far back as november 2012. So here we have 27 patches, which * are coccinelle, smatch and sparse clean, save for the devm_ioremap_resource, * improve the core drive

[PATCH 01/27] usb: chipidea: drop redundant includes

2013-03-29 Thread Alexander Shishkin
debug.c is carrying a lot of includes that aren't needed there, although they implicitly include the ones that are actually needed. Replace the former with the latter. Signed-off-by: Alexander Shishkin --- drivers/usb/chipidea/debug.c | 17 +++-- 1 file changed, 3 insertions(+), 14

[PATCH 03/27] usb: chipidea: trim include list in the core

2013-03-29 Thread Alexander Shishkin
Some headers included in the chipidea controller core are not needed, remove them. Signed-off-by: Alexander Shishkin --- drivers/usb/chipidea/core.c |3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/usb/chipidea/core.c b/drivers/usb/chipidea/core.c index 57cae1f..77963b6 100644 --

[PATCH 06/27] usb: chipidea: convert debug entries in sysfs to debugfs

2013-03-29 Thread Alexander Shishkin
Currently, we have a bunch of files in sysfs that display all sorts of debugging information for the device controller, so they have to move to debugfs where they belong. The "registers" interface have been removed, since it doesn't fit into the current driver design as is and it's hardly a good id

[PATCH 07/27] usb: chipidea: move role to debugfs

2013-03-29 Thread Alexander Shishkin
Manual role switching function is there for debugging purposes, so has to move to debugfs. Signed-off-by: Alexander Shishkin --- drivers/usb/chipidea/core.c | 39 -- drivers/usb/chipidea/debug.c | 54 ++ 2 files changed, 54

[PATCH 02/27] usb: chipidea: trim include list in udc code

2013-03-29 Thread Alexander Shishkin
Some headers included in udc core code are not actually needed, remove them and add irqreturn.h, which was implicitly included via irq.h. Signed-off-by: Alexander Shishkin --- drivers/usb/chipidea/udc.c |8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/usb/chi

[PATCH 08/27] usb: chipidea: move debug files creation/removal to the core

2013-03-29 Thread Alexander Shishkin
Create and remove debugfs entries in hdrc probe/remove instead of start/stop of the device controller. Gadget specific will not export anything while the controller is in host mode. Signed-off-by: Alexander Shishkin --- drivers/usb/chipidea/core.c |6 +- drivers/usb/chipidea/udc.c |

[PATCH 05/27] usb: chipidea: replace interrupt accounting with tracepoints

2013-03-29 Thread Alexander Shishkin
The driver also has interrupt counters and another ring buffer for keeping track of the order in which they arrive. This patch converts these counters to trace points. Userspace tools such as perf can provide information on both order and stats of the interrupts. Signed-off-by: Alexander Shishkin

[PATCH 09/27] usb: chipidea: fix precedence bug in ci_requests_show()

2013-03-29 Thread Alexander Shishkin
From: Dan Carpenter The intent here was to have parenthesis around the (ci->hw_ep_max / 2) so that it counts like "0 1 2 0 1 2". In the current code, the mod operation happens first so it counts like "0 0 1 1 2 2". Signed-off-by: Dan Carpenter [rebased on top of debug.c changes] Signed-off-by:

[PATCH 04/27] usb: chipidea: convert events to tracepoints

2013-03-29 Thread Alexander Shishkin
As part of the legacy from the original driver design, we retain home-grown tracing infrastructure, complete with own ring buffer and timestamps. While it is useful for debugging certain cases, it's a lot of extra code, which these days is rather redundant. This patch replaces local tracing functi

[PATCH 10/27] usb: chipidea: don't redefine __ffs()

2013-03-29 Thread Alexander Shishkin
From: Felipe Balbi chipidea's ffs_nr() is pretty much what __ffs() does. Use that one instead. Signed-off-by: Felipe Balbi [rebased on top of debug infrastructure rework] Signed-off-by: Alexander Shishkin --- drivers/usb/chipidea/ci.h | 15 +-- drivers/usb/chipidea/core.c |

[PATCH 11/27] usb: chipidea: core: switch over to devm_ioremap_resource

2013-03-29 Thread Alexander Shishkin
From: Felipe Balbi switch over to the newly added devm_ioremap_resource which provides more consistent error messages. Signed-off-by: Felipe Balbi Signed-off-by: Alexander Shishkin --- drivers/usb/chipidea/core.c |8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/d

[PATCH 12/27] usb: chipidea: usbmisc: rename file, struct and functions to usbmisc_imx

2013-03-29 Thread Alexander Shishkin
From: Michael Grzeschik This driver will be used for every Freescale SoC which has this misc memory layout to control the basic usb handling. So better name this driver, function and struct names in a more generic way. Reported-by: Fabio Estevam Signed-off-by: Michael Grzeschik Signed-off-by:

[PATCH 13/27] usb: chipidea: usbmisc: unset global varibale usbmisc on driver remove

2013-03-29 Thread Alexander Shishkin
From: Marc Kleine-Budde The probe function checks usbmisc to be NULL in the beginning. Without this patch the can only be loaded once. Signed-off-by: Marc Kleine-Budde Signed-off-by: Michael Grzeschik Signed-off-by: Alexander Shishkin --- drivers/usb/chipidea/usbmisc_imx.c |1 + 1 file c

[PATCH 14/27] usb: chipidea: usbmisc: fix a potential race condition

2013-03-29 Thread Alexander Shishkin
From: Marc Kleine-Budde This fixes a potential race condition where the ci13xxx_imx glue code could be fast enough to call one of the usbmisc_ops before he got a valid value on the static usbmisc pointer. To fix that we first set usbmisc, then call usbmisc_set_ops(). Signed-off-by: Marc Kleine-B

[PATCH 17/27] usb: chipidea: usbmisc: add post handling and errata fix for mx25

2013-03-29 Thread Alexander Shishkin
From: Michael Grzeschik This adds a post handling routine which is called after ci13xxx_add_device was called. The first user is the mx25, which has to disable the external-vbus-divider after the udc has started. Signed-off-by: Michael Grzeschik Signed-off-by: Marc Kleine-Budde [Alex: also fix

[PATCH 16/27] usb: chipidea: usbmisc: add mx53 support

2013-03-29 Thread Alexander Shishkin
From: Michael Grzeschik This adds mx53 as the next user of the usbmisc driver and makes it possible to disable the overcurrent-detection of the internal phy. Signed-off-by: Michael Grzeschik Signed-off-by: Marc Kleine-Budde [Alex: fixed another set of line-too-long and void pointer cast] Signe

[PATCH 15/27] usb: chipidea: usbmisc: prepare driver to handle more than one soc

2013-03-29 Thread Alexander Shishkin
From: Marc Kleine-Budde This attaches the usbmisc_ops to the of_device_id data and makes it possible to define special functions per soc. Signed-off-by: Marc Kleine-Budde Signed-off-by: Michael Grzeschik [Alex: fixed one case of line-too-long and one bogus cast to void ptr] Signed-off-by: Alex

[PATCH 18/27] usb: chipidea: make pci platform datas static

2013-03-29 Thread Alexander Shishkin
PCI chipideas' platform datas are not static as all such things should be. Fix it. Reported-by: Marc Kleine-Budde Signed-off-by: Alexander Shishkin --- drivers/usb/chipidea/ci13xxx_pci.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/usb/chipidea/ci13xxx_pc

[PATCH 19/27] usb: chipidea: big-endian support

2013-03-29 Thread Alexander Shishkin
From: Svetoslav Neykov Convert between big-endian and little-endian format when accessing the usb controller structures which are little-endian by specification. Fix cases where the little-endian memory layout is taken for granted. The patch doesn't have any effect on the already supported little

[PATCH 20/27] usb: chipidea: udc: only clear active and halted bits in qhead

2013-03-29 Thread Alexander Shishkin
From: Michael Grzeschik The datasheet of the synopsys core describes only to overwrite the active and halted bits in the qhead before priming any endpoint. Signed-off-by: Michael Grzeschik Reviewed-by: Felipe Balbi [Alex: fixed a case of line-too-long] Signed-off-by: Alexander Shishkin --- d

[PATCH 21/27] usb: chipidea: udc: rework ep_enable cap setting

2013-03-29 Thread Alexander Shishkin
From: Michael Grzeschik This patch reworks the cap value from several read and write operations to one single operation. Signed-off-by: Michael Grzeschik Reviewed-by: Felipe Balbi [Alex: removed useless isoc-related bit of code] Signed-off-by: Alexander Shishkin --- drivers/usb/chipidea/udc.

[PATCH 22/27] usb: chipidea: udc: move ZLT flag change to ep_enable

2013-03-29 Thread Alexander Shishkin
From: Michael Grzeschik Its not necessary and also not specified in the datasheet to change the ZLT flag before every ep_prime. This patch moves this to the ep_enable and applies it only for non configuration endpoints. Signed-off-by: Michael Grzeschik Reviewed-by: Felipe Balbi Signed-off-by:

[PATCH 24/27] usb: chipidea: udc: don't truncate requests to single tds

2013-03-29 Thread Alexander Shishkin
From: Michael Grzeschik It is not safe to truncate requests to the maximum possible size the controller can handle with one td and to keep working. That patch fixes that with proper error handling instead. Reported-by: Felipe Balbi Signed-off-by: Michael Grzeschik Signed-off-by: Alexander Shis

[PATCH 23/27] usb: chipidea: udc: read status of td only once in hardware_dequeue

2013-03-29 Thread Alexander Shishkin
From: Michael Grzeschik This patch changes the read of the td status to one atomic operation to analyse coherent bits. Signed-off-by: Michael Grzeschik [Alex: fixed backwards endianness conversion] Signed-off-by: Alexander Shishkin --- drivers/usb/chipidea/udc.c |8 +--- 1 file change

[PATCH 25/27] usb: chipidea: udc: move _ep_queue into an unlocked function

2013-03-29 Thread Alexander Shishkin
From: Michael Grzeschik There is no need to call ep_queue unlocked inside the own driver. We move its functionionality into an unlocked version. This patch removes potential unlocked timeslots inside isr_setup_status_phase and isr_get_status_response, in which the lock got released just before a

[PATCH 26/27] usb: chipidea: udc: add the define TD_PAGE_COUNT and fix all users

2013-03-29 Thread Alexander Shishkin
From: Michael Grzeschik A static count of transfer descriptors was used everywhere in the driver with the fixed number 5. This patch adds a define, named TD_PAGE_COUNT, and replaces all users of this value. This way its possible to have only one parameter to change and limit the amount of buffer

[PATCH 27/27] Revert "USB: chipidea: add vbus detect for udc"

2013-03-29 Thread Alexander Shishkin
From: Peter Chen There are several problems with this patch: + in introduces a sparse warning for a condition that's always negative, + and because of that, it actually doesn't do anything useful, + and vbus detection belongs to otg, not device function anyway. This reverts commit 8c4fc031

[PATCH] staging: dwc2: fix potential null pointer access

2013-03-29 Thread Paul Zimmerman
We were testing hsotg pointer for null after we had already dereferenced it Reported-by: Fengguang Wu Signed-off-by: Paul Zimmerman --- drivers/staging/dwc2/hcd_ddma.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/dwc2/hcd_ddma.c b/drivers/stagin

Re: [PATCH v3 4/7] USB: EHCI: export ehci_shutdown

2013-03-29 Thread Alan Stern
On Fri, 29 Mar 2013, Geoff Levand wrote: > Hi Alan, > > > Actually, I think this is not necessary. Instead those three glue > > files ought to be changed. They should not need to call > > ehci_shutdown() directly. > > I sent out a separate patch that removes the ehci_shutdown() > call in ps3_e

cdc_acm device - unexpected characters sent to USB device

2013-03-29 Thread Mike Verstegen
I'm having trouble with unexpected characters being sent on a USB port with the cdc_acm driver. What makes this all the more perplexing is that the code runs fine on Ubuntu 12.04 (3.2 kernel) but fails (the subject of this question) on Centos 6 (3.6 kernel) The USB device is a Bluegiga BLED112

Re: [PATCH 04/27] usb: chipidea: convert events to tracepoints

2013-03-29 Thread Greg KH
On Sat, Mar 30, 2013 at 02:46:20AM +0200, Alexander Shishkin wrote: > As part of the legacy from the original driver design, we retain home-grown > tracing infrastructure, complete with own ring buffer and timestamps. While > it is useful for debugging certain cases, it's a lot of extra code, which

Re: [PATCH 05/27] usb: chipidea: replace interrupt accounting with tracepoints

2013-03-29 Thread Greg KH
On Sat, Mar 30, 2013 at 02:46:21AM +0200, Alexander Shishkin wrote: > The driver also has interrupt counters and another ring buffer for keeping > track of the order in which they arrive. This patch converts these counters > to trace points. Userspace tools such as perf can provide information on b

Re: Help with xHCI, uvcvideo driver, and "Unknown event condition, HC probably busted"

2013-03-29 Thread Ryan Press
Hi Ezequiel, Thanks so much for replying, I worried my call for help would just become more buried. On Fri, Mar 29, 2013 at 3:34 PM, Ezequiel Garcia wrote: > Hi Ryan, > > Small world, uh? > > On Tue, Mar 26, 2013 at 02:55:48PM -0700, Ryan Press wrote: >> I'm working to get the 3.9-rc1 kernel wor

Re: [PATCH 09/27] usb: chipidea: fix precedence bug in ci_requests_show()

2013-03-29 Thread Greg KH
On Sat, Mar 30, 2013 at 02:46:25AM +0200, Alexander Shishkin wrote: > From: Dan Carpenter > > The intent here was to have parenthesis around the (ci->hw_ep_max / 2) > so that it counts like "0 1 2 0 1 2". In the current code, the mod > operation happens first so it counts like "0 0 1 1 2 2". >

Re: [PATCH 10/27] usb: chipidea: don't redefine __ffs()

2013-03-29 Thread Greg KH
On Sat, Mar 30, 2013 at 02:46:26AM +0200, Alexander Shishkin wrote: > From: Felipe Balbi > > chipidea's ffs_nr() is pretty much what __ffs() does. > > Use that one instead. > > Signed-off-by: Felipe Balbi > [rebased on top of debug infrastructure rework] Again, can you rebase this so I can ta

Re: [PATCH 12/27] usb: chipidea: usbmisc: rename file, struct and functions to usbmisc_imx

2013-03-29 Thread Greg KH
On Sat, Mar 30, 2013 at 02:46:28AM +0200, Alexander Shishkin wrote: > From: Michael Grzeschik > > This driver will be used for every Freescale SoC which has this misc > memory layout to control the basic usb handling. So better name this > driver, function and struct names in a more generic way.

Re: [PATCH 00/27] usb: chipidea: updates for v3.10

2013-03-29 Thread Greg KH
On Sat, Mar 30, 2013 at 02:46:16AM +0200, Alexander Shishkin wrote: > Hi Greg, > > This is an update for chipidea usb controller driver for > usb-next. Some of these patches, though mostly mine, date as far back > as november 2012. Why would you hold onto patches for that long? That's not ok for