Re: [PATCH v5 3/5] usb: phy: add usb3.0 phy driver for mt65xx SoCs

2015-08-19 Thread chunfeng yun
Hi On Mon, 2015-08-17 at 10:59 +0530, Kishon Vijay Abraham I wrote: Hi, On Friday 07 August 2015 06:00 PM, Chunfeng Yun wrote: support usb3.0 phy of mt65xx SoCs Signed-off-by: Chunfeng Yun chunfeng@mediatek.com change $subject to phy: --- drivers/phy/Kconfig | 9

Re: [PATCH v5 4/5] xhci: mediatek: support MTK xHCI host controller

2015-08-19 Thread chunfeng yun
Hi On Mon, 2015-08-17 at 18:07 +0300, Mathias Nyman wrote: Hi On 07.08.2015 15:30, Chunfeng Yun wrote: MTK xhci host controller defines some extra SW scheduling parameters for HW to minimize the scheduling effort for synchronous and interrupt endpoints. The parameters are put

Mediatek xHCI support

2015-08-21 Thread Chunfeng Yun
From 4cab60015fd73f37b7c970ba56c2625fe346fcf3 Mon Sep 17 00:00:00 2001 From: Chunfeng Yun chunfeng@mediatek.com Date: Sat, 22 Aug 2015 09:35:14 +0800 Subject: [PATCH v6 0/5] Mediatek xHCI support The patch supports MediaTek's xHCI controller. There are some differences from xHCI spec: 1

[PATCH v6 4/5] xhci: mediatek: support MTK xHCI host controller

2015-08-21 Thread Chunfeng Yun
MTK xhci host controller defines some extra SW scheduling parameters for HW to minimize the scheduling effort for synchronous and interrupt endpoints. The parameters are put into reseved DWs of slot context and endpoint context Signed-off-by: Chunfeng Yun chunfeng@mediatek.com --- drivers

[PATCH v6 2/5] dt-bindings: Add a binding for Mediatek xHCI host controller

2015-08-21 Thread Chunfeng Yun
add a DT binding documentation of xHCI host controller for the MT8173 SoC from Mediatek. Signed-off-by: Chunfeng Yun chunfeng@mediatek.com --- .../devicetree/bindings/usb/mt8173-xhci.txt| 52 ++ 1 file changed, 52 insertions(+) create mode 100644 Documentation

[PATCH v6 1/5] dt-bindings: Add usb3.0 phy binding for MT65xx SoCs

2015-08-21 Thread Chunfeng Yun
add a DT binding documentation of usb3.0 phy for MT65xx SoCs from Mediatek. Signed-off-by: Chunfeng Yun chunfeng@mediatek.com --- .../devicetree/bindings/phy/phy-mt65xx-usb.txt | 69 ++ 1 file changed, 69 insertions(+) create mode 100644 Documentation/devicetree

[PATCH v6 3/5] usb: phy: add usb3.0 phy driver for mt65xx SoCs

2015-08-21 Thread Chunfeng Yun
support usb3.0 phy of mt65xx SoCs Signed-off-by: Chunfeng Yun chunfeng@mediatek.com --- drivers/phy/Kconfig | 9 + drivers/phy/Makefile | 1 + drivers/phy/phy-mt65xx-usb3.c | 456 ++ 3 files changed, 466 insertions(+) create

[PATCH v6 5/5] arm64: dts: mediatek: add xHCI usb phy for mt8173

2015-08-21 Thread Chunfeng Yun
add xHCI and phy drivers for MT8173-EVB Signed-off-by: Chunfeng Yun chunfeng@mediatek.com --- arch/arm64/boot/dts/mediatek/mt8173-evb.dts | 16 +++ arch/arm64/boot/dts/mediatek/mt8173.dtsi| 44 + 2 files changed, 60 insertions(+) diff --git a/arch

[PATCH v4 4/5] xhci: mediatek: support MTK xHCI host controller

2015-07-31 Thread Chunfeng Yun
MTK xhci host controller defines some extra SW scheduling parameters for HW to minimize the scheduling effort for synchronous and interrupt endpoints. The parameters are put into reseved DWs of slot context and endpoint context Signed-off-by: Chunfeng Yun chunfeng@mediatek.com --- drivers

[PATCH v4 5/5] arm64: dts: mediatek: add xHCI usb phy for mt8173

2015-07-31 Thread Chunfeng Yun
add xHCI and phy drivers for MT8173-EVB Signed-off-by: Chunfeng Yun chunfeng@mediatek.com --- arch/arm64/boot/dts/mediatek/mt8173-evb.dts | 17 + arch/arm64/boot/dts/mediatek/mt8173.dtsi| 29 + 2 files changed, 46 insertions(+) diff --git

Re: [PATCH v3 3/5] usb: phy: add usb3.0 phy driver for mt65xx SoCs

2015-07-31 Thread chunfeng yun
hi Ricky, On Mon, 2015-07-27 at 21:58 +0800, Ricky Liang wrote: Hi Chungfeng, Comments inline. On Wed, Jul 22, 2015 at 10:05 PM, Chunfeng Yun chunfeng@mediatek.com wrote: support usb3.0 phy of mt65xx SoCs Signed-off-by: Chunfeng Yun chunfeng@mediatek.com --- drivers/phy

[PATCH v4 1/5] dt-bindings: Add usb3.0 phy binding for MT65xx SoCs

2015-07-31 Thread Chunfeng Yun
add a DT binding documentation of usb3.0 phy for MT65xx SoCs from Mediatek. Signed-off-by: Chunfeng Yun chunfeng@mediatek.com --- .../devicetree/bindings/phy/phy-mt65xx-usb.txt | 21 + 1 file changed, 21 insertions(+) create mode 100644 Documentation/devicetree

[PATCH v4 3/5] usb: phy: add usb3.0 phy driver for mt65xx SoCs

2015-07-31 Thread Chunfeng Yun
support usb3.0 phy of mt65xx SoCs Signed-off-by: Chunfeng Yun chunfeng@mediatek.com --- drivers/phy/Kconfig | 9 + drivers/phy/Makefile | 1 + drivers/phy/phy-mt65xx-usb3.c | 419 ++ 3 files changed, 429 insertions(+) create

Mediatek xHCI support

2015-07-31 Thread Chunfeng Yun
From 8babf12102cda26752771c1aebd0aff38514847f Mon Sep 17 00:00:00 2001 From: Chunfeng Yun chunfeng@mediatek.com Date: Fri, 31 Jul 2015 20:44:17 +0800 Subject: [PATCH v4 0/5] Mediatek xHCI support The patch supports MediaTek's xHCI controller. There are some differences from xHCI spec: 1

[PATCH v4 2/5] dt-bindings: Add a binding for Mediatek xHCI host controller

2015-07-31 Thread Chunfeng Yun
add a DT binding documentation of xHCI host controller for the MT8173 SoC from Mediatek. Signed-off-by: Chunfeng Yun chunfeng@mediatek.com --- .../devicetree/bindings/usb/mt8173-xhci.txt| 51 ++ 1 file changed, 51 insertions(+) create mode 100644 Documentation

Re: [PATCH v3 3/5] usb: phy: add usb3.0 phy driver for mt65xx SoCs

2015-07-31 Thread chunfeng yun
hi, On Tue, 2015-07-28 at 11:17 +0530, Kishon Vijay Abraham I wrote: Hi, On Sunday 26 July 2015 08:21 AM, chunfeng yun wrote: hi, On Wed, 2015-07-22 at 09:21 -0500, Felipe Balbi wrote: Hi, On Wed, Jul 22, 2015 at 10:05:43PM +0800, Chunfeng Yun wrote: support usb3.0 phy of mt65xx

Re: [PATCH v3 3/5] usb: phy: add usb3.0 phy driver for mt65xx SoCs

2015-07-31 Thread chunfeng yun
On Fri, 2015-07-31 at 19:48 +0530, Kishon Vijay Abraham I wrote: Hi, On Friday 31 July 2015 05:55 PM, chunfeng yun wrote: hi, On Tue, 2015-07-28 at 11:17 +0530, Kishon Vijay Abraham I wrote: Hi, On Sunday 26 July 2015 08:21 AM, chunfeng yun wrote: hi, On Wed, 2015-07-22 at 09:21

Re: [PATCH v3 2/5] dt-bindings: Add a binding for Mediatek xHCI host controller

2015-07-31 Thread chunfeng yun
hi, On Fri, 2015-07-31 at 14:37 +0100, Mark Rutland wrote: Hi, + - mediatek,usb-wakeup: to access usb wakeup control register What exactly does this property imply? There are some control registers for usb wakeup which are put in another module, here to get the node of that

Re: [PATCH v4 2/5] dt-bindings: Add a binding for Mediatek xHCI host controller

2015-08-07 Thread chunfeng yun
hi, On Fri, 2015-07-31 at 14:45 +0100, Mark Rutland wrote: Hi, Sorry for my late reply to a prior version of this series, but I still have concerns with some of the properties. I'll repeat those below. On Fri, Jul 31, 2015 at 02:03:53PM +0100, Chunfeng Yun wrote: add a DT binding

[PATCH v5 4/5] xhci: mediatek: support MTK xHCI host controller

2015-08-07 Thread Chunfeng Yun
MTK xhci host controller defines some extra SW scheduling parameters for HW to minimize the scheduling effort for synchronous and interrupt endpoints. The parameters are put into reseved DWs of slot context and endpoint context Signed-off-by: Chunfeng Yun chunfeng@mediatek.com --- drivers

Mediatek xHCI support

2015-08-07 Thread Chunfeng Yun
From 5c00619366ce4e7ff2bad050697dd6b3294f38ec Mon Sep 17 00:00:00 2001 From: Chunfeng Yun chunfeng@mediatek.com Date: Fri, 7 Aug 2015 20:16:42 +0800 Subject: [PATCH v5 0/5] Mediatek xHCI support The patch supports MediaTek's xHCI controller. There are some differences from xHCI spec: 1

[PATCH v5 3/5] usb: phy: add usb3.0 phy driver for mt65xx SoCs

2015-08-07 Thread Chunfeng Yun
support usb3.0 phy of mt65xx SoCs Signed-off-by: Chunfeng Yun chunfeng@mediatek.com --- drivers/phy/Kconfig | 9 + drivers/phy/Makefile | 1 + drivers/phy/phy-mt65xx-usb3.c | 467 ++ 3 files changed, 477 insertions(+) create

[PATCH v5 2/5] dt-bindings: Add a binding for Mediatek xHCI host controller

2015-08-07 Thread Chunfeng Yun
add a DT binding documentation of xHCI host controller for the MT8173 SoC from Mediatek. Signed-off-by: Chunfeng Yun chunfeng@mediatek.com --- .../devicetree/bindings/usb/mt8173-xhci.txt| 52 ++ 1 file changed, 52 insertions(+) create mode 100644 Documentation

[PATCH v5 1/5] dt-bindings: Add usb3.0 phy binding for MT65xx SoCs

2015-08-07 Thread Chunfeng Yun
add a DT binding documentation of usb3.0 phy for MT65xx SoCs from Mediatek. Signed-off-by: Chunfeng Yun chunfeng@mediatek.com --- .../devicetree/bindings/phy/phy-mt65xx-usb.txt | 69 ++ 1 file changed, 69 insertions(+) create mode 100644 Documentation/devicetree

[PATCH v5 5/5] arm64: dts: mediatek: add xHCI usb phy for mt8173

2015-08-07 Thread Chunfeng Yun
add xHCI and phy drivers for MT8173-EVB Signed-off-by: Chunfeng Yun chunfeng@mediatek.com --- arch/arm64/boot/dts/mediatek/mt8173-evb.dts | 16 +++ arch/arm64/boot/dts/mediatek/mt8173.dtsi| 44 + 2 files changed, 60 insertions(+) diff --git a/arch

Re: [PATCH v3 2/5] dt-bindings: Add a binding for Mediatek xHCI host controller

2015-07-25 Thread chunfeng yun
Hi, On Wed, 2015-07-22 at 15:22 +0100, Mark Rutland wrote: On Wed, Jul 22, 2015 at 03:05:42PM +0100, Chunfeng Yun wrote: add a DT binding documentation of xHCI host controller for the MT8173 SoC from Mediatek. Signed-off-by: Chunfeng Yun chunfeng@mediatek.com --- .../devicetree

Re: [PATCH v3 5/5] arm64: dts: mediatek: add xHCI usb phy for mt8173

2015-07-25 Thread chunfeng yun
hi On Wed, 2015-07-22 at 21:11 +0300, Sergei Shtylyov wrote: Hello. On 07/22/2015 05:05 PM, Chunfeng Yun wrote: add xHCI and phy drivers for MT8173-EVB Signed-off-by: Chunfeng Yun chunfeng@mediatek.com --- arch/arm64/boot/dts/mediatek/mt8173-evb.dts | 15

Re: [PATCH v3 3/5] usb: phy: add usb3.0 phy driver for mt65xx SoCs

2015-07-25 Thread chunfeng yun
hi, On Wed, 2015-07-22 at 09:21 -0500, Felipe Balbi wrote: Hi, On Wed, Jul 22, 2015 at 10:05:43PM +0800, Chunfeng Yun wrote: support usb3.0 phy of mt65xx SoCs Signed-off-by: Chunfeng Yun chunfeng@mediatek.com you missed Kishon here. Thank you. --- drivers/phy/Kconfig

Re: [PATCH v3 0/5] Mediatek xHCI support

2015-07-22 Thread chunfeng yun
Sorry, add a title On Wed, 2015-07-22 at 22:05 +0800, Chunfeng Yun wrote: From ac1e8724bfa47494223bad0af450c1a63cd2fe0c Mon Sep 17 00:00:00 2001 From: Chunfeng Yun chunfeng@mediatek.com Date: Wed, 22 Jul 2015 21:15:15 +0800 Subject: [PATCH 0/5] *** SUBJECT HERE *** The patch supports

[PATCH v3 4/5] xhci: mediatek: support MTK xHCI host controller

2015-07-22 Thread Chunfeng Yun
MTK xhci host controller defines some extra SW scheduling parameters for HW to minimize the scheduling effort for synchronous and interrupt endpoints. The parameters are put into reseved DWs of slot context and endpoint context Signed-off-by: Chunfeng Yun chunfeng@mediatek.com --- drivers

[no subject]

2015-07-22 Thread Chunfeng Yun
From ac1e8724bfa47494223bad0af450c1a63cd2fe0c Mon Sep 17 00:00:00 2001 From: Chunfeng Yun chunfeng@mediatek.com Date: Wed, 22 Jul 2015 21:15:15 +0800 Subject: [PATCH 0/5] *** SUBJECT HERE *** The patch supports MediaTek's xHCI controller. There are some differences from xHCI spec: 1

[PATCH v3 5/5] arm64: dts: mediatek: add xHCI usb phy for mt8173

2015-07-22 Thread Chunfeng Yun
add xHCI and phy drivers for MT8173-EVB Signed-off-by: Chunfeng Yun chunfeng@mediatek.com --- arch/arm64/boot/dts/mediatek/mt8173-evb.dts | 15 ++ arch/arm64/boot/dts/mediatek/mt8173.dtsi| 31 + 2 files changed, 46 insertions(+) diff --git a/arch

[PATCH v3 2/5] dt-bindings: Add a binding for Mediatek xHCI host controller

2015-07-22 Thread Chunfeng Yun
add a DT binding documentation of xHCI host controller for the MT8173 SoC from Mediatek. Signed-off-by: Chunfeng Yun chunfeng@mediatek.com --- .../devicetree/bindings/usb/mt8173-xhci.txt| 50 ++ 1 file changed, 50 insertions(+) create mode 100644 Documentation

[PATCH v3 3/5] usb: phy: add usb3.0 phy driver for mt65xx SoCs

2015-07-22 Thread Chunfeng Yun
support usb3.0 phy of mt65xx SoCs Signed-off-by: Chunfeng Yun chunfeng@mediatek.com --- drivers/phy/Kconfig | 9 + drivers/phy/Makefile | 1 + drivers/phy/phy-mt65xx-usb3.c | 426 ++ 3 files changed, 436 insertions(+) create

[PATCH v3 1/5] dt-bindings: Add usb3.0 phy binding for MT65xx SoCs

2015-07-22 Thread Chunfeng Yun
add a DT binding documentation of usb3.0 phy for MT65xx SoCs from Mediatek. Signed-off-by: Chunfeng Yun chunfeng@mediatek.com --- .../devicetree/bindings/phy/phy-mt65xx-u3.txt | 21 + 1 file changed, 21 insertions(+) create mode 100644 Documentation/devicetree

Re: [PATCH v2 2/5] dt-bindings: Add a binding for Mediatek xHCI host controller

2015-07-13 Thread chunfeng yun
hi Roger, On Fri, 2015-07-10 at 11:31 +0300, Roger Quadros wrote: Hi, On 08/07/15 12:41, Chunfeng Yun wrote: add a DT binding documentation of xHCI host controller for the MT8173 SoC from Mediatek. Signed-off-by: Chunfeng Yun chunfeng@mediatek.com --- .../devicetree/bindings

Re: [PATCH v2 2/5] dt-bindings: Add a binding for Mediatek xHCI host controller

2015-07-13 Thread chunfeng yun
hi Roger, On Fri, 2015-07-10 at 11:31 +0300, Roger Quadros wrote: Hi, On 08/07/15 12:41, Chunfeng Yun wrote: add a DT binding documentation of xHCI host controller for the MT8173 SoC from Mediatek. Signed-off-by: Chunfeng Yun chunfeng@mediatek.com --- .../devicetree/bindings

Re: [PATCH v2 1/5] dt-bindings: Add usb3.0 phy binding for MT65xx SoCs

2015-07-14 Thread chunfeng yun
hi, On Fri, 2015-07-10 at 07:10 +0200, Sascha Hauer wrote: On Wed, Jul 08, 2015 at 05:41:03PM +0800, Chunfeng Yun wrote: add a DT binding documentation of usb3.0 phy for MT65xx SoCs from Mediatek. Signed-off-by: Chunfeng Yun chunfeng@mediatek.com --- .../devicetree/bindings/usb

Re: [PATCH v2 1/5] dt-bindings: Add usb3.0 phy binding for MT65xx SoCs

2015-07-15 Thread chunfeng yun
On Tue, 2015-07-14 at 09:45 +0200, Sascha Hauer wrote: On Tue, Jul 14, 2015 at 02:19:51PM +0800, chunfeng yun wrote: hi, On Fri, 2015-07-10 at 07:10 +0200, Sascha Hauer wrote: On Wed, Jul 08, 2015 at 05:41:03PM +0800, Chunfeng Yun wrote: add a DT binding documentation of usb3.0 phy

Re: [PATCH v2 2/5] dt-bindings: Add a binding for Mediatek xHCI host controller

2015-07-20 Thread chunfeng yun
On Fri, 2015-07-10 at 11:31 +0300, Roger Quadros wrote: Hi, On 08/07/15 12:41, Chunfeng Yun wrote: add a DT binding documentation of xHCI host controller for the MT8173 SoC from Mediatek. Signed-off-by: Chunfeng Yun chunfeng@mediatek.com --- .../devicetree/bindings/usb/mt8173

Re: [PATCH v2 5/5] arm64: dts: mediatek: add xHCI usb phy for mt8173

2015-07-20 Thread chunfeng yun
Hi, On Tue, 2015-07-14 at 18:12 +0800, Daniel Kurtz wrote: Hi Chunfeng, On Wed, Jul 8, 2015 at 5:41 PM, Chunfeng Yun chunfeng@mediatek.com wrote: Signed-off-by: Chunfeng Yun chunfeng@mediatek.com --- arch/arm64/boot/dts/mediatek/mt8173-evb.dts | 15 +++ arch

Re: [PATCH v2 4/5] xhci: mediatek: support MTK xHCI host controller

2015-07-20 Thread chunfeng yun
. John I seperate the quirk functions called by xhci_hcd.ko from xhci-mtk.c into another C file to fix up the issue. Thanks On 08/07/2015 11:41, Chunfeng Yun wrote: MTK xhci host controller defines some extra SW scheduling parameters for HW to minimize the scheduling effort for synchronous

Re: [PATCH v2 3/5] usb: phy: add usb3.0 phy driver for mt65xx SoCs

2015-07-20 Thread chunfeng yun
On Fri, 2015-07-10 at 08:42 +0200, Sascha Hauer wrote: On Wed, Jul 08, 2015 at 05:41:05PM +0800, Chunfeng Yun wrote: Signed-off-by: Chunfeng Yun chunfeng@mediatek.com --- drivers/usb/phy/Kconfig | 10 + drivers/usb/phy/Makefile | 1 + drivers/usb/phy/phy

[RESEND] phy: core: Get a refcount to phy in devm_of_phy_get_by_index()

2015-11-16 Thread Chunfeng Yun
On driver detach, devm_phy_release() will put a refcount to the phy, so gets a refconut to it before return. Change-Id: I56fe428bf945f19c38d56245978c8ca17340eb2c Signed-off-by: Chunfeng Yun <chunfeng@mediatek.com> --- drivers/phy/phy-core.c | 21 +++-- 1 file chang

[PATCH] phy: phy-mt65xx-usb3: fix test fail of HS receiver sensitivity

2015-11-16 Thread Chunfeng Yun
when use the default value 8 of RG_USB20_SQTH, the HS receiver sensitivity test of HQA will fail, set it as 2 to fix up the issue. Change-Id: Ia5bdbbfc8ebb170d3ef26007e665b7350b6d28ab Signed-off-by: Chunfeng Yun <chunfeng@mediatek.com> --- drivers/phy/phy-mt65xx-usb3.c | 7 +--

[PATCH] phy: phy-mt65xx-usb3: improve HS eye diagram

2015-11-16 Thread Chunfeng Yun
calibrate HS slew rate and switch 100uA current to SSUSB to improve HS eye diagram of HQA test. Change-Id: I6d392c7fffb32b3a710e3a8dda92710886806d90 Signed-off-by: Chunfeng Yun <chunfeng@mediatek.com> --- drivers/phy/phy-mt65xx-usb3.c | 99 +--

[PATCH v11 2/3] xhci: mediatek: support MTK xHCI host controller

2015-10-19 Thread Chunfeng Yun
for Interrupter Moderation register is 8 times as much as that defined in xHCI spec. 3. Its TDS in Normal TRB defines a number of packets that remains to be transferred for a TD after processing all Max packets in all previous TRBs. Signed-off-by: Chunfeng Yun <chunfeng@mediatek.com>

[PATCH v11 1/3] dt-bindings: Add a binding for Mediatek xHCI host controller

2015-10-19 Thread Chunfeng Yun
add a DT binding documentation of xHCI host controller for the MT8173 SoC from Mediatek. Signed-off-by: Chunfeng Yun <chunfeng@mediatek.com> --- .../devicetree/bindings/usb/mt8173-xhci.txt| 51 ++ 1 file changed, 51 insertions(+) create mode 100644 Documen

Re: [PATCH v10 2/3] xhci: mediatek: support MTK xHCI host controller

2015-10-19 Thread chunfeng yun
On Sun, 2015-10-18 at 11:51 +0800, Chunfeng Yun wrote: > There some vendor quirks for MTK xhci host controller: > 1. It defines some extra SW scheduling parameters for HW > to minimize the scheduling effort for synchronous and > interrupt endpoints. The parameters are put into res

Re: [PATCH v10 3/3] arm64: dts: mediatek: add xHCI & usb phy for mt8173

2015-10-18 Thread chunfeng yun
On Sun, 2015-10-18 at 14:01 +0300, Sergei Shtylyov wrote: > Hello. > > On 10/18/2015 6:51 AM, Chunfeng Yun wrote: > > > add xHCI and phy drivers for MT8173-EVB > > > > Signed-off-by: Chunfeng Yun <chunfeng@mediatek.com> > > [...] > > > di

[PATCH v11 0/3] Mediatek xHCI support

2015-10-19 Thread Chunfeng Yun
>From 1c6e0dd39074297ebb0714c1d44a3e0dc9af466c Mon Sep 17 00:00:00 2001 From: Chunfeng Yun <chunfeng@mediatek.com> Date: Mon, 19 Oct 2015 14:13:45 +0800 Subject: [PATCH v11 0/3] Mediatek xHCI support The patch supports MediaTek's xHCI controller. There are some differences from xHC

[PATCH v11 3/3] arm64: dts: mediatek: add xHCI & usb phy for mt8173

2015-10-19 Thread Chunfeng Yun
add xHCI and phy drivers for MT8173-EVB Signed-off-by: Chunfeng Yun <chunfeng@mediatek.com> --- arch/arm64/boot/dts/mediatek/mt8173-evb.dts | 16 +++ arch/arm64/boot/dts/mediatek/mt8173.dtsi| 42 + 2 files changed, 58 insertions(+) diff --git

Re: [PATCH v9 3/5] phy: add usb3.0 phy driver for mt65xx SoCs

2015-10-08 Thread chunfeng yun
Hi, On Tue, 2015-10-06 at 19:50 +0530, Kishon Vijay Abraham I wrote: > Hi Chunfeng, > > On Tuesday 29 September 2015 08:31 AM, Chunfeng Yun wrote: > > support usb3.0 phy of mt65xx SoCs > > I have merged this driver. Can you also send a patch adding yourself as > the m

Re: [PATCH v9 1/5] dt-bindings: Add usb3.0 phy binding for MT65xx SoCs

2015-10-08 Thread chunfeng yun
Hi, On Tue, 2015-09-29 at 17:43 +0300, Sergei Shtylyov wrote: > Hello. > > On 09/29/2015 06:01 AM, Chunfeng Yun wrote: > > > add a DT binding documentation of usb3.0 phy for MT65xx > > SoCs from Mediatek. > > > > Acked-by: Rob Herring <r...@kernel.org>

Re: [PATCH v9 2/5] dt-bindings: Add a binding for Mediatek xHCI host controller

2015-10-08 Thread chunfeng yun
Hi, On Tue, 2015-09-29 at 17:49 +0300, Sergei Shtylyov wrote: > On 09/29/2015 06:01 AM, Chunfeng Yun wrote: > > > add a DT binding documentation of xHCI host controller for the > > MT8173 SoC from Mediatek. > > > > Signed-off-by: Chunfeng

Re: [PATCH v9 4/5] xhci: mediatek: support MTK xHCI host controller

2015-10-08 Thread chunfeng yun
Hi, On Thu, 2015-10-01 at 12:44 +0100, Daniel Thompson wrote: > On 29/09/15 04:01, Chunfeng Yun wrote: > > There some vendor quirks for MTK xhci host controller: > > 1. It defines some extra SW scheduling parameters for HW > >to minimize the scheduling e

Re: [PATCH v9 4/5] xhci: mediatek: support MTK xHCI host controller

2015-10-08 Thread chunfeng yun
On Thu, 2015-10-08 at 13:28 +0100, Daniel Thompson wrote: > On 08/10/15 13:05, chunfeng yun wrote: > > Hi, > > On Thu, 2015-10-01 at 12:44 +0100, Daniel Thompson wrote: > >> On 29/09/15 04:01, Chunfeng Yun wrote: > >>> There some vendor quirks for MTK xhci host

Re: [PATCH v9 4/5] xhci: mediatek: support MTK xHCI host controller

2015-10-08 Thread chunfeng yun
Hi, On Thu, 2015-10-08 at 16:05 +0300, Mathias Nyman wrote: > On 08.10.2015 15:28, Daniel Thompson wrote: > > On 08/10/15 13:05, chunfeng yun wrote: > >> Hi, > >> On Thu, 2015-10-01 at 12:44 +0100, Daniel Thompson wrote: > >>> On 29/09/15 04:01, Chunfeng Yun

Re: [PATCH v9 4/5] xhci: mediatek: support MTK xHCI host controller

2015-10-20 Thread chunfeng yun
hi, On Mon, 2015-10-19 at 14:25 +0300, Mathias Nyman wrote: > >> > >> So basically we are trying to use as many microframes as possible with as > >> few packets > >> per microframe as possible. > >> > >> Did I understand this correctly? > > Yes, you are right. > > > >> How will devices react if

Re: [PATCH v9 4/5] xhci: mediatek: support MTK xHCI host controller

2015-10-17 Thread chunfeng yun
Hi, On Thu, 2015-10-15 at 17:46 +0300, Mathias Nyman wrote: > On 29.09.2015 06:01, Chunfeng Yun wrote: > > There some vendor quirks for MTK xhci host controller: > > 1. It defines some extra SW scheduling parameters for HW > >to minimize the scheduling e

[PATCH v10 1/3] dt-bindings: Add a binding for Mediatek xHCI host controller

2015-10-17 Thread Chunfeng Yun
add a DT binding documentation of xHCI host controller for the MT8173 SoC from Mediatek. Signed-off-by: Chunfeng Yun <chunfeng@mediatek.com> --- .../devicetree/bindings/usb/mt8173-xhci.txt| 51 ++ 1 file changed, 51 insertions(+) create mode 100644 Documen

[PATCH v10 0/3] Mediatek xHCI support

2015-10-17 Thread Chunfeng Yun
>From 66e467548861c39c52de1d3d899ddc980c6cb925 Mon Sep 17 00:00:00 2001 From: Chunfeng Yun <chunfeng@mediatek.com> Date: Sun, 18 Oct 2015 11:39:45 +0800 Subject: [PATCH v10 0/3] Mediatek xHCI support The patch supports MediaTek's xHCI controller. There are some differences from xHC

[PATCH v10 2/3] xhci: mediatek: support MTK xHCI host controller

2015-10-17 Thread Chunfeng Yun
for Interrupter Moderation register is 8 times as much as that defined in xHCI spec. 3. Its TDS in Normal TRB defines a number of packets that remains to be transferred for a TD after processing all Max packets in all previous TRBs. Signed-off-by: Chunfeng Yun <chunfeng@mediatek.com>

[PATCH v10 3/3] arm64: dts: mediatek: add xHCI & usb phy for mt8173

2015-10-17 Thread Chunfeng Yun
add xHCI and phy drivers for MT8173-EVB Signed-off-by: Chunfeng Yun <chunfeng@mediatek.com> --- arch/arm64/boot/dts/mediatek/mt8173-evb.dts | 16 +++ arch/arm64/boot/dts/mediatek/mt8173.dtsi| 42 + 2 files changed, 58 insertions(+) diff --git

[PATCH] MAINTAINERS: add Mediatek usb3 phy driver

2015-10-11 Thread Chunfeng Yun
Add Mediatek usb3 phy driver to maintainer entry. Signed-off-by: Chunfeng Yun <chunfeng@mediatek.com> --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 7ba7ab7..be0055c 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1291,6 +1

[PATCH v2 3/5] usb: phy: add usb3.0 phy driver for mt65xx SoCs

2015-07-08 Thread Chunfeng Yun
Signed-off-by: Chunfeng Yun chunfeng@mediatek.com --- drivers/usb/phy/Kconfig | 10 + drivers/usb/phy/Makefile | 1 + drivers/usb/phy/phy-mt65xx-usb3.c | 856 ++ 3 files changed, 867 insertions(+) create mode 100644 drivers/usb/phy

[PATCH v2 2/5] dt-bindings: Add a binding for Mediatek xHCI host controller

2015-07-08 Thread Chunfeng Yun
add a DT binding documentation of xHCI host controller for the MT8173 SoC from Mediatek. Signed-off-by: Chunfeng Yun chunfeng@mediatek.com --- .../devicetree/bindings/usb/mt8173-xhci.txt| 27 ++ 1 file changed, 27 insertions(+) create mode 100644 Documentation

[PATCH v2 0/5] Mediatek xHCI support

2015-07-08 Thread Chunfeng Yun
add usb_hcd patch from this series due to 4.2-rc1 already fix this issue 3. add xhci mac clocks 4. add suspend/resume 5. support remote wakeup Chunfeng Yun (5): dt-bindings: Add usb3.0 phy binding for MT65xx SoCs dt-bindings: Add a binding for Mediatek xHCI host controller usb: phy: add

[PATCH v2 1/5] dt-bindings: Add usb3.0 phy binding for MT65xx SoCs

2015-07-08 Thread Chunfeng Yun
add a DT binding documentation of usb3.0 phy for MT65xx SoCs from Mediatek. Signed-off-by: Chunfeng Yun chunfeng@mediatek.com --- .../devicetree/bindings/usb/mt65xx-u3phy.txt | 34 ++ 1 file changed, 34 insertions(+) create mode 100644 Documentation/devicetree

[PATCH v2 5/5] arm64: dts: mediatek: add xHCI usb phy for mt8173

2015-07-08 Thread Chunfeng Yun
Signed-off-by: Chunfeng Yun chunfeng@mediatek.com --- arch/arm64/boot/dts/mediatek/mt8173-evb.dts | 15 +++ arch/arm64/boot/dts/mediatek/mt8173.dtsi| 27 +++ 2 files changed, 42 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8173-evb.dts b

[PATCH v2 4/5] xhci: mediatek: support MTK xHCI host controller

2015-07-08 Thread Chunfeng Yun
MTK xhci host controller defines some extra SW scheduling parameters for HW to minimize the scheduling effort for synchronous and interrupt endpoints. The parameters are put into reseved DWs of slot context and endpoint context Signed-off-by: Chunfeng Yun chunfeng@mediatek.com --- drivers

Re: [PATCH] phy: phy-mt65xx-usb3: fix test fail of HS receiver sensitivity

2015-11-16 Thread chunfeng yun
Hi, On Mon, 2015-11-16 at 22:16 -0800, Greg KH wrote: > On Tue, Nov 17, 2015 at 02:02:58PM +0800, Chunfeng Yun wrote: > > when use the default value 8 of RG_USB20_SQTH, the HS receiver > > sensitivity test of HQA will fail, set it as 2 to fix up the > > issu

[PATCH v12 0/3] Mediatek xHCI support

2015-11-17 Thread Chunfeng Yun
>From 577f68d9c0ca1531d5f9cae0dcbea2ba116c8551 Mon Sep 17 00:00:00 2001 From: Chunfeng Yun <chunfeng@mediatek.com> Date: Tue, 17 Nov 2015 17:09:05 +0800 Subject: [PATCH v12 0/3] Mediatek xHCI support The patch supports MediaTek's xHCI controller. There are some differences from xHC

[PATCH v12 2/3] xhci: mediatek: support MTK xHCI host controller

2015-11-17 Thread Chunfeng Yun
for Interrupter Moderation register is 8 times as much as that defined in xHCI spec. 3. Its TDS in Normal TRB defines a number of packets that remains to be transferred for a TD after processing all Max packets in all previous TRBs. Signed-off-by: Chunfeng Yun <chunfeng@mediatek.com>

[PATCH v12 1/3] dt-bindings: Add a binding for Mediatek xHCI host controller

2015-11-17 Thread Chunfeng Yun
add a DT binding documentation of xHCI host controller for the MT8173 SoC from Mediatek. Signed-off-by: Chunfeng Yun <chunfeng@mediatek.com> --- .../devicetree/bindings/usb/mt8173-xhci.txt| 51 ++ 1 file changed, 51 insertions(+) create mode 100644 Documen

[PATCH v12 3/3] arm64: dts: mediatek: add xHCI & usb phy for mt8173

2015-11-17 Thread Chunfeng Yun
add xHCI and phy drivers for MT8173-EVB Signed-off-by: Chunfeng Yun <chunfeng@mediatek.com> --- arch/arm64/boot/dts/mediatek/mt8173-evb.dts | 16 +++ arch/arm64/boot/dts/mediatek/mt8173.dtsi| 42 + 2 files changed, 58 insertions(+) diff --git

Re: [PATCH v6 4/5] xhci: mediatek: support MTK xHCI host controller

2015-09-01 Thread chunfeng yun
On Wed, 2015-08-26 at 22:18 +0100, Daniel Thompson wrote: > On 22/08/15 02:45, Chunfeng Yun wrote: > > MTK xhci host controller defines some extra SW scheduling > > parameters for HW to minimize the scheduling effort for > > synchronous and interrupt endpoints. The p

[PATCH v7 3/5] usb: phy: add usb3.0 phy driver for mt65xx SoCs

2015-09-08 Thread Chunfeng Yun
support usb3.0 phy of mt65xx SoCs Signed-off-by: Chunfeng Yun <chunfeng@mediatek.com> --- drivers/phy/Kconfig | 9 + drivers/phy/Makefile | 1 + drivers/phy/phy-mt65xx-usb3.c | 456 ++ 3 files changed, 466 insertions(+)

[PATCH v7 2/5] dt-bindings: Add a binding for Mediatek xHCI host controller

2015-09-08 Thread Chunfeng Yun
add a DT binding documentation of xHCI host controller for the MT8173 SoC from Mediatek. Signed-off-by: Chunfeng Yun <chunfeng@mediatek.com> --- .../devicetree/bindings/usb/mt8173-xhci.txt| 52 ++ 1 file changed, 52 insertions(+) create mode 100644 Documen

[PATCH v7 1/5] dt-bindings: Add usb3.0 phy binding for MT65xx SoCs

2015-09-08 Thread Chunfeng Yun
add a DT binding documentation of usb3.0 phy for MT65xx SoCs from Mediatek. Signed-off-by: Chunfeng Yun <chunfeng@mediatek.com> --- .../devicetree/bindings/phy/phy-mt65xx-usb.txt | 69 ++ 1 file changed, 69 insertions(+) create mode 100644 Documentation/devi

[PATCH v7 4/5] xhci: mediatek: support MTK xHCI host controller

2015-09-08 Thread Chunfeng Yun
for Interrupter Moderation register is 8 times as much as that defined in xHCI spec. 3. Its TDS in Normal TRB defines a number of packets that remains to be transferred for a TD after processing all Max packets in all previous TRBs. Signed-off-by: Chunfeng Yun <chunfeng@mediatek.com> --- d

[PATCH v7 5/5] arm64: dts: mediatek: add xHCI & usb phy for mt8173

2015-09-08 Thread Chunfeng Yun
add xHCI and phy drivers for MT8173-EVB Signed-off-by: Chunfeng Yun <chunfeng@mediatek.com> --- arch/arm64/boot/dts/mediatek/mt8173-evb.dts | 16 +++ arch/arm64/boot/dts/mediatek/mt8173.dtsi| 44 + 2 files changed, 60 insertions(+) diff --git

[PATCH v7 0/5] Mediatek xHCI support

2015-09-08 Thread Chunfeng Yun
rate quirk functions into a single C file to fix up dependence issue Change in v2: 1. Rebase to 4.2-rc1 2. Remove probe phy before add usb_hcd patch from this series due to 4.2-rc1 already fix this issue 3. add xhci mac clocks 4. add suspend/resume 5. support remote wakeup Chunfeng Yun (5): dt-bind

Re: [PATCH v6 2/5] dt-bindings: Add a binding for Mediatek xHCI host controller

2015-09-01 Thread chunfeng yun
hi, On Sat, 2015-08-22 at 16:23 +0300, Sergei Shtylyov wrote: > Hello. > > On 8/22/2015 4:45 AM, Chunfeng Yun wrote: > > > add a DT binding documentation of xHCI host controller for the > > MT8173 SoC from Mediatek. > > > Signed-off-by: Chunfe

[PATCH v8 1/5] dt-bindings: Add usb3.0 phy binding for MT65xx SoCs

2015-09-16 Thread Chunfeng Yun
add a DT binding documentation of usb3.0 phy for MT65xx SoCs from Mediatek. Acked-by: Rob Herring <r...@kernel.org> Signed-off-by: Chunfeng Yun <chunfeng@mediatek.com> --- .../devicetree/bindings/phy/phy-mt65xx-usb.txt | 68 ++ 1 file changed, 68 insertion

[PATCH v8 0/5] Mediatek xHCI support

2015-09-16 Thread Chunfeng Yun
>From e731877598e7564171bea62955b4e50b04d88d34 Mon Sep 17 00:00:00 2001 From: Chunfeng Yun <chunfeng@mediatek.com> Date: Wed, 16 Sep 2015 14:24:11 +0800 Subject: [PATCH v8 0/5] Mediatek xHCI support The patch supports MediaTek's xHCI controller. There are some differences from xHC

[PATCH v8 3/5] usb: phy: add usb3.0 phy driver for mt65xx SoCs

2015-09-16 Thread Chunfeng Yun
support usb3.0 phy of mt65xx SoCs Signed-off-by: Chunfeng Yun <chunfeng@mediatek.com> --- drivers/phy/Kconfig | 9 + drivers/phy/Makefile | 1 + drivers/phy/phy-mt65xx-usb3.c | 456 ++ 3 files changed, 466 insertions(+)

[PATCH v8 2/5] dt-bindings: Add a binding for Mediatek xHCI host controller

2015-09-16 Thread Chunfeng Yun
add a DT binding documentation of xHCI host controller for the MT8173 SoC from Mediatek. Signed-off-by: Chunfeng Yun <chunfeng@mediatek.com> --- .../devicetree/bindings/usb/mt8173-xhci.txt| 52 ++ 1 file changed, 52 insertions(+) create mode 100644 Documen

[PATCH v8 5/5] arm64: dts: mediatek: add xHCI & usb phy for mt8173

2015-09-16 Thread Chunfeng Yun
add xHCI and phy drivers for MT8173-EVB Signed-off-by: Chunfeng Yun <chunfeng@mediatek.com> --- arch/arm64/boot/dts/mediatek/mt8173-evb.dts | 16 +++ arch/arm64/boot/dts/mediatek/mt8173.dtsi| 43 + 2 files changed, 59 insertions(+) diff --git

[PATCH v8 4/5] xhci: mediatek: support MTK xHCI host controller

2015-09-16 Thread Chunfeng Yun
for Interrupter Moderation register is 8 times as much as that defined in xHCI spec. 3. Its TDS in Normal TRB defines a number of packets that remains to be transferred for a TD after processing all Max packets in all previous TRBs. Signed-off-by: Chunfeng Yun <chunfeng@mediatek.com> --- d

Re: [PATCH] xhci: create one unified function to calculate TRB TD remainder.

2015-09-10 Thread chunfeng yun
Hi, It works ok when I add MTK's quirk into xhci_td_remainder(), and test it by usb camera, udisk, usb ethernet adapter, and hub. On Tue, 2015-09-08 at 14:09 +0300, Mathias Nyman wrote: > xhci versions 1.0 and later report the untransferred data remaining in a > TD a bit differently than older

Re: [PATCH v7 1/5] dt-bindings: Add usb3.0 phy binding for MT65xx SoCs

2015-09-10 Thread chunfeng yun
Hi, On Tue, 2015-09-08 at 19:16 -0500, Rob Herring wrote: > On 09/08/2015 01:17 AM, Chunfeng Yun wrote: > > add a DT binding documentation of usb3.0 phy for MT65xx > > SoCs from Mediatek. > > > > Signed-off-by: Chunfeng Yun <chunfeng@mediatek.com> >

Re: [PATCH v7 2/5] dt-bindings: Add a binding for Mediatek xHCI host controller

2015-09-10 Thread chunfeng yun
On Tue, 2015-09-08 at 19:30 -0500, Rob Herring wrote: > On 09/08/2015 01:18 AM, Chunfeng Yun wrote: > > add a DT binding documentation of xHCI host controller for the > > MT8173 SoC from Mediatek. > > > > Signed-off-by: Chunfeng Yun <chunfeng@mediatek.com> >

Re: [PATCH] xhci: create one unified function to calculate TRB TD remainder.

2015-09-11 Thread chunfeng yun
On Tue, 2015-09-08 at 14:09 +0300, Mathias Nyman wrote: > xhci versions 1.0 and later report the untransferred data remaining in a > TD a bit differently than older hosts. > > We used to have separate functions for these, and needed to check host > version before calling the right function. > >

Re: [PATCH] xhci: create one unified function to calculate TRB TD remainder.

2015-09-10 Thread chunfeng yun
Hi, On Tue, 2015-09-08 at 14:09 +0300, Mathias Nyman wrote: > xhci versions 1.0 and later report the untransferred data remaining in a > TD a bit differently than older hosts. > > We used to have separate functions for these, and needed to check host > version before calling the right function.

Re: [PATCH v8 3/5] usb: phy: add usb3.0 phy driver for mt65xx SoCs

2015-09-27 Thread chunfeng yun
hi, On Fri, 2015-09-18 at 12:12 +0530, Kishon Vijay Abraham I wrote: > Hi, > > On Wednesday 16 September 2015 12:14 PM, Chunfeng Yun wrote: > > support usb3.0 phy of mt65xx SoCs > few nitpicks: > > change $subject. This driver is no longer in usb directory. > > I

[PATCH v9 4/5] xhci: mediatek: support MTK xHCI host controller

2015-09-28 Thread Chunfeng Yun
for Interrupter Moderation register is 8 times as much as that defined in xHCI spec. 3. Its TDS in Normal TRB defines a number of packets that remains to be transferred for a TD after processing all Max packets in all previous TRBs. Signed-off-by: Chunfeng Yun <chunfeng@mediatek.com> --- d

[PATCH v9 5/5] arm64: dts: mediatek: add xHCI & usb phy for mt8173

2015-09-28 Thread Chunfeng Yun
add xHCI and phy drivers for MT8173-EVB Signed-off-by: Chunfeng Yun <chunfeng@mediatek.com> --- arch/arm64/boot/dts/mediatek/mt8173-evb.dts | 16 +++ arch/arm64/boot/dts/mediatek/mt8173.dtsi| 43 + 2 files changed, 59 insertions(+) diff --git

[PATCH v9 3/5] phy: add usb3.0 phy driver for mt65xx SoCs

2015-09-28 Thread Chunfeng Yun
support usb3.0 phy of mt65xx SoCs Signed-off-by: Chunfeng Yun <chunfeng@mediatek.com> --- drivers/phy/Kconfig | 9 + drivers/phy/Makefile | 1 + drivers/phy/phy-mt65xx-usb3.c | 506 ++ 3 files changed, 516 insertions(+)

[PATCH v9 0/5] Mediatek xHCI support

2015-09-28 Thread Chunfeng Yun
ci mac clocks 4. add suspend/resume 5. support remote wakeup Chunfeng Yun (5): dt-bindings: Add usb3.0 phy binding for MT65xx SoCs dt-bindings: Add a binding for Mediatek xHCI host controller phy: add usb3.0 phy driver for mt65xx SoCs xhci: mediatek: support MTK xHCI host controller arm64

  1   2   3   4   5   6   >