diff options
author | Stijn Segers <foss@volatilesystems.org> | 2018-06-29 22:29:06 +0200 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2018-07-02 07:06:23 +0200 |
commit | ab7cabd09df542cf3558725573c2ef2cf1c7cdff (patch) | |
tree | 791b3f74b7c5e60f1409836871287337f4cf0e38 /target/linux/mediatek/patches-4.14/0129-usb-xhci-mtk-support-option-to-disable-usb3-ports.patch | |
parent | c96b344466fc80cb5815eeab87c6ca9a29fb9207 (diff) | |
download | upstream-ab7cabd09df542cf3558725573c2ef2cf1c7cdff.tar.gz upstream-ab7cabd09df542cf3558725573c2ef2cf1c7cdff.tar.bz2 upstream-ab7cabd09df542cf3558725573c2ef2cf1c7cdff.zip |
kernel: bump 4.14 to 4.14.52 for 18.06
Compile-tested on: ramips/mt7621, x86/64.
Run-tested on: ramips/mt7621.
Signed-off-by: Stijn Segers <foss@volatilesystems.org>
Diffstat (limited to 'target/linux/mediatek/patches-4.14/0129-usb-xhci-mtk-support-option-to-disable-usb3-ports.patch')
-rw-r--r-- | target/linux/mediatek/patches-4.14/0129-usb-xhci-mtk-support-option-to-disable-usb3-ports.patch | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/target/linux/mediatek/patches-4.14/0129-usb-xhci-mtk-support-option-to-disable-usb3-ports.patch b/target/linux/mediatek/patches-4.14/0129-usb-xhci-mtk-support-option-to-disable-usb3-ports.patch index 90e2aed441..d5e48c7d01 100644 --- a/target/linux/mediatek/patches-4.14/0129-usb-xhci-mtk-support-option-to-disable-usb3-ports.patch +++ b/target/linux/mediatek/patches-4.14/0129-usb-xhci-mtk-support-option-to-disable-usb3-ports.patch @@ -16,11 +16,9 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> drivers/usb/host/xhci-mtk.h | 1 + 2 files changed, 16 insertions(+), 3 deletions(-) -diff --git a/drivers/usb/host/xhci-mtk.c b/drivers/usb/host/xhci-mtk.c -index 7a92bb782e5c..97ba51e4e149 100644 --- a/drivers/usb/host/xhci-mtk.c +++ b/drivers/usb/host/xhci-mtk.c -@@ -92,6 +92,7 @@ static int xhci_mtk_host_enable(struct xhci_hcd_mtk *mtk) +@@ -92,6 +92,7 @@ static int xhci_mtk_host_enable(struct x { struct mu3c_ippc_regs __iomem *ippc = mtk->ippc_regs; u32 value, check_val; @@ -28,7 +26,7 @@ index 7a92bb782e5c..97ba51e4e149 100644 int ret; int i; -@@ -103,8 +104,13 @@ static int xhci_mtk_host_enable(struct xhci_hcd_mtk *mtk) +@@ -103,8 +104,13 @@ static int xhci_mtk_host_enable(struct x value &= ~CTRL1_IP_HOST_PDN; writel(value, &ippc->ip_pw_ctr1); @@ -43,7 +41,7 @@ index 7a92bb782e5c..97ba51e4e149 100644 value = readl(&ippc->u3_ctrl_p[i]); value &= ~(CTRL_U3_PORT_PDN | CTRL_U3_PORT_DIS); value |= CTRL_U3_PORT_HOST_SEL; -@@ -126,7 +132,7 @@ static int xhci_mtk_host_enable(struct xhci_hcd_mtk *mtk) +@@ -126,7 +132,7 @@ static int xhci_mtk_host_enable(struct x check_val = STS1_SYSPLL_STABLE | STS1_REF_RST | STS1_SYS125_RST | STS1_XHCI_RST; @@ -52,7 +50,7 @@ index 7a92bb782e5c..97ba51e4e149 100644 check_val |= STS1_U3_MAC_RST; ret = readl_poll_timeout(&ippc->ip_pw_sts1, value, -@@ -149,8 +155,11 @@ static int xhci_mtk_host_disable(struct xhci_hcd_mtk *mtk) +@@ -149,8 +155,11 @@ static int xhci_mtk_host_disable(struct if (!mtk->has_ippc) return 0; @@ -65,7 +63,7 @@ index 7a92bb782e5c..97ba51e4e149 100644 value = readl(&ippc->u3_ctrl_p[i]); value |= CTRL_U3_PORT_PDN; writel(value, &ippc->u3_ctrl_p[i]); -@@ -573,6 +582,9 @@ static int xhci_mtk_probe(struct platform_device *pdev) +@@ -573,6 +582,9 @@ static int xhci_mtk_probe(struct platfor } mtk->lpm_support = of_property_read_bool(node, "usb3-lpm-capable"); @@ -75,8 +73,6 @@ index 7a92bb782e5c..97ba51e4e149 100644 ret = usb_wakeup_of_property_parse(mtk, node); if (ret) -diff --git a/drivers/usb/host/xhci-mtk.h b/drivers/usb/host/xhci-mtk.h -index 3aa5e1d25064..db55a12f1585 100644 --- a/drivers/usb/host/xhci-mtk.h +++ b/drivers/usb/host/xhci-mtk.h @@ -121,6 +121,7 @@ struct xhci_hcd_mtk { @@ -87,6 +83,3 @@ index 3aa5e1d25064..db55a12f1585 100644 struct regulator *vusb33; struct regulator *vbus; struct clk *sys_clk; /* sys and mac clock */ --- -2.11.0 - |