]> git.baikalelectronics.ru Git - uboot.git/commit
usb: xhci: Honor endpoint's interval
authorBin Meng <bmeng.cn@gmail.com>
Mon, 18 Sep 2017 13:40:47 +0000 (06:40 -0700)
committerMarek Vasut <marex@denx.de>
Sun, 1 Oct 2017 14:32:54 +0000 (16:32 +0200)
commitca74bd1aea733c8c9a2b11f4198a1a1cc7ef985e
treeeefaa61400e609e077e12620c10239c051c4ff5a
parente4a52a95b96fb225bfc32d5513fb9ef4604d1b81
usb: xhci: Honor endpoint's interval

USB endpoint reports the period between consecutive requests to send
or receive data as bInverval in its endpoint descriptor. So far this
is ignored by xHCI driver and the 'Interval' field in xHC's endpoint
context is always programmed to zero which means 1ms for low speed
or full speed , or 125us for high speed or super speed. We should
honor the interval by getting it from endpoint descriptor.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
drivers/usb/host/xhci.c
drivers/usb/host/xhci.h
include/linux/usb/ch9.h