]> git.baikalelectronics.ru Git - kernel.git/commit
usb: xhci: fix interrupt transfer error happened on MTK platforms
authorChunfeng Yun <chunfeng.yun@mediatek.com>
Fri, 7 Sep 2018 07:29:12 +0000 (15:29 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Sep 2018 18:40:29 +0000 (20:40 +0200)
commit2ddb097459a3bf78b60e83e46ceb9c3fb4313681
treec41e7b95a0e7a1a7134f27c5d858d567baf9564c
parent8235cd7af1f8b32144d1e330ad7cfe5a63577447
usb: xhci: fix interrupt transfer error happened on MTK platforms

The MTK xHCI controller use some reserved bytes in endpoint context for
bandwidth scheduling, so need keep them in xhci_endpoint_copy();

The issue is introduced by:
commit 6e8739caa845 ("xhci: Clear the host side toggle manually when
endpoint is soft reset")
It resets endpoints and will drop bandwidth scheduling parameters used
by interrupt or isochronous endpoints on MTK xHCI controller.
Fixes: 6e8739caa845 ("xhci: Clear the host side toggle manually when
endpoint is soft reset")

Cc: stable@vger.kernel.org
Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Tested-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-mem.c