]> git.ipfire.org Git - people/arne_f/kernel.git/commit
usb: dwc3: gadget: Fix setting of DEPCFG.bInterval_m1
authorThinh Nguyen <Thinh.Nguyen@synopsys.com>
Mon, 8 Feb 2021 21:53:10 +0000 (13:53 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Mar 2021 17:22:52 +0000 (18:22 +0100)
commitf323b51938668fbee4ab85a591ae439a7bcb2fe1
treeece6efdebe726fbc9e22020eab84570edbd158f6
parent5abbfbe0da0fe639422cad710ef190ad012bcd78
usb: dwc3: gadget: Fix setting of DEPCFG.bInterval_m1

commit a1679af85b2ae35a2b78ad04c18bb069c37330cc upstream.

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. See the programming
guide for DEPCFG command section 3.2.2.1 (v3.30a).

Fixes: 72246da40f37 ("usb: Introduce DesignWare USB3 DRD Driver")
Cc: <stable@vger.kernel.org>
Signed-off-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Link: https://lore.kernel.org/r/3f57026f993c0ce71498dbb06e49b3a47c4d0265.1612820995.git.Thinh.Nguyen@synopsys.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/gadget.c