[PATCH RESEND 1/1] usb: gadget: configfs: fix concurrent issue between composite APIs

2019-10-13 Thread Peter Chen
le_irq_event+0x58/0xc0 [] handle_fasteoi_irq+0x98/0x180 [] generic_handle_irq+0x24/0x38 [] __handle_domain_irq+0x60/0xac [] gic_handle_irq+0xd4/0x17c Cc: Andrzej Pietrasiewicz Signed-off-by: Peter Chen --- drivers/usb/gadget/configfs.c | 110 -- 1 file changed,

[PATCH 1/3] usb: chipidea: imx: change hsic power regulator as optional

2019-10-10 Thread Peter Chen
Not every platform needs this regulator. Signed-off-by: Peter Chen --- drivers/usb/chipidea/ci_hdrc_imx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/usb/chipidea/ci_hdrc_imx.c b/drivers/usb/chipidea/ci_hdrc_imx.c index 16700170bc34..25a38ed27aa8 100644 --- a

[PATCH 2/3] usb: chipidea: imx: refine the error handling for hsic

2019-10-10 Thread Peter Chen
- -EPROBE_DEFER is an error, but without need show error message - If pintrol is not existed, as pintrol is NULL Signed-off-by: Peter Chen --- drivers/usb/chipidea/ci_hdrc_imx.c | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/drivers/usb/chipidea

[PATCH 3/3] usb: chipidea: imx: pinctrl for HSIC is optional

2019-10-10 Thread Peter Chen
For imx chipidea controllers, if they use mxs PHY, they need pinctrl for HSIC. Otherwise, it doesn't need pinctrl and usbmisc control. Like imx7d and imx8mm. Reported-by: AndréDraszik Signed-off-by: Peter Chen --- drivers/usb/chipidea/ci_hdrc_imx.c | 63 +- 1

Re: [PATCH] usb: chipidea: tegra: clean up tegra_udc flag code

2019-10-09 Thread Peter Chen
mpatible = "nvidia,tegra114-udc", > - .data = &tegra114_udc_soc_info, > + .data = &tegra_udc_soc_info, > }, { > .compatible = "nvidia,tegra124-udc", > - .data = &tegra124_udc_soc_info, > + .data = &tegra_udc_soc_info, > }, { > /* sentinel */ > } > -- > 2.17.1 > Applied, thanks. -- Thanks, Peter Chen

Re: [PATCH] usb: chipidea: imx: check data->usbmisc_data against NULL before access

2019-10-09 Thread Peter Chen
of_property_read_bool(np, "usb-role-switch")) > + data->usbmisc_data->ext_id = 1; > + > + if (!IS_ERR(pdata.vbus_extcon.edev) || > + of_property_read_bool(np, "usb-role-switch")) > + data->usbmisc_data->ext_vbus = 1; > + } > > ret = imx_usbmisc_init_post(data->usbmisc_data); > if (ret) { Applied, thanks. -- Thanks, Peter Chen

Re: [chipidea] continuous USB resets on NXP i.MX 6ULL device

2019-10-07 Thread Peter Chen
On 19-10-02 19:15:11, Igor Opaniuk wrote: > + Li Jun > > Hi Peter, Li, > > On Mon, Sep 30, 2019 at 2:35 PM Igor Opaniuk wrote: > > > > Hi Peter, > > > > On Wed, Sep 25, 2019 at 3:44 AM Peter Chen wrote: > > > > > > > > > &g

RE: [PATCH v2 1/1] usb: host: xhci: update event ring dequeue pointer on purpose

2019-09-30 Thread Peter Chen
> On 29.9.2019 9.07, Peter Chen wrote: > > On some situations, the software handles TRB events slower than adding > > TRBs, then xhci_handle_event can't return zero long time, the xHC will > > consider the event ring is full, and trigger "Event Ring Full" erro

[PATCH v2 1/1] usb: host: xhci: update event ring dequeue pointer on purpose

2019-09-28 Thread Peter Chen
st no chance to update ERDP (event ring dequeue pointer). In this commit, we force update ERDP if half of TRBS_PER_SEGMENT events have handled to avoid "Event Ring Full" error. Signed-off-by: Peter Chen --- Changes for v2: - If current ERDP value is the same with intended written on

Re: [PATCH v3 -next] usb: cdns3: Fix sheduling with locks held.

2019-09-27 Thread Peter Chen
*/ > - usleep_range(1000, 2000); > + mdelay(1); > cdns3_set_register_bit(&priv_dev->regs->usb_cmd, >USB_CMD_STMODE | >USB_STS_TMODE_SEL(tmode - 1)); > -- > 2.17.1 > Reviewed-by: Peter Chen Peter

Re: [PATCH 1/1] usb: host: xhci: update event ring dequeue pointer on purpose

2019-09-27 Thread Peter Chen
On 19-09-26 13:25:39, Mathias Nyman wrote: > On 24.9.2019 11.35, Peter Chen wrote: > > On some situations, the software handles TRB events slower > > than adding TRBs, then xhci_handle_event can't return zero > > long time, the xHC will consider the event ring is full, &

RE: [chipidea] continuous USB resets on NXP i.MX 6ULL device

2019-09-24 Thread Peter Chen
especially for VCO which has many stages, then the multiwave will kept until PLL power down. Hold_ring_off(bit11) can force the VCO in one determined state when VCO supply start ramp up, to avoid this multiwave issue. Per IC design's suggestion it's better this bit can be

Re: Event ring is full when do iozone test on UAS storage

2019-09-24 Thread Peter Chen
On 19-09-23 16:46:56, Mathias Nyman wrote: > On 23.9.2019 14.19, Mathias Nyman wrote: > > On 19.9.2019 16.59, Suwan Kim wrote: > > > On Thu, Sep 19, 2019 at 05:54:25PM +0800, Peter Chen wrote: > > > > > On 17.9.2019 12.55, Peter Chen wrote: > > > > &g

[PATCH 1/1] usb: host: xhci: update event ring dequeue pointer on purpose

2019-09-24 Thread Peter Chen
st no chance to update ERDP (event ring dequeue pointer). In this commit, we force update ERDP if half of TRBS_PER_SEGMENT events have handled to avoid "Event Ring Full" error. Signed-off-by: Peter Chen --- drivers/usb/host/xhci-ring.c | 53 1 file chan

[PATCH 1/1] usb: chipidea: core: change vbus-regulator as optional

2019-09-24 Thread Peter Chen
Vbus regualtor is an optional regulator, for platforms, which doesn't have this regulator, it will get a dummy regulator and show warning message. Signed-off-by: Peter Chen --- drivers/usb/chipidea/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/chi

Re: Event ring is full when do iozone test on UAS storage

2019-09-19 Thread Peter Chen
> On 17.9.2019 12.55, Peter Chen wrote: > >>> > >>> I met "event ring full error" like below, this error is met when > >>> I do iozone test on UAS storage at v4.19.35 kernel, but not meet > >>> this error at linux-next tree (08/24). T

Re: [v5,2/4] usb: chipidea: imx: add HSIC support

2019-09-15 Thread Peter Chen
On 19-09-13 10:47:58, André Draszik wrote: > Hi Peter, > > On Tue, 2018-12-11 at 02:08 +0000, Peter Chen wrote: > > To support imx HSIC, there are some special requirement: > > - The HSIC pad is 1.2v, it may need to supply from external > > - The data/strobe pin needs t

RE: EHSET with hub and PCIe root hub

2019-09-15 Thread Peter Chen
> > >I should add that the USB 2.0 spec includes the following text (from > > >section > 11.24.2.13): > > > > > >Test mode of a downstream facing port can only be used in > > >a well defined sequence of hub states. This sequence is > > >defined as follows: > > > > > >

RE: EHSET with hub and PCIe root hub

2019-09-11 Thread Peter Chen
> >>> > >>> Further down in the mailing list chain Peter Chen states > >>>> Besides, do not connect HUB between your host board and emulation > >>>> board (for sending VID/PID). > >>> but there is no additional information

Re: EHSET with hub and PCIe root hub

2019-09-10 Thread Peter Chen
sb_ehset_test: probe of failed with error -32 > for either the PCIe root hub or the USB3503 HSIC hub. > > Further down in the mailing list chain Peter Chen states > > Besides, do not connect HUB between your host board and emulation board > > (for sending VID/PID). > but

[PATCH 2/2] usb: chipidea: udc: protect usb interrupt enable

2019-09-10 Thread Peter Chen
f-by: Jun Li Signed-off-by: Peter Chen --- Jun, I changed a little for your patch, please check if it is OK. drivers/usb/chipidea/udc.c | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/drivers/usb/chipidea/udc.c b/drivers/usb/chipidea/udc.c index 59f

[PATCH 1/2] usb: chipidea: udc: add new API ci_hdrc_gadget_connect

2019-09-10 Thread Peter Chen
This API is used enable device function, it is called at below situations: - VBUS is connected during boots up - Hot plug occurs during runtime Signed-off-by: Peter Chen Signed-off-by: Jun Li --- drivers/usb/chipidea/udc.c | 63 +++--- 1 file changed, 32

Re: [PATCH v2] usb: chipidea: imx: enable vbus and id wakeup only for OTG events

2019-09-09 Thread Peter Chen
_lock_irqsave(&usbmisc->lock, flags); > val = readl(usbmisc->base); > if (enabled) { > - writel(val | wakeup_setting, usbmisc->base); > + val &= ~MX6_USB_OTG_WAKEUP_BITS; > + val |= usbmisc_wakeup_setting(data); > + writel(val, usbmisc->base); > } else { > if (val & MX6_BM_WAKEUP_INTR) > dev_dbg(data->dev, "wakeup int\n"); > - writel(val & ~wakeup_setting, usbmisc->base); > + writel(val & ~MX6_USB_OTG_WAKEUP_BITS, usbmisc->base); > } > spin_unlock_irqrestore(&usbmisc->lock, flags); > > -- > 2.7.4 > This patch is ok for me, I will queue it from next -rc1. -- Thanks, Peter Chen

Re: [PATCH 1/1] usb: gadget: configfs: fix concurrent issue between composite APIs

2019-09-05 Thread Peter Chen
On 19-08-26 15:10:55, Peter Chen wrote: > We meet several NULL pointer issues if configfs_composite_unbind > and composite_setup (or composite_disconnect) are running together. > These issues occur when do the function switch stress test, the > configfs_compsoite_unbind is called from

[GIT PULL] usb: chipidea: changes for v5.4-rc1

2019-09-04 Thread Peter Chen
Chuhong Yuan (1): usb: chipidea: msm: Use device-managed registration API Li Jun (1): usb: chipidea: add role switch class support Peter Chen (2): dt-binding: usb: ci-hdrc-usb2: add imx7ulp compatible dt-binding: usb: usbmisc-imx

Re: [PATCH v4] usb: chipidea: add role switch class support

2019-08-27 Thread Peter Chen
On 19-08-26 18:25:12, jun...@nxp.com wrote: > From: Li Jun > > USB role is fully controlled by usb role switch consumer(e.g. typec), > usb port can be at host mode(USB_ROLE_HOST), device mode connected to > host(USB_ROLE_DEVICE), or not connecting any partner(USB_ROLE_NONE). > > Signed-off-by: L

Re: [PATCH] usb: chipidea: msm: Use device-managed registration API

2019-08-27 Thread Peter Chen
On 19-07-23 11:02:07, Chuhong Yuan wrote: > Use devm_reset_controller_register to get rid > of manual unregistration. > > Signed-off-by: Chuhong Yuan > --- > drivers/usb/chipidea/ci_hdrc_msm.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/usb/chipidea/ci_hd

NULL pointer issue due to .pullup timeout at dwc3

2019-08-26 Thread Peter Chen
el0_svc_handler+0x34/0x90 el0_svc+0x8/0xc Code: aa1303e0 392c203f 97ff8732 f940a260 (f940) It is very easy to reproduce it, just create ncm function, and sleep 1 second, then, remove it. I am not sure if it is the common issue for dwc3, there is no such requirement for chipidea and cadence3. Would you please have a check? Thanks. Best regards, Peter Chen

[PATCH 1/1] usb: gadget: configfs: fix concurrent issue between composite APIs

2019-08-26 Thread Peter Chen
le_irq_event+0x58/0xc0 [] handle_fasteoi_irq+0x98/0x180 [] generic_handle_irq+0x24/0x38 [] __handle_domain_irq+0x60/0xac [] gic_handle_irq+0xd4/0x17c Signed-off-by: Peter Chen --- drivers/usb/gadget/configfs.c | 110 -- 1 file changed, 105 insertions(+), 5 deleti

Re: [PATCH 1/1] usb: xhci: avoid VBus glitch during controller reset operation

2019-08-22 Thread Peter Chen
On 19-08-23 01:59:24, Ran Wang wrote: > HI Peter, Mathias, > > Sorry for the late review. > > On Friday, August 23, 2019 09:02, Peter Chen wrote: > > > > On 19-08-22 14:08:26, Mathias Nyman wrote: > > > On 21.8.2019 6.18, Peter Chen wrote: > > >

Re: [PATCH 1/1] usb: xhci: avoid VBus glitch during controller reset operation

2019-08-22 Thread Peter Chen
On 19-08-22 14:08:26, Mathias Nyman wrote: > On 21.8.2019 6.18, Peter Chen wrote: > > According to xHCI 1.1 CH4.19.4 Port Power: > > While Chip Hardware Reset or HCRST is asserted, > > the value of PP is undefined. If the xHC supports > > powe

[PATCH 1/1] usb: xhci: avoid VBus glitch during controller reset operation

2019-08-20 Thread Peter Chen
: Ran Wang Signed-off-by: Peter Chen --- drivers/usb/host/xhci.c | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c index 6b34a573c3d9..f5a7b5d63031 100644 --- a/drivers/usb/host/xhci.c +++ b/drivers/usb/host

[PATCH 1/2] dt-binding: usb: ci-hdrc-usb2: add imx7ulp compatible

2019-08-19 Thread Peter Chen
Add imx7ulp and imx8qm compatible Signed-off-by: Peter Chen --- Documentation/devicetree/bindings/usb/ci-hdrc-usb2.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/usb/ci-hdrc-usb2.txt b/Documentation/devicetree/bindings/usb/ci-hdrc-usb2.txt index

[PATCH 2/2] dt-binding: usb: usbmisc-imx: add imx7ulp compatible

2019-08-19 Thread Peter Chen
Add imx7ulp compatible Signed-off-by: Peter Chen --- Documentation/devicetree/bindings/usb/usbmisc-imx.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/usb/usbmisc-imx.txt b/Documentation/devicetree/bindings/usb/usbmisc-imx.txt index a85a631ec434

[PATCH 1/1] usb: chipidea: udc: don't do hardware access if gadget has stopped

2019-08-19 Thread Peter Chen
41769810983&w=2. Cc: #v4.9+ Signed-off-by: Peter Chen --- This patch is at NXP internal tree long time, and no issues have found. Submit to mainline kenrel. drivers/usb/chipidea/udc.c | 32 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/driv

[PATCH 0/1] usb: chipidea: fix for v5.3-rc

2019-08-19 Thread Peter Chen
Hi Greg, When the driver enables runtime pm, it may cause the system hang when plug out the cable from PC. The patch fixes this issue by avoiding hardware accessing at this situation. Peter Chen (1): usb: chipidea: udc: don't do hardware access if gadget has stopped drivers/usb/chi

[PATCH 1/1] usb: chipidea: udc: don't do hardware access if gadget has stopped

2019-08-15 Thread Peter Chen
41769810983&w=2. Cc: #v4.9+ Signed-off-by: Peter Chen --- This patch is at NXP internal tree long time, and no issues have found. Submit to mainline kenrel. drivers/usb/chipidea/udc.c | 32 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/driv

RE: [PATCH v3] usb: chipidea: add role switch class support

2019-08-15 Thread Peter Chen
> > Changes for v3: > - Remove the patch usb: chipidea: replace ci_role with usb_role > as the existing ci->role usage can't map to usb_role. > - Use the suggested ci_hdrc_cable for reuse current role change > handling. > - Fix build robot warning by add usb_role head file. > You may need

RE: [PATCH v9 5/6] usb:cdns3 Add Cadence USB3 DRD Driver

2019-08-11 Thread Peter Chen
> > Yes, driver frees not used buffers here. > I think that it's the safest place for this purpose. > > > > +dma_free_coherent(priv_dev->sysdev, buf- > >size, > + buf->buf, > +

RE: [PATCH v2 2/2] usb: chipidea: add role switch class support

2019-08-09 Thread Peter Chen
> > > USB role is fully controlled by usb role switch consumer(e.g. > > > typec), usb port can be at host mode(USB_ROLE_HOST), device mode > > > connected to host(USB_ROLE_DEVICE), or not connecting any > parter(USB_ROLE_NONE). > > > > > > > %s/parter/partner ? > > Yes, I will update. > > > > >

RE: [PATCH v2 2/2] usb: chipidea: add role switch class support

2019-08-08 Thread Peter Chen
> USB role is fully controlled by usb role switch consumer(e.g. typec), usb > port can be > at host mode(USB_ROLE_HOST), device mode connected to > host(USB_ROLE_DEVICE), or not connecting any parter(USB_ROLE_NONE). > %s/parter/partner ? Are there any ways you could get external cable status

RE: EHSET USB testing

2019-08-07 Thread Peter Chen
> > On Wed, Aug 07, 2019 at 10:47:49AM +0300, Felipe Balbi wrote: > > Peter Chen writes: > > >> (Pinging Mathias regarding xHCI support of the USB 2.0 test modes) > > >> > > >> On Mon, Aug 05, 2019 at 02:07:23PM +0800, Peter Chen wrote: >

RE: EHSET USB testing

2019-08-06 Thread Peter Chen
> Hi Everyone, > > (Pinging Mathias regarding xHCI support of the USB 2.0 test modes) > > On Mon, Aug 05, 2019 at 02:07:23PM +0800, Peter Chen wrote: > > On Sun, Aug 4, 2019 at 10:45 AM Evan Gates wrote: > > > > > > I'm trying to get my

RE: [PATCH 2/5] usb: chipidea: add role switch class support

2019-08-06 Thread Peter Chen
> > > > > > > > > > > > You may use connect bit at portsc since VBUS may not connect to SoC. > > > > > > By this way, disconnect can be decided but connect is a problem in > > > current driver, as controller was stopped in low power mode so can't > > > detect connection from host, unless we also

RE: [PATCH 2/5] usb: chipidea: add role switch class support

2019-08-06 Thread Peter Chen
> > > > You may use connect bit at portsc since VBUS may not connect to SoC. > > By this way, disconnect can be decided but connect is a problem in current > driver, > as controller was stopped in low power mode so can't detect connection from > host, > unless we also update this behavior too.

Re: EHSET USB testing

2019-08-04 Thread Peter Chen
On Sun, Aug 4, 2019 at 10:45 AM Evan Gates wrote: > > I'm trying to get my device to pass the EHSET tests. I found the thread > "Using EHSET module" from March. I'm having similar issues. > > I don't have access to the PID VID board that the lab uses. Instead I'm > using another computer setup

RE: [PATCH 2/5] usb: chipidea: add role switch class support

2019-08-04 Thread Peter Chen
> > > > > USB role is fully controlled by usb role switch consumer(e.g. > > > > > typec), usb port either at host mode, or at device connected > > > > > mode, will not stay at USB_ROLE_NONE mode. > > > > > > > > > > > > > Then, if the Type-C cable is disconnected from PC host, the > > > > control

Re: [PATCH 2/5] usb: chipidea: add role switch class support

2019-08-04 Thread Peter Chen
> > > > > USB role is fully controlled by usb role switch consumer(e.g. typec), > > > usb port either at host mode, or at device connected mode, will not > > > stay at USB_ROLE_NONE mode. > > > > > > > Then, if the Type-C cable is disconnected from PC host, the controller > > driver can't be > > n

Re: [PATCH 2/5] usb: chipidea: add role switch class support

2019-08-02 Thread Peter Chen
> USB role is fully controlled by usb role switch consumer(e.g. typec), > usb port either at host mode, or at device connected mode, will not > stay at USB_ROLE_NONE mode. > Then, if the Type-C cable is disconnected from PC host, the controller driver can't be notified?If that, how controller ente

[GIT PULL] usb: chipidea: changes for v5.3-rc1

2019-07-04 Thread Peter Chen
provements, no function change. Fabio Estevam (3): usb: chipidea: Use dev_err() instead of pr_err() usb: chipidea: imx: Use devm_platform_ioremap_resource() usb: chipidea: msm: Use devm_platform_ioremap_resource()

RE: No carrier lost information with gadget RNDIS/ECM

2019-07-03 Thread Peter Chen
> > > Do you have any components at VBUS? > > There were ESD protection diodes that connected D+/D- with VBUS. We removed > those from the PCB and the problem is gone meaning VBUS discharges as > expected, the controller runtime-suspends and ultimately systemd-networkd > reports > a lost carr

RE: No carrier lost information with gadget RNDIS/ECM

2019-07-02 Thread Peter Chen
> > > > I suspect it is not related to USB, would you please disable USB node at > > DTS to > measure again? > > With USB disabled (&usbotg1 and &usbotg2), VBUS is available when I connect to > the host and properly discharged when I disconnect. > I also tried the OTG's host mode yesterday. Whe

RE: [PATCH v5 2/8] usb: phy: phy-mxs-usb: add imx7ulp support

2019-07-01 Thread Peter Chen
> > Hi Felipe, > > Would you please have a review for Patch 1 and Patch 2 in this series? > Thanks. > Ping... The DTS and controller patches have already queued. Thanks. Peter > Peter > > > Signed-off-by: Peter Chen > > --- >

RE: No carrier lost information with gadget RNDIS/ECM

2019-07-01 Thread Peter Chen
> Peter Chen writes: > > That's very strange, that means the SoC doesn't know VBUS fails down after > detaching from the host. > > You could measure the VBUS value at the board, then read the VBUS value at > register to confirm it. > > I have put a scope on

RE: No carrier lost information with gadget RNDIS/ECM

2019-06-30 Thread Peter Chen
> > I have rebooted with 4.9: > > [0.658594] ci_hdrc ci_hdrc.0: entering suspend > > # ConfigFS setup in userspace > > [9.925361] ci_hdrc ci_hdrc.0: leaving suspend > > [ 12.081571] ci_hdrc ci_hdrc.0: entering suspend > > # Attach a cable > > [ 37.869333] ci_hdrc ci_hdrc.0: leaving s

Re: No carrier lost information with gadget RNDIS/ECM

2019-06-27 Thread Peter Chen
> Felipe Balbi writes: > > Kai Ruhnau writes: > >>> Which peripheral controller is this board using? Is it chipidea? dwc2? > >>> dwc3? High Speed or Super Speed? > >> > >> According to the device tree it's 'fsl,imx6sx-usb' driven by > >> chipidea/ci_hdrc_imx.c > >> When connecting to Windows, the

RE: [PATCH] imx: usb: get pinctrl if it's not yet initialized

2019-06-26 Thread Peter Chen
> In case usb phy mode is other than USBPHY_INTERFACE_MODE_HSIC the pinctrl > for device is not acquired. It is however used later regardless of the mode, > hence > leads to requesting access to uninitialized data. > > Signed-off-by: Krzysztof Michonski > --- > drivers/usb/chipidea/ci_hdrc_im

RE: [PATCH] ARM: imx25: provide a fixed regulator for usb phys

2019-06-26 Thread Peter Chen
> On 19-06-26 02:40, Peter Chen wrote: > > > > > Subject: [PATCH] ARM: imx25: provide a fixed regulator for usb phys > > > > > > The usb phys are internal to the SoC and so it their 5V supply. With > > > this regulator added explicitly the foll

RE: [PATCH] ARM: imx25: provide a fixed regulator for usb phys

2019-06-25 Thread Peter Chen
> Subject: [PATCH] ARM: imx25: provide a fixed regulator for usb phys > > The usb phys are internal to the SoC and so it their 5V supply. With this > regulator > added explicitly the following (harmless) boot messages go away: > > usb_phy_generic usbphy:usb-phy@0: usbphy:usb-phy@0 supply

Re: [PATCH v5 2/8] usb: phy: phy-mxs-usb: add imx7ulp support

2019-06-23 Thread Peter Chen
> At imx7ulp, the USB related analog register is located in PHY register > region too, so we need to control PLL at PHY driver directly. > Hi Felipe, Would you please have a review for Patch 1 and Patch 2 in this series? Thanks. Peter > Signed-off-by: Peter Chen > --- > d

[PATCH v5 8/8] usb: chipidea: imx: "fsl,usbphy" phandle is not mandatory now

2019-06-23 Thread Peter Chen
Since the chipidea common code support get the USB PHY phandle from "phys", the glue layer is not mandatory to get the "fsl,usbphy" phandle any more. Signed-off-by: Peter Chen --- drivers/usb/chipidea/ci_hdrc_imx.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)

[PATCH v5 4/8] doc: dt-binding: usbmisc-imx: add compatible string for imx7ulp

2019-06-23 Thread Peter Chen
Add compatible string for imx7ulp Reviewed-by: Rob Herring Signed-off-by: Peter Chen --- Documentation/devicetree/bindings/usb/usbmisc-imx.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/usb/usbmisc-imx.txt b/Documentation/devicetree/bindings/usb

[PATCH v5 6/8] ARM: dts: imx7ulp: add imx7ulp USBOTG1 support

2019-06-23 Thread Peter Chen
Add imx7ulp USBOTG1 support. Signed-off-by: Peter Chen --- arch/arm/boot/dts/imx7ulp.dtsi | 28 1 file changed, 28 insertions(+) diff --git a/arch/arm/boot/dts/imx7ulp.dtsi b/arch/arm/boot/dts/imx7ulp.dtsi index d6b711011cba..2679856aaf65 100644 --- a/arch/arm/boot

[PATCH v5 7/8] ARM: dts: imx7ulp-evk: enable USBOTG1 support

2019-06-23 Thread Peter Chen
Enable USBOTG1 support for evk board, it is dual-role function port. Signed-off-by: Peter Chen --- arch/arm/boot/dts/imx7ulp-evk.dts | 35 +++ 1 file changed, 35 insertions(+) diff --git a/arch/arm/boot/dts/imx7ulp-evk.dts b/arch/arm/boot/dts/imx7ulp-evk.dts

[PATCH v5 5/8] usb: chipidea: imx: add imx7ulp support

2019-06-23 Thread Peter Chen
In this commit, we add CI_HDRC_PMQOS to avoid system entering idle, at imx7ulp, if the system enters idle, the DMA will stop, so the USB transfer can't work at this case. Signed-off-by: Peter Chen --- drivers/usb/chipidea/ci_hdrc_imx.c | 28 +++- drivers/usb/chi

[PATCH v5 3/8] doc: dt-binding: ci-hdrc-usb2: add compatible string for imx7ulp

2019-06-23 Thread Peter Chen
Add compatible string for imx7ulp. Reviewed-by: Rob Herring Signed-off-by: Peter Chen --- Documentation/devicetree/bindings/usb/ci-hdrc-usb2.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/usb/ci-hdrc-usb2.txt b/Documentation/devicetree/bindings/usb

[PATCH v5 2/8] usb: phy: phy-mxs-usb: add imx7ulp support

2019-06-23 Thread Peter Chen
At imx7ulp, the USB related analog register is located in PHY register region too, so we need to control PLL at PHY driver directly. Signed-off-by: Peter Chen --- drivers/usb/phy/phy-mxs-usb.c | 67 ++- 1 file changed, 66 insertions(+), 1 deletion

[PATCH v5 0/8] Add imx7ulp USBOTG1 support

2019-06-23 Thread Peter Chen
Rob. There is a dual-role USB controller at imx7ulp, we add support for it in this patch set, and the dual-role function is tested at imx7ulp-evk board. Thanks. Peter Chen (8): doc: dt-binding: mxs-usb-phy: add compatible for 7ulp usb: phy: phy-mxs-usb: add imx7ulp support doc: dt-binding: ci

[PATCH v5 1/8] doc: dt-binding: mxs-usb-phy: add compatible for 7ulp

2019-06-23 Thread Peter Chen
Add compatible for 7ulp USB PHY. Reviewed-by: Rob Herring Signed-off-by: Peter Chen --- Documentation/devicetree/bindings/phy/mxs-usb-phy.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/phy/mxs-usb-phy.txt b/Documentation/devicetree

[PATCH 0/1] usb: chipidea: fixes for v5.2

2019-06-16 Thread Peter Chen
Hi Greg, We have found an IP bug recently, it will cause the audio device stop working at the HUB downstream face port, and the commit can reduce the possibilities for failures, needs to improve RTL code to fix it totally. Peter Chen (1): usb: chipidea: udc: workaround for endpoint conflict

[PATCH 1/1] usb: chipidea: udc: workaround for endpoint conflict issue

2019-06-16 Thread Peter Chen
could do is numbering isochronous IN from the highest endpoint since we have observed most of device number endpoint from the lowest. Cc: #v3.14+ Cc: Fabio Estevam Cc: Greg KH Cc: Sergei Shtylyov Cc: Jun Li Signed-off-by: Peter Chen --- drivers/usb/chipidea/udc.c | 20 1

RE: [PATCH v4 6/8] ARM: dts: imx7ulp: add imx7ulp USBOTG1 support

2019-06-16 Thread Peter Chen
> > > > Signed-off-by: Peter Chen > > --- > > arch/arm/boot/dts/imx7ulp.dtsi | 28 > > 1 file changed, 28 insertions(+) > > > > diff --git a/arch/arm/boot/dts/imx7ulp.dtsi > > b/arch/arm/boot/dts/imx7ulp.dtsi index

[PATCH v4 8/8] usb: chipidea: imx: "fsl,usbphy" phandle is not mandatory now

2019-06-14 Thread Peter Chen
Since the chipidea common code support get the USB PHY phandle from "phys", the glue layer is not mandatory to get the "fsl,usbphy" phandle any more. Signed-off-by: Peter Chen --- drivers/usb/chipidea/ci_hdrc_imx.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)

[PATCH v4 4/8] doc: dt-binding: usbmisc-imx: add compatible string for imx7ulp

2019-06-14 Thread Peter Chen
Add compatible string for imx7ulp Reviewed-by: Rob Herring Signed-off-by: Peter Chen --- Documentation/devicetree/bindings/usb/usbmisc-imx.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/usb/usbmisc-imx.txt b/Documentation/devicetree/bindings/usb

[PATCH v4 2/8] usb: phy: phy-mxs-usb: add imx7ulp support

2019-06-14 Thread Peter Chen
At imx7ulp, the USB related analog register is located in PHY register region too, so we need to control PLL at PHY driver directly. Signed-off-by: Peter Chen --- drivers/usb/phy/phy-mxs-usb.c | 67 ++- 1 file changed, 66 insertions(+), 1 deletion

[PATCH v4 7/8] ARM: dts: imx7ulp-evk: enable USBOTG1 support

2019-06-14 Thread Peter Chen
Enable USBOTG1 support for evk board, it is dual-role function port. Signed-off-by: Peter Chen --- arch/arm/boot/dts/imx7ulp-evk.dts | 35 +++ 1 file changed, 35 insertions(+) diff --git a/arch/arm/boot/dts/imx7ulp-evk.dts b/arch/arm/boot/dts/imx7ulp-evk.dts

[PATCH v4 5/8] usb: chipidea: imx: add imx7ulp support

2019-06-14 Thread Peter Chen
In this commit, we add CI_HDRC_PMQOS to avoid system entering idle, at imx7ulp, if the system enters idle, the DMA will stop, so the USB transfer can't work at this case. Signed-off-by: Peter Chen --- drivers/usb/chipidea/ci_hdrc_imx.c | 28 +++- drivers/usb/chi

[PATCH v4 6/8] ARM: dts: imx7ulp: add imx7ulp USBOTG1 support

2019-06-14 Thread Peter Chen
Add imx7ulp USBOTG1 support. Signed-off-by: Peter Chen --- arch/arm/boot/dts/imx7ulp.dtsi | 28 1 file changed, 28 insertions(+) diff --git a/arch/arm/boot/dts/imx7ulp.dtsi b/arch/arm/boot/dts/imx7ulp.dtsi index fca6e50f37c8..5115e47715c3 100644 --- a/arch/arm/boot

[PATCH v4 3/8] doc: dt-binding: ci-hdrc-usb2: add compatible string for imx7ulp

2019-06-14 Thread Peter Chen
Add compatible string for imx7ulp. Reviewed-by: Rob Herring Signed-off-by: Peter Chen --- Documentation/devicetree/bindings/usb/ci-hdrc-usb2.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/usb/ci-hdrc-usb2.txt b/Documentation/devicetree/bindings/usb

[PATCH v4 0/8] Add imx7ulp USBOTG1 support

2019-06-14 Thread Peter Chen
ual-role function is tested at imx7ulp-evk board. Thanks. Peter Chen (8): doc: dt-binding: mxs-usb-phy: add compatible for 7ulp usb: phy: phy-mxs-usb: add imx7ulp support doc: dt-binding: ci-hdrc-usb2: add compatible string for imx7ulp doc: dt-binding: usbmisc-imx: add compatible string fo

[PATCH v4 1/8] doc: dt-binding: mxs-usb-phy: add compatible for 7ulp

2019-06-14 Thread Peter Chen
Add compatible for 7ulp USB PHY. Reviewed-by: Rob Herring Signed-off-by: Peter Chen --- Documentation/devicetree/bindings/phy/mxs-usb-phy.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/phy/mxs-usb-phy.txt b/Documentation/devicetree/bindings/phy/mxs

RE: [PATCH v3 6/8] ARM: dts: imx7ulp: add imx7ulp USBOTG1 support

2019-06-05 Thread Peter Chen
> > Signed-off-by: Peter Chen > > --- > > arch/arm/boot/dts/imx7ulp.dtsi | 31 +++ > > 1 file changed, 31 insertions(+) > > > > diff --git a/arch/arm/boot/dts/imx7ulp.dtsi > > b/arch/arm/boot/dts/imx7ulp.dtsi index fca6e

[PATCH v3 1/1] usb: chipidea: udc: workaround for endpoint conflict issue

2019-06-03 Thread Peter Chen
could do is numbering isochronous IN from the highest endpoint since we have observed most of device number endpoint from the lowest. Cc: #v3.14+ Cc: Fabio Estevam Cc: Greg KH Cc: Sergei Shtylyov Cc: Jun Li Signed-off-by: Peter Chen --- Changes for v3: - Using MACRO to simply the code - One

Re: [PATCH v2 1/1] usb: chipidea: udc: workaround for endpoint conflict issue

2019-06-02 Thread Peter Chen
On Thu, May 30, 2019 at 10:14 PM Fabio Estevam wrote: > > Hi Peter, > > On Thu, May 30, 2019 at 5:50 AM Peter Chen wrote: > > > > An endpoint conflict occurs when the USB is working in device mode > > during an isochronous communication. When the endpointA IN dire

[PATCH v2 1/1] usb: chipidea: udc: workaround for endpoint conflict issue

2019-05-30 Thread Peter Chen
could do is numbering isochronous IN from the highest endpoint since we have observed most of device number endpoint from the lowest. Cc: Sergei Shtylyov Cc: Jun Li Signed-off-by: Peter Chen --- Changes for v2: - Improve the code sytle drivers/usb/chipidea/udc.c | 23 +++ 1

RE: [PATCH 1/1] usb: chipidea: udc: workaround for endpoint conflict issue

2019-05-30 Thread Peter Chen
> On 30.05.2019 9:45, Peter Chen wrote: > > > An endpoint conflict occurs when the USB is working in device mode > > during an isochronous communication. When the endpointA IN direction > > is an isochronous IN endpoint, and the host sends an IN token to > > end

[PATCH 1/1] usb: chipidea: udc: workaround for endpoint conflict issue

2019-05-29 Thread Peter Chen
could do is numbering isochronous IN from the highest endpoint since we have observed most of device number endpoint from the lowest. Cc: #v3.14+ Cc: Jun Li Signed-off-by: Peter Chen --- Changes for v2: - Some coding style improvements drivers/usb/chipidea/udc.c | 24 1

Re: [PATCH 1/1] usb: chipidea: udc: workaround for endpoint conflict issue

2019-05-27 Thread Peter Chen
On Mon, May 27, 2019 at 5:04 PM Sergei Shtylyov wrote: > > On 27.05.2019 10:42, Peter Chen wrote: > > > An endpoint conflict occurs when the USB is working in device mode > > during an isochronous communication. When the endpointA IN direction > > is an isochronous IN e

[PATCH 1/1] usb: chipidea: udc: workaround for endpoint conflict issue

2019-05-27 Thread Peter Chen
could do is numbering isochronous IN from the highest endpoint since we have observed most of device number endpoint from the lowest. Cc: #v3.14+ Cc: Jun Li Signed-off-by: Peter Chen --- drivers/usb/chipidea/udc.c | 24 1 file changed, 24 insertions(+) diff --git a

[PATCH v3 3/8] doc: dt-binding: ci-hdrc-usb2: add compatible string for imx7ulp

2019-05-26 Thread Peter Chen
Add compatible string for imx7ulp. Reviewed-by: Rob Herring Signed-off-by: Peter Chen --- Documentation/devicetree/bindings/usb/ci-hdrc-usb2.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/usb/ci-hdrc-usb2.txt b/Documentation/devicetree/bindings/usb

[PATCH v3 5/8] usb: chipidea: imx: add imx7ulp support

2019-05-26 Thread Peter Chen
In this commit, we add CI_HDRC_PMQOS to avoid system entering idle, at imx7ulp, if the system enters idle, the DMA will stop, so the USB transfer can't work at this case. Signed-off-by: Peter Chen --- drivers/usb/chipidea/ci_hdrc_imx.c | 28 +++- drivers/usb/chi

[PATCH v3 6/8] ARM: dts: imx7ulp: add imx7ulp USBOTG1 support

2019-05-26 Thread Peter Chen
Add imx7ulp USBOTG1 support. Signed-off-by: Peter Chen --- arch/arm/boot/dts/imx7ulp.dtsi | 31 +++ 1 file changed, 31 insertions(+) diff --git a/arch/arm/boot/dts/imx7ulp.dtsi b/arch/arm/boot/dts/imx7ulp.dtsi index fca6e50f37c8..37b058119505 100644 --- a/arch/arm

[PATCH v3 4/8] doc: dt-binding: usbmisc-imx: add compatible string for imx7ulp

2019-05-26 Thread Peter Chen
Add compatible string for imx7ulp Reviewed-by: Rob Herring Signed-off-by: Peter Chen --- Documentation/devicetree/bindings/usb/usbmisc-imx.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/usb/usbmisc-imx.txt b/Documentation/devicetree/bindings/usb

[PATCH v3 7/8] ARM: dts: imx7ulp-evk: enable USBOTG1 support

2019-05-26 Thread Peter Chen
Enable USBOTG1 support for evk board, it is dual-role function port. Signed-off-by: Peter Chen --- arch/arm/boot/dts/imx7ulp-evk.dts | 35 +++ 1 file changed, 35 insertions(+) diff --git a/arch/arm/boot/dts/imx7ulp-evk.dts b/arch/arm/boot/dts/imx7ulp-evk.dts

[PATCH v3 1/8] doc: dt-binding: mxs-usb-phy: add compatible for 7ulp

2019-05-26 Thread Peter Chen
Add compatible for 7ulp USB PHY. Reviewed-by: Rob Herring Signed-off-by: Peter Chen --- Documentation/devicetree/bindings/phy/mxs-usb-phy.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/phy/mxs-usb-phy.txt b/Documentation/devicetree/bindings/phy/mxs

[PATCH v3 0/8] Add imx7ulp USBOTG1 support

2019-05-26 Thread Peter Chen
last patch that "fsl,usbphy" phandle is not mandatory now [Patch 8/8] - Add Reviewed-by from Rob. There is a dual-role USB controller at imx7ulp, we add support for it in this patch set, and the dual-role function is tested at imx7ulp-evk board. Thanks. Peter Chen (8): doc: dt-bindin

[PATCH v3 2/8] usb: phy: phy-mxs-usb: add imx7ulp support

2019-05-26 Thread Peter Chen
At imx7ulp, the USB related analog register is located in PHY register region too, so we need to control PLL at PHY driver directly. Signed-off-by: Peter Chen --- drivers/usb/phy/phy-mxs-usb.c | 67 ++- 1 file changed, 66 insertions(+), 1 deletion

[PATCH v3 8/8] usb: chipidea: imx: "fsl,usbphy" phandle is not mandatory now

2019-05-26 Thread Peter Chen
Since the chipidea common code support get the USB PHY phandle from "phys", the glue layer is not mandatory to get the "fsl,usbphy" phandle any more. Signed-off-by: Peter Chen --- drivers/usb/chipidea/ci_hdrc_imx.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)

RE: [PATCH v2 6/8] ARM: dts: imx7ulp: add imx7ulp USBOTG1 support

2019-05-21 Thread Peter Chen
> > 1 file changed, 31 insertions(+) > > > > diff --git a/arch/arm/boot/dts/imx7ulp.dtsi > > b/arch/arm/boot/dts/imx7ulp.dtsi index fca6e50f37c8..60c9ea116d0a > > 100644 > > --- a/arch/arm/boot/dts/imx7ulp.dtsi > > +++ b/arch/arm/boot/dts/imx7ulp.dtsi > > @@ -30,6 +30,7 @@ > > serial

RE: [PATCH v2 2/8] usb: phy: phy-mxs-usb: add imx7ulp support

2019-05-14 Thread Peter Chen
> > Signed-off-by: Peter Chen > > --- > > drivers/usb/phy/phy-mxs-usb.c | 76 > > ++- > > 1 file changed, 75 insertions(+), 1 deletion(-) > > > > diff --git a/drivers/usb/phy/phy-mxs-usb.c > > b/

  1   2   3   4   5   6   7   8   9   10   >