]> www.infradead.org Git - users/jedix/linux-maple.git/commit
arm64: dts: mediatek: mt8186: Move wakeup to MTU3 to get working suspend
authorNĂ­colas F. R. A. Prado <nfraprado@collabora.com>
Wed, 6 Nov 2024 21:01:45 +0000 (16:01 -0500)
committerAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Mon, 9 Dec 2024 11:38:15 +0000 (12:38 +0100)
commit253b4e96f5783fddede1b82274a7b4e0aa57d761
treefcfa1d52e793e65b5f73ec3946675aed535a5d4b
parent4604c989004006cc0c08a9cfe8d80e7544b8e808
arm64: dts: mediatek: mt8186: Move wakeup to MTU3 to get working suspend

The current DT has the wakeup-source and mediatek,syscon-wakeup
properties in the XHCI nodes, which configures USB wakeup after powering
down the XHCI hardware block. However, since the XHCI controller is
behind an MTU3 (USB3 DRD controller), the MTU3 only gets powered down
after USB wakeup has been configured, causing the system to detect a
wakeup, and results in broken suspend support as the system resumes
immediately.

Move the wakeup properties to the MTU3 nodes so that USB wakeup is only
enabled after the MTU3 has powered down.

With this change in place, it is possible to suspend and resume, and
also to wakeup through USB, as tested on the Google Steelix (Lenovo 300e
Yoga Chromebook Gen 4).

Fixes: f6c3e61c5486 ("arm64: dts: mediatek: mt8186: Add MTU3 nodes")
Reported-by: Wojciech Macek <wmacek@google.com>
Suggested-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: NĂ­colas F. R. A. Prado <nfraprado@collabora.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20241106-mt8186-suspend-with-usb-wakeup-v1-1-07734a4c8236@collabora.com
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
arch/arm64/boot/dts/mediatek/mt8186.dtsi