diff options
Diffstat (limited to 'target/linux/mediatek/patches-4.14/0109-usb-mtu3-add-support-for-usb3.1-IP.patch')
-rw-r--r-- | target/linux/mediatek/patches-4.14/0109-usb-mtu3-add-support-for-usb3.1-IP.patch | 33 |
1 files changed, 10 insertions, 23 deletions
diff --git a/target/linux/mediatek/patches-4.14/0109-usb-mtu3-add-support-for-usb3.1-IP.patch b/target/linux/mediatek/patches-4.14/0109-usb-mtu3-add-support-for-usb3.1-IP.patch index 020dabf..c17a77b 100644 --- a/target/linux/mediatek/patches-4.14/0109-usb-mtu3-add-support-for-usb3.1-IP.patch +++ b/target/linux/mediatek/patches-4.14/0109-usb-mtu3-add-support-for-usb3.1-IP.patch @@ -15,8 +15,6 @@ Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com> drivers/usb/mtu3/mtu3_hw_regs.h | 1 + 5 files changed, 23 insertions(+), 12 deletions(-) -diff --git a/drivers/usb/mtu3/mtu3.h b/drivers/usb/mtu3/mtu3.h -index b0c2b5dca045..d80e4e813248 100644 --- a/drivers/usb/mtu3/mtu3.h +++ b/drivers/usb/mtu3/mtu3.h @@ -94,6 +94,7 @@ enum mtu3_speed { @@ -27,11 +25,9 @@ index b0c2b5dca045..d80e4e813248 100644 }; /** -diff --git a/drivers/usb/mtu3/mtu3_core.c b/drivers/usb/mtu3/mtu3_core.c -index cd4528f5f337..67f7a309aba7 100644 --- a/drivers/usb/mtu3/mtu3_core.c +++ b/drivers/usb/mtu3/mtu3_core.c -@@ -237,7 +237,7 @@ void mtu3_ep_stall_set(struct mtu3_ep *mep, bool set) +@@ -237,7 +237,7 @@ void mtu3_ep_stall_set(struct mtu3_ep *m void mtu3_dev_on_off(struct mtu3 *mtu, int is_on) { @@ -40,7 +36,7 @@ index cd4528f5f337..67f7a309aba7 100644 mtu3_ss_func_set(mtu, is_on); else mtu3_hs_softconn_set(mtu, is_on); -@@ -547,6 +547,9 @@ static void mtu3_set_speed(struct mtu3 *mtu) +@@ -547,6 +547,9 @@ static void mtu3_set_speed(struct mtu3 * mtu3_clrbits(mbase, U3D_USB3_CONFIG, USB3_EN); /* HS/FS detected by HW */ mtu3_setbits(mbase, U3D_POWER_MANAGEMENT, HS_ENABLE); @@ -50,7 +46,7 @@ index cd4528f5f337..67f7a309aba7 100644 } dev_info(mtu->dev, "max_speed: %s\n", -@@ -624,6 +627,10 @@ static irqreturn_t mtu3_link_isr(struct mtu3 *mtu) +@@ -624,6 +627,10 @@ static irqreturn_t mtu3_link_isr(struct udev_speed = USB_SPEED_SUPER; maxpkt = 512; break; @@ -61,7 +57,7 @@ index cd4528f5f337..67f7a309aba7 100644 default: udev_speed = USB_SPEED_UNKNOWN; break; -@@ -825,14 +832,15 @@ int ssusb_gadget_init(struct ssusb_mtk *ssusb) +@@ -825,14 +832,15 @@ int ssusb_gadget_init(struct ssusb_mtk * case USB_SPEED_FULL: case USB_SPEED_HIGH: case USB_SPEED_SUPER: @@ -79,11 +75,9 @@ index cd4528f5f337..67f7a309aba7 100644 break; } -diff --git a/drivers/usb/mtu3/mtu3_gadget.c b/drivers/usb/mtu3/mtu3_gadget.c -index 434fca58143c..b495471f689f 100644 --- a/drivers/usb/mtu3/mtu3_gadget.c +++ b/drivers/usb/mtu3/mtu3_gadget.c -@@ -89,6 +89,7 @@ static int mtu3_ep_enable(struct mtu3_ep *mep) +@@ -89,6 +89,7 @@ static int mtu3_ep_enable(struct mtu3_ep switch (mtu->g.speed) { case USB_SPEED_SUPER: @@ -91,7 +85,7 @@ index 434fca58143c..b495471f689f 100644 if (usb_endpoint_xfer_int(desc) || usb_endpoint_xfer_isoc(desc)) { interval = desc->bInterval; -@@ -456,7 +457,7 @@ static int mtu3_gadget_wakeup(struct usb_gadget *gadget) +@@ -456,7 +457,7 @@ static int mtu3_gadget_wakeup(struct usb return -EOPNOTSUPP; spin_lock_irqsave(&mtu->lock, flags); @@ -100,11 +94,9 @@ index 434fca58143c..b495471f689f 100644 mtu3_setbits(mtu->mac_base, U3D_LINK_POWER_CONTROL, UX_EXIT); } else { mtu3_setbits(mtu->mac_base, U3D_POWER_MANAGEMENT, RESUME); -diff --git a/drivers/usb/mtu3/mtu3_gadget_ep0.c b/drivers/usb/mtu3/mtu3_gadget_ep0.c -index 958d74dd2b78..020b25314a68 100644 --- a/drivers/usb/mtu3/mtu3_gadget_ep0.c +++ b/drivers/usb/mtu3/mtu3_gadget_ep0.c -@@ -212,8 +212,8 @@ ep0_get_status(struct mtu3 *mtu, const struct usb_ctrlrequest *setup) +@@ -212,8 +212,8 @@ ep0_get_status(struct mtu3 *mtu, const s case USB_RECIP_DEVICE: result[0] = mtu->is_self_powered << USB_DEVICE_SELF_POWERED; result[0] |= mtu->may_wakeup << USB_DEVICE_REMOTE_WAKEUP; @@ -115,7 +107,7 @@ index 958d74dd2b78..020b25314a68 100644 result[0] |= mtu->u1_enable << USB_DEV_STAT_U1_ENABLED; result[0] |= mtu->u2_enable << USB_DEV_STAT_U2_ENABLED; } -@@ -329,8 +329,8 @@ static int ep0_handle_feature_dev(struct mtu3 *mtu, +@@ -329,8 +329,8 @@ static int ep0_handle_feature_dev(struct handled = handle_test_mode(mtu, setup); break; case USB_DEVICE_U1_ENABLE: @@ -126,7 +118,7 @@ index 958d74dd2b78..020b25314a68 100644 break; lpc = mtu3_readl(mbase, U3D_LINK_POWER_CONTROL); -@@ -344,8 +344,8 @@ static int ep0_handle_feature_dev(struct mtu3 *mtu, +@@ -344,8 +344,8 @@ static int ep0_handle_feature_dev(struct handled = 1; break; case USB_DEVICE_U2_ENABLE: @@ -137,7 +129,7 @@ index 958d74dd2b78..020b25314a68 100644 break; lpc = mtu3_readl(mbase, U3D_LINK_POWER_CONTROL); -@@ -384,8 +384,8 @@ static int ep0_handle_feature(struct mtu3 *mtu, +@@ -384,8 +384,8 @@ static int ep0_handle_feature(struct mtu break; case USB_RECIP_INTERFACE: /* superspeed only */ @@ -148,8 +140,6 @@ index 958d74dd2b78..020b25314a68 100644 /* * forward the request because function drivers * should handle it -diff --git a/drivers/usb/mtu3/mtu3_hw_regs.h b/drivers/usb/mtu3/mtu3_hw_regs.h -index a7e35f6ad90a..6953436a1688 100644 --- a/drivers/usb/mtu3/mtu3_hw_regs.h +++ b/drivers/usb/mtu3/mtu3_hw_regs.h @@ -467,6 +467,7 @@ @@ -160,6 +150,3 @@ index a7e35f6ad90a..6953436a1688 100644 #define SSUSB_U3_PORT_HOST_SEL BIT(2) #define SSUSB_U3_PORT_PDN BIT(1) #define SSUSB_U3_PORT_DIS BIT(0) --- -2.11.0 - |