aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/function/f_hid.c
diff options
context:
space:
mode:
authorPeter Chen <peter.chen@freescale.com>2015-07-27 14:51:47 +0800
committerFelipe Balbi <balbi@ti.com>2015-07-27 10:18:06 -0500
commitc41b7767673cb76adeb2b5fde220209f717ea13c (patch)
tree7ce3a4dc3d7ff403967deb6b0dabfc81bcae6fab /drivers/usb/gadget/function/f_hid.c
parentusb: gadget: bdc: fix a driver crash on disconnect (diff)
downloadlinux-dev-c41b7767673cb76adeb2b5fde220209f717ea13c.tar.xz
linux-dev-c41b7767673cb76adeb2b5fde220209f717ea13c.zip
usb: gadget: f_uac2: fix calculation of uac2->p_interval
The p_interval should be less if the 'bInterval' at the descriptor is larger, eg, if 'bInterval' is 5 for HS, the p_interval should be 8000 / 16 = 500. It fixes the patch 9bb87f168931 ("usb: gadget: f_uac2: send reasonably sized packets") Cc: <stable@vger.kernel.org> # v3.18+ Fixes: 9bb87f168931 ("usb: gadget: f_uac2: send reasonably sized packets") Acked-by: Daniel Mack <zonque@gmail.com> Signed-off-by: Peter Chen <peter.chen@freescale.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/function/f_hid.c')
0 files changed, 0 insertions, 0 deletions