linux-stable/drivers/phy
Tony Lindgren e0fcfcda80 phy: cpcap-usb: Prevent USB line glitches from waking up modem
[ Upstream commit 63078b6ba0 ]

The micro-USB connector on Motorola Mapphone devices can be muxed between
the SoC and the mdm6600 modem. But even when used for the SoC, configuring
the PHY with ID pin grounded will wake up the modem from idle state. Looks
like the issue is probably caused by line glitches.

We can prevent the glitches by using a previously unknown mode of the
GPIO mux to prevent the USB lines from being connected to the moden while
configuring the USB PHY, and enable the USB lines after configuring the
PHY.

Note that this only prevents waking up mdm6600 as regular USB A-host mode,
and does not help when connected to a lapdock. The lapdock specific issue
still needs to be debugged separately.

Cc: Merlijn Wajer <merlijn@wizzup.org>
Cc: Pavel Machek <pavel@ucw.cz>
Cc: Sebastian Reichel <sre@kernel.org>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-02-01 09:37:07 +00:00
..
allwinner phy: sun4i-usb: Make sure to disable PHY0 passby for peripheral mode 2019-05-31 06:46:20 -07:00
amlogic phy: amlogic: add USB3 PHY support for Meson GXL and GXM 2018-03-16 13:40:44 +05:30
broadcom phy: usb: phy-brcm-usb: Remove sysfs attributes upon driver removal 2020-01-27 14:50:54 +01:00
hisilicon phy: add inno-usb2-phy driver for hi3798cv200 SoC 2018-03-16 16:55:29 +05:30
lantiq phy: lantiq: Fix compile warning 2019-11-20 18:47:35 +01:00
marvell phy: mvebu-cp110-comphy: switch to SPDX identifier 2018-07-24 11:12:15 +05:30
mediatek phy: phy-mtk-tphy: add property for BC12 2018-07-10 13:45:08 +05:30
motorola phy: cpcap-usb: Prevent USB line glitches from waking up modem 2020-02-01 09:37:07 +00:00
qualcomm phy: qcom-qmp: Increase PHY ready timeout 2020-02-01 09:37:07 +00:00
ralink phy: add 'depends on HAS_IOMEM' to fix unmet dependency 2018-03-16 13:40:45 +05:30
renesas phy: renesas: rcar-gen3-usb2: Fix sysfs interface of "role" 2019-12-17 20:34:45 +01:00
rockchip phy: rockchip-typec: fall back to working in host-mode if extcon is missing. 2018-03-16 16:55:37 +05:30
samsung phy: exynos-mipi-video: Simplify code by using regmap_update_bits() 2018-04-25 10:52:59 +05:30
st phy: stm32: fix usbphyc static checker and checkpatch warnings 2018-05-20 21:51:25 +05:30
tegra phy: tegra: Convert to use match_string() helper 2018-05-20 21:51:22 +05:30
ti phy: phy-twl4030-usb: fix denied runtime access 2019-11-20 18:47:24 +01:00
Kconfig
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
phy-core.c phy: core: Allow phy_pm_runtime_xxx API calls with NULL phy 2018-04-25 10:52:59 +05:30
phy-lpc18xx-usb-otg.c phy: lpc18xx-usb-otg: error handling in lpc18xx_usb_otg_phy_power_on() 2018-03-16 13:40:42 +05:30
phy-pistachio-usb.c
phy-xgene.c