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)
commit72b663a99c074a8d073e7ecdae446cfb024ef551
treeebf7f1fb721c33c05d207a0de089ccefdb46cc86
parent5d9b70f7d52eb14bb37861c663bae44de9521c35
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