Re: [PATCH v5 1/5] phy: add a driver for the Rockchip SoC internal USB2.0 PHY

2014-12-10 Thread Yunzhi Li
On 2014/12/11 14:37, Joe Perches wrote: On Thu, 2014-12-11 at 11:57 +0530, Kishon Vijay Abraham I wrote: Hi, On Thursday 11 December 2014 11:42 AM, Joe Perches wrote: On Thu, 2014-12-11 at 11:32 +0530, Kishon Vijay Abraham I wrote: On Wednesday 10 December 2014 04:16 PM, Yunzhi Li wrote

Re: [PATCH v5 1/5] phy: add a driver for the Rockchip SoC internal USB2.0 PHY

2014-12-10 Thread Yunzhi Li
Hi Kishon: On 2014/12/11 14:02, Kishon Vijay Abraham I wrote: Hi, On Wednesday 10 December 2014 04:16 PM, Yunzhi Li wrote: This patch to add a generic PHY driver for ROCKCHIP usb PHYs, currently this driver can support RK3288. The RK3288 SoC have three independent USB PHY IPs which are all

[PATCH v6 0/5] Patches to add support for Rockchip usb PHYs.

2014-12-11 Thread Yunzhi Li
only one branch of the conditional statement is a single statement should have braces. - No need to test dwc2-phy for NULL before calling generic phy APIs. Yunzhi Li (5): phy: add a driver for the Rockchip SoC internal USB2.0 PHY Documentation: bindings: add dt documentation for Rockchip usb

[PATCH v6 1/5] phy: add a driver for the Rockchip SoC internal USB2.0 PHY

2014-12-11 Thread Yunzhi Li
This patch to add a generic PHY driver for ROCKCHIP usb PHYs, currently this driver can support RK3288. The RK3288 SoC have three independent USB PHY IPs which are all configured through a set of registers located in the GRF (general register files) module. Signed-off-by: Yunzhi Li l...@rock

[PATCH v6 2/5] Documentation: bindings: add dt documentation for Rockchip usb PHY

2014-12-11 Thread Yunzhi Li
This patch adds a binding that describes the Rockchip usb PHYs found on Rockchip SoCs usb interface. Signed-off-by: Yunzhi Li l...@rock-chips.com --- Changes in v6: None Changes in v5: - Adjust entry order of example devicetree node in document. Changes in v4: - Updata description for phy

[PATCH v6 3/5] usb: dwc2: add generic PHY framework support for dwc2 usb controler platform driver.

2014-12-11 Thread Yunzhi Li
Get PHY parameters from devicetree and power off usb PHY during system suspend. Signed-off-by: Yunzhi Li l...@rock-chips.com Acked-by: Paul Zimmerman pa...@synopsys.com --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: - Fix coding style: both branches

[PATCH v6 4/5] ARM: dts: rockchip: add rk3288 usb PHY

2014-12-11 Thread Yunzhi Li
This patch adds a device_node for RK3288 SoC usb phy. It also defines the phy to be used by three usb controllers: usb_host0/1 and usb_otg. Signed-off-by: Yunzhi Li l...@rock-chips.com --- Changes in v6: None Changes in v5: - reorder the phy dt node to a correct position. Changes in v4: - Add

[PATCH v6 5/5] ARM: dts: rockchip: Enable usb PHY on rk3288-evb board

2014-12-11 Thread Yunzhi Li
Enable usb PHY for all usb ports on rk3288-evb. Signed-off-by: Yunzhi Li l...@rock-chips.com --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None arch/arm/boot/dts/rk3288-evb.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/rk3288

Re: [PATCH v6 1/5] phy: add a driver for the Rockchip SoC internal USB2.0 PHY

2014-12-11 Thread Yunzhi Li
Hi Kishon: On 2014/12/11 18:27, Kishon Vijay Abraham I wrote: Hi, On Thursday 11 December 2014 03:25 PM, Yunzhi Li wrote: + +static struct phy *rockchip_usb_phy_xlate(struct device *dev, + struct of_phandle_args *args) +{ + struct

Re: [PATCH v6 1/5] phy: add a driver for the Rockchip SoC internal USB2.0 PHY

2014-12-11 Thread Yunzhi Li
Hi Doug: On 2014/12/12 2:09, Doug Anderson wrote: Yunzhi, On Thu, Dec 11, 2014 at 1:55 AM, Yunzhi Li l...@rock-chips.com wrote: + rk_phy-clk = of_clk_get(child, 0); + if (IS_ERR(rk_phy-clk)) { + dev_warn(dev, failed to get clock\n

[PATCH v7 0/5] Patches to add support for Rockchip usb PHYs.

2014-12-12 Thread Yunzhi Li
generic phy APIs. Yunzhi Li (5): Documentation: bindings: add dt documentation for Rockchip usb PHY phy: add a driver for the Rockchip SoC internal USB2.0 PHY usb: dwc2: add generic PHY framework support for dwc2 usb controler platform driver. ARM: dts: rockchip: add rk3288 usb PHY ARM

[PATCH v7 0/5] Patches to add support for Rockchip usb PHYs.

2014-12-12 Thread Yunzhi Li
generic phy APIs. Yunzhi Li (5): Documentation: bindings: add dt documentation for Rockchip usb PHY phy: add a driver for the Rockchip SoC internal USB2.0 PHY usb: dwc2: add generic PHY framework support for dwc2 usb controler platform driver. ARM: dts: rockchip: add rk3288 usb PHY ARM

[PATCH v7 1/5] Documentation: bindings: add dt documentation for Rockchip usb PHY

2014-12-12 Thread Yunzhi Li
This patch adds a binding that describes the Rockchip usb PHYs found on Rockchip SoCs usb interface. Signed-off-by: Yunzhi Li l...@rock-chips.com --- Changes in v7: - Update bindings doc Changes in v6: None Changes in v5: - Adjust entry order of example devicetree node in document. Changes

[PATCH v7 2/5] phy: add a driver for the Rockchip SoC internal USB2.0 PHY

2014-12-12 Thread Yunzhi Li
This patch to add a generic PHY driver for ROCKCHIP usb PHYs, currently this driver can support RK3288. The RK3288 SoC have three independent USB PHY IPs which are all configured through a set of registers located in the GRF (general register files) module. Signed-off-by: Yunzhi Li l...@rock

[PATCH v7 3/5] usb: dwc2: add generic PHY framework support for dwc2 usb controler platform driver.

2014-12-12 Thread Yunzhi Li
Get PHY parameters from devicetree and power off usb PHY during system suspend. Signed-off-by: Yunzhi Li l...@rock-chips.com Acked-by: Paul Zimmerman pa...@synopsys.com --- Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: - Fix coding style: both

[PATCH v7 4/5] ARM: dts: rockchip: add rk3288 usb PHY

2014-12-12 Thread Yunzhi Li
This patch adds a device_node for RK3288 SoC usb phy. It also defines the phy to be used by three usb controllers: usb_host0/1 and usb_otg. Signed-off-by: Yunzhi Li l...@rock-chips.com --- Changes in v7: - Update dtsi for new usb phy driver. Changes in v6: None Changes in v5: - reorder the phy

[PATCH v7 5/5] ARM: dts: rockchip: Enable usb PHY on rk3288-evb board

2014-12-12 Thread Yunzhi Li
Enable usb PHY for all usb ports on rk3288-evb. Signed-off-by: Yunzhi Li l...@rock-chips.com --- Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None arch/arm/boot/dts/rk3288-evb.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch

Re: Re: [PATCH] phy: add Rockchip RK3288 USB2 PHY driver.

2014-12-04 Thread Yunzhi Li
Hi Heiko Am Mittwoch, 3. Dezember 2014, 21:46:50 schrieb LiYunzhi: + +}; + +static int rockchip_usb_phy_power(struct rockchip_usb_phy *phy, + bool siddq) +{ + return regmap_write(phy-reg_base, phy-reg_offset, + SIDDQ_MSK

[PATCH v2 3/5] usb: dwc2: Add generic PHY framework support for dwc2 usb controler platform driver.

2014-12-05 Thread Yunzhi Li
Get PHY parameters from devicetree and power off usb PHY during system suspend. Signed-off-by: Yunzhi Li l...@rock-chips.com --- drivers/usb/dwc2/gadget.c | 33 - drivers/usb/dwc2/platform.c | 34 ++ 2 files changed, 46

[PATCH v2 4/5] ARM: dts: add rk3288 usb PHY

2014-12-05 Thread Yunzhi Li
Add dt nodes for rk3288 usb PHY. Signed-off-by: Yunzhi Li l...@rock-chips.com --- arch/arm/boot/dts/rk3288.dtsi | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi index 874e66d..a663c4c 100644 --- a/arch/arm/boot/dts

[PATCH v2 2/5] Documentation: bindings: add doc for the Rockchip usb PHY

2014-12-05 Thread Yunzhi Li
Document the bindings of the Rockchip usb PHY driver. Signed-off-by: Yunzhi Li l...@rock-chips.com --- .../devicetree/bindings/phy/rockchip-usb-phy.txt | 22 ++ 1 file changed, 22 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/rockchip-usb-phy.txt

[PATCH v2 0/5]

2014-12-05 Thread Yunzhi Li
in total during sustem suspend. Yunzhi Li (5): phy: add a driver for the Rockchip SoC internal USB2.0 PHY. Documentation: bindings: add doc for the Rockchip usb PHY usb: dwc2: Add generic PHY framework support for dwc2 usb controler platform driver. ARM: dts: add rk3288 usb PHY ARM

[PATCH v2 1/5] phy: add a driver for the Rockchip SoC internal USB2.0 PHY.

2014-12-05 Thread Yunzhi Li
This patche to add a generic PHY driver for ROCKCHIP usb PHYs, currently this driver can support RK3288. The RK3288 SoC have three independent USB PHY IPs which are all configured through a set of registers located in the GRF (general register files) module. Signed-off-by: Yunzhi Li l...@rock

Re: [PATCH v2 3/5] usb: dwc2: Add generic PHY framework support for dwc2 usb controler platform driver.

2014-12-07 Thread Yunzhi Li
Hi Paul: Thank you for replying. On 2014/12/6 3:04, Paul Zimmerman wrote: From: Yunzhi Li [mailto:l...@rock-chips.com] Sent: Friday, December 05, 2014 4:52 AM Get PHY parameters from devicetree and power off usb PHY during system suspend. Signed-off-by: Yunzhi Li l...@rock-chips.com

Re: [PATCH v2 1/5] phy: add a driver for the Rockchip SoC internal USB2.0 PHY.

2014-12-07 Thread Yunzhi Li
Hi Romain : On 2014/12/5 21:38, Romain Perier wrote: Hi, Some quick comments 2014-12-05 13:52 GMT+01:00 Yunzhi Li l...@rock-chips.com: [...] diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig index ccad880..e3a5857 100644 --- a/drivers/phy/Kconfig +++ b/drivers/phy/Kconfig @@ -239,6

[PATCH v3 4/5] ARM: dts: add rk3288 usb PHY

2014-12-08 Thread Yunzhi Li
This patch adds a device_node for RK3288 SoC usb phy. It also defines the phy to be used by three usb controllers: usb_host0/1 and usb_otg. Signed-off-by: Yunzhi Li l...@rock-chips.com --- Changes in v3: - Add more context about the changes in the long description. arch/arm/boot/dts/rk3288

[PATCH v3 0/5]

2014-12-08 Thread Yunzhi Li
-phy for NULL before calling generic phy APIs. - Add more context about the changes in the long description. Yunzhi Li (5): phy: add a driver for the Rockchip SoC internal USB2.0 PHY Documentation: bindings: add doc for the Rockchip usb PHY usb: dwc2: add generic PHY framework support

[PATCH v3 1/5] phy: add a driver for the Rockchip SoC internal USB2.0 PHY

2014-12-08 Thread Yunzhi Li
This patche to add a generic PHY driver for ROCKCHIP usb PHYs, currently this driver can support RK3288. The RK3288 SoC have three independent USB PHY IPs which are all configured through a set of registers located in the GRF (general register files) module. Signed-off-by: Yunzhi Li l...@rock

[PATCH v3 3/5] usb: dwc2: add generic PHY framework support for dwc2 usb controler platform driver.

2014-12-08 Thread Yunzhi Li
Get PHY parameters from devicetree and power off usb PHY during system suspend. Signed-off-by: Yunzhi Li l...@rock-chips.com --- Changes in v3: - Fix coding style: both branches of the if() which only one branch of the conditional statement is a single statement should have braces

[PATCH v3 2/5] Documentation: bindings: add doc for the Rockchip usb PHY

2014-12-08 Thread Yunzhi Li
Document the bindings of the Rockchip usb PHY driver. Signed-off-by: Yunzhi Li l...@rock-chips.com --- Changes in v3: None .../devicetree/bindings/phy/rockchip-usb-phy.txt | 22 ++ 1 file changed, 22 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy

Re: [PATCH v3 1/5] phy: add a driver for the Rockchip SoC internal USB2.0 PHY

2014-12-08 Thread Yunzhi Li
Hi Kishon : On 2014/12/8 17:57, Kishon Vijay Abraham I wrote: Hi, On Monday 08 December 2014 03:16 PM, Yunzhi Li wrote: This patche to add a generic PHY driver for ROCKCHIP usb PHYs, %s/patche/patch Sorry for this typo. +#include linux/reset.h +#include linux/regmap.h +#include linux/mfd

[PATCH v4 1/5] phy: add a driver for the Rockchip SoC internal USB2.0 PHY

2014-12-08 Thread Yunzhi Li
This patch to add a generic PHY driver for ROCKCHIP usb PHYs, currently this driver can support RK3288. The RK3288 SoC have three independent USB PHY IPs which are all configured through a set of registers located in the GRF (general register files) module. Signed-off-by: Yunzhi Li l...@rock

[PATCH v4 0/5] Patches to add support for Rockchip usb PHYs.

2014-12-08 Thread Yunzhi Li
to PHY_ROCKCHIP_USB. Yunzhi Li (5): phy: add a driver for the Rockchip SoC internal USB2.0 PHY Documentation: bindings: add doc for the Rockchip usb PHY usb: dwc2: add generic PHY framework support for dwc2 usb controler platform driver. ARM: dts: add rk3288 usb PHY ARM: dts: Enable usb PHY

[PATCH v4 2/5] Documentation: bindings: add doc for the Rockchip usb PHY

2014-12-08 Thread Yunzhi Li
Document the bindings of the Rockchip usb PHY driver. Signed-off-by: Yunzhi Li l...@rock-chips.com --- Changes in v4: - Updata description for phy device tree subnode. Changes in v3: None .../devicetree/bindings/phy/rockchip-usb-phy.txt | 32 ++ 1 file changed, 32

[PATCH v4 3/5] usb: dwc2: add generic PHY framework support for dwc2 usb controler platform driver.

2014-12-08 Thread Yunzhi Li
Get PHY parameters from devicetree and power off usb PHY during system suspend. Signed-off-by: Yunzhi Li l...@rock-chips.com Acked-by: Paul Zimmerman pa...@synopsys.com Changes in v3: - Fix coding style: both branches of the if() which only one branch of the conditional statement is a single

[PATCH v4 4/5] ARM: dts: add rk3288 usb PHY

2014-12-08 Thread Yunzhi Li
This patch adds a device_node for RK3288 SoC usb phy. It also defines the phy to be used by three usb controllers: usb_host0/1 and usb_otg. Signed-off-by: Yunzhi Li l...@rock-chips.com --- Changes in v4: - Add phy subnodes. Changes in v3: None arch/arm/boot/dts/rk3288.dtsi | 27

[PATCH v4 5/5] ARM: dts: Enable usb PHY on rk3288-evb board

2014-12-08 Thread Yunzhi Li
Enable usb PHY for all usb ports on rk3288-evb. Signed-off-by: Yunzhi Li l...@rock-chips.com --- Changes in v4: None Changes in v3: None arch/arm/boot/dts/rk3288-evb.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/rk3288-evb.dtsi b/arch/arm/boot/dts/rk3288

[Resend PATCH v4 3/5] usb: dwc2: add generic PHY

2014-12-08 Thread Yunzhi Li
Get PHY parameters from devicetree and power off usb PHY during system suspend. Signed-off-by: Yunzhi Li l...@rock-chips.com Acked-by: Paul Zimmerman pa...@synopsys.com --- Hi Felipe, Sorry for my mistake, I have fixed the commit log. Changes in v4: None Changes in v3: - Fix coding

Re: [PATCH v4 1/5] phy: add a driver for the Rockchip SoC internal USB2.0 PHY

2014-12-10 Thread Yunzhi Li
Hi Romain: On 2014/12/9 18:41, Romain Perier wrote: Hi, 2014-12-09 3:43 GMT+01:00 Yunzhi Li l...@rock-chips.com: Changes in v3: - Use BIT macro instead of bit shift ops. - Rename the config entry to PHY_ROCKCHIP_USB. Contradiction between this , [1] and [2] drivers/phy/Kconfig

[PATCH v5 0/5] Patches to add support for Rockchip usb PHYs.

2014-12-10 Thread Yunzhi Li
dwc2-phy for NULL before calling generic phy APIs. Yunzhi Li (5): phy: add a driver for the Rockchip SoC internal USB2.0 PHY Documentation: bindings: add dt documentation for Rockchip usb PHY usb: dwc2: add generic PHY framework support for dwc2 usb controler platform driver. ARM

[PATCH v5 1/5] phy: add a driver for the Rockchip SoC internal USB2.0 PHY

2014-12-10 Thread Yunzhi Li
This patch to add a generic PHY driver for ROCKCHIP usb PHYs, currently this driver can support RK3288. The RK3288 SoC have three independent USB PHY IPs which are all configured through a set of registers located in the GRF (general register files) module. Signed-off-by: Yunzhi Li l...@rock

[PATCH v5 2/5] Documentation: bindings: add dt documentation for Rockchip usb PHY

2014-12-10 Thread Yunzhi Li
This patch adds a binding that describes the Rockchip usb PHYs found on Rockchip SoCs usb interface. Signed-off-by: Yunzhi Li l...@rock-chips.com --- Changes in v5: - Adjust entry order of example devicetree node in document. Changes in v4: - Updata description for phy device tree subnode

[PATCH v5 4/5] ARM: dts: rockchip: add rk3288 usb PHY

2014-12-10 Thread Yunzhi Li
This patch adds a device_node for RK3288 SoC usb phy. It also defines the phy to be used by three usb controllers: usb_host0/1 and usb_otg. Signed-off-by: Yunzhi Li l...@rock-chips.com --- Changes in v5: - reorder the phy dt node to a correct position. Changes in v4: - Add phy subnodes

[PATCH v5 3/5] usb: dwc2: add generic PHY framework support for dwc2 usb controler platform driver.

2014-12-10 Thread Yunzhi Li
Get PHY parameters from devicetree and power off usb PHY during system suspend. Signed-off-by: Yunzhi Li l...@rock-chips.com Acked-by: Paul Zimmerman pa...@synopsys.com --- Changes in v5: None Changes in v4: None Changes in v3: - Fix coding style: both branches of the if() which only one

Re: [PATCH v7 2/5] phy: add a driver for the Rockchip SoC internal USB2.0 PHY

2015-01-21 Thread Yunzhi Li
Hi Kishon : Hi, On Wednesday 21 January 2015 03:36 PM, Yunzhi Li wrote: Hi Kishon : Hi, On Friday 12 December 2014 08:37 PM, Yunzhi Li wrote: This patch to add a generic PHY driver for ROCKCHIP usb PHYs, currently this driver can support RK3288. The RK3288 SoC have three independent USB

Re: [PATCH v7 2/5] phy: add a driver for the Rockchip SoC internal USB2.0 PHY

2015-01-21 Thread Yunzhi Li
Hi Kishon : Hi, On Friday 12 December 2014 08:37 PM, Yunzhi Li wrote: This patch to add a generic PHY driver for ROCKCHIP usb PHYs, currently this driver can support RK3288. The RK3288 SoC have three independent USB PHY IPs which are all configured through a set of registers located in the GRF

Re: [PATCH v7 3/5] usb: dwc2: add generic PHY framework support for dwc2 usb controler platform driver.

2015-01-10 Thread Yunzhi Li
Hi paul: 在 2015/1/9 10:15, Paul Zimmerman 写道: [...] /* -* Attempt to find a generic PHY, then look for an old style -* USB PHY, finally fall back to pdata +* If platform probe couldn't find a generic PHY or an old style +* USB PHY, fall back to pdata

Re: [PATCH v7 3/5] usb: dwc2: add generic PHY framework support for dwc2 usb controler platform driver.

2015-01-10 Thread Yunzhi Li
Hi Paul: On 2015/1/9 10:15, Paul Zimmerman wrote: /* -* Attempt to find a generic PHY, then look for an old style -* USB PHY, finally fall back to pdata +* If platform probe couldn't find a generic PHY or an old style +* USB PHY, fall back to pdata

[RFC PATCH v1] usb: dwc2: reduce dwc2 driver probe time

2015-02-10 Thread Yunzhi Li
board. It works well. Signed-off-by: Yunzhi Li l...@rock-chips.com --- drivers/usb/dwc2/core.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/usb/dwc2/core.c b/drivers/usb/dwc2/core.c index d5197d4..bdafb9d 100644 --- a/drivers/usb/dwc2/core.c +++ b

Re: [PATCH RESEND] usb: dwc2: avoid leaking DMA channels on disconnection

2015-03-16 Thread Yunzhi Li
; + } else { + hsotg-non_periodic_channels = 0; + hsotg-periodic_channels = 0; + } } /** I have reviewed this patch. Obviously,it makes sense. Reviewed-by: Yunzhi Li l...@rock-chips.com -- To unsubscribe from this list: send the line unsubscribe linux

[PATCH] usb: dwc2: gadget: cleanup useless code

2015-04-26 Thread Yunzhi Li
dwc2 gadget driver s3c_hsotg_of_probe() run twice in dwc2_gadget_init() and the first one is useless, so remove it. Signed-off-by: Yunzhi Li l...@rock-chips.com --- drivers/usb/dwc2/gadget.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/usb/dwc2/gadget.c b/drivers/usb/dwc2

[PATCH v1 2/2] ARM: dts: rockchip: set dr_mode property for rk3288-firefly board

2015-04-26 Thread Yunzhi Li
rk3288-firefly board use the dwc2 usb otg controller as a host controller and the device mode not used, so the dr_mode should be host then the dwc2 usb otg controller will work at host only mode Signed-off-by: Yunzhi Li l...@rock-chips.com --- arch/arm/boot/dts/rk3288-firefly.dtsi | 1 + 1

[PATCH v1 1/2] ARM: dts: rockchip: add properties for dwc2 usb otg controller

2015-04-26 Thread Yunzhi Li
Add properties for dwc2 usb device controller according to Documentation/devicetree/bindings/usb/dwc2.txt Signed-off-by: Yunzhi Li l...@rock-chips.com --- arch/arm/boot/dts/rk3288.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts

[PATCH v1] usb: dwc2: gadget: fix a memory use-after-free bug

2015-05-28 Thread Yunzhi Li
] (__handle_domain_irq) from [c01003b0] (gic_handle_irq+0x48/0x6c) [ 27.849695] [c01003b0] (gic_handle_irq) from [c010b340] (__irq_svc+0x40/0x50) [ 27.886907] Exception stack(0xc0d01ee0 to 0xc0d01f28) Signed-off-by: Yunzhi Li l...@rock-chips.com --- drivers/usb/dwc2/gadget.c | 6 +++--- 1 file

Re: [PATCH v1 1/3] usb: dwc2: reset AHB hclk domain before init

2015-08-18 Thread Yunzhi Li
Hi John, 在 2015/8/15 3:41, John Youn 写道: On 8/13/2015 8:29 PM, Yunzhi Li wrote: 在 2015/8/14 8:09, John Youn 写道: On 8/11/2015 12:57 AM, Yunzhi Li wrote: We initiate dwc2 usb controller in BIOS, when kernel driver start-up we should reset AHB hclk domain to reset all AHB interface registers

[PATCH v2] usb: dwc2: reset dwc2 core before dwc2_get_hwparams()

2015-08-18 Thread Yunzhi Li
could avoid warnning massage like in rk3288 platform: [2.074764] dwc2 ff58.usb: 256 invalid for host_perio_tx_fifo_size. Check HW configuration. Signed-off-by: Yunzhi Li l...@rock-chips.com --- drivers/usb/dwc2/core.c | 2 +- drivers/usb/dwc2/core.h | 1 + drivers/usb/dwc2

[PATCH v3] usb: dwc2: reset dwc2 core before dwc2_get_hwparams()

2015-08-19 Thread Yunzhi Li
could avoid warnning massage like in rk3288 platform: [2.074764] dwc2 ff58.usb: 256 invalid for host_perio_tx_fifo_size. Check HW configuration. Signed-off-by: Yunzhi Li l...@rock-chips.com --- drivers/usb/dwc2/core.c | 2 +- drivers/usb/dwc2/core.h | 1 + drivers/usb/dwc2

[PATCH v1 1/3] usb: dwc2: reset AHB hclk domain before init

2015-08-11 Thread Yunzhi Li
. This patch could avoid warnning massage like in rk3288 platform: [2.074764] dwc2 ff58.usb: 256 invalid for host_perio_tx_fifo_size. Check HW configuration. Signed-off-by: Yunzhi Li l...@rock-chips.com --- drivers/usb/dwc2/platform.c | 12 1 file changed, 12 insertions

[PATCH v1 2/3] Documentation: dt-bindings: add dt binding info for dwc2 reset control

2015-08-11 Thread Yunzhi Li
Signed-off-by: Yunzhi Li l...@rock-chips.com --- Documentation/devicetree/bindings/usb/dwc2.txt | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/dwc2.txt b/Documentation/devicetree/bindings/usb/dwc2.txt index fd132cb..6a84099 100644

[PATCH v1 3/3] ARM: dts: rockchip: add dwc2 ahb reset property for rk3288

2015-08-11 Thread Yunzhi Li
This patch adds dwc2 reset property for rk3288 dwc2 usb controller to fix FIFO setting bug Signed-off-by: Yunzhi Li l...@rock-chips.com --- arch/arm/boot/dts/rk3288.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi

Re: [PATCH v1 1/3] usb: dwc2: reset AHB hclk domain before init

2015-08-13 Thread Yunzhi Li
在 2015/8/14 8:09, John Youn 写道: On 8/11/2015 12:57 AM, Yunzhi Li wrote: We initiate dwc2 usb controller in BIOS, when kernel driver start-up we should reset AHB hclk domain to reset all AHB interface registers to default. Without this the FIFO value setting might be incorrect because

[PATCH v1] usb: dwc2: reset AHB hclk domain before init

2015-08-10 Thread Yunzhi Li
. This patch could avoid warnning massage like in rk3288 platform: [2.074764] dwc2 ff58.usb: 256 invalid for host_perio_tx_fifo_size. Check HW configuration. Signed-off-by: Yunzhi Li l...@rock-chips.com --- drivers/usb/dwc2/platform.c | 12 1 file changed, 12 insertions

Re: [PATCH v1] usb: dwc2: reset AHB hclk domain before init

2015-08-12 Thread Yunzhi Li
Hi , 在 2015/8/11 22:12, Felipe Balbi 写道: Hi, On Tue, Aug 11, 2015 at 10:27:42AM +0800, Yunzhi Li wrote: We initiate dwc2 usb controller in BIOS, when kernel driver start-up we should reset AHB hclk domain to reset all AHB interface registers to default. Without this the FIFO value setting

Re: [RFC] usb: dwc2: hcd: fix split schedule issue

2015-11-12 Thread Yunzhi Li
Hi John 在 2015/11/12 12:29, John Youn 写道: On 11/11/2015 4:22 PM, Doug Anderson wrote: John, On Fri, Nov 6, 2015 at 2:04 AM, Yunzhi Li <l...@rock-chips.com> wrote: hi John , As we talked yesterday, I tried to fix the split schedule sequence. This patch will avoid scheduling

[PATCH] usb: dwc2: hcd: fix periodic transfer schedule sequence

2015-11-16 Thread Yunzhi Li
When checking dwc2 host channel interrupts, handle qh in periodic_sched_queued list at first, then we could make sure CSPLIT packets scheduled in the same order as SSPLIT packets. Signed-off-by: Yunzhi Li <l...@rock-chips.com> --- drivers/usb/dwc2/hcd_intr.c | 22 ++

Re: [RFC] usb: dwc2: hcd: fix split schedule issue

2015-11-09 Thread Yunzhi Li
hi Doug 在 2015/11/7 7:56, Doug Anderson 写道: lyz@, On Fri, Nov 6, 2015 at 1:36 AM, Yunzhi Li <l...@rock-chips.com> wrote: Fix dwc2 split schedule sequence issue. Not schedule a SSPLIT_IN packet between SSPLIT-begin and SSPLIT-end. Signed-off-by: Yunzhi Li <l...@rock-chips.com> -

Re: [RFC] usb: dwc2: hcd: fix split schedule issue

2015-11-06 Thread Yunzhi Li
if this is exactly the right way to schedule split transfers and if there is any dide effect with this patch. Please help review this patch. Thanks. Fix dwc2 split schedule sequence issue. Not schedule a SSPLIT_IN packet between SSPLIT-begin and SSPLIT-end. Signed-off-by: Yunzhi Li <l...@rock-chips.

[RFC] usb: dwc2: hcd: fix split schedule issue

2015-11-06 Thread Yunzhi Li
Fix dwc2 split schedule sequence issue. Not schedule a SSPLIT_IN packet between SSPLIT-begin and SSPLIT-end. Signed-off-by: Yunzhi Li <l...@rock-chips.com> --- drivers/usb/dwc2/hcd.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/usb/dwc2/hcd.c b/drivers/usb/dwc2/hcd.c

[PATCH] ARM: hisi: Fix typo in comment

2017-08-07 Thread Yunzhi Li
Fix the rc vs. pc typo. There is no a register named rc, I felt confused when I read this assembler command in comment. Signed-off-by: Yunzhi Li <yunzhi...@deephi.tech> --- arch/arm/mach-hisi/platsmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mac

[PATCH] ARM: hisi: Fix typo in comment

2017-08-07 Thread Yunzhi Li
Fix the rc vs. pc typo. There is no a register named rc, I felt confused when I read this assembler command in comment. Signed-off-by: Yunzhi Li <yunzhi...@deephi.tech> --- arch/arm/mach-hisi/platsmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mac

[PATCH] ARM: hisi: Fix typo in comment

2017-08-07 Thread Yunzhi Li
Fix the rc vs. pc typo. There is no a register named rc, I felt confused when I read this assembler command in comment. Signed-off-by: Yunzhi Li --- arch/arm/mach-hisi/platsmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-hisi/platsmp.c b/arch/arm/mach

[PATCH] ARM: hisi: Fix typo in comment

2017-08-07 Thread Yunzhi Li
Fix the rc vs. pc typo. There is no a register named rc, I felt confused when I read this assembler command in comment. Signed-off-by: Yunzhi Li --- arch/arm/mach-hisi/platsmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-hisi/platsmp.c b/arch/arm/mach

Re: Re: [PATCH] phy: add Rockchip RK3288 USB2 PHY driver.

2014-12-04 Thread Yunzhi Li
Hi Heiko Am Mittwoch, 3. Dezember 2014, 21:46:50 schrieb LiYunzhi: + +}; + +static int rockchip_usb_phy_power(struct rockchip_usb_phy *phy, + bool siddq) +{ + return regmap_write(phy->reg_base, phy->reg_offset, +

Re: [PATCH v4 1/5] phy: add a driver for the Rockchip SoC internal USB2.0 PHY

2014-12-10 Thread Yunzhi Li
Hi Romain: On 2014/12/9 18:41, Romain Perier wrote: Hi, 2014-12-09 3:43 GMT+01:00 Yunzhi Li : Changes in v3: - Use BIT macro instead of bit shift ops. - Rename the config entry to PHY_ROCKCHIP_USB. Contradiction between this , [1] and [2] drivers/phy/Kconfig| 7 ++ drivers

[PATCH v5 0/5] Patches to add support for Rockchip usb PHYs.

2014-12-10 Thread Yunzhi Li
dwc2->phy for NULL before calling generic phy APIs. Yunzhi Li (5): phy: add a driver for the Rockchip SoC internal USB2.0 PHY Documentation: bindings: add dt documentation for Rockchip usb PHY usb: dwc2: add generic PHY framework support for dwc2 usb controler platform dri

[PATCH v5 1/5] phy: add a driver for the Rockchip SoC internal USB2.0 PHY

2014-12-10 Thread Yunzhi Li
This patch to add a generic PHY driver for ROCKCHIP usb PHYs, currently this driver can support RK3288. The RK3288 SoC have three independent USB PHY IPs which are all configured through a set of registers located in the GRF (general register files) module. Signed-off-by: Yunzhi Li --- Changes

[PATCH v5 2/5] Documentation: bindings: add dt documentation for Rockchip usb PHY

2014-12-10 Thread Yunzhi Li
This patch adds a binding that describes the Rockchip usb PHYs found on Rockchip SoCs usb interface. Signed-off-by: Yunzhi Li --- Changes in v5: - Adjust entry order of example devicetree node in document. Changes in v4: - Updata description for phy device tree subnode. Changes in v3: None

[PATCH v5 4/5] ARM: dts: rockchip: add rk3288 usb PHY

2014-12-10 Thread Yunzhi Li
This patch adds a device_node for RK3288 SoC usb phy. It also defines the phy to be used by three usb controllers: usb_host0/1 and usb_otg. Signed-off-by: Yunzhi Li --- Changes in v5: - reorder the phy dt node to a correct position. Changes in v4: - Add phy subnodes. Changes in v3: None

[PATCH v5 3/5] usb: dwc2: add generic PHY framework support for dwc2 usb controler platform driver.

2014-12-10 Thread Yunzhi Li
Get PHY parameters from devicetree and power off usb PHY during system suspend. Signed-off-by: Yunzhi Li Acked-by: Paul Zimmerman --- Changes in v5: None Changes in v4: None Changes in v3: - Fix coding style: both branches of the if() which only one branch of the conditional statement

Re: [PATCH v5 1/5] phy: add a driver for the Rockchip SoC internal USB2.0 PHY

2014-12-10 Thread Yunzhi Li
On 2014/12/11 14:37, Joe Perches wrote: On Thu, 2014-12-11 at 11:57 +0530, Kishon Vijay Abraham I wrote: Hi, On Thursday 11 December 2014 11:42 AM, Joe Perches wrote: On Thu, 2014-12-11 at 11:32 +0530, Kishon Vijay Abraham I wrote: On Wednesday 10 December 2014 04:16 PM, Yunzhi Li wrote

Re: [PATCH v5 1/5] phy: add a driver for the Rockchip SoC internal USB2.0 PHY

2014-12-10 Thread Yunzhi Li
Hi Kishon: On 2014/12/11 14:02, Kishon Vijay Abraham I wrote: Hi, On Wednesday 10 December 2014 04:16 PM, Yunzhi Li wrote: This patch to add a generic PHY driver for ROCKCHIP usb PHYs, currently this driver can support RK3288. The RK3288 SoC have three independent USB PHY IPs which are all

[PATCH v6 0/5] Patches to add support for Rockchip usb PHYs.

2014-12-11 Thread Yunzhi Li
only one branch of the conditional statement is a single statement should have braces. - No need to test dwc2->phy for NULL before calling generic phy APIs. Yunzhi Li (5): phy: add a driver for the Rockchip SoC internal USB2.0 PHY Documentation: bindings: add dt documentation for Rockc

[PATCH v6 1/5] phy: add a driver for the Rockchip SoC internal USB2.0 PHY

2014-12-11 Thread Yunzhi Li
This patch to add a generic PHY driver for ROCKCHIP usb PHYs, currently this driver can support RK3288. The RK3288 SoC have three independent USB PHY IPs which are all configured through a set of registers located in the GRF (general register files) module. Signed-off-by: Yunzhi Li --- Changes

[PATCH v6 2/5] Documentation: bindings: add dt documentation for Rockchip usb PHY

2014-12-11 Thread Yunzhi Li
This patch adds a binding that describes the Rockchip usb PHYs found on Rockchip SoCs usb interface. Signed-off-by: Yunzhi Li --- Changes in v6: None Changes in v5: - Adjust entry order of example devicetree node in document. Changes in v4: - Updata description for phy device tree subnode

[PATCH v6 3/5] usb: dwc2: add generic PHY framework support for dwc2 usb controler platform driver.

2014-12-11 Thread Yunzhi Li
Get PHY parameters from devicetree and power off usb PHY during system suspend. Signed-off-by: Yunzhi Li Acked-by: Paul Zimmerman --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: - Fix coding style: both branches of the if() which only one branch

[PATCH v6 4/5] ARM: dts: rockchip: add rk3288 usb PHY

2014-12-11 Thread Yunzhi Li
This patch adds a device_node for RK3288 SoC usb phy. It also defines the phy to be used by three usb controllers: usb_host0/1 and usb_otg. Signed-off-by: Yunzhi Li --- Changes in v6: None Changes in v5: - reorder the phy dt node to a correct position. Changes in v4: - Add phy subnodes

[PATCH v6 5/5] ARM: dts: rockchip: Enable usb PHY on rk3288-evb board

2014-12-11 Thread Yunzhi Li
Enable usb PHY for all usb ports on rk3288-evb. Signed-off-by: Yunzhi Li --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None arch/arm/boot/dts/rk3288-evb.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/rk3288-evb.dtsi b/arch/arm

Re: [PATCH v6 1/5] phy: add a driver for the Rockchip SoC internal USB2.0 PHY

2014-12-11 Thread Yunzhi Li
Hi Kishon: On 2014/12/11 18:27, Kishon Vijay Abraham I wrote: Hi, On Thursday 11 December 2014 03:25 PM, Yunzhi Li wrote: + +static struct phy *rockchip_usb_phy_xlate(struct device *dev, + struct of_phandle_args *args) +{ + struct

Re: [PATCH v6 1/5] phy: add a driver for the Rockchip SoC internal USB2.0 PHY

2014-12-11 Thread Yunzhi Li
Hi Doug: On 2014/12/12 2:09, Doug Anderson wrote: Yunzhi, On Thu, Dec 11, 2014 at 1:55 AM, Yunzhi Li wrote: + rk_phy->clk = of_clk_get(child, 0); + if (IS_ERR(rk_phy->clk)) { + dev_warn(dev, "failed to

[PATCH v7 0/5] Patches to add support for Rockchip usb PHYs.

2014-12-12 Thread Yunzhi Li
ing generic phy APIs. Yunzhi Li (5): Documentation: bindings: add dt documentation for Rockchip usb PHY phy: add a driver for the Rockchip SoC internal USB2.0 PHY usb: dwc2: add generic PHY framework support for dwc2 usb controler platform driver. ARM: dts: rockchip: add rk3288 usb PHY

[PATCH v7 0/5] Patches to add support for Rockchip usb PHYs.

2014-12-12 Thread Yunzhi Li
ing generic phy APIs. Yunzhi Li (5): Documentation: bindings: add dt documentation for Rockchip usb PHY phy: add a driver for the Rockchip SoC internal USB2.0 PHY usb: dwc2: add generic PHY framework support for dwc2 usb controler platform driver. ARM: dts: rockchip: add rk3288 usb PHY

[PATCH v7 1/5] Documentation: bindings: add dt documentation for Rockchip usb PHY

2014-12-12 Thread Yunzhi Li
This patch adds a binding that describes the Rockchip usb PHYs found on Rockchip SoCs usb interface. Signed-off-by: Yunzhi Li --- Changes in v7: - Update bindings doc Changes in v6: None Changes in v5: - Adjust entry order of example devicetree node in document. Changes in v4: - Updata

[PATCH v7 2/5] phy: add a driver for the Rockchip SoC internal USB2.0 PHY

2014-12-12 Thread Yunzhi Li
This patch to add a generic PHY driver for ROCKCHIP usb PHYs, currently this driver can support RK3288. The RK3288 SoC have three independent USB PHY IPs which are all configured through a set of registers located in the GRF (general register files) module. Signed-off-by: Yunzhi Li --- Changes

[PATCH v7 3/5] usb: dwc2: add generic PHY framework support for dwc2 usb controler platform driver.

2014-12-12 Thread Yunzhi Li
Get PHY parameters from devicetree and power off usb PHY during system suspend. Signed-off-by: Yunzhi Li Acked-by: Paul Zimmerman --- Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: - Fix coding style: both branches of the if() which only one

[PATCH v7 4/5] ARM: dts: rockchip: add rk3288 usb PHY

2014-12-12 Thread Yunzhi Li
This patch adds a device_node for RK3288 SoC usb phy. It also defines the phy to be used by three usb controllers: usb_host0/1 and usb_otg. Signed-off-by: Yunzhi Li --- Changes in v7: - Update dtsi for new usb phy driver. Changes in v6: None Changes in v5: - reorder the phy dt node

[PATCH v7 5/5] ARM: dts: rockchip: Enable usb PHY on rk3288-evb board

2014-12-12 Thread Yunzhi Li
Enable usb PHY for all usb ports on rk3288-evb. Signed-off-by: Yunzhi Li --- Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None arch/arm/boot/dts/rk3288-evb.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/rk3288

Re: [PATCH RESEND] usb: dwc2: avoid leaking DMA channels on disconnection

2015-03-16 Thread Yunzhi Li
nnels; + } else { + hsotg->non_periodic_channels = 0; + hsotg->periodic_channels = 0; + } } /** I have reviewed this patch. Obviously,it makes sense. Reviewed-by: Yunzhi Li -- To unsubscribe from this list: send the line "unsubscribe linux-

[PATCH v1] usb: dwc2: gadget: fix a memory use-after-free bug

2015-05-28 Thread Yunzhi Li
q+0x48/0x6c) [ 27.849695] [] (gic_handle_irq) from [] (__irq_svc+0x40/0x50) [ 27.886907] Exception stack(0xc0d01ee0 to 0xc0d01f28) Signed-off-by: Yunzhi Li --- drivers/usb/dwc2/gadget.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/usb/dwc2/gadget.c b/d

Re: [PATCH v1 1/3] usb: dwc2: reset AHB hclk domain before init

2015-08-13 Thread Yunzhi Li
在 2015/8/14 8:09, John Youn 写道: On 8/11/2015 12:57 AM, Yunzhi Li wrote: We initiate dwc2 usb controller in BIOS, when kernel driver start-up we should reset AHB hclk domain to reset all AHB interface registers to default. Without this the FIFO value setting might be incorrect because

[PATCH v2] usb: dwc2: reset dwc2 core before dwc2_get_hwparams()

2015-08-18 Thread Yunzhi Li
could avoid warnning massage like in rk3288 platform: [2.074764] dwc2 ff58.usb: 256 invalid for host_perio_tx_fifo_size. Check HW configuration. Signed-off-by: Yunzhi Li --- drivers/usb/dwc2/core.c | 2 +- drivers/usb/dwc2/core.h | 1 + drivers/usb/dwc2/platform.c | 6 ++ 3

  1   2   >