patch "usb: dwc3: gadget: Remove FS bInterval_m1 limitation" added to usb-testing
Subsystems (3)
This is a note to let you know that I've just added the patch titled
usb: dwc3: gadget: Remove FS bInterval_m1 limitation
to my usb git tree which can be found at
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
in the usb-testing branch.
The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.)
The patch will be merged to the usb-next branch sometime soon, after it passes testing, and the merge window is open.
If you have any questions about this process, please let me know.
From 3232a3ce55edfc0d7f8904543b4088a5339c2b2b Mon Sep 17 00:00:00 2001
From: Thinh Nguyen <[email protected]>
Date: Thu, 15 Apr 2021 00:41:58 -0700
Subject: usb: dwc3: gadget: Remove FS bInterval_m1 limitation
The programming guide incorrectly stated that the DCFG.bInterval_m1 must be set to 0 when operating in fullspeed. There's no such limitation for all IPs. See DWC_usb3x programming guide section 3.2.2.1.
--- drivers/usb/dwc3/gadget.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-)
drivers/usb/dwc3/gadget.c +6 -4
@@ -607,12 +607,14 @@ static int dwc3_gadget_set_ep_config(struct dwc3_ep *dep, unsigned int action)u8 bInterval_m1;/* -* Valid range for DEPCFG.bInterval_m1 is from 0 to 13, and it -* must be set to 0 when the controller operates in full-speed. +* Valid range for DEPCFG.bInterval_m1 is from 0 to 13. +* +* NOTE: The programming guide incorrectly stated bInterval_m1 +* must be set to 0 when operating in fullspeed. Internally the +* controller does not have this limitation. See DWC_usb3x +* programming guide section 3.2.2.1. */ bInterval_m1 =min_t (u8, desc->bInterval -1 ,13 ); -if (dwc->gadget->speed ==USB_SPEED_FULL ) - bInterval_m1 =0 ;if (usb_endpoint_type (desc) ==USB_ENDPOINT_XFER_INT && dwc->gadget->speed ==USB_SPEED_FULL )
Signature · 1 line
2.31.1