[next PATCH] usb: xhci-mtk: remove bus status check

2021-04-16 Thread Chunfeng Yun
PM will take care of the status of child device, so no need check each port anymore. Suggested-by: Ikjoon Jang Signed-off-by: Chunfeng Yun --- drivers/usb/host/xhci-mtk.c | 43 ++--- 1 file changed, 2 insertions(+), 41 deletions(-) diff --git a/drivers/usb/host

Re: [PATCH 4/6] usb: xhci-mtk: add support runtime PM

2021-04-12 Thread Chunfeng Yun
On Mon, 2021-04-12 at 13:14 +0800, Ikjoon Jang wrote: > On Fri, Apr 9, 2021 at 4:54 PM Chunfeng Yun wrote: > > > > On Fri, 2021-04-09 at 13:45 +0800, Ikjoon Jang wrote: > > > On Thu, Apr 8, 2021 at 5:35 PM Chunfeng Yun > > > wrote: > > > > > >

[PATCH v2 2/5] dt-bindings: usb: mtk-xhci: add wakeup interrupt

2021-04-09 Thread Chunfeng Yun
Add an interrupt which is EINT usually to support runtime PM, meanwhile add "interrupt-names" property, for backward compatibility, it's optional and used when wakeup interrupt exists Reviewed-by: Rob Herring Signed-off-by: Chunfeng Yun --- v2: add Reviewed-by Rob --- .../devicetre

[PATCH v2 3/5] usb: xhci-mtk: add support runtime PM

2021-04-09 Thread Chunfeng Yun
not support it. users can enable it via power/control (set "auto") in sysfs. Signed-off-by: Chunfeng Yun --- v2: no changes, but abandon dependent patch [1], use falling edge type interrupt [1] [1/6] PM: runtime: enable wake irq after runtime_suspend hook called https://patchwork.

[PATCH v2 4/5] usb: xhci-mtk: use clock bulk to get clocks

2021-04-09 Thread Chunfeng Yun
Use clock bulk helpers to get/enable/disable clocks, meanwhile make sys_ck optional, then will be easier to handle clocks. Signed-off-by: Chunfeng Yun --- v2: no changes --- drivers/usb/host/xhci-mtk.c | 109 +++- drivers/usb/host/xhci-mtk.h | 10 ++-- 2 files

[PATCH v2 1/5] usb: xhci-mtk: check return value in suspend/resume hooks

2021-04-09 Thread Chunfeng Yun
Return error number if encounter errors during suspend and resume. Signed-off-by: Chunfeng Yun --- v2: no changes --- drivers/usb/host/xhci-mtk.c | 37 +++-- 1 file changed, 27 insertions(+), 10 deletions(-) diff --git a/drivers/usb/host/xhci-mtk.c b/drivers/usb

[PATCH v2 5/5] usb: xhci-mtk: remove unused members

2021-04-09 Thread Chunfeng Yun
Now some members about phys and wakeup are not used anymore, remove them. Signed-off-by: Chunfeng Yun --- v2: no changes --- drivers/usb/host/xhci-mtk.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/usb/host/xhci-mtk.h b/drivers/usb/host/xhci-mtk.h index 11996edc1967

Re: [PATCH 1/6] PM: runtime: enable wake irq after runtime_suspend hook called

2021-04-09 Thread Chunfeng Yun
On Fri, 2021-04-09 at 13:14 +0200, Rafael J. Wysocki wrote: > On Fri, Apr 9, 2021 at 10:36 AM Chunfeng Yun > wrote: > > > > On Fri, 2021-04-09 at 08:39 +0300, Tony Lindgren wrote: > > > * Chunfeng Yun [210409 01:54]: > > > > On Thu, 2021-04-08

[PATCH v2] usb: core: reduce power-on-good delay time of root hub

2021-04-09 Thread Chunfeng Yun
Signed-off-by: Chunfeng Yun --- v2: remove RFC tag, and add acked-by Alan --- drivers/usb/core/hub.h | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/usb/core/hub.h b/drivers/usb/core/hub.h index 73f4482d833a..22ea1f4f2d66 100644 --- a/drivers/usb/core/hub.h +++ b

Re: [PATCH 4/6] usb: xhci-mtk: add support runtime PM

2021-04-09 Thread Chunfeng Yun
On Fri, 2021-04-09 at 13:45 +0800, Ikjoon Jang wrote: > On Thu, Apr 8, 2021 at 5:35 PM Chunfeng Yun wrote: > > > > A dedicated wakeup irq will be used to handle runtime suspend/resume, > > we use dev_pm_set_dedicated_wake_irq API to take care of requesting > &g

Re: [PATCH 1/6] PM: runtime: enable wake irq after runtime_suspend hook called

2021-04-09 Thread Chunfeng Yun
On Fri, 2021-04-09 at 13:32 +0800, Ikjoon Jang wrote: > Hi Chunfeng, > > On Thu, Apr 8, 2021 at 5:35 PM Chunfeng Yun wrote: > > > > When the dedicated wake irq is level trigger, enable it before > > calling runtime_suspend, will trigger an interrupt. > > > >

Re: [PATCH 1/6] PM: runtime: enable wake irq after runtime_suspend hook called

2021-04-09 Thread Chunfeng Yun
On Fri, 2021-04-09 at 08:39 +0300, Tony Lindgren wrote: > * Chunfeng Yun [210409 01:54]: > > On Thu, 2021-04-08 at 19:41 +0200, Rafael J. Wysocki wrote: > > > On Thu, Apr 8, 2021 at 11:35 AM Chunfeng Yun > > > wrote: > > > > > > > > When the de

[PATCH] phy: qcom-qmp: remove redundant error of clock bulk

2021-04-08 Thread Chunfeng Yun
There is error log in clk_bulk_prepare/enable() Signed-off-by: Chunfeng Yun --- drivers/phy/qualcomm/phy-qcom-qmp.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/phy/qualcomm/phy-qcom-qmp.c b/drivers/phy/qualcomm/phy-qcom-qmp.c index 9cdebe7..f14b8be

[PATCH] irqchip: gic-pm: remove redundant error log of clock bulk

2021-04-08 Thread Chunfeng Yun
There is error log in clk_bulk_prepare/enable() Signed-off-by: Chunfeng Yun --- drivers/irqchip/irq-gic-pm.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/irqchip/irq-gic-pm.c b/drivers/irqchip/irq-gic-pm.c index 1337cec..b60e185 100644 --- a/drivers/irqchip/irq

[RFC PATCH] usb: core: reduce power-on-good delay time of root hub

2021-04-08 Thread Chunfeng Yun
Return the exactly delay time given by root hub descriptor, this helps to reduce resume time etc. Due to the root hub descriptor is usually provided by the host controller driver, if there is compatibility for a root hub, we can fix it easily without affect other root hub Signed-off-by: Chunfeng

Re: [PATCH 1/6] PM: runtime: enable wake irq after runtime_suspend hook called

2021-04-08 Thread Chunfeng Yun
On Thu, 2021-04-08 at 19:41 +0200, Rafael J. Wysocki wrote: > On Thu, Apr 8, 2021 at 11:35 AM Chunfeng Yun > wrote: > > > > When the dedicated wake irq is level trigger, enable it before > > calling runtime_suspend, will trigger an interrupt. > > > > e.g. &g

Re: [PATCH v2 -next] phy: phy-mtk-hdmi: Remove redundant dev_err call in mtk_hdmi_phy_probe()

2021-04-08 Thread Chunfeng Yun
= devm_ioremap_resource(dev, mem); > if (IS_ERR(hdmi_phy->regs)) { > - ret = PTR_ERR(hdmi_phy->regs); > - dev_err(dev, "Failed to get memory resource: %d\n", ret); > - return ret; > + return PTR_ERR(hdmi_phy->regs); > } Reviewed-by: Chunfeng Yun Thanks a lot > > ref_clk = devm_clk_get(dev, "pll_ref");

Re: [PATCH 4/6] usb: xhci-mtk: add support runtime PM

2021-04-08 Thread Chunfeng Yun
Hi Ikjoon, On Thu, 2021-04-08 at 17:35 +0800, Chunfeng Yun wrote: > A dedicated wakeup irq will be used to handle runtime suspend/resume, > we use dev_pm_set_dedicated_wake_irq API to take care of requesting > and attaching wakeup irq, then the suspend/resume framework will help &g

[PATCH 5/6] usb: xhci-mtk: use clock bulk to get clocks

2021-04-08 Thread Chunfeng Yun
Use clock bulk helpers to get/enable/disable clocks, meanwhile make sys_ck optional, then will be easier to handle clocks. Signed-off-by: Chunfeng Yun --- drivers/usb/host/xhci-mtk.c | 109 +++- drivers/usb/host/xhci-mtk.h | 10 ++-- 2 files changed, 24

[PATCH 6/6] usb: xhci-mtk: remove unused members

2021-04-08 Thread Chunfeng Yun
Now some members about phys and wakeup are not used anymore, remove them. Signed-off-by: Chunfeng Yun --- drivers/usb/host/xhci-mtk.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/usb/host/xhci-mtk.h b/drivers/usb/host/xhci-mtk.h index 11996edc1967..7940593a3445 100644

[PATCH 4/6] usb: xhci-mtk: add support runtime PM

2021-04-08 Thread Chunfeng Yun
not support it. users can enable it via power/control (set "auto") in sysfs. Signed-off-by: Chunfeng Yun --- drivers/usb/host/xhci-mtk.c | 140 +++- 1 file changed, 124 insertions(+), 16 deletions(-) diff --git a/drivers/usb/host/xhci-mtk.c b/drivers/usb

[PATCH 3/6] dt-bindings: usb: mtk-xhci: add wakeup interrupt

2021-04-08 Thread Chunfeng Yun
Add an interrupt which is EINT usually to support runtime PM, meanwhile add "interrupt-names" property, for backward compatibility, it's optional and used when wakeup interrupt exists Signed-off-by: Chunfeng Yun --- .../devicetree/bindings/usb/mediatek,mtk-xhci.yaml | 13 +++

[PATCH 2/6] usb: xhci-mtk: check return value in suspend/resume hooks

2021-04-08 Thread Chunfeng Yun
Return error number if encounter errors during suspend and resume. Signed-off-by: Chunfeng Yun --- drivers/usb/host/xhci-mtk.c | 37 +++-- 1 file changed, 27 insertions(+), 10 deletions(-) diff --git a/drivers/usb/host/xhci-mtk.c b/drivers/usb/host/xhci-mtk.c

[PATCH 1/6] PM: runtime: enable wake irq after runtime_suspend hook called

2021-04-08 Thread Chunfeng Yun
ill arise, it causes resume immediately; enable wake irq after calling runtime_suspend, e.g. at (3) or (4), will works. This patch seems no side effect on edge trigger wake irq. Signed-off-by: Chunfeng Yun --- drivers/base/power/runtime.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions

Re: [PATCH 05/16] media: cadence: csi2rx: Add external DPHY support

2021-04-08 Thread Chunfeng Yun
On Wed, 2021-04-07 at 00:24 +0530, Pratyush Yadav wrote: > On 31/03/21 05:24PM, Chunfeng Yun wrote: > > On Tue, 2021-03-30 at 23:03 +0530, Pratyush Yadav wrote: > > > Some platforms like TI's J721E can have the CSI2RX paired with an > > > external DPHY. Add support to en

Re: [PATCH 1/2] usb: xhci-mtk: remove unnecessary assignments in periodic TT scheduler

2021-04-05 Thread Chunfeng Yun
On Mon, 2021-04-05 at 09:04 +0200, Greg Kroah-Hartman wrote: > On Wed, Mar 31, 2021 at 04:30:55PM +0800, Chunfeng Yun wrote: > > cc Yaqii Wu > > > > I'll test it , thanks > > Did you test this series and find any problems? If not, I'll go queue > these up... Ye

Re: [PATCH 05/16] media: cadence: csi2rx: Add external DPHY support

2021-03-31 Thread Chunfeng Yun
On Tue, 2021-03-30 at 23:03 +0530, Pratyush Yadav wrote: > Some platforms like TI's J721E can have the CSI2RX paired with an > external DPHY. Add support to enable and configure the DPHY using the > generic PHY framework. > > Get the pixel rate and bpp from the subdev and pass them on to the DPHY

[PATCH v4 3/4] usb: xhci-mtk: fix broken streams issue on 0.96 xHCI

2021-03-31 Thread Chunfeng Yun
") Cc: stable Signed-off-by: Chunfeng Yun --- v4: cc stable suggested by Frank v2~3: no changes --- drivers/usb/host/xhci-mtk.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/usb/host/xhci-mtk.c b/drivers/usb/host/xhci-mtk.c index c1bc40289833..4e

[PATCH v4 4/4] usb: xhci-mtk: support quirk to disable usb2 lpm

2021-03-31 Thread Chunfeng Yun
The xHCI driver support usb2 HW LPM by default, here add support XHCI_HW_LPM_DISABLE quirk, then we can disable usb2 lpm when need it. Signed-off-by: Chunfeng Yun --- v2~4: no changes --- drivers/usb/host/xhci-mtk.c | 3 +++ drivers/usb/host/xhci-mtk.h | 1 + 2 files changed, 4 insertions

[PATCH v4 1/4] dt-bindings: usb: mtk-xhci: support property usb2-lpm-disable

2021-03-31 Thread Chunfeng Yun
Add support common property usb2-lpm-disable Acked-by: Rob Herring Signed-off-by: Chunfeng Yun --- v4: add acked-by Rob v3: remove redefinition of type and description suggested by Rob v2: no changes --- Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml | 2 ++ 1 file changed, 2

[PATCH v4 2/4] dt-bindings: usb: mtk-xhci: remove redefinitions of usb3-lpm-capable

2021-03-31 Thread Chunfeng Yun
The property usb3-lpm-capable is defined in usb-xhci.yaml which is already referenced in this file, so no need 'description' and 'type' anymore. Acked-by: Rob Herring Signed-off-by: Chunfeng Yun --- v4: add acked-by Rob v3: new patch --- Documentation/devicetree/bindings/usb/mediatek,mtk

Re: [PATCH 2/2] usb: xhci-mtk: relax periodic TT bandwidth checking

2021-03-31 Thread Chunfeng Yun
On Tue, 2021-03-30 at 16:06 +0800, Ikjoon Jang wrote: > Software bandwidth checking logics used by xhci-mtk puts > a quite heavy constraints to TT periodic endpoint allocations. > > This patch provides a relaxed bandwidth calculation by > - Allowing multiple periodic transactions in a same

Re: [PATCH 1/2] usb: xhci-mtk: remove unnecessary assignments in periodic TT scheduler

2021-03-31 Thread Chunfeng Yun
cc Yaqii Wu I'll test it , thanks On Tue, 2021-03-30 at 16:06 +0800, Ikjoon Jang wrote: > Remove unnecessary variables in check_sch_bw(). > No functional changes, just for better readability. > > Signed-off-by: Ikjoon Jang > --- > > drivers/usb/host/xhci-mtk-sch.c | 52

[PATCH next 2/2] usb: xhci-mtk: fix oops when unbind driver

2021-03-31 Thread Chunfeng Yun
unbind_store+0xd4/0x108 drv_attr_store+0x24/0x38 Fixes: 14295a150050 ("usb: xhci-mtk: support to build xhci-mtk-hcd.ko") Reported-by: Eddie Hung Signed-off-by: Chunfeng Yun --- drivers/usb/host/xhci-mtk-sch.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/d

[PATCH next 1/2] usb: xhci-mtk: fix wrong remainder of bandwidth budget

2021-03-31 Thread Chunfeng Yun
The remainder of the last bandwidth bugdget is wrong, it's the value alloacted in last bugdget, not unused. Reported-by: Yaqii Wu Signed-off-by: Chunfeng Yun --- drivers/usb/host/xhci-mtk-sch.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/usb/host/xhci-mtk

[PATCH v3 1/4] dt-bindings: usb: mtk-xhci: support property usb2-lpm-disable

2021-03-29 Thread Chunfeng Yun
Add support common property usb2-lpm-disable Signed-off-by: Chunfeng Yun --- v3: remove redefinition of type and description suggested by Rob v2: no changes --- Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation

[PATCH v3 4/4] usb: xhci-mtk: support quirk to disable usb2 lpm

2021-03-29 Thread Chunfeng Yun
The xHCI driver support usb2 HW LPM by default, here add support XHCI_HW_LPM_DISABLE quirk, then we can disable usb2 lpm when need it. Signed-off-by: Chunfeng Yun --- v2~3: no changes --- drivers/usb/host/xhci-mtk.c | 3 +++ drivers/usb/host/xhci-mtk.h | 1 + 2 files changed, 4 insertions

[PATCH v3 3/4] usb: xhci-mtk: fix broken streams issue on 0.96 xHCI

2021-03-29 Thread Chunfeng Yun
y hcd") Signed-off-by: Chunfeng Yun --- v2~3: no changes --- drivers/usb/host/xhci-mtk.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/usb/host/xhci-mtk.c b/drivers/usb/host/xhci-mtk.c index c1bc40289833..4e3d53cc24f4 100644 --- a/drivers/usb/host/xhci-m

[PATCH v3 2/4] dt-bindings: usb: mtk-xhci: remove redefinitions of usb3-lpm-capable

2021-03-29 Thread Chunfeng Yun
The property usb3-lpm-capable is defined in usb-xhci.yaml which is already referenced in this file, so no need 'description' and 'type' anymore. Signed-off-by: Chunfeng Yun --- v3: new patch --- Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml | 4 +--- 1 file changed, 1 insertion

Re: [PATCH v2 01/13] dt-bindings: usb: mtk-xhci: support property usb2-lpm-disable

2021-03-28 Thread Chunfeng Yun
On Sat, 2021-03-27 at 11:24 -0600, Rob Herring wrote: > On Tue, Mar 23, 2021 at 03:02:43PM +0800, Chunfeng Yun wrote: > > Add support common property usb2-lpm-disable > > > > Signed-off-by: Chunfeng Yun > > --- > > v2: no changes > > --- > > Docum

[PATCH RESEND v5 11/12] arm: dts: mt7623: harmonize node names and compatibles

2021-03-25 Thread Chunfeng Yun
This is used to fix dtbs_check warning Signed-off-by: Chunfeng Yun --- v2~v5: no changes --- arch/arm/boot/dts/mt7623.dtsi | 26 ++ arch/arm/boot/dts/mt7623n.dtsi | 4 ++-- 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/arch/arm/boot/dts/mt7623.dtsi b

[PATCH RESEND v5 02/12] dt-bindings: phy: mediatek: hdmi-phy: modify compatible items

2021-03-25 Thread Chunfeng Yun
Acked-by: Chun-Kuang Hu Reviewed-by: Rob Herring Signed-off-by: Chunfeng Yun --- v5: no changes v4: add acked-by CK and Reviewed-by Rob v3: modify commit message v2: no changes --- .../devicetree/bindings/phy/mediatek,hdmi-phy.yaml| 11 +++ 1 file changed, 7 insertions(+), 4 dele

[PATCH RESEND v5 08/12] arm64: dts: mediatek: mt7622: harmonize node names and compatibles

2021-03-25 Thread Chunfeng Yun
This is used to fix dtbs_check warning Signed-off-by: Chunfeng Yun --- v2~v5: no changes --- arch/arm64/boot/dts/mediatek/mt7622.dtsi | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt7622.dtsi b/arch/arm64/boot/dts/mediatek/mt7622.dtsi

[PATCH RESEND v5 06/12] arm64: dts: mediatek: mt2712: harmonize node names

2021-03-25 Thread Chunfeng Yun
This is used to fix dtbs_check warning. Signed-off-by: Chunfeng Yun --- v2~v5: no changes --- arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt2712e.dtsi b/arch/arm64/boot/dts/mediatek

[PATCH RESEND v5 01/12] dt-bindings: phy: mediatek: dsi-phy: modify compatible dependence

2021-03-25 Thread Chunfeng Yun
mt7623-mipi-tx is compatible to mt2701-mipi-tx, and use "mediatek,mt2701-mipi-tx" instead on MT7623, so modify the compatible items to make dependence clear. Cc: Chun-Kuang Hu Cc: Philipp Zabel Acked-by: Chun-Kuang Hu Reviewed-by: Rob Herring Signed-off-by: Chunfeng Yun --- v5: no

[PATCH RESEND v5 03/12] dt-bindings: phy: mediatek: tphy: change patternProperties

2021-03-25 Thread Chunfeng Yun
The phy may be named as pcie-phy when the T-PHY only supports PCIe mode, it's also the similar case for SATA, named as sata-phy. Reviewed-by: Rob Herring Signed-off-by: Chunfeng Yun --- v5: no changes v4: add reviewed-by Rob v2~v3: no changes --- Documentation/devicetree/bindings/phy/mediatek

[PATCH RESEND v5 05/12] arm64: dts: mediatek: mt8173: fix dtbs_check warning

2021-03-25 Thread Chunfeng Yun
Harmonize nodes names, compatibles and remove unused property. Signed-off-by: Chunfeng Yun --- v2~v5: no changes --- arch/arm64/boot/dts/mediatek/mt8173-evb.dts | 4 +--- arch/arm64/boot/dts/mediatek/mt8173.dtsi| 13 +++-- 2 files changed, 8 insertions(+), 9 deletions(-) diff

[PATCH RESEND v5 07/12] arm64: dts: mediatek: mt8516: harmonize node names and compatibles

2021-03-25 Thread Chunfeng Yun
This is used to fix dtbs_check warning: harmonize node names and compatibles; add property "usb-role-switch" for connector dependence. Signed-off-by: Chunfeng Yun --- v2~v5: no changes --- arch/arm64/boot/dts/mediatek/mt8516.dtsi | 9 + arch/arm64/boot/dts/mediat

[PATCH RESEND v5 09/12] arm64: dts: mediatek: mt8183: fix dtbs_check warning

2021-03-25 Thread Chunfeng Yun
Harmonize node names, compatibles and properties. Signed-off-by: Chunfeng Yun --- v4~v5: no changes v3: remove property clock-names suggested by CK v2: no changes --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/arch/arm64

[PATCH RESEND v5 04/12] arm64: dts: mt8173: fix property typo of 'phys' in dsi node

2021-03-25 Thread Chunfeng Yun
Use 'phys' instead of 'phy'. Fixes: 81ad4dbaf7af ("arm64: dts: mt8173: Add display subsystem related nodes") Cc: stable Reviewed-by: Chun-Kuang Hu Signed-off-by: Chunfeng Yun --- v5: merged into this series, add Reviewed-by CK --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 2

[PATCH RESEND v5 12/12] arm: dts: mt2701: harmonize node names and compatibles

2021-03-25 Thread Chunfeng Yun
This is used to fix dtbs_check warning Signed-off-by: Chunfeng Yun --- v2~v5: no changes --- arch/arm/boot/dts/mt2701.dtsi | 19 +++ 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/arch/arm/boot/dts/mt2701.dtsi b/arch/arm/boot/dts/mt2701.dtsi index fade14284017

[PATCH RESEND v5 10/12] arm: dts: mt7629: harmonize node names and compatibles

2021-03-25 Thread Chunfeng Yun
This is used to fix dtbs_check warning Signed-off-by: Chunfeng Yun --- v2~v5: no changes --- arch/arm/boot/dts/mt7629.dtsi | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/arch/arm/boot/dts/mt7629.dtsi b/arch/arm/boot/dts/mt7629.dtsi index 5cbb3d244c75

[PATCH v2 06/13] usb: xhci-mtk: support ip-sleep wakeup for MT8183

2021-03-23 Thread Chunfeng Yun
, meanwhile reserve 3~10 for later revision that follows the IPM rule. Signed-off-by: Chunfeng Yun --- v2: 1. fix typo suggested by Sergei 2. fix build warning - Woverflow 3. modify revision format --- drivers/usb/host/xhci-mtk.c | 13 + 1 file changed, 13 insertions(+) diff --git

[PATCH v2 08/13] usb: xhci-mtk: drop CONFIG_OF

2021-03-23 Thread Chunfeng Yun
The driver can match only the devices created by the OF core via the DT table, so the table should be always used. Signed-off-by: Chunfeng Yun --- v2: no changes --- drivers/usb/host/xhci-mtk.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/usb/host/xhci-mtk.c b

[PATCH v2 10/13] usb: mtu3: support ip-sleep wakeup for MT8183

2021-03-23 Thread Chunfeng Yun
, meanwhile reserve 3~10 for later revision that follows the IPM rule. Signed-off-by: Chunfeng Yun --- v2: 1. fix typo suggested by Sergei 2. fix build warning - Woverflow 3. modify revision format --- drivers/usb/mtu3/mtu3_host.c | 12 1 file changed, 12 insertions(+) diff --git

[PATCH v2 09/13] usb: xhci-mtk: remove MODULE_ALIAS

2021-03-23 Thread Chunfeng Yun
Since the driver only supports the devices created by the OF core, seems no need MODULE_ALIAS() anymore. Signed-off-by: Chunfeng Yun --- v2: no changes --- drivers/usb/host/xhci-mtk.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/usb/host/xhci-mtk.c b/drivers/usb/host/xhci-mtk.c

[PATCH v2 11/13] usb: mtu3: add support ip-sleep wakeup for MT8192

2021-03-23 Thread Chunfeng Yun
Add add support ip-sleep wakeup for MT8192, it's a specific revision, not following IPM rule. Signed-off-by: Chunfeng Yun --- v2: 1. fix typo suggested by Sergei 2. modify revision format --- drivers/usb/mtu3/mtu3_host.c | 10 ++ 1 file changed, 10 insertions(+) diff --git

[PATCH v2 13/13] arm64: dts: mt8183: update wakeup register offset

2021-03-23 Thread Chunfeng Yun
Use wakeup control register offset exactly, and update revision number Signed-off-by: Chunfeng Yun --- v2: modify revision format --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch

[PATCH v2 12/13] usb: mtu3: drop CONFIG_OF

2021-03-23 Thread Chunfeng Yun
The driver can match only the devices created by the OF core via the DT table, so the table should be always used. Signed-off-by: Chunfeng Yun --- v2: no changes --- drivers/usb/mtu3/mtu3_plat.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/usb/mtu3

[PATCH v2 07/13] usb: xhci-mtk: add support ip-sleep wakeup for mT8192

2021-03-23 Thread Chunfeng Yun
Add support ip-sleep wakeup for mT8192, it's a specific revision, and not following IPM rule. Signed-off-by: Chunfeng Yun --- v2: 1. fix typo suggested by Sergei 2. modify revision format --- drivers/usb/host/xhci-mtk.c | 10 ++ 1 file changed, 10 insertions(+) diff --git

[PATCH v2 04/13] usb: xhci-mtk: fix broken streams issue on 0.96 xHCI

2021-03-23 Thread Chunfeng Yun
y hcd") Signed-off-by: Chunfeng Yun --- v2: no changes --- drivers/usb/host/xhci-mtk.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/usb/host/xhci-mtk.c b/drivers/usb/host/xhci-mtk.c index 57bcfdfa0465..1b9f10048fe0 100644 --- a/drivers/usb/host/xhci-m

[PATCH v2 05/13] usb: xhci-mtk: support quirk to disable usb2 lpm

2021-03-23 Thread Chunfeng Yun
The xHCI driver support usb2 HW LPM by default, here add support XHCI_HW_LPM_DISABLE quirk, then we can disable usb2 lpm when need it. Signed-off-by: Chunfeng Yun --- v2: no changes --- drivers/usb/host/xhci-mtk.c | 3 +++ drivers/usb/host/xhci-mtk.h | 1 + 2 files changed, 4 insertions

[PATCH v2 01/13] dt-bindings: usb: mtk-xhci: support property usb2-lpm-disable

2021-03-23 Thread Chunfeng Yun
Add support common property usb2-lpm-disable Signed-off-by: Chunfeng Yun --- v2: no changes --- Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml b/Documentation

[PATCH v2 03/13] dt-bindings: usb: mtu3: support wakeup for mt8183 and mt8192

2021-03-23 Thread Chunfeng Yun
, meanwhile reserve 3~99 for later revision that following the IPM rule. Signed-off-by: Chunfeng Yun --- v2: modify revision format --- .../devicetree/bindings/usb/mediatek,mtu3.yaml | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree

[PATCH v2 02/13] dt-bindings: usb: mtk-xhci: add support wakeup for mt8183 and mt8192

2021-03-23 Thread Chunfeng Yun
, meanwhile reserve 3~99 for later revisions with following the IPM rule. Signed-off-by: Chunfeng Yun --- v2: modify revision format --- .../devicetree/bindings/usb/mediatek,mtk-xhci.yaml | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree

Re: [PATCH v2 8/8] arm64: dts: Add Mediatek SoC MT8195 and evaluation board dts and Makefile

2021-03-22 Thread Chunfeng Yun
mes = "ref"; > + #phy-cells = <1>; > + }; > + > + u3port0: usb-phy@700 { > + reg = <0x700 0x700>; > + clocks = <>; > + clock-names = "ref"; > + #phy-cells = <1>; > + }; > + }; > + > + ufsphy: phy@11fa { > + compatible = "mediatek,mt8195-ufsphy", > "mediatek,mt8183-ufsphy"; > + reg = <0 0x11fa 0 0xc000>; > + clocks = <>, <>; > + clock-names = "unipro", "mp"; > + #phy-cells = <0>; > + status = "disabled"; > + }; > + }; > +}; phy part: Reviewed-by: Chunfeng Yun Thank you

Re: [PATCH 10/13] usb: mtu3: support ip-sleep wakeup for MT8183

2021-03-22 Thread Chunfeng Yun
On Mon, 2021-03-22 at 11:57 +0300, Sergei Shtylyov wrote: > Same comments as to the patch #6. Ok, will check others, thanks a lot > > MBR, Sergei

Re: [PATCH 07/13] usb: xhci-mtk: add support ip-sleep wakeup for mT8192

2021-03-22 Thread Chunfeng Yun
On Mon, 2021-03-22 at 11:58 +0300, Sergei Shtylyov wrote: > On 22.03.2021 6:13, Chunfeng Yun wrote: > > > Add support ip-sleep wakeup for mT8192, it's a specific revision, > ^ for > > > and not follow IPM rule. > > Following? >

Re: [PATCH 06/13] usb: xhci-mtk: support ip-sleep wakeup for MT8183

2021-03-22 Thread Chunfeng Yun
On Mon, 2021-03-22 at 11:54 +0300, Sergei Shtylyov wrote: > Hello! > > On 22.03.2021 6:13, Chunfeng Yun wrote: > > > Add support ip-sleep wakeup for MT8183, it's similar to MT8173, > ^ for > > > and it's also a specific one, but not follow IPM

[PATCH 12/13] usb: mtu3: drop CONFIG_OF

2021-03-21 Thread Chunfeng Yun
The driver can match only the devices created by the OF core via the DT table, so the table should be always used. Signed-off-by: Chunfeng Yun --- drivers/usb/mtu3/mtu3_plat.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/usb/mtu3/mtu3_plat.c b/drivers/usb

[PATCH 11/13] usb: mtu3: add support ip-sleep wakeup for MT8192

2021-03-21 Thread Chunfeng Yun
Add add support ip-sleep wakeup for MT8192, it's a specific revision, not follow IP rule. Signed-off-by: Chunfeng Yun --- drivers/usb/mtu3/mtu3_host.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/usb/mtu3/mtu3_host.c b/drivers/usb/mtu3/mtu3_host.c index e35b17e5f58e

[PATCH 13/13] arm64: dts: mt8183: update wakeup register offset

2021-03-21 Thread Chunfeng Yun
Use wakeup control register offset exactly, and update revision number Signed-off-by: Chunfeng Yun --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/mt8183

[PATCH 06/13] usb: xhci-mtk: support ip-sleep wakeup for MT8183

2021-03-21 Thread Chunfeng Yun
reserve 3~10 for later revision that follows the IPM rule. Signed-off-by: Chunfeng Yun --- drivers/usb/host/xhci-mtk.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/usb/host/xhci-mtk.c b/drivers/usb/host/xhci-mtk.c index 09f2ddbfe8b9..8ba1f914cb75 100644 --- a/drivers

[PATCH 09/13] usb: xhci-mtk: remove MODULE_ALIAS

2021-03-21 Thread Chunfeng Yun
Since the driver only supports the devices created by the OF core, seems no need MODULE_ALIAS() anymore. Signed-off-by: Chunfeng Yun --- drivers/usb/host/xhci-mtk.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/usb/host/xhci-mtk.c b/drivers/usb/host/xhci-mtk.c index 7b49064ae5d4

[PATCH 02/13] dt-bindings: usb: mtk-xhci: add support wakeup for mt8183 and mt8192

2021-03-21 Thread Chunfeng Yun
, meanwhile reserve 3~10 for later revisions with following the IPM rule. Signed-off-by: Chunfeng Yun --- .../devicetree/bindings/usb/mediatek,mtk-xhci.yaml | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml b

[PATCH 08/13] usb: xhci-mtk: drop CONFIG_OF

2021-03-21 Thread Chunfeng Yun
The driver can match only the devices created by the OF core via the DT table, so the table should be always used. Signed-off-by: Chunfeng Yun --- drivers/usb/host/xhci-mtk.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/usb/host/xhci-mtk.c b/drivers/usb/host

[PATCH 10/13] usb: mtu3: support ip-sleep wakeup for MT8183

2021-03-21 Thread Chunfeng Yun
reserve 3~10 for later revision that follows the IPM rule. Signed-off-by: Chunfeng Yun --- drivers/usb/mtu3/mtu3_host.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/usb/mtu3/mtu3_host.c b/drivers/usb/mtu3/mtu3_host.c index c871b94f3e6f..e35b17e5f58e 100644 --- a/drivers

[PATCH 05/13] usb: xhci-mtk: support quirk to disable usb2 lpm

2021-03-21 Thread Chunfeng Yun
The xHCI driver support usb2 HW LPM by default, here add support XHCI_HW_LPM_DISABLE quirk, then we can disable usb2 lpm when need it. Signed-off-by: Chunfeng Yun --- drivers/usb/host/xhci-mtk.c | 3 +++ drivers/usb/host/xhci-mtk.h | 1 + 2 files changed, 4 insertions(+) diff --git a/drivers

[PATCH 07/13] usb: xhci-mtk: add support ip-sleep wakeup for mT8192

2021-03-21 Thread Chunfeng Yun
Add support ip-sleep wakeup for mT8192, it's a specific revision, and not follow IPM rule. Signed-off-by: Chunfeng Yun --- drivers/usb/host/xhci-mtk.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/usb/host/xhci-mtk.c b/drivers/usb/host/xhci-mtk.c index 8ba1f914cb75

[PATCH 04/13] usb: xhci-mtk: fix broken streams issue on 0.96 xHCI

2021-03-21 Thread Chunfeng Yun
y hcd") Signed-off-by: Chunfeng Yun --- drivers/usb/host/xhci-mtk.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/usb/host/xhci-mtk.c b/drivers/usb/host/xhci-mtk.c index 57bcfdfa0465..1b9f10048fe0 100644 --- a/drivers/usb/host/xhci-mtk.c +++ b/drivers/usb

[PATCH 03/13] dt-bindings: usb: mtu3: support wakeup for mt8183 and mt8192

2021-03-21 Thread Chunfeng Yun
, meanwhile reserve 3~10 for later revision that following the IPM rule. Signed-off-by: Chunfeng Yun --- .../devicetree/bindings/usb/mediatek,mtu3.yaml | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/usb/mediatek,mtu3.yaml b

[PATCH 01/13] dt-bindings: usb: mtk-xhci: support property usb2-lpm-disable

2021-03-21 Thread Chunfeng Yun
Add support common property usb2-lpm-disable Signed-off-by: Chunfeng Yun --- Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml b/Documentation/devicetree/bindings/usb

[PATCH] arm64: dts: mt8173: fix wrong power-domain phandle of pmic

2021-03-18 Thread Chunfeng Yun
Due to power domain controller is added, the power domain's phanle is also changed from 'scpsys' to 'spm', but forget to modify pmic node's Fixes: 8b6562644df9 ("arm64: dts: mediatek: Add mt8173 power domain controller") Signed-off-by: Chunfeng Yun --- arch/arm64/boot/dts/media

Re: [PATCH 10/10] arm64: dts: Add Mediatek SoC MT8195 and evaluation board dts and Makefile

2021-03-17 Thread Chunfeng Yun
On Tue, 2021-03-16 at 19:14 +0800, Seiya Wang wrote: > Add basic chip support for Mediatek MT8195 > > Signed-off-by: Seiya Wang > --- > arch/arm64/boot/dts/mediatek/Makefile | 1 + > arch/arm64/boot/dts/mediatek/mt8195-evb.dts | 29 ++ > arch/arm64/boot/dts/mediatek/mt8195.dtsi|

Re: [PATCH v5 02/13] dt-bindings: phy: mediatek: dsi-phy: modify compatible dependence

2021-03-17 Thread Chunfeng Yun
Hi Vinod, Could you please help to apply patches [02/13] [03/13] [04/13] of the series? Thanks a lot On Tue, 2021-03-16 at 17:22 +0800, Chunfeng Yun wrote: > mt7623-mipi-tx is compatible to mt2701-mipi-tx, and use > "mediatek,mt2701-mipi-tx" instead on MT7623, so modify

Re: [PATCH 08/10] dt-bindings: phy: Add compatible for Mediatek MT8195

2021-03-17 Thread Chunfeng Yun
Hi Vinod, On Wed, 2021-03-17 at 12:10 +0530, Vinod Koul wrote: > On 16-03-21, 19:14, Seiya Wang wrote: > > This commit adds dt-binding documentation of UFS M-Phy for Mediatek MT8195 > > SoC > > Platform. > > Applied, thanks Usually, we expect the dt-binding patch is acked or reviewed by Rob

Re: [PATCH 08/10] dt-bindings: phy: Add compatible for Mediatek MT8195

2021-03-17 Thread Chunfeng Yun
On Tue, 2021-03-16 at 19:14 +0800, Seiya Wang wrote: > This commit adds dt-binding documentation of UFS M-Phy for Mediatek MT8195 SoC > Platform. > > Signed-off-by: Seiya Wang > --- > Documentation/devicetree/bindings/phy/mediatek,ufs-phy.yaml | 1 + > 1 file changed, 1 insertion(+) > > diff

[PATCH v5 11/13] arm: dts: mt7629: harmonize node names and compatibles

2021-03-16 Thread Chunfeng Yun
This is used to fix dtbs_check warning Signed-off-by: Chunfeng Yun --- v2~v5: no changes --- arch/arm/boot/dts/mt7629.dtsi | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/arch/arm/boot/dts/mt7629.dtsi b/arch/arm/boot/dts/mt7629.dtsi index 5cbb3d244c75

[PATCH v5 08/13] arm64: dts: mediatek: mt8516: harmonize node names and compatibles

2021-03-16 Thread Chunfeng Yun
This is used to fix dtbs_check warning: harmonize node names and compatibles; add property "usb-role-switch" for connector dependence. Signed-off-by: Chunfeng Yun --- v2~v5: no changes --- arch/arm64/boot/dts/mediatek/mt8516.dtsi | 9 + arch/arm64/boot/dts/mediat

[PATCH v5 09/13] arm64: dts: mediatek: mt7622: harmonize node names and compatibles

2021-03-16 Thread Chunfeng Yun
This is used to fix dtbs_check warning Signed-off-by: Chunfeng Yun --- v2~v5: no changes --- arch/arm64/boot/dts/mediatek/mt7622.dtsi | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt7622.dtsi b/arch/arm64/boot/dts/mediatek/mt7622.dtsi

[PATCH v5 13/13] arm: dts: mt2701: harmonize node names and compatibles

2021-03-16 Thread Chunfeng Yun
This is used to fix dtbs_check warning Signed-off-by: Chunfeng Yun --- v2~v5: no changes --- arch/arm/boot/dts/mt2701.dtsi | 19 +++ 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/arch/arm/boot/dts/mt2701.dtsi b/arch/arm/boot/dts/mt2701.dtsi index fade14284017

[PATCH v5 03/13] dt-bindings: phy: mediatek: hdmi-phy: modify compatible items

2021-03-16 Thread Chunfeng Yun
Acked-by: Chun-Kuang Hu Reviewed-by: Rob Herring Signed-off-by: Chunfeng Yun --- v5: no changes v4: add acked-by CK and Reviewed-by Rob v3: modify commit message v2: no changes --- .../devicetree/bindings/phy/mediatek,hdmi-phy.yaml| 11 +++ 1 file changed, 7 insertions(+), 4 dele

[PATCH v5 05/13] arm64: dts: mt8173: fix property typo of 'phys' in dsi node

2021-03-16 Thread Chunfeng Yun
Use 'phys' instead of 'phy'. Fixes: 81ad4dbaf7af ("arm64: dts: mt8173: Add display subsystem related nodes") Cc: stable Reviewed-by: Chun-Kuang Hu Signed-off-by: Chunfeng Yun --- v5: merged into this series, add Reviewed-by CK --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 2

[PATCH v5 12/13] arm: dts: mt7623: harmonize node names and compatibles

2021-03-16 Thread Chunfeng Yun
This is used to fix dtbs_check warning Signed-off-by: Chunfeng Yun --- v2~v5: no changes --- arch/arm/boot/dts/mt7623.dtsi | 26 ++ arch/arm/boot/dts/mt7623n.dtsi | 4 ++-- 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/arch/arm/boot/dts/mt7623.dtsi b

[PATCH v5 01/13] dt-bindings: usb: fix yamllint check warning

2021-03-16 Thread Chunfeng Yun
Fix warning: "missing starting space in comment" Fixes: 23bf6fc7046c ("dt-bindings: usb: convert usb-device.txt to YAML schema") Signed-off-by: Chunfeng Yun --- v5: add Fixes tag suggested by Greg v2~v4: no changes --- Documentation/devicetree/bindings/usb/usb-device.yam

[PATCH v5 10/13] arm64: dts: mediatek: mt8183: fix dtbs_check warning

2021-03-16 Thread Chunfeng Yun
Harmonize node names, compatibles and properties. Signed-off-by: Chunfeng Yun --- v4~v5: no changes v3: remove property clock-names suggested by CK v2: no changes --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/arch/arm64

[PATCH v5 04/13] dt-bindings: phy: mediatek: tphy: change patternProperties

2021-03-16 Thread Chunfeng Yun
The phy may be named as pcie-phy when the T-PHY only supports PCIe mode, it's also the similar case for SATA, named as sata-phy. Reviewed-by: Rob Herring Signed-off-by: Chunfeng Yun --- v5: no changes v4: add reviewed-by Rob v2~v3: no changes --- Documentation/devicetree/bindings/phy/mediatek

[PATCH v5 06/13] arm64: dts: mediatek: mt8173: fix dtbs_check warning

2021-03-16 Thread Chunfeng Yun
Harmonize nodes names, compatibles and remove unused property. Signed-off-by: Chunfeng Yun --- v2~v5: no changes --- arch/arm64/boot/dts/mediatek/mt8173-evb.dts | 4 +--- arch/arm64/boot/dts/mediatek/mt8173.dtsi| 13 +++-- 2 files changed, 8 insertions(+), 9 deletions(-) diff

[PATCH v5 02/13] dt-bindings: phy: mediatek: dsi-phy: modify compatible dependence

2021-03-16 Thread Chunfeng Yun
mt7623-mipi-tx is compatible to mt2701-mipi-tx, and use "mediatek,mt2701-mipi-tx" instead on MT7623, so modify the compatible items to make dependence clear. Cc: Chun-Kuang Hu Cc: Philipp Zabel Acked-by: Chun-Kuang Hu Reviewed-by: Rob Herring Signed-off-by: Chunfeng Yun --- v5: no

[PATCH v5 07/13] arm64: dts: mediatek: mt2712: harmonize node names

2021-03-16 Thread Chunfeng Yun
This is used to fix dtbs_check warning. Signed-off-by: Chunfeng Yun --- v2~v5: no changes --- arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt2712e.dtsi b/arch/arm64/boot/dts/mediatek

  1   2   3   4   5   6   7   8   9   10   >