[PATCH] usb: gadget: Make VERBOSE_DEBUG enableable via Kconfig

2013-10-11 Thread Andreas Larsson
Signed-off-by: Andreas Larsson andr...@gaisler.com --- drivers/usb/gadget/Kconfig | 14 ++ drivers/usb/gadget/Makefile |3 ++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig index 48cddf3..922a04d 100644

Re: When USB PHY framework should be used?

2013-10-11 Thread Kishon Vijay Abraham I
On Friday 11 October 2013 12:51 AM, Arokux X wrote: Hi, recently I have been working on mainlining a simple bus glue driver for the USB EHCI for the Allwinner family of the ARM SoCs aka sunxi. The patches are almost ready and can be found at [1] and will be submitted once completely ready.

Re: [PATCH v3] USB: gadget: s3c-hsotg: add isochronous transfers support

2013-10-11 Thread Robert Baldyga
Hello, On 10/10/2013 06:04 PM, Felipe Balbi wrote: Hi, On Wed, Oct 09, 2013 at 08:41:57AM +0200, Robert Baldyga wrote: @@ -2616,14 +2630,19 @@ static int s3c_hsotg_ep_enable(struct usb_ep *ep, s3c_hsotg_set_ep_maxpacket(hsotg, hs_ep-index, mps); /* default, set to non-periodic

[PATCH] usb: phy: don't return with NULL from devm_usb_get_phy()

2013-10-11 Thread Gabor Juhos
The callers are expecting an ERR_PTR value in case of an error. Change he code to return with an encoded -ENOMEM value in the case of a failed devres_alloc call. Signed-off-by: Gabor Juhos juh...@openwrt.org --- drivers/usb/phy/phy.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH v4 00/17] ARM: at91: move to common clk framework

2013-10-11 Thread Boris BREZILLON
Hello, This patch series is the 4th version of the new at91 clock implementation (using common clk framework). Most of the clock provided by the PMC (Power Management Controller) are implemented : - main clock (main oscillator) - pll clocks - master clock - programmable clocks - utmi clock -

[PATCH v4 02/17] ARM: at91: add Kconfig options for common clk support

2013-10-11 Thread Boris BREZILLON
This patch adds the following Kconfig options to prepare the transition to common clk framework: - AT91_USE_OLD_CLK: this option is selected by every SoC which does not support new at91 clks based on common clk framework (SoC which does not define the clock tree in its device tree). This

[PATCH v4 01/17] ARM: at91: move at91_pmc.h to include/linux/clk/at91_pmc.h

2013-10-11 Thread Boris BREZILLON
This patch moves at91_pmc.h header from machine specific directory (arch/arm/mach-at91/include/mach/at91_pmc.h) to clk include directory (include/linux/clk/at91_pmc.h). We need this to avoid reference to machine specific headers in clk drivers. Signed-off-by: Boris BREZILLON

[PATCH v4 03/17] clk: at91: add PMC base support

2013-10-11 Thread Boris BREZILLON
This patch adds at91 PMC (Power Management Controller) base support. All at91 clocks managed by the PMC unit will use this framework. This framework provides the following fonctionalities: - define a new struct at91_pmc to hide PMC internals (lock, PMC memory mapping, irq domain, ...) -

[PATCH] usb: musb: start musb on the udc side, too

2013-10-11 Thread Sebastian Andrzej Siewior
I have am335x-evm with one port running in OTG mode. Since commit fe4cb09 (usb: musb: gadget: remove hcd initialization) the loaded gadget does non pop up on the host. All I see is |usb 4-5: new high-speed USB device number 52 using ehci-pci |usb 4-5: device descriptor read/64, error -110 Since a

Re: [PATCH 2/2] xhci: fix last valid endpoint when dropping an endpoint

2013-10-11 Thread Xenia Ragiadakou
Hi Sarah, On 10/10/2013 09:25 PM, Sarah Sharp wrote: Hi Xenia, On Mon, Oct 07, 2013 at 06:52:39PM +0300, Xenia Ragiadakou wrote: The previous patch on the endpoint reset uses the already implemented function xhci_drop_endpoint() to reduce code duplication. However, the way that xhci updates

[PATCH v4 06/17] clk: at91: add PMC pll clocks

2013-10-11 Thread Boris BREZILLON
This patch adds new at91 pll clock implementation using common clk framework. The pll clock layout describe the PLLX register layout. There are four pll clock layouts: - at91rm9200 - at91sam9g20 - at91sam9g45 - sama5d3 PLL clocks are given characteristics: - min/max clock source rate - ranges of

[PATCH v4 07/17] clk: at91: add PMC master clock

2013-10-11 Thread Boris BREZILLON
This patch adds new at91 master clock implementation using common clk framework. The master clock layout describe the MCKR register layout. There are 2 master clock layouts: - at91rm9200 - at91sam9x5 Master clocks are given characteristics: - min/max clock output rate These characteristics are

[PATCH v4 04/17] clk: at91: add PMC macro file for dt definitions

2013-10-11 Thread Boris BREZILLON
This patch adds a new macro file for PMC macros. This macro file includes the definitions of SR (status register) bit offsets and will be use to reference PMC irqs. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- include/dt-bindings/clk/at91.h | 22 ++ 1 file

[PATCH v4 09/17] clk: at91: add PMC peripheral clocks

2013-10-11 Thread Boris BREZILLON
This patch adds new at91 peripheral clock implementation using common clk framework. Almost all peripherals provided by at91 SoCs need a clock to work properly. This clock is enabled/disabled using PCER/PCDR resgisters. Each peripheral is given an id (see atmel's datasheets) which is used to

Re: [PATCH] usb: musb: start musb on the udc side, too

2013-10-11 Thread Daniel Mack
On 11.10.2013 10:38, Sebastian Andrzej Siewior wrote: I have am335x-evm with one port running in OTG mode. Since commit fe4cb09 (usb: musb: gadget: remove hcd initialization) the loaded gadget does non pop up on the host. All I see is |usb 4-5: new high-speed USB device number 52 using

[PATCH v4 08/17] clk: at91: add PMC system clocks

2013-10-11 Thread Boris BREZILLON
This patch adds new at91 system clock implementation using common clk framework. Some peripherals need to enable a system clock in order to work properly. Each system clock is given an id based on the bit position in SCER/SCDR registers. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com ---

[PATCH v4 10/17] clk: at91: add peripheral clk macros for peripheral clk dt bindings

2013-10-11 Thread Boris BREZILLON
This patch adds the peripheral divisors macros (for sam9x5 compatible IPs) which will be used by peripheral clk dt definitions. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- include/dt-bindings/clk/at91.h |6 ++ 1 file changed, 6 insertions(+) diff --git

[PATCH v4 11/17] clk: at91: add PMC programmable clocks

2013-10-11 Thread Boris BREZILLON
This patch adds new at91 programmable clocks implementation using common clk framework. A programmable clock is a clock which can be exported on a given pin to clock external devices. Each programmable clock is given an id (from 0 to 8). The number of available programmable clocks depends on the

[PATCH v4 12/17] clk: at91: add PMC utmi clock

2013-10-11 Thread Boris BREZILLON
This adds new at91 utmi clock implementation using common clk framework. This clock is a pll with a fixed factor (x40). It is used as a source for usb clock. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- arch/arm/mach-at91/Kconfig |7 ++ drivers/clk/at91/Makefile |1 +

Re: [PATCH v6 13/14] usb/gadget: storage_common: add methods to show/store 'cdrom' and 'removable'

2013-10-11 Thread Andrzej Pietrasiewicz
W dniu 10.10.2013 20:05, Michal Nazarewicz pisze: On Wed, Oct 09 2013, Andrzej Pietrasiewicz wrote: This will be required by configfs integration. Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com Signed-off-by: Kyungin Park kyungmin.p...@samsung.com ---

[PATCH] USB: gadget: s3c-hsotg: remove unused label

2013-10-11 Thread Robert Baldyga
This patch removes unused label. Signed-off-by: Robert Baldyga r.bald...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/usb/gadget/s3c-hsotg.c |1 - 1 file changed, 1 deletion(-) diff --git a/drivers/usb/gadget/s3c-hsotg.c b/drivers/usb/gadget/s3c-hsotg.c

[PATCH v4 05/17] clk: at91: add PMC main clock

2013-10-11 Thread Boris BREZILLON
This patch adds new at91 main oscillator clock implementation using common clk framework. If rate is not provided during clock registration it is calculated using the slow clock (main clk parent in this case) rate and MCFR register. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com ---

[PATCH v4 13/17] clk: at91: add PMC usb clock

2013-10-11 Thread Boris BREZILLON
This patch adds new at91 usb clock implementation using common clk framework. This clock is used to clock usb ports (ohci, ehci and udc). Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- arch/arm/mach-at91/Kconfig | 11 ++ drivers/clk/at91/Makefile |1 +

[PATCH v4 14/17] clk: at91: add PMC smd clock

2013-10-11 Thread Boris BREZILLON
This patch adds at91 smd (Soft Modem) clock implementation using common clk framework. Not used by any driver right now. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- arch/arm/mach-at91/Kconfig |5 ++ drivers/clk/at91/Makefile |1 + drivers/clk/at91/clk-smd.c | 173

[PATCH v4 15/17] clk: at91: add PMC clk device tree binding doc.

2013-10-11 Thread Boris BREZILLON
This patch adds new at91 clks dt bindings documentation. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- .../devicetree/bindings/clock/at91-clock.txt | 328 1 file changed, 328 insertions(+) create mode 100644

[PATCH 2/2] USB: ehci-msm: Add device tree support and binding information

2013-10-11 Thread Ivan T. Ivanov
From: Ivan T. Ivanov iiva...@mm-sol.com Allows MSM EHCI controller to be specified via device tree. Signed-off-by: Ivan T. Ivanov iiva...@mm-sol.com --- .../devicetree/bindings/usb/msm-hsusb.txt | 17 + drivers/usb/host/ehci-msm.c| 15

[PATCH 1/2] ehci-msm: Remove global struct usb_phy variable

2013-10-11 Thread Ivan T. Ivanov
From: Ivan T. Ivanov iiva...@mm-sol.com Use struct usb_hcd::phy to hold USB PHY instance. Signed-off-by: Ivan T. Ivanov iiva...@mm-sol.com --- drivers/usb/host/ehci-msm.c |5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/usb/host/ehci-msm.c

[PATCH v4 16/17] ARM: at91: move pit timer to common clk framework

2013-10-11 Thread Boris BREZILLON
Use device tree to get the source clock of the PIT (Periodic Interval Timer). If the clock is not found in device tree (or dt is not enabled) we'll try to get it using clk_lookup definitions. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com Acked-by: Nicolas Ferre nicolas.fe...@atmel.com

[PATCH v4 17/17] ARM: at91: add new compatible strings for pmc driver

2013-10-11 Thread Boris BREZILLON
This patch adds new compatible string for PMC node to prepare the transition to common clk. These compatible string come from pmc driver in clk subsystem and are needed to provide new device tree compatibility with old at91 clks (device tree using common clks will use the new compatible strings).

[RFC] usbtouchscreen: stuck BTN_TOUCH release events

2013-10-11 Thread Christian Engelmayer
Hello, We are using the usbtouchscreen driver for a 0eef:0001 eGalax based device and have observed cases were BTN_TOUCH seems to be stuck as release events are not reported promptly. In those situations the release event is reported after arbitrary time when the next touch event is triggered.

[PATCH] usb: dwc3: core: use pm_runtime_put_sync() on remove

2013-10-11 Thread Felipe Balbi
We are going to disable runtime_pm and we're removing the driver, we must disable the device now. Signed-off-by: Felipe Balbi ba...@ti.com --- drivers/usb/dwc3/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index

Re: [PATCH] usb: musb: start musb on the udc side, too

2013-10-11 Thread Felipe Balbi
Hi, On Fri, Oct 11, 2013 at 10:38:13AM +0200, Sebastian Andrzej Siewior wrote: I have am335x-evm with one port running in OTG mode. Since commit fe4cb09 (usb: musb: gadget: remove hcd initialization) the loaded gadget does non pop up on the host. All I see is |usb 4-5: new high-speed USB

Re: [PATCH 2/5] usb: gadget: s3c-hsotg: support configurable UTMI PHY width

2013-10-11 Thread Felipe Balbi
Hi, On Thu, Oct 10, 2013 at 11:21:30PM -0400, Matt Porter wrote: On 10/10/2013 03:07 PM, Matt Porter wrote: On 10/10/2013 01:57 PM, Paul Zimmerman wrote: From: Felipe Balbi [mailto:ba...@ti.com] Sent: Thursday, October 10, 2013 10:46 AM On Thu, Oct 10, 2013 at 12:54:40PM -0400, Matt Porter

Re: [PATCH] usb: musb: start musb on the udc side, too

2013-10-11 Thread Daniel Mack
On 11.10.2013 15:36, Felipe Balbi wrote: Hi, On Fri, Oct 11, 2013 at 10:38:13AM +0200, Sebastian Andrzej Siewior wrote: I have am335x-evm with one port running in OTG mode. Since commit fe4cb09 (usb: musb: gadget: remove hcd initialization) the loaded gadget does non pop up on the host. All

Re: [PATCH v3] USB: gadget: s3c-hsotg: add isochronous transfers support

2013-10-11 Thread Felipe Balbi
Hi, On Fri, Oct 11, 2013 at 08:23:35AM +0200, Robert Baldyga wrote: Hello, On 10/10/2013 06:04 PM, Felipe Balbi wrote: Hi, On Wed, Oct 09, 2013 at 08:41:57AM +0200, Robert Baldyga wrote: @@ -2616,14 +2630,19 @@ static int s3c_hsotg_ep_enable(struct usb_ep *ep,

Re: [PATCH 3/5] usb: phy: add Broadcom Kona USB control driver

2013-10-11 Thread Matt Porter
On 10/10/2013 11:31 AM, Felipe Balbi wrote: Hi, On Mon, Oct 07, 2013 at 06:12:30AM -0400, Matt Porter wrote: Broadcom BCM281xx parts have a PHY control block that operates in conjunction with the DWC2 USB OTG. This driver exposes an API that allows control of power/reset for a connected USB

Re: [PATCH] usb: musb: start musb on the udc side, too

2013-10-11 Thread Felipe Balbi
Hi, On Fri, Oct 11, 2013 at 03:39:38PM +0200, Daniel Mack wrote: On 11.10.2013 15:36, Felipe Balbi wrote: Hi, On Fri, Oct 11, 2013 at 10:38:13AM +0200, Sebastian Andrzej Siewior wrote: I have am335x-evm with one port running in OTG mode. Since commit fe4cb09 (usb: musb: gadget: remove

Re: [PATCH] usb: musb: start musb on the udc side, too

2013-10-11 Thread Sebastian Andrzej Siewior
On 10/11/2013 03:36 PM, Felipe Balbi wrote: Hi, Hi Felipe, Is this critical for the -rc or should we add the stable tag here ? I forgot the stable tag here which is needed because it is broken in v3.11, too. But whether you want to get this via -rc into v3.12 or via stable is up to you, I'm

Re: [PATCH 2/2] USB: ehci-msm: Add device tree support and binding information

2013-10-11 Thread David Brown
On Fri, Oct 11, 2013 at 02:46:10PM +0300, Ivan T. Ivanov wrote: From: Ivan T. Ivanov iiva...@mm-sol.com Allows MSM EHCI controller to be specified via device tree. Signed-off-by: Ivan T. Ivanov iiva...@mm-sol.com --- .../devicetree/bindings/usb/msm-hsusb.txt | 17 +

Re: [PATCH 1/2] ehci-msm: Remove global struct usb_phy variable

2013-10-11 Thread David Brown
On Fri, Oct 11, 2013 at 02:46:09PM +0300, Ivan T. Ivanov wrote: From: Ivan T. Ivanov iiva...@mm-sol.com Use struct usb_hcd::phy to hold USB PHY instance. Signed-off-by: Ivan T. Ivanov iiva...@mm-sol.com --- drivers/usb/host/ehci-msm.c |5 +++-- Acked-by: David Brown dav...@codeaurora.org

Re: [PATCH] usb: musb: start musb on the udc side, too

2013-10-11 Thread Bin Liu
Hi Sebastian, On Fri, Oct 11, 2013 at 8:56 AM, Sebastian Andrzej Siewior bige...@linutronix.de wrote: On 10/11/2013 03:36 PM, Felipe Balbi wrote: Hi, Hi Felipe, Is this critical for the -rc or should we add the stable tag here ? I forgot the stable tag here which is needed because it is

Re: [PATCH] usb: musb: start musb on the udc side, too

2013-10-11 Thread Sebastian Andrzej Siewior
On 10/11/2013 04:16 PM, Bin Liu wrote: Hi Sebastian, Hi Bin, The OTG setup (where musb acts as a host and you plug in a device) is still broken and I will look at this on Monday (it works the other way Is this the same issue I reported a few weeks ago (not on linux-usb), which host mode

Re: [PATCH] usb: musb: start musb on the udc side, too

2013-10-11 Thread Bin Liu
On Fri, Oct 11, 2013 at 9:23 AM, Sebastian Andrzej Siewior bige...@linutronix.de wrote: On 10/11/2013 04:16 PM, Bin Liu wrote: Hi Sebastian, Hi Bin, The OTG setup (where musb acts as a host and you plug in a device) is still broken and I will look at this on Monday (it works the other way

Re: [PATCH v6 13/14] usb/gadget: storage_common: add methods to show/store 'cdrom' and 'removable'

2013-10-11 Thread Michal Nazarewicz
On Fri, Oct 11 2013, Andrzej Pietrasiewicz wrote: W dniu 10.10.2013 20:05, Michal Nazarewicz pisze: On Wed, Oct 09 2013, Andrzej Pietrasiewicz wrote: This will be required by configfs integration. Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com Signed-off-by: Kyungin Park

Re: [PATCH] usb: musb: start musb on the udc side, too

2013-10-11 Thread Sebastian Andrzej Siewior
On 10/11/2013 04:28 PM, Bin Liu wrote: I was not complaining about your progress, just wanted to check if it is the same issue as I saw ;) Nah it is okay. I am not sure but it looks like. I probably will come back to am335x by mid next week, let me know if there is anything I can do to

Re: [PATCH 3/7] drivers: phy: usb3/pipe3: Adapt pipe3 driver to Generic PHY Framework

2013-10-11 Thread Roger Quadros
On 09/16/2013 10:37 AM, Roger Quadros wrote: On 09/16/2013 06:01 AM, Kishon Vijay Abraham I wrote: On Thursday 12 September 2013 04:49 PM, Roger Quadros wrote: Hi Kishon, On 09/02/2013 06:43 PM, Kishon Vijay Abraham I wrote: Adapted omap-usb3 PHY driver to Generic PHY Framework and moved

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

2013-10-11 Thread Roger Quadros
Hi, On 09/02/2013 06:43 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 wont be

[PATCH 0/11] USB: EHCI: fixes and scheduler changes

2013-10-11 Thread Alan Stern
Greg: The following patch series is the first step in a thorough redesign of the periodic scheduler in ehci-hcd. The first six patches are all quite small; they include several minor fixes and improvements in areas that the later patches will use. None of the fixes are important enough to be

[PATCH 1/11] USB: NS_TO_US should round up

2013-10-11 Thread Alan Stern
Host controller drivers use the NS_TO_US macro to convert transaction times, which are computed in nanoseconds, to microseconds for scheduling. Periodic scheduling requires worst-case estimates, but the macro does its conversion using round-to-nearest. This patch changes it to use round-up,

[PATCH 2/11] USB: EHCI: check the right uframes for CSPLIT

2013-10-11 Thread Alan Stern
The check_intr_schedule() routine in ehci-hcd looks at the wrong microframes when checking to see if a full-speed or low-speed interrupt endpoint will fit in the periodic schedule. If the Start-Split transaction is scheduled for microframe N then the Complete-Split transactions get scheduled for

[PATCH 4/11] USB: EHCI: No SSPLIT allowed in uframe 7

2013-10-11 Thread Alan Stern
The scheduling code in ehci-hcd contains an error. For full-speed isochronous-OUT transfers, the EHCI spec forbids scheduling Start-Split transactions in H-microframe 7, but the driver allows it anyway. This patch adds a check to prevent it. Signed-off-by: Alan Stern st...@rowland.harvard.edu

[PATCH 6/11] USB: EHCI: use consistent NO_FRAME value

2013-10-11 Thread Alan Stern
ehci-hcd is inconsistent in the sentinel values it uses to indicate that no frame number has been assigned for a periodic transfer. Some places it uses NO_FRAME (defined as 65535), other places it uses -1, and elsewhere it uses . This patch defines a value for NO_FRAME which can fit in a

[PATCH 3/11] USB: EHCI: compute full-speed bandwidth usage correctly

2013-10-11 Thread Alan Stern
Although the bandwidth statistics maintained by ehci-hcd show up only in the /sys/kernel/debug/usb/devices file, they ought to be calculated correctly. The calculation for full-speed isochronous endpoints is wrong; it mistakenly yields bytes per microframe instead of bytes per frame. The

[PATCH 5/11] USB: EHCI: change toggle only upon successful reset

2013-10-11 Thread Alan Stern
ehci-hcd uses a value of 0 in an endpoint's toggle flag to indicate that the endpoint has been reset (and therefore the Data Toggle bit needs to be cleared in the endpoint's QH overlay region). The toggle flag should be set to 0 only when ehci_endpoint_reset() succeeds. This patch moves the

[PATCH 7/11] USB: EHCI: create a periodic schedule info struct

2013-10-11 Thread Alan Stern
This patch begins the process of unifying the scheduling parameters that ehci-hcd uses for interrupt and isochronous transfers. It creates an ehci_per_sched structure, which will be stored in both ehci_qh and ehci_iso_stream structures, and will contain the common scheduling information needed

[PATCH 11/11] USB: EHCI: start new isochronous streams ASAP

2013-10-11 Thread Alan Stern
This patch changes the initial delay before the startup of a newly scheduled isochronous stream. Currently the stream doesn't start for at least 5 ms (40 microframes). This value is just an estimate; it has no real justification. Instead, we can start the stream as soon as possible after the

[PATCH 8/11] USB: EHCI: use a bandwidth-allocation table

2013-10-11 Thread Alan Stern
This patch significantly changes the scheduling code in ehci-hcd. Instead of calculating the current bandwidth utilization by trudging through the schedule and adding up the times used by the existing transfers, we will now maintain a table holding the time used for each of 64 microframes. This

[PATCH 10/11] USB: EHCI: create per-TT bandwidth tables

2013-10-11 Thread Alan Stern
This patch continues the scheduling changes in ehci-hcd by adding a table to store the bandwidth allocation below each TT. This will speed up the scheduling code, as it will no longer need to read through the entire schedule to compute the bandwidth currently in use. Properly speaking, the FS/LS

Re: [PATCH v4 01/17] ARM: at91: move at91_pmc.h to include/linux/clk/at91_pmc.h

2013-10-11 Thread Felipe Balbi
On Fri, Oct 11, 2013 at 09:37:45AM +0200, Boris BREZILLON wrote: This patch moves at91_pmc.h header from machine specific directory (arch/arm/mach-at91/include/mach/at91_pmc.h) to clk include directory (include/linux/clk/at91_pmc.h). We need this to avoid reference to machine specific headers

[GIT PULL] USB fixes for v3.12-rc

2013-10-11 Thread Felipe Balbi
Hi Greg, My last round of fixes, just one this time on MUSB. It should now work on peripheral-only configurations. The following changes since commit b377216bd2d313b393ddd4b04c71f700842d104b: usb: gadget: s3c-hsotg: fix can_write limit for non-periodic endpoints (2013-10-01 09:24:14 -0500)

Re: [PATCH 2/2] xhci: fix last valid endpoint when dropping an endpoint

2013-10-11 Thread Xenia Ragiadakou
On 10/11/2013 11:40 AM, Xenia Ragiadakou wrote: [snip] The main reasons that made me come to this conclusion was the fact that Context Entries by being updated with a value other than the last valid endpoint will be inconsistent with the definition in xhci spec (revision 1.0 5/21/10) Context

Re: When USB PHY framework should be used?

2013-10-11 Thread Arokux X
I think you should have a wrapper driver to EHCI/OHCI to handle this reset. Thank you Kishon and Peter for the quick replies. Is there any good example of such a wrapper driver in the kernel already? Thanks Arokux -- To unsubscribe from this list: send the line unsubscribe linux-usb in the body

Re: [PATCH] xhci: Ensure a command structure points to the correct trb on the command ring

2013-10-11 Thread Sarah Sharp
Hi Xiao, I think you did something odd when you tried to send me the latest revision of your patch xhci: correct the usage of USB_CTRL_SET_TIMEOUT. You sent this patch instead. On the plus side, it looks like git-send-email works. Can you try again? Sarah Sharp On Fri, Oct 11, 2013 at

Re: [PATCH] xhci: Ensure a command structure points to the correct trb on the command ring

2013-10-11 Thread Sarah Sharp
On Fri, Oct 11, 2013 at 10:25:23AM -0700, Sarah Sharp wrote: Hi Xiao, I think you did something odd when you tried to send me the latest revision of your patch xhci: correct the usage of USB_CTRL_SET_TIMEOUT. You sent this patch instead. On the plus side, it looks like git-send-email

Re: XHCI: Handling of Zero length packet in data stage

2013-10-11 Thread Jack Pham
Hi Sarah, Have you had a chance to look at Alan's response, and my patch below? Jack On Tue, Oct 08, 2013 at 07:02:31PM -0700, Jack Pham wrote: Hi Sarah, Alan, I'm taking over reporting of this issue for Hemant while he is out on vacation. On Mon, Oct 07, 2013 at 05:44:56PM -0400, Alan

Re: [PATCH 2/2] xhci: fix last valid endpoint when dropping an endpoint

2013-10-11 Thread Sarah Sharp
On Fri, Oct 11, 2013 at 11:40:07AM +0300, Xenia Ragiadakou wrote: Hi Sarah, On 10/10/2013 09:25 PM, Sarah Sharp wrote: Hi Xenia, On Mon, Oct 07, 2013 at 06:52:39PM +0300, Xenia Ragiadakou wrote: The previous patch on the endpoint reset uses the already implemented function

Re: [PATCH 2/2] xhci: fix last valid endpoint when dropping an endpoint

2013-10-11 Thread Sarah Sharp
On Fri, Oct 11, 2013 at 07:30:17PM +0300, Xenia Ragiadakou wrote: On 10/11/2013 11:40 AM, Xenia Ragiadakou wrote: [snip] The main reasons that made me come to this conclusion was the fact that Context Entries by being updated with a value other than the last valid endpoint will be

Re: [Pull Request v2] xhci: Bug fixes and quirks for 3.12

2013-10-11 Thread Sarah Sharp
Ping. Have a couple more patches to send you for 3.12, can you pull this? Thanks, Sarah Sharp On Wed, Oct 09, 2013 at 04:37:27PM -0700, Sarah Sharp wrote: The following changes since commit d0e639c9e06d44e713170031fe05fb60ebe680af: Linux 3.12-rc4 (2013-10-06 14:00:20 -0700) are

Re: LTE vodafone K5150 (hilink) 12d1 1f16 ; 12d1 1575 cdc_ether mbim?

2013-10-11 Thread Thomas Schäfer
Bjørn writes: In the meantime, I have got the first ipv4-connection: Yes, that should work. 12d1 1f16 conf 2 Unfortunately IPv6 does only work one way. (no firewall) ModemManager/mmcli works - connected slaac - ok - address and default-route are there ping6 ??? packets go out, they

Re: LTE vodafone K5150 (hilink) 12d1 1f16 ; 12d1 1575 cdc_ether mbim?

2013-10-11 Thread Bjørn Mork
Thomas Schäfer tschae...@t-online.de writes: Unfortunately IPv6 does only work one way. (no firewall) ModemManager/mmcli works - connected slaac - ok - address and default-route are there ping6 ??? packets go out, they reach their target and are replied, but the answers don't reach

Re: LTE vodafone K5150 (hilink) 12d1 1f16 ; 12d1 1575 cdc_ether mbim?

2013-10-11 Thread Thomas Schäfer
Bjørn writes: Could be the driver. I don't know if it is ever tested with IPv6, and it does a bit of header magic so it is possible to screw up. Of course, the same goes for the firmware (including the testing, i assume :-) usbmon dumps would be interesting. I attached a file, I am not

Re: [PATCH 1/1] support new huawei devices in option.c

2013-10-11 Thread gre...@linuxfoundation.org
On Fri, Oct 11, 2013 at 03:48:21AM +, Fangxiaozhi (Franko) wrote: 1. Add new supporting declarations to option.c, to support Huawei new devices with new bInterfaceSubClass value. Signed-off-by: fangxiaozhi huana...@huawei.com In the future, can you use an email client that doesn't turn

Re: [PATCH v3] davinci: fix resources passed to MUSB driver for DM6467

2013-10-11 Thread Sergei Shtylyov
Hello. On 23-09-2013 23:45, Felipe Balbi wrote: After commit 09fc7d22b024692b2fe8a943b246de1af307132b (usb: musb: fix incorrect usage of resource pointer), CPPI DMA driver on DaVinci DM6467 can't detect its dedicated IRQ and so the MUSB IRQ is erroneously used instead. This is because only 2

Re: [PATCH 1/1] support new huawei devices in option.c

2013-10-11 Thread Dan Williams
On Fri, 2013-10-11 at 13:57 -0700, gre...@linuxfoundation.org wrote: On Fri, Oct 11, 2013 at 03:48:21AM +, Fangxiaozhi (Franko) wrote: 1. Add new supporting declarations to option.c, to support Huawei new devices with new bInterfaceSubClass value. Signed-off-by: fangxiaozhi

Re: LTE vodafone K5150 (hilink) 12d1 1f16 ; 12d1 1575 cdc_ether mbim?

2013-10-11 Thread Bjørn Mork
Thomas Schäfer tschae...@t-online.de writes: Bjørn writes: Could be the driver. I don't know if it is ever tested with IPv6, and it does a bit of header magic so it is possible to screw up. Of course, the same goes for the firmware (including the testing, i assume :-) usbmon dumps would

Re: [GIT PULL] USB fixes for v3.12-rc

2013-10-11 Thread Greg KH
On Fri, Oct 11, 2013 at 11:22:25AM -0500, Felipe Balbi wrote: Hi Greg, My last round of fixes, just one this time on MUSB. It should now work on peripheral-only configurations. The following changes since commit b377216bd2d313b393ddd4b04c71f700842d104b: usb: gadget: s3c-hsotg: fix

Re: [Pull Request v2] xhci: Bug fixes and quirks for 3.12

2013-10-11 Thread Greg Kroah-Hartman
On Fri, Oct 11, 2013 at 11:36:57AM -0700, Sarah Sharp wrote: Ping. Have a couple more patches to send you for 3.12, can you pull this? Now pulled, I was on a plane from Korea, so patience please, I have no idea what day it is anymore (two days of flying for 2 days of meetings, not a good

Re: [PATCH 1/1] usb: chipidea: udc: Fix spinlock recursion during bus reset

2013-10-11 Thread Greg KH
On Wed, Oct 09, 2013 at 02:39:52PM +0800, Peter Chen wrote: After configuration, the host also possible sends bus reset at any time, at such situation, it will trigger below spinlock recursion dump. This commit unlocks the spinlock before calling gadget's disconnect. BUG: spinlock recursion

Re: [PATCH 10/11] USB: EHCI: create per-TT bandwidth tables

2013-10-11 Thread Greg KH
On Fri, Oct 11, 2013 at 11:29:29AM -0400, Alan Stern wrote: This patch continues the scheduling changes in ehci-hcd by adding a table to store the bandwidth allocation below each TT. This will speed up the scheduling code, as it will no longer need to read through the entire schedule to

Re: [PATCH V2 4/5] USB: ohci-exynos: Add missing usb_put_hcd()

2013-10-11 Thread 'Greg Kroah-Hartman'
On Thu, Oct 10, 2013 at 04:42:22PM +0900, Jingoo Han wrote: When devm_usb_get_phy() fails, usb_put_hcd() should be called to prevent memory leak. Signed-off-by: Jingoo Han jg1@samsung.com Already applied this one, thanks. greg k-h -- To unsubscribe from this list: send the line

Re: [PATCH V2 3/5] USB: ohci-exynos: Remove non-DT support

2013-10-11 Thread 'Greg Kroah-Hartman'
On Thu, Oct 10, 2013 at 04:41:49PM +0900, Jingoo Han wrote: The non-DT for EXYNOS SoCs is not supported from v3.11. Thus, there is no need to support non-DT for Exynos OHCI driver. The 'include/linux/platform_data/usb-ohci-exynos.h' file has been used for non-DT support. Thus, the

Re: [PATCH 0/4] USB: serial: patches for v3.13

2013-10-11 Thread Greg KH
On Wed, Oct 09, 2013 at 05:01:08PM +0200, Johan Hovold wrote: Here are four patches for v3.13. One bugfix, some comment clean ups, and a new memory-flags parameter for usb_serial_generic_write_start, which is also exported. What code is going to need this exported function? thanks, greg k-h

Re: [PATCH 4/6] drivers: usb: core: devio.c: Coding style fixes

2013-10-11 Thread Greg KH
On Thu, Oct 10, 2013 at 11:41:30PM +0200, Matthias Beyer wrote: @@ -1838,9 +1838,10 @@ static int proc_ioctl(struct dev_state *ps, struct usbdevfs_ioctl *ctl) return -ENODEV; } - if (ps-dev-state != USB_STATE_CONFIGURED) + if (ps-dev-state !=

Re: [PATCH 5/6] drivers: usb: core: devio.c: Braces around switch

2013-10-11 Thread Greg KH
On Thu, Oct 10, 2013 at 11:41:31PM +0200, Matthias Beyer wrote: Added braces around switch statement as the styleguide tells us. Indented the switch-block for it and split a function call (driver-unlocked_ioctl() on line 1876) arguments to several lines to fit the 80-column convention.

Re: [PATCH 0/6] drivers: usb: core: Adapt source to styleguide

2013-10-11 Thread Greg KH
On Thu, Oct 10, 2013 at 11:41:26PM +0200, Matthias Beyer wrote: Hi, I patches several files in drivers/usb/core/ to adapt them to the kernel styleguide. Most of these patches are whitespace/indention fixes. As these patches are only style-patches, I just compiled the kernel, no

Re: [PATCH 0/4] USB: serial: patches for v3.13

2013-10-11 Thread Johan Hovold
On Fri, Oct 11, 2013 at 05:00:11PM -0700, Greg KH wrote: On Wed, Oct 09, 2013 at 05:01:08PM +0200, Johan Hovold wrote: Here are four patches for v3.13. One bugfix, some comment clean ups, and a new memory-flags parameter for usb_serial_generic_write_start, which is also exported. What

Re: [PATCH] xhci: Ensure a command structure points to the correct trb on the command ring

2013-10-11 Thread Xiao Jin
Sarah, As you said, I make a mistake and send wrong patch. I am sorry for it. On Fri, 2013-10-11 at 10:28 -0700, Sarah Sharp wrote: On Fri, Oct 11, 2013 at 10:25:23AM -0700, Sarah Sharp wrote: Hi Xiao, I think you did something odd when you tried to send me the latest revision of your

RE: When USB PHY framework should be used?

2013-10-11 Thread Chen Peter-B29397
I think you should have a wrapper driver to EHCI/OHCI to handle this reset. Thank you Kishon and Peter for the quick replies. Is there any good example of such a wrapper driver in the kernel already? chipidea, dwc3, etc. -- To unsubscribe from this list: send the line unsubscribe

Re: [PATCH 10/11] USB: EHCI: create per-TT bandwidth tables

2013-10-11 Thread Alan Stern
On Fri, 11 Oct 2013, Greg KH wrote: On Fri, Oct 11, 2013 at 11:29:29AM -0400, Alan Stern wrote: This patch continues the scheduling changes in ehci-hcd by adding a table to store the bandwidth allocation below each TT. This will speed up the scheduling code, as it will no longer need to

[PATCH 10/11 v.2] USB: EHCI: create per-TT bandwidth tables

2013-10-11 Thread Alan Stern
This patch continues the scheduling changes in ehci-hcd by adding a table to store the bandwidth allocation below each TT. This will speed up the scheduling code, as it will no longer need to read through the entire schedule to compute the bandwidth currently in use. Properly speaking, the FS/LS

RE: [PATCH 1/1] support new huawei devices in option.c

2013-10-11 Thread Fangxiaozhi (Franko)
Dear Greg: -Original Message- From: gre...@linuxfoundation.org [mailto:gre...@linuxfoundation.org] Sent: Saturday, October 12, 2013 4:58 AM To: Fangxiaozhi (Franko) Cc: linux-usb@vger.kernel.org; linux-ker...@vger.kernel.org; Heyongquan; Wangyuhua; Yili (Neil) Subject: Re: [PATCH 1/1]

Re: [PATCH 2/2] xhci: fix last valid endpoint when dropping an endpoint

2013-10-11 Thread Xenia Ragiadakou
On 10/11/2013 09:26 PM, Sarah Sharp wrote: On Fri, Oct 11, 2013 at 07:30:17PM +0300, Xenia Ragiadakou wrote: [snip] To test if a smaller value will cause a problem, I reset first endpoint 4 and, then, endpoint 3 so that the Context Entries field get updated with the value 3 while the actual