Add support common property usb2-lpm-disable
Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
---
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(+)
@@ -104,6 +104,8 @@ properties:description:supports USB3.0 LPMtype:boolean+usb2-lpm-disable:true+imod-interval-ns:description:Interrupt moderation interval value, it is 8 times as much as that
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 <chunfeng.yun@mediatek.com>
---
v3: new patch
---
Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
@@ -100,9 +100,7 @@ properties:vbus-supply:description:Regulator of USB VBUS5v-usb3-lpm-capable:-description:supports USB3.0 LPM-type:boolean+usb3-lpm-capable:trueusb2-lpm-disable:true
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 <chunfeng.yun@mediatek.com>
---
v2~3: no changes
---
drivers/usb/host/xhci-mtk.c | 3 +++
drivers/usb/host/xhci-mtk.h | 1 +
2 files changed, 4 insertions(+)
@@ -493,6 +495,7 @@ static int xhci_mtk_probe(struct platform_device *pdev)returnret;mtk->lpm_support=of_property_read_bool(node,"usb3-lpm-capable");+mtk->u2_lpm_disable=of_property_read_bool(node,"usb2-lpm-disable");/* optional property, ignore the error if it does not exist */of_property_read_u32(node,"mediatek,u3p-dis-msk",&mtk->u3p_dis_msk);
The MediaTek 0.96 xHCI controller on some platforms does not
support bulk stream even HCCPARAMS says supporting, due to MaxPSASize
is set a default value 1 by mistake, here use XHCI_BROKEN_STREAMS
quirk to fix it.
Fixes: 94a631d91ad3 ("usb: xhci-mtk: check hcc_params after adding primary hcd")
Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
---
v2~3: no changes
---
drivers/usb/host/xhci-mtk.c | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
From: Rob Herring <robh@kernel.org> Date: 2021-03-30 21:59:57
On Mon, 29 Mar 2021 15:20:08 +0800, Chunfeng Yun wrote:
Add support common property usb2-lpm-disable
Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
---
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(+)
From: Rob Herring <robh@kernel.org> Date: 2021-03-30 22:00:30
On Mon, 29 Mar 2021 15:20:09 +0800, Chunfeng Yun wrote:
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 <chunfeng.yun@mediatek.com>
---
v3: new patch
---
Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)