Re: [PATCH v2 1/2] USB: at91: fix the number of endpoint parameter

2014-02-19 Thread Nicolas Ferre
On 19/02/2014 03:07, Bo Shen : In sama5d3 SoC, there are 16 endpoints, which is different with earlier SoCs (only have 7 endpoints). The USBA_NR_ENDPOINTS micro you should read macro. is not suitable for sama5d3. So, get the endpoints number through the udc-num_ep, which get from platform

Re: [PATCH v2 2/2] USB: at91: using USBA_NR_DMAS for DMA channels

2014-02-19 Thread Nicolas Ferre
On 19/02/2014 03:07, Bo Shen : The SoCs earlier than sama5d3, they have the same number endpoints and DMA channels. In driver code, they use the same definition USBA_NR_ENDPOINTS for both endpoints and dma channels. However, in sama5d3, it has different number for endpoints and DMA channels.

Re: [EHCI Debug Port] Linux fails to setup EHCI debug port

2014-02-19 Thread Lu, Baolu
Thanks for reply and help. I attached an Ajays NET20DC to the USB port. It seems not help here. Below is the dmesg and lsusb output. [root@localhost ~]# uname -a Linux localhost.localdomain 3.12.8 #2 SMP Tue Feb 18 06:09:46 CST 2014 x86_64 x86_64 x86_64 GNU/Linux [root@localhost ~]# lsusb

[PATCH] usb: ehci: fix deadlock when threadirqs option is used

2014-02-19 Thread Stanislaw Gruszka
ehci_irq() and ehci_hrtimer_func() can deadlock on ehci-lock when threadirqs option is used. To prevent the deadlock use spin_lock_irqsave() in ehci_irq(). This change can be reverted when hrtimer callbacks become threaded. Signed-off-by: Stanislaw Gruszka sgrus...@redhat.com ---

Re: [PATCH] USB: gadget: remove unused parameter from udc_stop in usb_gadget_ops

2014-02-19 Thread Robert Baldyga
On 02/18/2014 04:39 PM, Felipe Balbi wrote: On Tue, Dec 17, 2013 at 09:40:35AM +0100, Robert Baldyga wrote: This patch removes parameter struct usb_gadget_driver* from udc_stop() function in struct usb_gadget_ops. This parameter is useless in udc_stop() function, and UDC drivers can work

[PATCH] xhci: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-02-19 Thread Alexander Gordeev
As result of deprecation of MSI-X/MSI enablement functions pci_enable_msix() and pci_enable_msi_block() all drivers using these two interfaces need to be updated to use the new pci_enable_msi_range() and pci_enable_msix_range() interfaces. This update also cleans up a bit xhci_setup_msi() and

Re: [PATCH v2 0/3] usb: chipidea: msm: Clean and fix glue layer driver

2014-02-19 Thread Ivan T. Ivanov
Hi, I will need some time to recreate USB test environment. I will come back when I am ready. Regards, Ivan -- 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

Re: [PATCH 1/2] usb: dwc3: core: continue probing if usb phy library returns -ENODEV/-ENXIO

2014-02-19 Thread Roger Quadros
Hi, On 02/12/2014 11:46 AM, Kishon Vijay Abraham I wrote: On Wednesday 29 January 2014 08:17 PM, Heikki Krogerus wrote: Hi, On Tue, Jan 28, 2014 at 10:30:36AM -0600, Felipe Balbi wrote: On Tue, Jan 28, 2014 at 05:32:30PM +0200, Heikki Krogerus wrote: On Mon, Jan 27, 2014 at 10:05:20AM

RE: [PATCH net-next 12/14] r8152: replace netif_rxwithnetif_receive_skb

2014-02-19 Thread hayeswang
Francois Romieu [mailto:rom...@fr.zoreil.com] Sent: Wednesday, February 19, 2014 3:47 PM To: hayeswang Cc: net...@vger.kernel.org; nic_s...@realtek.com; linux-ker...@vger.kernel.org; linux-usb@vger.kernel.org Subject: Re: [PATCH net-next 12/14] r8152: replace

Re: musb - babble interrupt recovery

2014-02-19 Thread Daniel Mack
On 02/18/2014 02:44 AM, Michal Å mucr wrote: during searching for solution to problem with Beaglebone Black USB unreliable reconnections, which i had, when i tried to reconnect devices to external powered hub, I came to that older patch from Ravi Babu, which restarts musb after babble

Re: [PATCH v2 0/3] usb: chipidea: msm: Clean and fix glue layer driver

2014-02-19 Thread Ivan T. Ivanov
Hi Tim, On Tue, 2014-02-18 at 22:21 -0800, Tim Bird wrote: Ivan, I'm having tremendous problems getting this driver to initialize. For some reason, I can't get the driver to actually transition the hardware into peripheral mode. At first I was getting a lot of probe deferrals, based

Re: HSIC on imx6

2014-02-19 Thread Christian Gmeiner
Hi Peter, 2014-02-18 1:57 GMT+01:00 Peter Chen peter.c...@freescale.com: On Mon, Feb 17, 2014 at 08:23:38AM +0100, Christian Gmeiner wrote: Hi Peter 2014-02-17 2:22 GMT+01:00 Peter Chen peter.c...@freescale.com: On Fri, Feb 14, 2014 at 01:59:56PM +0100, Christian Gmeiner wrote: Hi Peter.

Re: [PATCH] usb: ehci: fix deadlock when threadirqs option is used

2014-02-19 Thread Alan Stern
On Wed, 19 Feb 2014, Stanislaw Gruszka wrote: ehci_irq() and ehci_hrtimer_func() can deadlock on ehci-lock when threadirqs option is used. To prevent the deadlock use spin_lock_irqsave() in ehci_irq(). This change can be reverted when hrtimer callbacks become threaded. Signed-off-by:

Re: [EHCI Debug Port] Linux fails to setup EHCI debug port

2014-02-19 Thread Alan Stern
On Wed, 19 Feb 2014, Lu, Baolu wrote: Thanks for reply and help. I attached an Ajays NET20DC to the USB port. It seems not help here. Below is the dmesg and lsusb output. [root@localhost ~]# uname -a Linux localhost.localdomain 3.12.8 #2 SMP Tue Feb 18 06:09:46 CST 2014 x86_64 x86_64

RE: [EHCI Debug Port] Linux fails to setup EHCI debug port

2014-02-19 Thread David Laight
It is quite possible that the debug port on this motherboard is not wired to a USB connector. If that's true, the only way you will get the debug device to work is by connecting it directly to a header on the motherboard. Is that likely to be the single USB header on many motherboards?

RE: [EHCI Debug Port] Linux fails to setup EHCI debug port

2014-02-19 Thread Alan Stern
On Wed, 19 Feb 2014, David Laight wrote: It is quite possible that the debug port on this motherboard is not wired to a USB connector. If that's true, the only way you will get the debug device to work is by connecting it directly to a header on the motherboard. Is that likely to be

Re: [PATCH v2 2/3] usb: chipidea: msm: Add device tree support

2014-02-19 Thread Ivan T. Ivanov
Hi, On Tue, 2014-02-18 at 21:31 +0300, Sergei Shtylyov wrote: On 02/18/2014 08:14 PM, Ivan T. Ivanov wrote: From: Ivan T. Ivanov iiva...@mm-sol.com Allows controller to be specified via device tree. Pass PHY phandle specified in DT to core driver. Signed-off-by: Ivan T. Ivanov

Re: [OPW] USB subsystem questions

2014-02-19 Thread Alan Stern
On Tue, 18 Feb 2014, Valentina Manea wrote: I managed to get it working but I think what I did is rather flawed. The problem is where I get that struct dev_state *owner parameter from. The closest to this I found to be the filelist member in struct usb_device. So I got the owner as:

[xhci_hcd] reset SuperSpeed, xhci_drop_endpoint called with disabled ep, Error in queuecommand_lck: task blocked

2014-02-19 Thread Andreas Reis
Hi, this is an updated copy of my report at: https://bugzilla.kernel.org/show_bug.cgi?id=70781 The two dmesg reports can be found there. Regards, Andreas Reis --- [xhci_hcd] reset SuperSpeed, xhci_drop_endpoint called with disabled ep, Error in queuecommand_lck: task blocked Corsair

Re: USB to Serial converter code pl2303

2014-02-19 Thread Magnus
[ Please make sure to CC the linux-usb list as well. ] Sure Johan. I have visited several stores today that should have had either a null-modem or another type of USB to serial converter but unfortunately this was not the case. The store owners even thought that this should be something that they

Re: USB to Serial converter code pl2303

2014-02-19 Thread Johan Hovold
On Wed, Feb 19, 2014 at 05:44:20PM +0100, Magnus wrote: [ Please make sure to CC the linux-usb list as well. ] Sure Johan. [ And please try to avoid top-posting... ] The brand of this USB-Serial converter is sold by or as Plexgear or Marquant. Absolutely no info on the adapter is provided

Re: [xhci_hcd] reset SuperSpeed, xhci_drop_endpoint called with disabled ep, Error in queuecommand_lck: task blocked

2014-02-19 Thread Alan Stern
On Wed, 19 Feb 2014, Andreas Reis wrote: Hi, this is an updated copy of my report at: https://bugzilla.kernel.org/show_bug.cgi?id=70781 The two dmesg reports can be found there. Regards, Andreas Reis --- [xhci_hcd] reset SuperSpeed, xhci_drop_endpoint called with disabled ep,

Re: USB to Serial converter code pl2303

2014-02-19 Thread Johan Hovold
On Wed, Feb 19, 2014 at 06:05:54PM +0100, Karsten Malcher wrote: Am 19.02.2014 18:00, schrieb Johan Hovold: I need an adapter that can handle 2400 Baud to talk to the ft639/ede639 servo controller chip or possibly a pl2303 driver that is improved. The pl2303-driver can handle 2400 baud,

Re: USB to Serial converter code pl2303

2014-02-19 Thread Karsten Malcher
Am 19.02.2014 18:14, schrieb Johan Hovold: On Wed, Feb 19, 2014 at 06:05:54PM +0100, Karsten Malcher wrote: Am 19.02.2014 18:00, schrieb Johan Hovold: I need an adapter that can handle 2400 Baud to talk to the ft639/ede639 servo controller chip or possibly a pl2303 driver that is improved. The

Re: USB to Serial converter code pl2303

2014-02-19 Thread Karsten Malcher
Am 19.02.2014 18:00, schrieb Johan Hovold: I need an adapter that can handle 2400 Baud to talk to the ft639/ede639 servo controller chip or possibly a pl2303 driver that is improved. The pl2303-driver can handle 2400 baud, but not sure exactly what baud rates are available for a cloned/pirated

Re: [PATCH v2 2/3] usb: chipidea: msm: Add device tree support

2014-02-19 Thread Sergei Shtylyov
Hello. On 02/19/2014 06:48 PM, Ivan T. Ivanov wrote: From: Ivan T. Ivanov iiva...@mm-sol.com Allows controller to be specified via device tree. Pass PHY phandle specified in DT to core driver. Signed-off-by: Ivan T. Ivanov iiva...@mm-sol.com --- drivers/usb/chipidea/ci_hdrc_msm.c |

Re: [PATCH] usb: phy: msm: fix possible build error

2014-02-19 Thread Felipe Balbi
Hi, On Tue, Feb 18, 2014 at 10:28:06PM -0800, Stephen Boyd wrote: On 02/18, Felipe Balbi wrote: This will fail builds on configs where CONFIG_PM_RUNTIME=y and CONFIG_PM_SLEEP=n. Following build error will show up: drivers/usb/phy/phy-msm-usb.c: In function

[PATCH v2 02/26] libusbg: Change gadget attributes size and names.

2014-02-19 Thread Krzysztof Opasiak
Rename all gadget attributes to be consistent with usb standard and libusb. Change also field size and order to allow direct memcpy from libusb_device_descriptor. Signed-off-by: Krzysztof Opasiak k.opas...@samsung.com --- examples/show-gadgets.c | 18 +++ include/usbg/usbg.h |

[PATCH v2 01/26] libusbg: Separate gadget attributes from gadget.

2014-02-19 Thread Krzysztof Opasiak
Gadget attributes should be placed in external structure because they are almost that same as USB device descriptor. Signed-off-by: Krzysztof Opasiak k.opas...@samsung.com --- examples/show-gadgets.c | 18 +- include/usbg/usbg.h | 28

[PATCH v2 04/26] libusbg: Use dedicated macro instead of copy-paste code.

2014-02-19 Thread Krzysztof Opasiak
Insterting in string order has been done few times. It was almost the same piece of code copied and pasted with some minor changes. All those pieces has been replaced with new macro INSERT_TAILQ_STRING_ORDER which does all the job. Signed-off-by: Krzysztof Opasiak k.opas...@samsung.com ---

[PATCH v2 03/26] libusbg: Separate gadget strings from gadget.

2014-02-19 Thread Krzysztof Opasiak
Gadget strings are not logically part of gadget, so should be separated. Signed-off-by: Krzysztof Opasiak k.opas...@samsung.com --- examples/show-gadgets.c |6 +++--- include/usbg/usbg.h | 14 +++--- src/usbg.c | 20 ++-- 3 files changed, 24

[PATCH v2 07/26] libusbg: Fix wrong paths while setting gadget attributes.

2014-02-19 Thread Krzysztof Opasiak
Add missing gadget name to path while writting gadget attributes. Signed-off-by: Krzysztof Opasiak k.opas...@samsung.com --- src/usbg.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/usbg.c b/src/usbg.c index cc06182..98a86c8 100644 --- a/src/usbg.c

[PATCH v2 08/26] libusbg: Add functions to set all strs and attrs with one call.

2014-02-19 Thread Krzysztof Opasiak
Rename usbg_create_gadget() to usbg_create_vid_pid(). dd usbg_create_gadget() to allow gadget creation with given attributes and strings. Add usbg_set_gadget_attrs() which allow to set all attributes with one call. Add usbg_set_gadget_strs() which allow to set all strings with one call. Gadget

[PATCH v2 06/26] libsubg: Add missing set vendor/product functions.

2014-02-19 Thread Krzysztof Opasiak
Setting idVendor and idProduct was allowed only when creating new gadget. Add usbg_set_gadget_vendor_id() and usbg_set_gadget_product_id() to allow set those values on existing gadget. Signed-off-by: Krzysztof Opasiak k.opas...@samsung.com --- include/usbg/usbg.h | 14 ++

[PATCH v2 05/26] libusbg: Update strings only when writting US English strings.

2014-02-19 Thread Krzysztof Opasiak
Strings in current verison of library are hardcoded to US English. Functions which set strings are generic and allow to set other languages, but internal library structures should be update only when setting US English strings. Signed-off-by: Krzysztof Opasiak k.opas...@samsung.com ---

[PATCH v2 09/26] libusbg: Add getters for gadget strings and attributes.

2014-02-19 Thread Krzysztof Opasiak
Add getter's to avoid direct access to gadget structure members. Signed-off-by: Krzysztof Opasiak k.opas...@samsung.com --- include/usbg/usbg.h | 18 ++ src/usbg.c | 22 ++ 2 files changed, 40 insertions(+) diff --git a/include/usbg/usbg.h

[PATCH v2 13/26] libusbg: Separate config attrs and strs form configuration.

2014-02-19 Thread Krzysztof Opasiak
Configuration, its attributes and strings are all logically independent so should be placed in separate structures. Signed-off-by: Krzysztof Opasiak k.opas...@samsung.com --- examples/show-gadgets.c |6 +++--- include/usbg/usbg.h | 32 +--- src/usbg.c

[PATCH v2 10/26] libusbg: Add getter for gadget name and udc.

2014-02-19 Thread Krzysztof Opasiak
Add usbg_get_gadget_name() and usbg_get_gadget_udc() to avoid direct gadget structure members access. Add also usbg_get_gadget_name_len() and usbg_get_gadget_udc_len() to allow getting udc and name length. Signed-off-by: Krzysztof Opasiak k.opas...@samsung.com --- include/usbg/usbg.h | 34

[PATCH v2 11/26] libusbg: Change for each macros to avoid direct access to fields.

2014-02-19 Thread Krzysztof Opasiak
Add dedicated functions for iterating over gadgets, configs, bindigs and functions to avoid direct access to fields of this structures. Change definitons of usbg_for_each_* macros to use new functions. Signed-off-by: Krzysztof Opasiak k.opas...@samsung.com --- include/usbg/usbg.h | 80

[PATCH v2 16/26] libusbg: Remove function_names from header file.

2014-02-19 Thread Krzysztof Opasiak
function_names table is for internal usage only. User should use function_types enum. Signed-off-by: Krzysztof Opasiak k.opas...@samsung.com --- include/usbg/usbg.h | 17 - src/usbg.c | 17 + 2 files changed, 17 insertions(+), 17 deletions(-) diff

[PATCH v2 15/26] libusbg: Add getter for config name.

2014-02-19 Thread Krzysztof Opasiak
Add usbg_get_config_name() and usbg_get_config_name_len() to avoid direct config structure members access. Signed-off-by: Krzysztof Opasiak k.opas...@samsung.com --- include/usbg/usbg.h | 16 src/usbg.c | 10 ++ 2 files changed, 26 insertions(+) diff --git

[PATCH v2 14/26] libusbg: Add set/get config attrs/strings functions.

2014-02-19 Thread Krzysztof Opasiak
Add usbg_set_config_attrs() function to allow setting all attributes with one call. Add also getter for attrs to avoid direct accessing of configuration fields. Add usbg_set_config_strs() to be consistent with gadget API. Change usbg_create_config() to allow configuration creation and attribute

[PATCH v2 24/26] libusbg: Hide definition of binding structure.

2014-02-19 Thread Krzysztof Opasiak
Hide definition of binding structure to avoid direct access to its fields. Rename it to usbg_binding. Signed-off-by: Krzysztof Opasiak k.opas...@samsung.com --- examples/show-gadgets.c |9 + include/usbg/usbg.h | 31 +++ src/usbg.c |

[PATCH v2 21/26] libusbg: Hide definition of gadget structure.

2014-02-19 Thread Krzysztof Opasiak
Remove definition of gadget structure to avoid direct access to its fields. Rename that structure to usbg_gadget. Signed-off-by: Krzysztof Opasiak k.opas...@samsung.com --- examples/gadget-acm-ecm.c |2 +- examples/show-gadgets.c | 60 ++ include/usbg/usbg.h

[PATCH v2 22/26] libusbg: Hide definition of config structure.

2014-02-19 Thread Krzysztof Opasiak
Hide definition of config structure to avoid direct access to its fields. Rename it to usbg_confg. Signed-off-by: Krzysztof Opasiak k.opas...@samsung.com --- examples/gadget-acm-ecm.c |2 +- examples/show-gadgets.c |4 +-- include/usbg/usbg.h | 54

[PATCH v2 23/26] libusbg: Hide definition of function structure.

2014-02-19 Thread Krzysztof Opasiak
Hide definition of function structure to avoid direct access to its fields. Rename it to usbg_function. Signed-off-by: Krzysztof Opasiak k.opas...@samsung.com --- examples/gadget-acm-ecm.c |4 +-- examples/show-gadgets.c | 36 --- include/usbg/usbg.h | 53

[PATCH v2 17/26] libusbg: Add functions for get/set function attributes.

2014-02-19 Thread Krzysztof Opasiak
Add usbg_get_function_attrs() and usbg_get_function_type() to aviod direct access to function structure members. Add usbg_set_function_attrs() to allow set all function\ attributes with one call. Signed-off-by: Krzysztof Opasiak k.opas...@samsung.com --- examples/gadget-acm-ecm.c |6 ++---

[PATCH v2 25/26] libusbg: Rename all public structures to usbg convention.

2014-02-19 Thread Krzysztof Opasiak
Switch form struct * to typedef usbg_* to provide convenient API for user. Signed-off-by: Krzysztof Opasiak k.opas...@samsung.com --- examples/show-gadgets.c | 10 ++--- include/usbg/usbg.h | 100 +++ src/usbg.c | 58

[PATCH v2 26/26] libusbg: Update examples to new API.

2014-02-19 Thread Krzysztof Opasiak
API of library has been changed, so it is necessary to update examples of library usage. Signed-off-by: Krzysztof Opasiak k.opas...@samsung.com --- examples/gadget-acm-ecm.c | 30 -- 1 file changed, 24 insertions(+), 6 deletions(-) diff --git

[PATCH v2 20/26] libusbg: Hide definition of state structure.

2014-02-19 Thread Krzysztof Opasiak
Hide definition of state structure to avoid direct access to its fields. Rename it to usbg_state. Signed-off-by: Krzysztof Opasiak k.opas...@samsung.com --- examples/gadget-acm-ecm.c |2 +- examples/show-gadgets.c |2 +- include/usbg/usbg.h | 31 +++

[PATCH v2 18/26] libusbg: Add getter for function name.

2014-02-19 Thread Krzysztof Opasiak
Add usbg_get_function_name() and usbg_get_function_name_len() to avoid direct function structure members access. Signed-off-by: Krzysztof Opasiak k.opas...@samsung.com --- include/usbg/usbg.h | 16 src/usbg.c | 10 ++ 2 files changed, 26 insertions(+) diff

[PATCH v2 19/26] libusbg: Add getter for binding name and target.

2014-02-19 Thread Krzysztof Opasiak
Add usbg_get_binding_target() to avoid direct binding structure members access. Add also usbg_get_binding_name_len() and usbg_get_binding_name() to allow getting binding name. Signed-off-by: Krzysztof Opasiak k.opas...@samsung.com --- include/usbg/usbg.h | 23 +++

[PATCH] USB: complain if userspace resets an active endpoint

2014-02-19 Thread Alan Stern
It is an error for a driver to call usb_clear_halt() or usb_reset_endpoint() while there are URBs queued for the endpoint, because the end result is not well defined. At the time the endpoint gets reset, it may or may not be actively running. As far as I know, no kernel drivers do this. But

Re: usb audio breaks ohci-pci

2014-02-19 Thread Alan Stern
On Fri, 14 Feb 2014, Dennis New wrote: Hmmm. Looking again at the data you collected, it appears that those quirks are not going to help. _Something_ has gone wrong, but it's hard to tell what. At first I thought maybe the OHCI controller had simply stopped generating interrupt

Re: [PATCH] USB: complain if userspace resets an active endpoint

2014-02-19 Thread Greg KH
On Wed, Feb 19, 2014 at 03:32:12PM -0500, Alan Stern wrote: It is an error for a driver to call usb_clear_halt() or usb_reset_endpoint() while there are URBs queued for the endpoint, because the end result is not well defined. At the time the endpoint gets reset, it may or may not be actively

RE: HSIC on imx6

2014-02-19 Thread Peter Chen
Okay that makes sense. In theory the ehci core should do the reset. Is there anything special regarding reset and HSIC? After pcd interrupt occurs, hsic will be treated as a normal ehci host. It seems more and more guys are working at hsic controller, I will try to submit

Re: [PATCH v2 1/6] usb: otg-fsm: add HNP polling operation function.

2014-02-19 Thread Felipe Balbi
Hi, On Wed, Feb 19, 2014 at 05:48:49AM +, Peter Chen wrote: On Mon, Jan 20, 2014 at 10:00:15AM +0800, Li Jun wrote: This patch adds HNP polling operation function for OTG fsm. Signed-off-by: Li Jun b47...@freescale.com --- drivers/usb/phy/phy-fsm-usb.c |2 ++

Re: [PATCH v2 0/3] usb: chipidea: msm: Clean and fix glue layer driver

2014-02-19 Thread Tim Bird
Thanks very much. I will try out the things you mention and let you know if I make progress. -- Tim On Wed, Feb 19, 2014 at 6:58 AM, Ivan T. Ivanov iiva...@mm-sol.com wrote: Hi Tim, On Tue, 2014-02-18 at 22:21 -0800, Tim Bird wrote: Ivan, I'm having tremendous problems getting this

RE: [PATCH v2 1/6] usb: otg-fsm: add HNP polling operation function.

2014-02-19 Thread Peter Chen
On Wed, Feb 19, 2014 at 05:48:49AM +, Peter Chen wrote: On Mon, Jan 20, 2014 at 10:00:15AM +0800, Li Jun wrote: This patch adds HNP polling operation function for OTG fsm. Signed-off-by: Li Jun b47...@freescale.com --- drivers/usb/phy/phy-fsm-usb.c |2 ++

[PATCH v10 00/15] Add power management support for mxs phy

2014-02-19 Thread Peter Chen
Hi Felipe Shawn, The serial adds power management support for MXS PHY, it includes: - Add one PHY API .set_wakeup, and related API implementation at mxs phy driver - misc changes and bug fixes for mxs phy to support low power mode and wakeup. It is based on the lastest Greg's usb-next,

[PATCH v10 04/15] usb: doc: phy-mxs: update binding for adding anatop phandle

2014-02-19 Thread Peter Chen
Add anatop phandle which is used to access anatop registers to control PHY's power and other USB operations. Signed-off-by: Peter Chen peter.c...@freescale.com --- Documentation/devicetree/bindings/usb/mxs-phy.txt |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git

[PATCH v10 03/15] usb: phy-mxs: Add auto clock and power setting

2014-02-19 Thread Peter Chen
The auto setting is used to open related power and clocks automatically after receiving wakeup signal. With this feature, the PHY's clock and power can be recovered correctly from low power mode, it is guaranteed by IC logic. Signed-off-by: Peter Chen peter.c...@freescale.com ---

[PATCH v10 06/15] usb: phy-mxs: change description of usb device speed

2014-02-19 Thread Peter Chen
Change high speed to HS Change non-high speed to FS/LS Implementation of notify_suspend and notify_resume will be different according to mxs_phy_data-flags. Signed-off-by: Peter Chen peter.c...@freescale.com --- drivers/usb/phy/phy-mxs-usb.c |8 1 files changed, 4 insertions(+), 4

[PATCH v10 01/15] usb: doc: phy-mxs: Add more compatible strings

2014-02-19 Thread Peter Chen
Add fsl,imx6q-usbphy for imx6dq and imx6dl, add fsl,imx6sl-usbphy for imx6sl. Signed-off-by: Peter Chen peter.c...@freescale.com --- Documentation/devicetree/bindings/usb/mxs-phy.txt |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git

[PATCH v10 02/15] usb: phy-mxs: Add platform judgement code

2014-02-19 Thread Peter Chen
The mxs-phy has several bugs and features at different versions, the driver code can get it through of_device_id.data. Signed-off-by: Peter Chen peter.c...@freescale.com --- drivers/usb/phy/phy-mxs-usb.c | 58 ++-- 1 files changed, 49 insertions(+), 9

[PATCH v10 07/15] usb: phy-mxs: Enable IC fixes for related SoCs

2014-02-19 Thread Peter Chen
Two PHY bugs are fixed by IC logic, but these bits are not enabled by default, so we enable them at driver. The two bugs are: MXS_PHY_ABNORMAL_IN_SUSPEND and MXS_PHY_SENDING_SOF_TOO_FAST which are described at code. Signed-off-by: Peter Chen peter.c...@freescale.com ---

[PATCH v10 05/15] usb: phy-mxs: Add anatop regmap

2014-02-19 Thread Peter Chen
It is needed by imx6 SoC series, but not for imx23 and imx28. Signed-off-by: Peter Chen peter.c...@freescale.com --- drivers/usb/phy/phy-mxs-usb.c | 15 +++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/drivers/usb/phy/phy-mxs-usb.c b/drivers/usb/phy/phy-mxs-usb.c

[PATCH v10 13/15] ARM: dts: mxs: add mxs phy controller id

2014-02-19 Thread Peter Chen
We need to use controller id to access different register regions for mxs phy. Signed-off-by: Peter Chen peter.c...@freescale.com Signed-off-by: Shawn Guo shawn@linaro.org --- arch/arm/boot/dts/imx23.dtsi |1 + arch/arm/boot/dts/imx28.dtsi |2 ++ 2 files changed, 3 insertions(+), 0

[PATCH v10 14/15] ARM: dts: imx6: add anatop phandle for usbphy

2014-02-19 Thread Peter Chen
Add anatop phandle for usbphy Signed-off-by: Peter Chen peter.c...@freescale.com Signed-off-by: Shawn Guo shawn@linaro.org --- arch/arm/boot/dts/imx6qdl.dtsi |2 ++ arch/arm/boot/dts/imx6sl.dtsi |2 ++ 2 files changed, 4 insertions(+), 0 deletions(-) diff --git

[PATCH v10 09/15] usb: phy: Add set_wakeup API

2014-02-19 Thread Peter Chen
This API is used to set wakeup enable at PHY registers, in that case, the PHY can be waken up from suspend due to external events, like vbus change, dp/dm change and id change. Signed-off-by: Peter Chen peter.c...@freescale.com --- include/linux/usb/phy.h | 16 1 files

[PATCH v10 12/15] usb: phy-mxs: Add sync time after controller clear phcd

2014-02-19 Thread Peter Chen
After clear portsc.phcd, PHY needs 200us stable time for switch 32K clock to AHB clock. Signed-off-by: Peter Chen peter.c...@freescale.com --- drivers/usb/phy/phy-mxs-usb.c | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/drivers/usb/phy/phy-mxs-usb.c

[PATCH v10 08/15] usb: phy-mxs: add controller id

2014-02-19 Thread Peter Chen
It is used to access un-regulator registers according to different controllers. Signed-off-by: Peter Chen peter.c...@freescale.com --- drivers/usb/phy/phy-mxs-usb.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/drivers/usb/phy/phy-mxs-usb.c

[PATCH v10 11/15] usb: phy-mxs: Add system suspend/resume API

2014-02-19 Thread Peter Chen
We need this to keep PHY's power on or off during the system suspend mode. If we need to enable USB wakeup, then we must keep PHY's power being on during the system suspend mode. Otherwise, we need to keep PHY's power being off to save power. Signed-off-by: Peter Chen peter.c...@freescale.com ---

[PATCH v10 10/15] usb: phy-mxs: Add implementation of set_wakeup

2014-02-19 Thread Peter Chen
When we need the PHY can be waken up by external signals, we can call this API. Besides, we call mxs_phy_disconnect_line at this API to close the connection between USB PHY and controller, after that, the line state from controller is SE0. Once the PHY is out of power, without calling

[PATCH v10 15/15] ARM: dts: imx6: add mxs phy controller id

2014-02-19 Thread Peter Chen
We need to use controller id to access different register regions for mxs phy. Signed-off-by: Peter Chen peter.c...@freescale.com Signed-off-by: Shawn Guo shawn@linaro.org --- arch/arm/boot/dts/imx6qdl.dtsi |2 ++ arch/arm/boot/dts/imx6sl.dtsi |2 ++ 2 files changed, 4

[PATCH] drivers: usb: udc-core: add deferred bind for gadget driver

2014-02-19 Thread Robert Baldyga
This patch adds support for deferred gadget driver bind as a remedy for situation when UDC drivers and gadget drivers are builded into the kernel, and gadget driver is loaded as first. Till now, it that case gadget driver loading failed with No such device and gadget driver didn't start. Now