]> git.itanic.dy.fi Git - linux-stable/commit
usb: dwc3: gadget: Fix dep->interval for fullspeed interrupt
authorThinh Nguyen <Thinh.Nguyen@synopsys.com>
Mon, 8 Feb 2021 21:53:16 +0000 (13:53 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Mar 2021 17:22:52 +0000 (18:22 +0100)
commit415cfe556a63b01852b63a30431b749e9d6733ff
tree3d338484b8c5c0465857e613735030ea62abf686
parentf323b51938668fbee4ab85a591ae439a7bcb2fe1
usb: dwc3: gadget: Fix dep->interval for fullspeed interrupt

commit 4b049f55ed95cd889bcdb3034fd75e1f01852b38 upstream.

The dep->interval captures the number of frames/microframes per interval
from bInterval. Fullspeed interrupt endpoint bInterval is the number of
frames per interval and not 2^(bInterval - 1). So fix it here. This
change is only for debugging purpose and should not affect the interrupt
endpoint operation.

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/1263b563dedc4ab8b0fb854fba06ce4bc56bd495.1612820995.git.Thinh.Nguyen@synopsys.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/gadget.c