]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
usb: xhci-mtk: supports remote wakeup for mt2712 with two xHCI IPs
authorChunfeng Yun <chunfeng.yun@mediatek.com>
Wed, 3 Jan 2018 08:53:20 +0000 (16:53 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 9 Jan 2018 15:21:28 +0000 (16:21 +0100)
commita2ecc4df9f846434866ea73ef99cb08dd1f3947e
tree5c237760ade43edeebbf8ea72bce0ca6c42e9da2
parent99ca1f6f3be5f2587488514dbaeb1f39a547a9b6
usb: xhci-mtk: supports remote wakeup for mt2712 with two xHCI IPs

The old way of usb wakeup only supports platform with single xHCI IP,
such as mt8173, but mt2712 has two xHCI IPs, so rebuild its flow and
supports the new glue layer of usb wakeup on mt2712 which is different
from mt8173.
Due to there is a hardware bug with the LINE STATE wakeup mode on
mt8173 which causes wakeup failure by low speed devices, and also
because IP SLEEP mode can cover all functions of LINE STATE mode,
it is unused in fact, and will not support it later, so remove it at
the same time.

Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-mtk.c
drivers/usb/host/xhci-mtk.h