android_kernel_oneplus_msm8998/drivers
Jack Pham b5e86ec97a usb: pd: Handle disconnection immediately if SDP
Due to a known PMIC HW bug, hard reset or PR swap may result in
the charger notifying a CC disconnect event in sink mode, in which
case the handler ignores it given these conditions. However, this
closely resembles the case of a non-PD capable source getting
physically disconnected as well. Consisdering the most probable
case of this happening is disconnecting from an SDP while hard
reset was just issued (and will fail), this workaround is currently
racy if repeated plugin/plugout is performed as the timeout to
detect failed hard reset takes a few seconds.

For now, until a HW fix is available, optimize this legacy case
by allowing the disconnect to go through if the detected charger
type is SDP. Also fix the SINK_WAIT_CAP_TIME timeout as it was
incorrectly multiplied by 3 during testing and was not removed.
This will significantly reduce the amount of time for max failed
hard reset attempts for non-PD && non-SDP cases and should decrease
the window for racing with an actual disconnect.

Change-Id: Ic57a369ed1e194ab512b4b86ce4d216df46b5f46
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2016-06-08 15:20:27 -07:00
..
accessibility
acpi ACPI / property: avoid leaking format string into kobject name 2016-01-08 01:01:41 +01:00
amba
android android: binder: Don't use sched_preempt_enable_no_resched. 2016-05-10 13:20:20 -07:00
ata ahci: Intel DNV device IDs SATA 2016-02-17 12:31:03 -08:00
atm
auxdisplay
base mm/memblock: disable local irqs while late memblock changes 2016-05-31 15:26:50 -07:00
bcma
bif spmi_devices: change to platform_devices 2016-03-01 12:22:33 -08:00
block block: zram: Fix compilation issues 2016-05-18 13:40:22 -07:00
bluetooth net: cnss: add dual cnss platform driver support for dual WiFi 2016-05-31 15:25:28 -07:00
bus bus: sunxi-rsb: Fix peripheral IC mapping runtime address 2015-12-22 11:42:30 -08:00
cdrom
char diag: Fix for corrupted dci log mask 2016-06-08 15:15:14 -07:00
clk clk: msm: clock: Add support for programming the GCC_GPU_IREF_EN register 2016-06-07 16:06:33 -07:00
clocksource clocksource: arch_timer: Use _no_log variants while accessing registers 2016-03-23 21:23:41 -07:00
connector connector: bump skb->users before callback invocation 2016-01-04 21:46:45 -05:00
cpufreq cpufreq_stats: Disable cpu hotplug during stats table creation 2016-04-05 11:32:54 -07:00
cpuidle cpuidle: lpm_levels: Remove duplicate cpuidle tracepoints 2016-05-24 14:15:31 -07:00
crypto crypto: msm: Update Kconfig to enable hw crypto driver for msmcobalt 2016-05-24 17:57:14 -07:00
dca
devfreq PM / devfreq: memlat: Prevent deadlock with hotplug in start_hwmon 2016-06-01 15:27:34 -07:00
dio
dma dma: Modify qcom-sps-dma based on framework changes 2016-03-22 11:10:31 -07:00
dma-buf CHROMIUM: android: fix warning when releasing active sync point 2016-02-16 13:53:25 -08:00
edac edac: cortex: Update the function name to reflect Kryo2xx processor 2016-06-07 11:58:40 -07:00
eisa
esoc esoc: Add debug engine for external modems. 2016-03-25 16:03:40 -07:00
extcon extcon: Add support for USB connector speed 2016-05-24 17:55:03 -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 crash while freeing memory when probe fails 2016-04-26 14:38:03 -07:00
gpu msm: kgsl: Defer adding the mem entry to a process 2016-05-26 15:26:48 -07:00
hid Bluetooth: uhid: Prevent deadlock while waiting for response 2016-03-23 21:18:51 -07:00
hsi
hv
hwmon thermal: qpnp-adc-tm: Support refreshed BTM driver 2016-05-10 13:20:13 -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-etm4x: handle invalid CPU id 2016-06-03 14:45:49 -07:00
i2c i2c-msm-v2: decrease runtime pm time to 250msec 2016-03-23 21:15:49 -07:00
ide
idle
iio iio: adc: Add round robin ADC driver 2016-05-31 15:24:05 -07:00
infiniband net/mlx5_core: Fix trimming down IRQ number 2016-01-31 11:29:01 -08:00
input input: qpnp-power-on: modify the bit range to store restart reason 2016-05-24 14:26:34 -07:00
iommu iommu/arm-smmu: Don't enable/disable clocks in inv_range_nosync 2016-05-20 19:24:05 -07:00
ipack
irqchip irqchip: irq-msm: Delete irq-msm.c 2016-05-05 15:05:52 -07:00
isdn
leds leds: led-class: Retain the latest user brightness request 2016-05-31 15:27:45 -07:00
lguest
lightnvm lightnvm: wrong offset in bad blk lun calculation 2015-12-29 08:28:32 -07:00
macintosh
mailbox
mcb
md md: dm-req-crypt: Increase mempool size for dm-req-crypt data 2016-04-25 17:45:24 -07:00
media msm: camera: Setting actuator to initial position 2016-06-07 16:05:23 -07:00
memory
memstick
message
mfd drivers: mfd: Move codec reset gpio config to early boot 2016-04-22 14:59:05 -07:00
misc ASoC: msm: audio-effects: fix stack overread and heap overwrite 2016-05-06 12:06:24 -07:00
mmc mmc: sdhci-msm: fix few compilation issues 2016-05-31 15:28:20 -07:00
mtd mtd: ubi: wl: avoid erasing a PEB which is empty 2016-03-23 21:20:21 -07:00
net wil6210: align wil log functions to wil_dbg_ratelimited implementation 2016-06-08 15:19:52 -07:00
nfc NFC: CE transaction failed during system suspend 2016-05-31 15:24:53 -07:00
ntb
nubus
nvdimm libnvdimm: fix namespace object confusion in is_uuid_busy() 2016-02-25 12:01:21 -08:00
nvme NVMe: IO ending fixes on surprise removal 2015-12-22 10:12:04 -07:00
nvmem
of Revert "of/platform: Move platform devices under /sys/devices/platform" 2016-03-25 16:02:46 -07:00
oprofile
parisc
parport
pci msm: pcie: add support to get PCIe port PHY sequence from DT 2016-05-24 17:55:34 -07:00
pcmcia
perf drivers/perf: arm-pmu: fix RCU usage on pmu resume from low-power 2016-04-27 19:05:07 -07:00
phy phy: qcom-ufs: add svs2 support 2016-06-08 15:13:17 -07:00
pinctrl pinctrl: qcom: Fix the base address of various GPIOs 2016-05-15 22:40:59 -07:00
platform msm: ipa3: lower turbo voting threshold 2016-06-08 15:14:56 -07:00
pnp
power pmic-voter: disassociate device from votables 2016-06-08 15:12:09 -07:00
powercap
pps
ps3
ptp
pwm pwm: qpnp: Enable glitch removal selectively 2016-05-24 14:15:27 -07:00
rapidio
ras
regulator regulator: labibb: Fix slew rate calculation in LAB/IBB set_voltage 2016-05-26 15:25:13 -07:00
remoteproc
reset
rpmsg
rtc spmi_devices: change to platform_devices 2016-03-01 12:22:33 -08:00
s390 Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux 2015-12-22 15:43:18 -08:00
sbus
scsi scsi: ufs-qcom : Add quirk for broken auto hibern8 2016-06-08 15:15:39 -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: ngd: retention support in power-collapse 2016-05-11 17:44:11 -07:00
sn
soc soc: qcom: msm_glink_pkt: Register and wait for link up notification 2016-06-08 15:20:17 -07:00
soundwire swr-wcd-ctrl: Ensure soundwire banks are always in sync 2016-05-20 13:34:30 -07:00
spi spi: spidev: add Qualcomm spi codec slave driver 2016-03-23 21:11:59 -07:00
spmi spmi-pmic-arb: check apid enabled before calling the handler 2016-05-10 13:20:11 -07:00
ssb
staging staging/android/ion : fix a race condition in the ion driver 2016-06-03 14:46:14 -07:00
switch drivers: switch: remove S_IWUSR from dev_attr 2016-02-16 13:51:00 -08:00
target iscsi-target: Fix potential dead-lock during node acl delete 2016-02-25 12:01:16 -08:00
tc
thermal drivers: thermal: Add ftrace events for LMH DCVSh mitigation 2016-06-07 16:06:08 -07:00
thunderbolt
tty tty : msm_serial: Remove the rtb logs of msm_serial write and read. 2016-04-20 21:06:53 -07:00
uio uio: msm_sharedmem: Fix format specifier to print resource_size_t 2016-03-23 21:24:33 -07:00
usb usb: pd: Handle disconnection immediately if SDP 2016-06-08 15:20:27 -07:00
uwb
vfio
vhost
video msm: mdss: fix solidfill config for multi-rect pipes 2016-06-07 16:05:33 -07:00
virt
virtio
vlynq
vme
w1 w1: ds2482: Manage SLPZ pin sleep state 2016-02-16 13:54:18 -08:00
watchdog
xen
zorro
Kconfig drivers: remove duplicate entry for soc drivers from Kconfig 2016-03-25 16:04:23 -07:00
Makefile ASoC: wcd: Add Audio codec drivers for MSM targets 2016-03-23 20:11:28 -07:00