phy: mapphone-mdm6600: Fix timeouts by adding wake-up handling
authorTony Lindgren <tony@atomide.com>
Sun, 15 Sep 2019 20:15:52 +0000 (13:15 -0700)
committerKishon Vijay Abraham I <kishon@ti.com>
Thu, 27 Feb 2020 04:50:40 +0000 (10:20 +0530)
commitbe4e3c737eebd75815633f4b8fd766defaf0f1fc
tree2874466d48e67f87fb573f97194b273e1b8fe4b2
parent0ed41b33882c577e1d6582913163a2f5727765fe
phy: mapphone-mdm6600: Fix timeouts by adding wake-up handling

We have an interrupt handler for the wake-up GPIO pin, but we're missing
the code to wake-up the system. This can cause timeouts receiving data
for the UART that shares the wake-up GPIO pin with the USB PHY.

All we need to do is just wake the system and kick the autosuspend
timeout to fix the issue.

Fixes: 5d1ebbda0318 ("phy: mapphone-mdm6600: Add USB PHY driver for MDM6600 on Droid 4")
Cc: Marcel Partap <mpartap@gmx.net>
Cc: Merlijn Wajer <merlijn@wizzup.org>
Cc: Michael Scott <hashcode0f@gmail.com>
Cc: NeKit <nekit1000@gmail.com>
Cc: Pavel Machek <pavel@ucw.cz>
Cc: Sebastian Reichel <sre@kernel.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/motorola/phy-mapphone-mdm6600.c