phy: cpcap-usb: Prevent USB line glitches from waking up modem
Tony Lindgren authored
[ Upstream commit 63078b6b

 ]

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: default avatarPavel Machek <pavel@ucw.cz>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
Signed-off-...
aba29b46
Name Last commit Last update
Documentation Documentation: Document arm64 kpti control
arch arc: eznps: fix allmodconfig kconfig warning
block block: don't use bio->bi_vcnt to figure out segment number
certs Replace magic for trusting the secondary keyring with #define
crypto crypto: tgr192 - fix unaligned memory access
drivers phy: cpcap-usb: Prevent USB line glitches from waking up modem
firmware Fix built-in early-load Intel microcode alignment
fs do_last(): fetch directory ->i_mode and ->i_uid before it's too late
include USB: serial: ir-usb: fix link-speed handling
init fork: fix some -Wmissing-prototypes warnings
ipc ipc/mqueue.c: only perform resource calculation if user valid
kernel irqdomain: Add the missing assignment of domain->fwnode for named fwnode
lib bitmap: Add bitmap_alloc(), bitmap_zalloc() and bitmap_free()
mm mm/huge_memory.c: thp: fix conflict of above-47bit hint address and PMD alignment
net net/x25: fix nonblocking connect
samples samples: bpf: fix syscall_tp due to unused syscall
scripts ARM: 8950/1: ftrace/recordmcount: filter relocation types
security keys: Timestamp new keys
sound ASoC: sun4i-i2s: RX and TX counter registers are swapped
tools selftests/ipc: Fix msgque compiler warnings
usr kbuild: clean compressed initramfs image
virt KVM: arm/arm64: vgic: Don't rely on the wrong pending table
.cocciconfig scripts: add Linux .cocciconfig for coccinelle
.get_maintainer.ignore Add hch to .get_maintainer.ignore
.gitattributes .gitattributes: set git diff driver for C source code files
.gitignore kbuild: rpm-pkg: keep spec file until make mrproper
.mailmap .mailmap: Add Maciej W. Rozycki's Imagination e-mail address
COPYING [PATCH] update FSF address in COPYING
CREDITS MAINTAINERS: update TPM driver infrastructure changes
Kbuild License cleanup: add SPDX GPL-2.0 license identifier to files with no license
Kconfig License cleanup: add SPDX GPL-2.0 license identifier to files with no license
MAINTAINERS USB: rio500: Remove Rio 500 kernel driver
Makefile Linux 4.14.169
README README: add a new README file, pointing to the Documentation/
Linux kernel
============

This file was moved to Documentation/admin-guide/README.rst

Please notice that there are several guides for kernel developers and users.
These guides can be rendered in a number of formats, like HTML and PDF.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.
See Documentation/00-INDEX for a list of what is contained in each file.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.