[PATCH] Added support for the Lenovo RD02-D400 USB Modem

2013-12-03 Thread David Cluytens
Signed-off-by: David Cluytens --- drivers/usb/class/cdc-acm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c index 3e7560f..e840431 100644 --- a/drivers/usb/class/cdc-acm.c +++ b/drivers/usb/class/cdc-acm.c @@ -1515,6 +1515,8 @@ sta

Re: [PATCH] USB: switch maintainership of chipidea to Peter

2013-12-03 Thread Marc Kleine-Budde
On 12/03/2013 04:38 AM, Greg KH wrote: > On Tue, Dec 03, 2013 at 11:00:30AM +0800, Peter Chen wrote: >> On Mon, Dec 02, 2013 at 03:43:48PM -0800, Greg KH wrote: >>> From: Greg Kroah-Hartman >>> >>> Alexander isn't able to maintain the Chipidea code anymore, and as Peter >>> has been acting as the

Re: [PATCH] USB: switch maintainership of chipidea to Peter

2013-12-03 Thread Marc Kleine-Budde
On 12/03/2013 06:21 AM, Peter Chen wrote: > On Mon, Dec 02, 2013 at 07:38:46PM -0800, Greg KH wrote: >> On Tue, Dec 03, 2013 at 11:00:30AM +0800, Peter Chen wrote: >>> On Mon, Dec 02, 2013 at 03:43:48PM -0800, Greg KH wrote: From: Greg Kroah-Hartman Alexander isn't able to maintain

[PATCH] Added support for the Lenovo RD02-D400 USB Modem

2013-12-03 Thread David Cluytens
From: David Cluytens Signed-off-by: David Cluytens --- drivers/usb/class/cdc-acm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c index 8ad4e94..e840431 100644 --- a/drivers/usb/class/cdc-acm.c +++ b/drivers/usb/

Strange behavior with ZTE MF821D (and possible other MDM9200 devices)

2013-12-03 Thread Kristian Evensen
Hello, I am currently working on a project where we are building devices that will be placed on moving objects (buses, trains, etc.). The devices are routers (TP-Link WDR4300) based on the Atheros AR9344 SoC and running OpenWrt with kernel 3.10.18. The purpose of these devices is to measure the mo

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

2013-12-03 Thread Heikki Krogerus
Hi Kishon, On Wed, Oct 16, 2013 at 01:24:12AM +0530, Kishon Vijay Abraham I wrote: > + count = of_property_match_string(node, "phy-names", "usb2-phy"); > + if (count >= 0 || (pdata && pdata->usb2_generic_phy)) { > + dwc->usb2_generic_phy = devm_phy_get(dev, "usb2-phy"); > +

Re: [PATCH] USB: switch maintainership of chipidea to Peter

2013-12-03 Thread Alexander Shishkin
Greg KH writes: > From: Greg Kroah-Hartman > > Alexander isn't able to maintain the Chipidea code anymore, and as Peter > has been acting as the de-facto maintainer anyway, make it official. > > Cc: Alexander Shishkin > Cc: Peter Chen > Signed-off-by: Greg Kroah-Hartman Acked-by: Alexander S

Re: [PATCH 1/3 v4] usb: chipidea: Reallocate regmap only if lpm is detected

2013-12-03 Thread Marc Kleine-Budde
On 12/03/2013 09:01 AM, Chris Ruehl wrote: > usb: chipidea: Reallocate regmap only if lpm is detected > > The regmap only needs to reallocate if the hw_read on the CAP register shows > lpm is used. Therefore the if() statement check the change. > > Signed-off-by: Chris Ruehl > Acked-by: Peter Ch

Re: [PATCH] ARM: dts: omap3-beagle: Fix USB host on beagle boards (for 3.13)

2013-12-03 Thread Laurent Pinchart
Hi Roger, On Tuesday 03 December 2013 11:36:57 Roger Quadros wrote: > On 12/03/2013 05:54 AM, Laurent Pinchart wrote: > > Hi Roger, > > > > On Monday 25 November 2013 15:55:45 Roger Quadros wrote: > >> Beagle (rev. C4) and Beagle-XM (all revs) need VAUX2 1.8V supply > >> for the USB PHY. > >> >

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

2013-12-03 Thread Heikki Krogerus
Hi, On Thu, Oct 17, 2013 at 09:54:26AM -0500, Felipe Balbi wrote: > On Wed, Oct 16, 2013 at 04:27:26PM +0300, Roger Quadros wrote: > > On 10/16/2013 04:10 PM, Kishon Vijay Abraham I wrote: > > Do you know if there are users of dwc3 other than exynos5250 and omap5? > > If not, we should get rid of

Re: [PATCH v4 02/17] usb: phy-mxs: Add platform judgement code

2013-12-03 Thread Michael Grzeschik
On Tue, Dec 03, 2013 at 03:36:56PM +0800, Peter Chen wrote: > 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 > --- > drivers/usb/phy/phy-mxs-usb.c | 58 ++

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

2013-12-03 Thread Kishon Vijay Abraham I
Hi, On Tuesday 26 November 2013 03:02 AM, Felipe Balbi wrote: > Hi, > > On Mon, Nov 11, 2013 at 08:06:12PM +0530, Kishon Vijay Abraham I wrote: diff --git a/drivers/usb/dwc3/platform_data.h b/drivers/usb/dwc3/platform_data.h index 7db34f0..49ffa6d 100644 --- a/drivers/usb/dwc

RE: [PATCH v4 17/17] usb: phy-mxs: do not set PWD.RXPWD1PT1 for low speed connection

2013-12-03 Thread Peter Chen
> > On 12/03/2013 10:19 AM, Peter Chen wrote: > >> On 12/03/2013 08:37 AM, Peter Chen wrote: > >>> At very rare cases, the SoF will not send out after resume with > >>> low speed connection. The workaround is do not power down > >>> PWD.RXPWD1PT1 bit during the suspend. > >> > >> Is this also a

Re: [PATCH 1/1] mfd: omap-usb-host: Fix USB device detection problems on OMAP4 Panda

2013-12-03 Thread Roger Quadros
On 12/02/2013 06:28 PM, David Laight wrote: >> From: Roger Quadros [mailto:rog...@ti.com] >> On 11/29/2013 03:17 PM, David Laight wrote: > ... + timeout = jiffies + msecs_to_jiffies(100); + while (!(usbhs_read(omap->uhh_base, OMAP_UHH_SYSSTATUS) + & OMAP_UHH_SYSSTA

Re: [PATCH] ARM: dts: omap3-beagle: Fix USB host on beagle boards (for 3.13)

2013-12-03 Thread Roger Quadros
Hi Laurent, On 12/03/2013 05:54 AM, Laurent Pinchart wrote: > Hi Roger, > > On Monday 25 November 2013 15:55:45 Roger Quadros wrote: >> Beagle (rev. C4) and Beagle-XM (all revs) need VAUX2 1.8V supply >> for the USB PHY. >> >> As the generic PHY driver can't handle more than one supply >> at the

Re: [PATCH v4 17/17] usb: phy-mxs: do not set PWD.RXPWD1PT1 for low speed connection

2013-12-03 Thread Marc Kleine-Budde
On 12/03/2013 10:19 AM, Peter Chen wrote: >> On 12/03/2013 08:37 AM, Peter Chen wrote: >>> At very rare cases, the SoF will not send out after resume with >>> low speed connection. The workaround is do not power down >>> PWD.RXPWD1PT1 bit during the suspend. >> >> Is this also a fix for newly added

RE: [PATCH v4 17/17] usb: phy-mxs: do not set PWD.RXPWD1PT1 for low speed connection

2013-12-03 Thread Peter Chen
> > On 12/03/2013 08:37 AM, Peter Chen wrote: > > At very rare cases, the SoF will not send out after resume with > > low speed connection. The workaround is do not power down > > PWD.RXPWD1PT1 bit during the suspend. > > Is this also a fix for newly added code? If so please also squash. > N

Re: [PATCH v4 17/17] usb: phy-mxs: do not set PWD.RXPWD1PT1 for low speed connection

2013-12-03 Thread Marc Kleine-Budde
On 12/03/2013 08:37 AM, Peter Chen wrote: > At very rare cases, the SoF will not send out after resume with > low speed connection. The workaround is do not power down > PWD.RXPWD1PT1 bit during the suspend. Is this also a fix for newly added code? If so please also squash. > Signed-off-by: Peter

RE: [PATCH v4 09/17] usb: phy-mxs: Enable IC fixes for related SoCs

2013-12-03 Thread Peter Chen
> On 12/03/2013 09:38 AM, Peter Chen wrote: > > > >> > >> On 12/03/2013 08:37 AM, Peter Chen wrote: > >>> Some PHY bugs are fixed by IC logic, but these bits are not > >>> enabled by default, so we enable them at driver. > >>> > >>> Signed-off-by: Peter Chen > >>> --- > >>> drivers/usb/phy/ph

Re: [PATCH 2/2] Indent with tab instead of spaces.

2013-12-03 Thread Oliver Neukum
On Mon, 2013-12-02 at 13:19 +0100, David Cluytens wrote: > From: David Cluytens Please see the FAQ on submitting kernel patches in the Documentation directory of the kernel. Your patches need a "Signed-off-by" line. Regards Oliver -- To unsubscribe from this list: send

Re: [PATCH v4 09/17] usb: phy-mxs: Enable IC fixes for related SoCs

2013-12-03 Thread Marc Kleine-Budde
On 12/03/2013 09:38 AM, Peter Chen wrote: > >> >> On 12/03/2013 08:37 AM, Peter Chen wrote: >>> Some PHY bugs are fixed by IC logic, but these bits are not >>> enabled by default, so we enable them at driver. >>> >>> Signed-off-by: Peter Chen >>> --- >>> drivers/usb/phy/phy-mxs-usb.c | 20 +++

Re: [PATCH v4 16/17] usb: phy-mxs: fix the problem by only using 1st controller's register

2013-12-03 Thread Peter Chen
On Tue, Dec 03, 2013 at 09:34:09AM +0100, Marc Kleine-Budde wrote: > On 12/03/2013 08:37 AM, Peter Chen wrote: > > We fix the problem that we only use the 1st controller's related > > registers at mxs_phy_disconnect_line, but in fact, it needs to > > access registers according to different PHYs. >

Re: [PATCH v4 02/17] usb: phy-mxs: Add platform judgement code

2013-12-03 Thread Peter Chen
On Tue, Dec 03, 2013 at 09:38:20AM +0100, Marc Kleine-Budde wrote: > On 12/03/2013 08:36 AM, Peter Chen wrote: > > 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 > > --- > > drivers/usb/

Re: [PATCH v4 02/17] usb: phy-mxs: Add platform judgement code

2013-12-03 Thread Marc Kleine-Budde
On 12/03/2013 08:36 AM, Peter Chen wrote: > 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 > --- > drivers/usb/phy/phy-mxs-usb.c | 58 ++-- > 1 files chan

RE: [PATCH v4 09/17] usb: phy-mxs: Enable IC fixes for related SoCs

2013-12-03 Thread Peter Chen
> > On 12/03/2013 08:37 AM, Peter Chen wrote: > > Some PHY bugs are fixed by IC logic, but these bits are not > > enabled by default, so we enable them at driver. > > > > Signed-off-by: Peter Chen > > --- > > drivers/usb/phy/phy-mxs-usb.c | 20 > > 1 files changed, 20 in

Re: [PATCH v4 16/17] usb: phy-mxs: fix the problem by only using 1st controller's register

2013-12-03 Thread Marc Kleine-Budde
On 12/03/2013 08:37 AM, Peter Chen wrote: > We fix the problem that we only use the 1st controller's related > registers at mxs_phy_disconnect_line, but in fact, it needs to > access registers according to different PHYs. Are you fixing the code that has been added in this series before? If so, pl

Re: [PATCH v4 09/17] usb: phy-mxs: Enable IC fixes for related SoCs

2013-12-03 Thread Marc Kleine-Budde
On 12/03/2013 08:37 AM, Peter Chen wrote: > Some PHY bugs are fixed by IC logic, but these bits are not > enabled by default, so we enable them at driver. > > Signed-off-by: Peter Chen > --- > drivers/usb/phy/phy-mxs-usb.c | 20 > 1 files changed, 20 insertions(+), 0 delet

Re: [PATCH 3/3] usb: phy-generic: Add ULPI VBUS support

2013-12-03 Thread Heikki Krogerus
On Mon, Dec 02, 2013 at 03:05:19PM +0800, Chris Ruehl wrote: > @@ -154,6 +164,27 @@ int usb_phy_gen_create_phy(struct device *dev, struct > usb_phy_gen_xceiv *nop, > { > int err; > > + if (nop->ulpi_vbus > 0) { > + unsigned int flags = 0; > + > + if (nop->ulpi_

[PATCH v4 14/17] ARM: dts: imx: add mxs phy controller id

2013-12-03 Thread Peter Chen
We need to use controller id to access different register regions for mxs phy. Signed-off-by: Peter Chen --- arch/arm/boot/dts/imx23.dtsi |1 + arch/arm/boot/dts/imx28.dtsi |2 ++ arch/arm/boot/dts/imx6qdl.dtsi |2 ++ arch/arm/boot/dts/imx6sl.dtsi |2 ++ 4 files changed, 7 i

[PATCH v4 08/17] usb: phy-mxs: Add implementation of nofity_suspend and notify_resume

2013-12-03 Thread Peter Chen
Implementation of notify_suspend and notify_resume will be different according to mxs_phy_data->flags. Signed-off-by: Peter Chen --- drivers/usb/phy/phy-mxs-usb.c | 55 ++--- 1 files changed, 51 insertions(+), 4 deletions(-) diff --git a/drivers/usb/phy/phy

[PATCH v4 06/17] usb: phy-mxs: Add anatop regmap

2013-12-03 Thread Peter Chen
It is needed by imx6 SoC series, but not for imx23 and imx28. Signed-off-by: Peter Chen --- drivers/usb/phy/phy-mxs-usb.c | 23 +-- 1 files changed, 21 insertions(+), 2 deletions(-) diff --git a/drivers/usb/phy/phy-mxs-usb.c b/drivers/usb/phy/phy-mxs-usb.c index 70b084d..d

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

2013-12-03 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 v4 10/17] usb: phy: Add set_wakeup API

2013-12-03 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 v4 07/17] usb: phy: add notify suspend and resume callback

2013-12-03 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 v4 05/17] ARM: dts: imx6: add anatop phandle for usbphy

2013-12-03 Thread Peter Chen
Add anatop phandle for usbphy Signed-off-by: Peter Chen --- arch/arm/boot/dts/imx6qdl.dtsi |2 ++ arch/arm/boot/dts/imx6sl.dtsi |2 ++ 2 files changed, 4 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/imx6qdl.dtsi b/arch/arm/boot/dts/imx6qdl.dtsi index 59154dc..4e74962 10

[PATCH v4 15/17] usb: phy-mxs: add controller id

2013-12-03 Thread Peter Chen
It is used to access un-regulator registers according to different controllers. Signed-off-by: Peter Chen --- drivers/usb/phy/phy-mxs-usb.c |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/drivers/usb/phy/phy-mxs-usb.c b/drivers/usb/phy/phy-mxs-usb.c index 52e80d9.

[PATCH v4 16/17] usb: phy-mxs: fix the problem by only using 1st controller's register

2013-12-03 Thread Peter Chen
We fix the problem that we only use the 1st controller's related registers at mxs_phy_disconnect_line, but in fact, it needs to access registers according to different PHYs. Signed-off-by: Peter Chen --- drivers/usb/phy/phy-mxs-usb.c | 89 + 1 files chan

[PATCH v4 12/17] usb: phy-mxs: Add system suspend/resume API

2013-12-03 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 v4 09/17] usb: phy-mxs: Enable IC fixes for related SoCs

2013-12-03 Thread Peter Chen
Some PHY bugs are fixed by IC logic, but these bits are not enabled by default, so we enable them at driver. Signed-off-by: Peter Chen --- drivers/usb/phy/phy-mxs-usb.c | 20 1 files changed, 20 insertions(+), 0 deletions(-) diff --git a/drivers/usb/phy/phy-mxs-usb.c b/dr

[PATCH v4 11/17] usb: phy-mxs: Add implementation of set_wakeup

2013-12-03 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 v4 13/17] usb: phy-mxs: Add sync time after controller clear phcd

2013-12-03 Thread Peter Chen
After clear portsc.phcd, PHY needs 200us stable time for switch 32K clock to AHB clock. Signed-off-by: Peter Chen --- 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 b/drivers/usb/phy/phy-mxs-usb.c in

[PATCH v4 17/17] usb: phy-mxs: do not set PWD.RXPWD1PT1 for low speed connection

2013-12-03 Thread Peter Chen
At very rare cases, the SoF will not send out after resume with low speed connection. The workaround is do not power down PWD.RXPWD1PT1 bit during the suspend. Signed-off-by: Peter Chen --- drivers/usb/phy/phy-mxs-usb.c | 47 - 1 files changed, 46 insert

[PATCH v4 02/17] usb: phy-mxs: Add platform judgement code

2013-12-03 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 --- drivers/usb/phy/phy-mxs-usb.c | 58 ++-- 1 files changed, 49 insertions(+), 9 deletions(-) diff --git a/driv

[PATCH v4 01/17] usb: doc: phy-mxs: Add more compatible strings

2013-12-03 Thread Peter Chen
Add "fsl,imx6q-usbphy" for imx6dq and imx6dl, add "fsl,imx6sl-usbphy" for imx6sl. Signed-off-by: Peter Chen --- Documentation/devicetree/bindings/usb/mxs-phy.txt |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/Documentation/devicetree/bindings/usb/mxs-phy.txt b/Docume

[PATCH v4 00/17] Add power management support for mxs phy

2013-12-03 Thread Peter Chen
Hi Felipe & Shawn, The serial adds power management support for MXS PHY, it includes: - Add three common PHY APIs, .set_wakeup, .notify_suspend, notify_resume. - Related above API implementation at mxs phy driver - misc changes and bug fixes for mxs phy to support low power mode and wakeup. It i

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

2013-12-03 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 3/3 v4] usb: chipidea: hw_phymode_configure moved before ci_usb_phy_init

2013-12-03 Thread Chris Ruehl
usb: chipidea: hw_phymode_configure moved before ci_usb_phy_init hw_phymode_configure configures the PORTSC registers and allow the following phy_inits to operate on the right parameters. This fix a problem where the UPLI (ISP1504) could not detected, because the Viewport was not available and read

[PATCH 2/3 v4] Fix Internal error: : 808 [#1] ARM related to STS flag

2013-12-03 Thread Chris Ruehl
Fix Internal error: : 808 [#1] ARM related to STS flag * init the sts flag to 0 (missed) * fix write the real bit not sts value * Set PORTCS_STS and DEVLC_STS only if sts = 1 (prefered solution by Mr. Peter Chen, Maintainer of ChipIdea subsystem) Signed-off-by: Chris Ruehl --- drivers/usb/chip

[PATCH 1/3 v4] usb: chipidea: Reallocate regmap only if lpm is detected

2013-12-03 Thread Chris Ruehl
usb: chipidea: Reallocate regmap only if lpm is detected The regmap only needs to reallocate if the hw_read on the CAP register shows lpm is used. Therefore the if() statement check the change. Signed-off-by: Chris Ruehl Acked-by: Peter Chen --- drivers/usb/chipidea/core.c |7 ++- 1 fi

<    1   2