]> git.baikalelectronics.ru Git - kernel.git/commit
usb: xhci: fix TDS for MTK xHCI1.1
authorChunfeng Yun <chunfeng.yun@mediatek.com>
Fri, 8 Dec 2017 16:10:06 +0000 (18:10 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Dec 2017 17:26:34 +0000 (18:26 +0100)
commitdc87c70315920888f953f74cea73c17380a03a8e
treeebf7f1fb721c33c05d207a0de089ccefdb46cc86
parent3ec5f289d8c02bac059bb65c590cb4abb1fcbc4c
usb: xhci: fix TDS for MTK xHCI1.1

For MTK's xHCI 1.0 or latter, TD size is the number of max
packet sized packets remaining in the TD, not including
this TRB (following spec).

For MTK's xHCI 0.96 and older, TD size is the number of max
packet sized packets remaining in the TD, including this TRB
(not following spec).

Cc: stable <stable@vger.kernel.org>
Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-ring.c