[PATCH 1/1] [PATCH] ax88179_178a: Correct the RX error definition in RX header

2013-10-21 Thread freddy
From: Freddy Xin Correct the definition of AX_RXHDR_CRC_ERR and AX_RXHDR_DROP_ERR. They are BIT29 and BIT31 in pkt_hdr seperately. Add VID:DID for Samsung USB Ethernet Adapter. Signed-off-by: Freddy Xin --- drivers/net/usb/ax88179_178a.c | 23 --- 1 file changed, 20 inser

Re: [PATCH 1/5] uas: Deal with externally triggered reset, and fix reset locking

2013-10-21 Thread Oliver Neukum
On Thu, 2013-10-17 at 20:49 +0200, Hans de Goede wrote: > The uas driver is only capable of dealing with an usb-reset it has triggered > itself, fix the pre and post reset return values to reflect this. What happens if you get an external reset? This is bad, because we cannot rule it out, for exam

Re: When USB PHY framework should be used?

2013-10-21 Thread Kishon Vijay Abraham I
+Roman Hi, Sorry for the late reply.. On Monday 14 October 2013 11:47 PM, Arokux X wrote: > Dear Kishon, > > On Sat, Oct 12, 2013 at 12:07 PM, Kishon Vijay Abraham I > wrote: >> Hi, >> >> On Friday 11 October 2013 10:52 PM, Arokux X wrote: I think you should have a wrapper driver to EHCI

Re: [RFC] Does PHY UTMI data width belong to DWC2 or PHY binding?

2013-10-21 Thread Kishon Vijay Abraham I
On Friday 18 October 2013 07:42 PM, Matt Porter wrote: > This is a summary of an unresolved issue resulting from this thread: > http://www.spinics.net/lists/arm-kernel/msg277700.html > > The BCM281xx family of SoCs contain an OTG subsystem consisting of a > DWC2 HSOTG controller and an internal UT

[PATCH 0/4] usb: usbtest: support usb3.0 bos descriptor set test

2013-10-21 Thread Huang Rui
Hi all, The following patches implement Binary Device Object Store (BOS) descriptor set tests in section 9.6.2 of USB 3.0 SPEC. At current usbtest module, it only supports USB 2.0 chapter 9 tests, so this updates extend the testing scope to cover the USB 3.0 new descriptors. Thanks, Rui Huang Ru

[PATCH 2/4] usb: usbtest: support usb2 extension descriptor test

2013-10-21 Thread Huang Rui
In Test 9 of usbtest module, it is used for performing chapter 9 tests N times. USB2.0 Extension descriptor is one of the generic device-level capbility descriptors which added in section 9.6.2.1 of USB 3.0 spec. This patch adds to support getting usb2.0 extension descriptor test scenario for USB

[PATCH 4/4] usb: usbtest: support container id descriptor test

2013-10-21 Thread Huang Rui
In Test 9 of usbtest module, it is used for performing chapter 9 tests N times. Container ID descriptor is one of the generic device-level capbility descriptors which added in section 9.6.2.3 of USB 3.0 spec. This patch adds to support getting Container ID descriptor test scenario for USB 3.0. S

[PATCH 1/4] usb: usbtest: support bos descriptor test for usb 3.0

2013-10-21 Thread Huang Rui
In Test 9 of usbtest module, it is used for performing chapter 9 tests N times. This patch adds to support getting bos descriptor test scenario for USB 3.0. Signed-off-by: Huang Rui --- drivers/usb/misc/usbtest.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/usb/misc

[PATCH 3/4] usb: usbtest: support superspeed device capbility descriptor test

2013-10-21 Thread Huang Rui
In Test 9 of usbtest module, it is used for performing chapter 9 tests N times. SuperSpeed USB Device Capability descriptor is one of the generic device-level capbility descriptors which added in section 9.6.2.2 of USB 3.0 spec. This patch adds to support getting SuperSpeed USB Device Capability

Re: [PATCH] extcon: palmas: Handle ID interrupt properly using USB_ID_INT_SRC

2013-10-21 Thread Laxman Dewangan
On Tuesday 15 October 2013 10:10 AM, George Cherian wrote: Laxman/Chanwoo/Kishon, Any comments on this!! Regards -George On 10/11/2013 12:18 AM, George Cherian wrote: Always cross check with the ID state and the source of interrupt. Also add a case in which ID Source is ID_GND but LATCH state i

Re: When USB PHY framework should be used?

2013-10-21 Thread Arokux X
Dear Kishon, thank you for the answer, no problem it was late! Your understanding is almost correct. > From whatever I could understand, you have a USB HOST controller (each HOST > controller has an EHCI controller and a companion OHCI controller?). There are > separate clocks for each of EHCI an

[GIT PULL] USB patches

2013-10-21 Thread Felipe Balbi
Hi Greg, Here's a large set of patches for v3.13 merge window. All patches have been pending in linux-usb for quite a while and soaked in linux-next for a bit too. Please consider merging on top of your usb-next branch or let me know which changes you may want. cheers The following changes sinc

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

2013-10-21 Thread Kishon Vijay Abraham I
Hi, On Wednesday 16 October 2013 07:53 PM, Roger Quadros wrote: > On 10/16/2013 04:52 PM, Kishon Vijay Abraham I wrote: >> Hi, >> >> On Wednesday 16 October 2013 06:48 PM, Roger Quadros wrote: >>> Hi, >>> >>> On 10/15/2013 10:54 PM, Kishon Vijay Abraham I wrote: Adapted dwc3 core to use the G

Re: [PATCH v2 1/7] usb: dwc3: get "usb_phy" only if the platform indicates the presence of PHY's

2013-10-21 Thread Kishon Vijay Abraham I
Hi, On Thursday 17 October 2013 10:08 PM, Felipe Balbi wrote: > Hi, > > On Wed, Oct 16, 2013 at 01:24:11AM +0530, Kishon Vijay Abraham I wrote: >> There can be systems which does not have a external usb_phy, so get >> usb_phy only if dt data indicates the presence of PHY in the case of dt boot >

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

2013-10-21 Thread Roger Quadros
On 10/21/2013 02:55 PM, Kishon Vijay Abraham I wrote: > Hi, > > On Wednesday 16 October 2013 07:53 PM, Roger Quadros wrote: >> On 10/16/2013 04:52 PM, Kishon Vijay Abraham I wrote: >>> Hi, >>> >>> On Wednesday 16 October 2013 06:48 PM, Roger Quadros wrote: Hi, On 10/15/2013 10:54 PM

Re: [PATCH 1/5] usb: gadget: s3c-hsotg: Include linux/of.h header

2013-10-21 Thread Felipe Balbi
Hi, On Sat, Oct 19, 2013 at 02:17:52PM -0700, Greg KH wrote: > On Thu, Oct 17, 2013 at 01:55:02PM +0530, Sachin Kamat wrote: > > 'of_match_ptr' is defined in linux/of.h. Include it explicitly to > > avoid build breakage in the future. > > Why, what is going to happen in the "future"? > > Kernel

Re: When USB PHY framework should be used?

2013-10-21 Thread Kishon Vijay Abraham I
Hi, On Monday 21 October 2013 04:49 PM, Arokux X wrote: > Dear Kishon, > > thank you for the answer, no problem it was late! Your understanding > is almost correct. > >> From whatever I could understand, you have a USB HOST controller (each HOST >> controller has an EHCI controller and a compani

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

2013-10-21 Thread Kishon Vijay Abraham I
Hi, On Wednesday 16 October 2013 07:10 PM, Roger Quadros wrote: > Hi, > > On 10/15/2013 10:54 PM, Kishon Vijay Abraham I wrote: >> Adapted omap-usb3 PHY driver to Generic PHY Framework and moved phy-omap-usb3 >> driver in drivers/usb/phy to drivers/phy and also renamed the file to >> phy-ti-pipe3

[PATCH V4 6/6] USB: OHCI: Properly handle ohci-spear suspend

2013-10-21 Thread Majunath Goudar
Suspend scenario in case of ohci-spear glue was not properly handled as it was not suspending generic part of ohci controller. Alan Stern suggested, properly handle ohci-spear suspend scenario. Calling explicitly the ohci_suspend() routine in spear_ohci_hcd_drv_suspend() will ensure proper handli

[PATCH V4 5/6] USB: OHCI: Properly handle ohci-exynos suspend

2013-10-21 Thread Majunath Goudar
Suspend scenario in case of ohci-exynos glue was not properly handled as it was not suspending generic part of ohci controller. Alan Stern suggested, properly handle ohci-exynos suspend scenario. Calling explicitly the ohci_suspend() routine in exynos_ohci_suspend() will ensure proper handling of

[PATCH V4 1/6] USB: OHCI: Properly handle OHCI controller suspend

2013-10-21 Thread Majunath Goudar
Suspend scenario in case of OHCI was not properly handled in ochi_suspend()routine. Alan Stern suggested, properly handle OHCI suspend scenario. This does generic proper handling of suspend scenario to all OHCI SOC. Signed-off-by: Manjunath Goudar Acked-by: Alan Stern Cc: Greg KH Cc: linux-us

[PATCH V4 3/6] USB: OHCI: Properly handle ohci-s3c2410 suspend

2013-10-21 Thread Majunath Goudar
Suspend scenario in case of ohci-s3c2410 glue was not properly handled as it was not suspending generic part of ohci controller. Alan Stern suggested, properly handle ohci-s3c2410 suspend scenario. Calling explicitly the ohci_suspend() routine in ohci_hcd_s3c2410_drv_suspend() will ensure proper h

Re: xhci-hcd wakeup settings

2013-10-21 Thread Alan Stern
On Sun, 20 Oct 2013, Sarah Sharp wrote: > > > So it means xHCI driver should clear wakeup flags for suspended ports > > > in this case, just like ehci driver does. Correct? > > > > Yes, I agree. > > > > Sarah, is this worth reporting to the Intel chipset engineers as a bug? > > I'm not sure. I

[PATCH V4 2/6] USB: OHCI: Properly handle ohci-at91 suspend

2013-10-21 Thread Majunath Goudar
Suspend scenario in case of ohci-at91 glue was not properly handled as it was not suspending generic part of ohci controller. Alan Stern suggested, properly handle ohci-at91 suspend scenario. Calling explicitly the ohci_suspend() routine in ohci_hcd_at91_drv_suspend() will ensure proper handling o

Re: Usb problem, FGR not stopped yet!

2013-10-21 Thread Alan Stern
On Mon, 21 Oct 2013, Teemu Ojansivu wrote: > On 21 October 2013 00:13, Alan Stern wrote: > > On Sun, 20 Oct 2013, Teemu Ojansivu wrote: > > > >> Somewhere after kernel 3.2.0 my usb started acting weird and not > >> working correctly. > >> For example, 'sudo lsusb -v' makes dmesg say: > >> [ 717.

[PATCH] usb: usbtest: fix checkpatch warning as sizeof code style

2013-10-21 Thread Huang Rui
Script checkpatch.pl always complains incorrect code style like below: WARNING: sizeof *udev->bos->desc should be sizeof(*udev->bos->desc) This patch fixes the warning for usbtest module. Signed-off-by: Huang Rui --- drivers/usb/misc/usbtest.c | 16 1 file changed, 8 insertion

Re: [PATCH 1/4] usb: usbtest: support bos descriptor test for usb 3.0

2013-10-21 Thread Alan Stern
On Mon, 21 Oct 2013, Huang Rui wrote: > In Test 9 of usbtest module, it is used for performing chapter 9 tests N > times. This patch adds to support getting bos descriptor test scenario for > USB 3.0. > > Signed-off-by: Huang Rui > --- > drivers/usb/misc/usbtest.c | 13 + > 1 file c

Re: [PATCH 2/4] usb: usbtest: support usb2 extension descriptor test

2013-10-21 Thread Alan Stern
On Mon, 21 Oct 2013, Huang Rui wrote: > In Test 9 of usbtest module, it is used for performing chapter 9 tests N > times. > > USB2.0 Extension descriptor is one of the generic device-level capbility > descriptors which added in section 9.6.2.1 of USB 3.0 spec. > > This patch adds to support gett

Re: [PATCH 1/4] usb: usbtest: support bos descriptor test for usb 3.0

2013-10-21 Thread Felipe Balbi
On Mon, Oct 21, 2013 at 11:50:39AM -0400, Alan Stern wrote: > On Mon, 21 Oct 2013, Huang Rui wrote: > > > In Test 9 of usbtest module, it is used for performing chapter 9 tests N > > times. This patch adds to support getting bos descriptor test scenario for > > USB 3.0. > > > > Signed-off-by: Hua

RE: [PATCH] usb-storage: scsiglue: Changing the command result

2013-10-21 Thread Alan Stern
On Sat, 19 Oct 2013, Vishal Annapurve wrote: > Hi, > > Attaching the new patch which will replace all the occurrences of DID_ABORT > with DID_TIMOUT in USB Storage whenever it sees US_FLIDX_TIMED_OUT bit > is set. It seems okay, but you forgot to update the isd200.c and cypress_atacb.c files. A

RE: [PATCH 2/2 v4] usb: ohci: remove ep93xx bus glue platform driver

2013-10-21 Thread Hartley Sweeten
On Saturday, October 19, 2013 2:22 PM, Greg KH wrote: > On Thu, Oct 17, 2013 at 01:29:11PM -0700, H Hartley Sweeten wrote: >> Convert ep93xx to use the OHCI platform driver and remove the >> ohci-ep93xx bus glue driver. >> >> Enable CONFIG_OHCI_HCD_PLATFORM in the ep93xx_defconfig so that USB >> i

Re: xhci-hcd wakeup settings

2013-10-21 Thread Alan Stern
On Sat, 19 Oct 2013, Andiry Xu wrote: > Hi Sarah, nice to see you again:) I'm still working on my PhD degree > at UC San Diego. I'm working with storage devices on Linux, but not on > driver. With fast non-volatile storage - perhaps as fast as DRAM, all the > software overhead is significant, incl

[PATCH 2/2 v5] usb: ohci: remove ep93xx bus glue platform driver

2013-10-21 Thread H Hartley Sweeten
Convert ep93xx to use the OHCI platform driver and remove the ohci-ep93xx bus glue driver. Enable CONFIG_OHCI_HCD_PLATFORM in the ep93xx_defconfig so that USB is still enabled by default on the EP93xx platform. Signed-off-by: H Hartley Sweeten Acked-by: Alan Stern Cc: Ryan Mallon Cc: Lennert B

RE: [PATCH 2/2 v4] usb: ohci: remove ep93xx bus glue platform driver

2013-10-21 Thread Hartley Sweeten
On Saturday, October 19, 2013 2:22 PM, Greg KH wrote: > On Thu, Oct 17, 2013 at 01:29:11PM -0700, H Hartley Sweeten wrote: >> Convert ep93xx to use the OHCI platform driver and remove the >> ohci-ep93xx bus glue driver. >> >> Enable CONFIG_OHCI_HCD_PLATFORM in the ep93xx_defconfig so that USB >> i

Re: xhci-hcd wakeup settings

2013-10-21 Thread Andiry Xu
On Mon, Oct 21, 2013 at 11:40 AM, Alan Stern wrote: > On Sat, 19 Oct 2013, Andiry Xu wrote: > >> Hi Sarah, nice to see you again:) I'm still working on my PhD degree >> at UC San Diego. I'm working with storage devices on Linux, but not on >> driver. With fast non-volatile storage - perhaps as fas

Re: [PATCH 1/1] [PATCH] ax88179_178a: Correct the RX error definition in RX header

2013-10-21 Thread David Miller
From: fre...@asix.com.tw Date: Mon, 21 Oct 2013 14:37:40 +0800 > From: Freddy Xin > > Correct the definition of AX_RXHDR_CRC_ERR and > AX_RXHDR_DROP_ERR. They are BIT29 and BIT31 in pkt_hdr > seperately. > Add VID:DID for Samsung USB Ethernet Adapter. > > Signed-off-by: Freddy Xin Do not do t

Re: [PATCH] extcon: palmas: Handle ID interrupt properly using USB_ID_INT_SRC

2013-10-21 Thread Chanwoo Choi
Hi George, On 10/15/2013 01:40 PM, George Cherian wrote: > Laxman/Chanwoo/Kishon, > > Any comments on this!! > Regards > -George > On 10/11/2013 12:18 AM, George Cherian wrote: >> Always cross check with the ID state and the source of interrupt. >> Also add a case in which ID Source is ID_GND but

[PATCH 1/1] [PATCH resubmit] ax88179_178a: Correct the RX error definition in RX header

2013-10-21 Thread freddy
From: Freddy Xin Correct the definition of AX_RXHDR_CRC_ERR and AX_RXHDR_DROP_ERR. They are BIT29 and BIT31 in pkt_hdr seperately. Signed-off-by: Freddy Xin --- drivers/net/usb/ax88179_178a.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/usb/ax88179_178

[PATCH 1/1] [PATCH] ax88179_178a: Add VID:DID for Samsung USB Ethernet Adapter

2013-10-21 Thread freddy
From: Freddy Xin Add VID:DID for Samsung USB Ethernet Adapter. Signed-off-by: Freddy Xin --- drivers/net/usb/ax88179_178a.c | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/drivers/net/usb/ax88179_178a.c b/drivers/net/usb/ax88179_178a.c index 3569293..3

Re: Linux USB file storage gadget with new UDC

2013-10-21 Thread Victor Yeo
Hi, > It looks like you didn't add the dump_stack() call to the UDC driver's > queue function. You need to add it. The attached is the log of dump_stack() call in the UDC driver queue function, for the last few USB request in the USBCV "device descriptor test – addressed state". From the log, af

[PATCH 1/1] usb: chipidea: host: more enhancement when ci->hcd is NULL

2013-10-21 Thread Peter Chen
Like http://marc.info/?l=linux-usb&m=138200449428874&w=2 said: two more things are needed to be done: - If host_start fails, the host_stop should not be called, so we add check that ci->hcd is not NULL. - if the host_start fails at the beginning, we need to consider regulator mismatch issue. Sign

Re: [PATCH 1/5] usb: gadget: s3c-hsotg: Include linux/of.h header

2013-10-21 Thread Greg KH
On Mon, Oct 21, 2013 at 07:23:11AM -0500, Felipe Balbi wrote: > Hi, > > On Sat, Oct 19, 2013 at 02:17:52PM -0700, Greg KH wrote: > > On Thu, Oct 17, 2013 at 01:55:02PM +0530, Sachin Kamat wrote: > > > 'of_match_ptr' is defined in linux/of.h. Include it explicitly to > > > avoid build breakage in t

[Patch v2 00/14] Add power management support for MXS PHY

2013-10-21 Thread Peter Chen
Hi Felipe, The serial adds power management support for MXS PHY, it includes: - Add three common PHY API, .set_wakeup, .notify_suspend, notify_resume. - Related above API implementation at mxs phy driver - misc changes for mxs phy to support low power mode and wakeup. Changes for v2:

[Patch v2 01/14] usb: doc: phy-mxs: Add more compatible strings

2013-10-21 Thread Peter Chen
Since there are three mxs PHY versions, using three compatible strings for them. Signed-off-by: Peter Chen --- Documentation/devicetree/bindings/usb/mxs-phy.txt |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/Documentation/devicetree/bindings/usb/mxs-phy.txt b/Docu

[Patch v2 03/14] usb: phy-mxs: Add auto clock and power setting

2013-10-21 Thread Peter Chen
With the auto setting, the PHY's clock and power can be recovered correctly from low power mode, it is ganranteed by IC logic. Signed-off-by: Peter Chen --- drivers/usb/phy/phy-mxs-usb.c | 20 +--- 1 files changed, 17 insertions(+), 3 deletions(-) diff --git a/drivers/usb/phy/

[Patch v2 02/14] usb: phy-mxs: Add platform judgement code

2013-10-21 Thread Peter Chen
The mxs-phy has three versions until now, each versions have some differences among PHY operations. the 1st version is for mx23/mx28 SoC, The 2nd version is for mx6q and mx6dl, the 3rd version is for mx6sl and later mx6 platform. Signed-off-by: Peter Chen --- drivers/usb/phy/phy-mxs-usb.c | 65

[Patch v2 05/14] ARM: dts: imx6: add anatop phandle for usbphy

2013-10-21 Thread Peter Chen
Add anatop phandle for usbphy Signed-off-by: Peter Chen --- arch/arm/boot/dts/imx6qdl.dtsi |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/imx6qdl.dtsi b/arch/arm/boot/dts/imx6qdl.dtsi index ef51342..145ece2 100644 --- a/arch/arm/boot/dts/imx6qdl.dtsi

[Patch v2 04/14] usb: doc: phy-mxs: update binding for adding anatop phandle

2013-10-21 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 --- Documentation/devicetree/bindings/usb/mxs-phy.txt |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/Documentation/devicetree/bindings

[Patch v2 07/14] usb: phy: add notify suspend and resume callback

2013-10-21 Thread Peter Chen
They are used to notify PHY that the controller enters suspend or finishes resume. Signed-off-by: Peter Chen --- include/linux/usb/phy.h | 23 +++ 1 files changed, 23 insertions(+), 0 deletions(-) diff --git a/include/linux/usb/phy.h b/include/linux/usb/phy.h index 6c0b1c5

[Patch v2 12/14] usb: phy: Add set_wakeup API

2013-10-21 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 --- include/linux/usb/phy.h | 16 1 files changed, 16 insertions(+), 0 del

[Patch v2 09/14] usb: phy-mxs: Enable IC fixes for mx6 SoC serial

2013-10-21 Thread Peter Chen
After adding IC fixes bits, some PHY bugs are fixed by IC logic. Signed-off-by: Peter Chen --- drivers/usb/phy/phy-mxs-usb.c | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/drivers/usb/phy/phy-mxs-usb.c b/drivers/usb/phy/phy-mxs-usb.c index 4416ed6..af2a9cf 100

[Patch v2 06/14] usb: phy-mxs: Add anatop regmap

2013-10-21 Thread Peter Chen
It is needed by mx6 SoC serial, but not for mx23 and mx28. Signed-off-by: Peter Chen --- drivers/usb/phy/phy-mxs-usb.c | 17 - 1 files changed, 16 insertions(+), 1 deletions(-) diff --git a/drivers/usb/phy/phy-mxs-usb.c b/drivers/usb/phy/phy-mxs-usb.c index 87ba429..6d48bde 10

[Patch v2 08/14] usb: phy-mxs: Add implementation of nofity_suspend and notify_resume

2013-10-21 Thread Peter Chen
Add notify_suspend and notify_resume according to different SoCs. Signed-off-by: Peter Chen --- drivers/usb/phy/phy-mxs-usb.c | 91 +++-- 1 files changed, 87 insertions(+), 4 deletions(-) diff --git a/drivers/usb/phy/phy-mxs-usb.c b/drivers/usb/phy/phy-mxs-

[Patch v2 11/14] ARM: dts: imx6: Add disconnect-line-without-vbus property for usbphy

2013-10-21 Thread Peter Chen
When the vbus is not there and the PHY is out of power, we need to disconnect connection between USB PHY and USB controller, otherwise the unexpected USB wakeup will occur due to dp/dm change at device mode. Signed-off-by: Peter Chen --- arch/arm/boot/dts/imx6qdl.dtsi |1 + 1 files changed,

[Patch v2 14/14] usb: phy-mxs: Add system suspend/resume API

2013-10-21 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 --- drivers/usb/phy/phy-mxs

[Patch v2 10/14] usb: doc: phy-mxs: update binding for adding disconnect line property

2013-10-21 Thread Peter Chen
This property is used to disconnect line between USB PHY and USB controller. Signed-off-by: Peter Chen --- Documentation/devicetree/bindings/usb/mxs-phy.txt |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/Documentation/devicetree/bindings/usb/mxs-phy.txt b/Documentat

Re: [PATCH 1/1] [PATCH resubmit] ax88179_178a: Correct the RX error definition in RX header

2013-10-21 Thread David Miller
Submit these, not individually as single patches, but as a patch set, the first one with subject "[PATCH 1/2]" and the second with subject "[PATCH 2/2]" You have to do this, because it is absolutely essentially to let me know which patch gets applies first and which one gets applied second. The

[Patch v2 13/14] usb: phy-mxs: Add implementation of set_wakeup

2013-10-21 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 mxs_phy_disco

[Patch v2 05/10] usb: chipidea: usbmisc_imx: add set_wakup API

2013-10-21 Thread Peter Chen
It is used to enable USB wakeup, currently only imx6 SoC serial usb's wakeup is enabled. Signed-off-by: Peter Chen --- drivers/usb/chipidea/ci_hdrc_imx.h |1 + drivers/usb/chipidea/usbmisc_imx.c | 41 2 files changed, 42 insertions(+), 0 deletions(-) d

[Patch v2 04/10] usb: chipidea: usbmisc_imx: remove the controller's clock information

2013-10-21 Thread Peter Chen
Currently, the usbmisc is just an API supplier for controller driver, the controller calls related APIs to handle different things among the SoCs, before calling it, the clock must be on. So the clock operation is useless for usbmisc, it also increases the difficulties to manage the clock, especial

[Patch v2 06/10] usb: chipidea: imx: call set_wakeup when necessary

2013-10-21 Thread Peter Chen
- Disable wakeup after probe - Enable wakeup during the suspend - Disable wakeup after controller is active Signed-off-by: Peter Chen --- drivers/usb/chipidea/ci_hdrc_imx.c | 36 1 files changed, 36 insertions(+), 0 deletions(-) diff --git a/drivers/usb/ch

[Patch v2 01/10] usb: chipidea: Add power management support

2013-10-21 Thread Peter Chen
This commit adds runtime and system power management support for chipidea core. The runtime pm support is controlled by glue layer, it can be enabled by flag CI_HDRC_SUPPORTS_RUNTIME_PM. Signed-off-by: Peter Chen --- drivers/usb/chipidea/ci.h|2 + drivers/usb/chipidea/core.c | 119

[Patch v2 07/10] usb: chipidea: imx: Enable runtime pm support for imx6 SoC serial

2013-10-21 Thread Peter Chen
Currently, only imx6 SoC serial adds wakeup logic, so only enable runtime pm for imx6. Signed-off-by: Peter Chen --- drivers/usb/chipidea/ci_hdrc_imx.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/drivers/usb/chipidea/ci_hdrc_imx.c b/drivers/usb/chipidea/ci_hdrc_

[Patch v2 03/10] usb: chipidea: add wakeup interrupt handler

2013-10-21 Thread Peter Chen
When the controller is at suspend mode, it can be waken up by external events (like vbus, dp/dm or id change). Once we receive the wakeup interrupt, we need to resume the controller first, eg open clocks, disable some wakeup settings, etc. After that, the controller can receive the normal USB inter

[Patch v2 10/10] usb: chipidea: imx: Enable CI_HDRC_IMX_EHCI_QUIRK if the phy has notify APIs

2013-10-21 Thread Peter Chen
If the PHY has .notify_suspend and .notify_resume, it means this imx usb controller needs to add quirks for standard ehci routine. Signed-off-by: Peter Chen --- drivers/usb/chipidea/ci_hdrc_imx.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/drivers/usb/chipidea/ci

[Patch v2 02/10] usb: chipidea: imx: add power management support

2013-10-21 Thread Peter Chen
Add system and runtime power management support for imx gluy layer. Signed-off-by: Peter Chen --- drivers/usb/chipidea/ci_hdrc_imx.c | 94 ++- 1 files changed, 91 insertions(+), 3 deletions(-) diff --git a/drivers/usb/chipidea/ci_hdrc_imx.c b/drivers/usb/chipi

[Patch v2 00/10] Add power management support for chipidea

2013-10-21 Thread Peter Chen
Hi Greg, This serial adds power management (system & runtime) for chipidea core. With this, the chipidea controller can be at low power mode when it is not in use, and the chipidea controller can be the system wakeup source. It needs to depend on my patch[1], since [1]-"Add power management suppor

[Patch v2 08/10] usb: chipidea: host: add quirk for ehci operation

2013-10-21 Thread Peter Chen
For chipidea controller, it does not follow ehci spec strictly. Taking resume signal as an example, it will stop resume signal about 20-21ms later automatically, but standard ehci spec says, the resume signal is controlled by software (clear portsc.PORT_RESUME). This operation causes some remote w

[Patch v2 09/10] usb: chipidea: host: add ehci quirk for imx controller

2013-10-21 Thread Peter Chen
When the port goes to suspend or finishes resme, it needs to notify PHY, it is not a standard EHCI operation, so we add a quirk for it. Signed-off-by: Peter Chen --- drivers/usb/chipidea/host.c | 129 ++ include/linux/usb/chipidea.h |1 + 2 files cha