[PATCHv2] devicetree: bindings: document lsi,zevio-usb

2014-03-05 Thread dt . tangr
From: Daniel Tang Signed-off-by: Daniel Tang --- .../devicetree/bindings/usb/ci-hdrc-zevio.txt | 17 + 1 file changed, 17 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/ci-hdrc-zevio.txt diff --git a/Documentation/devicetree/bindings/usb/ci-h

[PATCH RESEND] arm: nspire: modify device tree to use the lsi,zevio-usb driver

2014-03-05 Thread dt . tangr
From: Daniel Tang Signed-off-by: Daniel Tang --- arch/arm/boot/dts/nspire.dtsi |1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/nspire.dtsi b/arch/arm/boot/dts/nspire.dtsi index a22ffe6..012c6d1 100644 --- a/arch/arm/boot/dts/nspire.dtsi +++ b/arch/arm/boot/dts/nspire.d

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

2014-03-05 Thread Kamil Debski
Hi Sander, > From: Kamil Debski [mailto:k.deb...@samsung.com] > Sent: Tuesday, March 04, 2014 4:24 PM > > Add a new driver for the Exynos USB 2.0 PHY. The new driver uses the > generic PHY framework. The driver includes support for the Exynos 4210 > and 4x12 SoC families. > > Signed-off-by: Kami

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

2014-03-05 Thread Peter Chen
On Thu, Feb 27, 2014 at 07:38:25AM +0800, Li Jun wrote: > Add OTG HNP and SRP operation functions implementation: > - charge vbus > - drive vbus > - connection signaling > - drive sof > - start data pulse > - add fsm timer > - delete fsm timer > - start host > - start gadget > > Signed-off-by: Li

RE: ax88179_178a problems on AMD platform with ASMedia xhci controller

2014-03-05 Thread David Laight
From: Of David Laight > I've just installed the latest 3.14.0-rc5 kernel on an AMD box that > has the ASMedia 1042 xhci controller and an ASX ax88179 USB3 Ge card. > > This is still working as badly as it did last time I tried it. > (When I added a lot of diagnostics to try to find out what was wr

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

2014-03-05 Thread Poulain, Loic
Hi, I think there is an issue with the reset-resume mechanism during USB runtime resume, leaving the interfaces suspended forever. - Context: Android platform, running a 3.13 + Google AOSP patches kernel. I'm facing a USB issue with the bsusb driver. btusb driver has the USB runtime suspend en

Re: xhci-errors in combination with dm-crypt

2014-03-05 Thread Merlin Chlosta
On 04.03.2014 23:57, Sarah Sharp wrote: > In a separate mail, you said 3.10.30-1-lts also works. We do have one > known regression for USB mass storage. If you compile your own kernel, > please retest with 3.14-rc4 with these two commits reverted: > > 3804fad45411b48233b48003e33a78f290d227c8 "US

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

2014-03-05 Thread Dan Carpenter
On Tue, Mar 04, 2014 at 09:10:41PM +0200, Valentina Manea wrote: > diff --git a/drivers/staging/usbip/userspace/libsrc/usbip_common.h > b/drivers/staging/usbip/userspace/libsrc/usbip_common.h > index 2cb81b3..565ac78 100644 > --- a/drivers/staging/usbip/userspace/libsrc/usbip_common.h > +++ b/driv

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

2014-03-05 Thread Dan Carpenter
On Tue, Mar 04, 2014 at 09:10:41PM +0200, Valentina Manea wrote: > +int write_sysfs_attribute(const char *attr_path, const char *new_value, > + size_t len) > +{ > + int fd; > + int length; > + > + if (attr_path == NULL || new_value == NULL || len == 0) { Can any

[PATCH v5 04/14] usb: phy: msm: Fix checkpatch.pl warnings

2014-03-05 Thread Ivan T. Ivanov
From: "Ivan T. Ivanov" This fixes following: WARNING: quoted string split across lines WARNING: Prefer seq_puts to seq_printf Signed-off-by: Ivan T. Ivanov --- drivers/usb/phy/phy-msm-usb.c | 39 ++- 1 file changed, 14 insertions(+), 25 deletions(-) diff

[PATCH v5 01/14] usb: phy: msm: Move global regulators variables to driver state

2014-03-05 Thread Ivan T. Ivanov
From: "Ivan T. Ivanov" Signed-off-by: Ivan T. Ivanov --- drivers/usb/phy/phy-msm-usb.c | 82 - include/linux/usb/msm_hsusb.h |3 ++ 2 files changed, 42 insertions(+), 43 deletions(-) diff --git a/drivers/usb/phy/phy-msm-usb.c b/drivers/usb/phy/phy-

[PATCH v5 13/14] usb: phy: msm: Handle disconnect events

2014-03-05 Thread Ivan T. Ivanov
From: "Ivan T. Ivanov" Put the transceiver in non-driving mode. Otherwise host may not detect soft-disconnection. Signed-off-by: Ivan T. Ivanov Cc: Pavankumar Kondeti --- drivers/usb/phy/phy-msm-usb.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/drivers/usb/phy/ph

Re: [PATCH 06/12] staging: usbip: userspace: add new list API

2014-03-05 Thread Dan Carpenter
On Tue, Mar 04, 2014 at 10:35:39PM -0800, Greg KH wrote: > On Tue, Mar 04, 2014 at 09:10:46PM +0200, Valentina Manea wrote: > > Add a new list API from CCAN. > > Why can't you just take the one from the kernel, as userspace is GPLv2 > code, right? > > And are you sure CC0 is a "valid" license tha

[PATCH v5 14/14] usb: phy: msm: Vote for corner of VDD CX instead of voltage of VDD CX

2014-03-05 Thread Ivan T. Ivanov
From: "Ivan T. Ivanov" New platform uses RBCPR hardware feature, with that voting for absolute voltage of VDD CX is not required. Hence vote for corner of VDD CX which uses nominal corner voltage on VDD CX. Signed-off-by: Ivan T. Ivanov Cc: Mayank Rana --- .../devicetree/bindings/usb/msm-hsus

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

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

[PATCH v5 03/14] usb: phy: msm: Remove unnecessarily check for valid regulators.

2014-03-05 Thread Ivan T. Ivanov
From: "Ivan T. Ivanov" Whether regulators are available or not is checked at driver probe. If they are not available driver will refuse to load, so no need to check them again. Signed-off-by: Ivan T. Ivanov --- drivers/usb/phy/phy-msm-usb.c | 10 -- 1 file changed, 10 deletions(-) d

[PATCH v5 09/14] usb: phy: msm: Add device tree support and binding information

2014-03-05 Thread Ivan T. Ivanov
From: "Ivan T. Ivanov" Allows MSM OTG controller to be specified via device tree. Signed-off-by: Ivan T. Ivanov --- .../devicetree/bindings/usb/msm-hsusb.txt | 67 drivers/usb/phy/phy-msm-usb.c | 108 include/linux/usb/msm_hsus

[PATCH v5 12/14] usb: phy: msm: Correct USB PHY Reset sequence for newer platform

2014-03-05 Thread Ivan T. Ivanov
From: "Ivan T. Ivanov" On few legacy platforms, USB PHY is having dedicated reset clk. It is used to reset USB PHY after putting USB PHY into low power mode and for calibration of USB PHY. Putting USB PHY into low power mode is causing ulpi read/write timeout as expected. USB PHY reset clk is not

[PATCH v5 11/14] usb: phy: msm: Add support for secondary PHY control

2014-03-05 Thread Ivan T. Ivanov
From: "Ivan T. Ivanov" Allow support to use 2nd HSPHY with USB2 Core. Some platforms may have configuration to allow USB controller work with any of the two HSPHYs present. By default driver configures USB core to use primary HSPHY. Add support to allow user select 2nd HSPHY using DT parameter.

[PATCH v5 00/14] usb: phy: msm: Fixes, cleanups and DT support

2014-03-05 Thread Ivan T. Ivanov
From: "Ivan T. Ivanov" Hi, This is a fifth version of patches posted earlier here [1]. They have been tested on AP8074 DragonBoard. Only gadget mode utilized for now. CV Test Suite engine "Chapter 9 tests" are passing except "Halt Endpoint Test". usbtest driver report following failure: test

[PATCH v5 10/14] usb: phy: msm: Use reset framework for LINK and PHY resets

2014-03-05 Thread Ivan T. Ivanov
From: "Ivan T. Ivanov" Signed-off-by: Ivan T. Ivanov --- drivers/usb/phy/phy-msm-usb.c | 30 ++ include/linux/usb/msm_hsusb.h |3 +++ 2 files changed, 25 insertions(+), 8 deletions(-) diff --git a/drivers/usb/phy/phy-msm-usb.c b/drivers/usb/phy/phy-msm-usb.c i

[PATCH v5 02/14] usb: phy: msm: Migrate to Managed Device Resource allocation

2014-03-05 Thread Ivan T. Ivanov
From: "Ivan T. Ivanov" Move memory, regulators, clocks and irq allocation to devm_* variants. Properly check for valid clk handles. Signed-off-by: Ivan T. Ivanov --- drivers/usb/phy/phy-msm-usb.c | 192 - 1 file changed, 74 insertions(+), 118 deletions(

[PATCH v5 05/14] usb: phy: msm: Replace custom enum usb_mode_type with enum usb_dr_mode

2014-03-05 Thread Ivan T. Ivanov
From: "Ivan T. Ivanov" Use enum usb_dr_mode and drop default usb_dr_mode from platform data. USB DT bindings states: dr_mode: "...In case this attribute isn't passed via DT, USB DRD controllers should default to OTG...", so remove redundand field. Signed-off-by: Ivan T. Ivanov Acked-by: David

[PATCH v5 06/14] usb: phy: msm: Remove unused pclk_src_name

2014-03-05 Thread Ivan T. Ivanov
From: "Ivan T. Ivanov" There are no references to 'pclk_src_name' in plaform code, so it is unused. Signed-off-by: Ivan T. Ivanov --- drivers/usb/phy/phy-msm-usb.c | 26 +- include/linux/usb/msm_hsusb.h |5 - 2 files changed, 1 insertion(+), 30 deletions(-) d

[PATCH v5 07/14] usb: phy: msm: Remove HSUSB prefix from regulator names

2014-03-05 Thread Ivan T. Ivanov
From: "Ivan T. Ivanov" Prefix did not bring any useful information. Currently none of the MSM platforms define these regulators, so it is safe to rename them. Signed-off-by: Ivan T. Ivanov --- drivers/usb/phy/phy-msm-usb.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --

[PATCH v5 08/14] usb: phy: msm: Properly check result from platform_get_irq()

2014-03-05 Thread Ivan T. Ivanov
From: "Ivan T. Ivanov" Function return negative code on error. Signed-off-by: Ivan T. Ivanov --- drivers/usb/phy/phy-msm-usb.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/phy/phy-msm-usb.c b/drivers/usb/phy/phy-msm-usb.c index c2048c7..31fb916 100644 ---

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

2014-03-05 Thread Roger Quadros
On 03/04/2014 06:28 PM, Tony Lindgren wrote: > * Roger Quadros [140304 01:17]: >> Hi Tony, >> >> On 03/03/2014 09:02 PM, Tony Lindgren wrote: >>> * Roger Quadros [140303 07:10]: Move omap-control binding information to the right location. Signed-off-by: Roger Quadros ---

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

2014-03-05 Thread George Cherian
On 2/26/2014 1:10 AM, Felipe Balbi wrote: We must read HWPARAMS4 register to figure out how many scratch buffers we should allocate. Later patch will use "Set Scratchpad Buffer Array" command to pass the pointer to the IP so it can be used during hibernation. Signed-off-by: Felipe Balbi ---

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

2014-03-05 Thread Kishon Vijay Abraham I
Hi, On Tuesday 04 March 2014 08:53 PM, Kamil Debski wrote: Hi, This is the seventh version of this patchset. First and most significant change is that this patchset includes only patches touching the Generic PHY Framework. Patches to the USB controllers were stripped as they require additional

Loan Application

2014-03-05 Thread Loans
Loan Application at a low rate of 0.5% send your Name,Amount,Phone and country to standar...@56788.com Note: $5,000.00 USD minimum and $100,000,000 Maximum. -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.org More majordomo

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

2014-03-05 Thread Christian Riesch
Signed-off-by: Christian Riesch Cc: Felipe Balbi --- Hi, I have successfully tested this driver with kernel 3.14-rc5 on a custom Texas Instruments AM1808 board in gadget mode, RNDIS network gadget. Therefore I think the dependency on BROKEN can be removed. Commit 787f5627bec80094db487bfcb401e97

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

2014-03-05 Thread Roger Quadros
+ George Tony, On 03/04/2014 06:28 PM, Tony Lindgren wrote: > * Roger Quadros [140304 01:17]: >> Hi Tony, >> >> On 03/03/2014 09:02 PM, Tony Lindgren wrote: >>> * Roger Quadros [140303 07:10]: Move omap-control binding information to the right location. Signed-off-by: Roger Quadr

Re: [PATCH v5 10/14] usb: phy: msm: Use reset framework for LINK and PHY resets

2014-03-05 Thread Sergei Shtylyov
Hello. On 05-03-2014 14:13, Ivan T. Ivanov wrote: From: "Ivan T. Ivanov" Signed-off-by: Ivan T. Ivanov --- drivers/usb/phy/phy-msm-usb.c | 30 ++ include/linux/usb/msm_hsusb.h |3 +++ 2 files changed, 25 insertions(+), 8 deletions(-) diff --git a/dr

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

USB remote wakeup through gpio interrupt

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Re: USB remote wakeup through gpio interrupt

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

USB Host support for mx25

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

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

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

  1   2   >