phy: mapphone-mdm6600: Fix write timeouts with shorter GPIO toggle interval
authorTony Lindgren <tony@atomide.com>
Tue, 4 Feb 2020 15:36:02 +0000 (07:36 -0800)
committerKishon Vijay Abraham I <kishon@ti.com>
Wed, 19 Feb 2020 10:32:01 +0000 (16:02 +0530)
commit46b7edf1c7b7c91004c4db2c355cbd033f2385f9
tree5c1e8b0ce338d74081a90829a8b6bc2dde7a30fd
parentbb6d3fb354c5ee8d6bde2d576eb7220ea09862b9
phy: mapphone-mdm6600: Fix write timeouts with shorter GPIO toggle interval

I've noticed that when writing data to the modem the writes can time out
at some point eventually. Looks like kicking the modem idle GPIO every
600 ms instead of once a second fixes the issue. Note that this rate is
different from our runtime PM autosuspend rate MDM6600_MODEM_IDLE_DELAY_MS
that we still want to keep at 1 second, so let's add a separate define for
PHY_MDM6600_IDLE_KICK_MS.

Fixes: f7f50b2a7b05 ("phy: mapphone-mdm6600: Add runtime PM support for n_gsm on USB suspend")
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