android_kernel_oneplus_msm8998/drivers
Jack Pham b885707413 usb: dwc3-msm: Simplify OTG_STATE_UNDEFINED handling
In commit 48924e2fe107 ("dwc3: Reset USB controller/PHY after psy
connect indication at bootup") the controller initialization path
was removed from dwc3_msm_probe() and is deferred to when actually
needed, which is when beginning peripheral or host mode. This was
to optimize for the HVDCP charger already-connected case in which
case we want to avoid performing controller initialization which
can disrupt D+/D- linestate.

As part of that change, the OTG_STATE_UNDEFINED state was made
to be the entry point for starting controller initialization.
However, apart from that, the handling is identical to B_IDLE_STATE,
and therefore could be consolidated. And now that charger driver
only notifies us when SDP or CDP types, but not when DCP/HVDCP are
connected, the code can be simplified by removing the duplicate code
between dwc3_initialize() and dwc3_msm_resume().

Change-Id: Ife749c864284864098bcbcbdbda096d05397c60e
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2016-03-23 21:25:54 -07:00
..
accessibility
acpi
amba
android
ata
atm
auxdisplay
base firmware_class: fix direct firmware loading API support 2016-03-23 21:24:26 -07:00
bcma
bif
block staging: zram: Rate limit memory allocation errors 2016-03-23 21:12:22 -07:00
bluetooth bluetooth: wait for write_work from protocol layer to finish 2016-03-23 21:13:00 -07:00
bus
cdrom
char diag: Increase number of buffers for MHI and USB 2016-03-23 21:23:50 -07:00
clk clk: msm: cobalt: Update the vdd-level-cobalt header file 2016-03-23 21:21:48 -07:00
clocksource clocksource: arch_timer: Use _no_log variants while accessing registers 2016-03-23 21:23:41 -07:00
connector
cpufreq cpufreq: interactive: use mult_frac in sl_busy_to_laf 2016-03-23 21:25:30 -07:00
cpuidle drivers: cpuidle: lpm-levels: Notify sched of idle state entry/exit 2016-03-23 21:24:38 -07:00
crypto crypto: msm: support aead aes 192 fallback on 4.4 kernel 2016-03-23 21:24:35 -07:00
dca
devfreq msm: kgsl: Add disable-busy-time-burst to disable ceiling threshold 2016-03-23 21:20:29 -07:00
dio
dma dma: Modify qcom-sps-dma based on framework changes 2016-03-22 11:10:31 -07:00
dma-buf
edac edac: cortex: Add EDAC L1 and L2 error reporting for Kryo2xx Silver CPUs 2016-03-23 21:21:30 -07:00
eisa
esoc esoc: Snapshot esoc drivers 2016-03-22 11:16:34 -07:00
extcon extcon: Don't register switch class if CONFIG_SWITCH is enabled 2016-03-23 21:25:46 -07:00
firewire
firmware firmware: qcom: add snapshot of tz_log.c 2016-03-23 20:08:20 -07:00
fmc
fpga
gpio gpio: qpnp-pin: Fix out of bound shift 2016-03-23 21:21:41 -07:00
gpu sync: oneshot_sync: Add oneshot_sync driver 2016-03-23 21:24:25 -07:00
hid Bluetooth: uhid: Prevent deadlock while waiting for response 2016-03-23 21:18:51 -07:00
hsi
hv
hwmon hwmon: qpnp-adc-voltage: Update VADC debug registers 2016-03-23 21:21:14 -07:00
hwspinlock Merge remote-tracking branch 'lsk-44/linux-linaro-lsk-v4.4' into 44rc2 2016-03-23 20:51:00 -07:00
hwtracing Coresight: add support for device names 2016-03-22 11:15:44 -07:00
i2c i2c-msm-v2: decrease runtime pm time to 250msec 2016-03-23 21:15:49 -07:00
ide
idle
iio
infiniband
input input: gen_vkeys: squash commit from 3.14-kernel 2016-03-23 21:23:54 -07:00
iommu iommu/arm-smmu: Fix a Null pointer dereference 2016-03-23 21:25:40 -07:00
ipack
irqchip drivers: irqchip: Add codec interrupt pinctrl 2016-03-23 20:11:35 -07:00
isdn
leds leds: leds-qpnp-flash: set open circuit fault flag when detected 2016-03-23 21:23:51 -07:00
lguest
lightnvm
macintosh
mailbox
mcb
md dm: add snapshot of dm-req-crypt 2016-03-23 21:24:15 -07:00
media msm: camera: isp: fix two corner case handling for the framedrop pattern 2016-03-23 21:22:53 -07:00
memory
memstick
message
mfd drivers: mfd: Move codec reset gpio config to early boot 2016-03-23 21:20:53 -07:00
misc misc: Update the QPNP_MISC Kconfig entry 2016-03-23 21:21:23 -07:00
mmc mmc: new request notification unit-test 2016-03-22 11:01:44 -07:00
mtd mtd: ubi: wl: avoid erasing a PEB which is empty 2016-03-23 21:20:21 -07:00
net msm: ipa: snapshot of IPA changes 2016-03-23 21:25:09 -07:00
nfc
ntb
nubus
nvdimm
nvme
nvmem
of of: alloc anywhere from memblock if range not specified 2016-03-23 21:19:17 -07:00
oprofile
parisc
parport
pci msm: pcie: add support to panic on linkdown 2016-03-23 21:21:39 -07:00
pcmcia
perf perf: replace cpu_up/down with device_online/offline 2016-03-23 21:22:11 -07:00
phy ufs: qcom: add dts property to disable LPM modes 2016-03-23 21:25:44 -07:00
pinctrl pinctrl: Fix the return value for devices without default state 2016-03-23 21:23:52 -07:00
platform msm: ipa: snapshot of IPA changes 2016-03-23 21:25:09 -07:00
pnp
power power: qpnp-smbcharger: Replace DPF_DMF/DPR_DMR calls with regulator 2016-03-23 21:25:51 -07:00
powercap
pps
ps3
ptp
pwm
rapidio
ras
regulator regulator: cpr3-regulator: adjust voltage limits based upon aging results 2016-03-23 21:23:17 -07:00
remoteproc
reset
rpmsg
rtc
s390
sbus
scsi ufs: qcom: add dts property to disable LPM modes 2016-03-23 21:25:44 -07:00
sensors clocksource: migrate users of arch_get_cnt_pct to use virtual timers 2016-03-22 11:16:37 -07:00
sfi
sh
slimbus slim-msm-ngd: Register with specific subsystem 2016-03-23 21:21:18 -07:00
sn
soc iommu/arm-smmu: Request TZ to change page table format to V8L 2016-03-23 21:25:38 -07:00
soundwire soundwire: Avoid runtime suspend after device path bringup 2016-03-23 21:20:44 -07:00
spi spi: spidev: add Qualcomm spi codec slave driver 2016-03-23 21:11:59 -07:00
spmi spmi: pmic_arb: use handle_fasteoi_irq handler 2016-03-22 11:16:03 -07:00
ssb
staging sync: oneshot_sync: Add oneshot_sync driver 2016-03-23 21:24:25 -07:00
switch
target
tc
thermal thermal-core: fix compilation warnings on Kernel 4.4 2016-03-23 21:25:02 -07:00
thunderbolt
tty msm_serial_hs: update IRQ related error messages 2016-03-23 21:16:21 -07:00
uio uio: msm_sharedmem: Fix format specifier to print resource_size_t 2016-03-23 21:24:33 -07:00
usb usb: dwc3-msm: Simplify OTG_STATE_UNDEFINED handling 2016-03-23 21:25:54 -07:00
uwb
vfio
vhost
video msm: mdss: create u32 debugfs for enable_gate/wait4autorefresh 2016-03-23 21:24:34 -07:00
virt
virtio
vlynq
vme
w1
watchdog
xen
zorro
Kconfig ASoC: wcd: Add Audio codec drivers for MSM targets 2016-03-23 20:11:28 -07:00
Makefile ASoC: wcd: Add Audio codec drivers for MSM targets 2016-03-23 20:11:28 -07:00