android_kernel_samsung_sm8650/drivers
Krishna Kurapati 34312149a8 usb: pd: Send extcon notification as soon as APSD detection is done
In some targets, it is observed that the time difference between vbus
being provided by exerciser and the terminations being applied is
more than 1 second causing failures of Type-C compliance testcases
4.10.2 and 4.10.3

When policy engine's psy changed work gets kicked in first time from
vbus present interrupt callback of charger driver, we kick in usb pd
sm work and it keeps running. Since apsd is not yet done, we don't
queue peripheral work. When apsd is done and charger driver invokes
power supply changed work, policy engine bails out as sm work is
already running although the charger type is detected as SDP/CDP and
were supposed to send an extcon notification. As a result the extcon
is sent when the sm work hits enter snk startup call and it
recognises that apsd is done and charger type is SDP or CDP and sends
extcon. This is results in a delay of roughly 1.3 seconds from the
moment vbus got detected to the moment we provide extcon notification
to dwc3-msm.

To avoid this, check for charger type and provide extcon if haven't
done already in the psy_changed_notifier_work. This reduces the time
delay to around 0.5 seconds helping resolve compliance issue.

Change-Id: I02c9a4a6b21ca75d43fd68f2447a7388210a4856
Signed-off-by: Krishna Kurapati <quic_kriskura@quicinc.com>
2023-10-04 10:41:43 -07:00
..
accessibility tty: fix possible null-ptr-defer in spk_ttyio_release 2023-01-24 07:24:37 +01:00
acpi UPSTREAM: mm: replace vma->vm_flags direct modifications with modifier calls 2023-06-07 14:24:57 +00:00
amba
android ANDROID: thermal: Add vendor thermal genl check 2023-08-09 17:51:37 +01:00
ata UPSTREAM: scsi: ata: libata-scsi: Convert to scsi_execute_cmd() 2023-03-15 16:17:14 +00:00
atm atm: idt77252: fix kmemleak when rmmod idt77252 2023-03-30 12:49:09 +02:00
auxdisplay auxdisplay: hd44780: Fix potential memory leak in hd44780_remove() 2023-03-11 13:55:16 +01:00
base Merge keystone/android14-6.1-keystone-qcom-release.6.1.25 (b9d4167) into qcom-6.1 2023-08-10 01:28:37 -07:00
bcma
block Merge keystone/android14-6.1-keystone-qcom-release.6.1.25 (98d56a5) into qcom-6.1 2023-05-15 08:16:35 -07:00
bluetooth bluetooth: btbcm: Fix logic error in forming the board name. 2023-04-20 12:35:06 +02:00
bus mhi: host: Flush pending MHI register writes before MHI suspend 2023-09-26 09:53:05 +05:30
cdrom
char Merge keystone/android14-6.1-keystone-qcom-release.6.1.25 (8823053) into qcom-6.1 2023-07-09 23:53:47 -07:00
clk Merge "defconfig: cliffs: Enable debug clock controller driver" 2023-10-03 20:33:22 -07:00
clocksource FROMLIST: clocksource/drivers/timer-mediatek: Make timer-mediatek become loadable module 2023-05-09 09:49:00 +00:00
comedi comedi: adv_pci1760: Fix PWM instruction handling 2023-01-24 07:24:35 +01:00
connector
counter counter: 104-quad-8: Fix Synapse action reported for Index signals 2023-04-13 16:55:31 +02:00
cpufreq cpufreq: qcom: Snapshot of addition of performance lock feature 2023-08-21 20:59:15 -07:00
cpuidle cpuidle: governors: qcom-simple-lpm: Reduce rating than default governor 2023-08-24 17:34:48 +05:30
crypto Merge keystone/android14-6.1-keystone-qcom-release.6.1.25 (8823053) into qcom-6.1 2023-07-09 23:53:47 -07:00
cxl cxl/pci: Handle excessive CDAT length 2023-04-13 16:55:25 +02:00
dax UPSTREAM: mm: replace vma->vm_flags direct modifications with modifier calls 2023-06-07 14:24:57 +00:00
dca
devfreq PM/devfreq: governor: Add a private governor_data for governor 2023-01-07 11:11:40 +01:00
dio drivers: dio: fix possible memory leak in dio_init() 2022-12-31 13:32:38 +01:00
dma Merge "i3c-master-msm-geni: add gsi mode support" 2023-09-29 00:41:57 -07:00
dma-buf Merge keystone/android14-6.1-keystone-qcom-release.6.1.25 (6c948d5) into 2023-09-10 22:44:23 -07:00
edac soc: qcom: edac: Add KRYO EDAC support for monaco_auto 2023-06-21 21:01:47 -07:00
eisa
extcon extcon: usbc-tusb320: Update state on probe even if no IRQ pending 2022-12-31 13:32:39 +01:00
firewire firewire: fix memory leak for payload of request subaction to IEC 61883-1 FCP region 2023-02-09 11:27:59 +01:00
firmware firmware: qcom_scm: Add owner attribute to tsens command 2023-09-13 23:48:40 +05:30
fpga UPSTREAM: fpga: bridge: properly initialize bridge device before populating children 2023-05-16 17:26:38 +00:00
fsi use less confusing names for iov_iter direction initializers 2023-02-09 11:28:04 +01:00
gnss
gpio ANDROID: GKI: add kabi padding for structures for the android14 release 2023-06-07 14:24:51 +00:00
gpu Revert "disp: msm: bridge: Change pm link from anx7625 to drm device" 2023-09-27 12:36:21 +05:30
greybus
hid UPSTREAM: HID: logitech-hidpp: add HIDPP_QUIRK_DELAYED_INIT for the T651. 2023-07-26 09:56:44 +00:00
hsi UPSTREAM: mm: replace vma->vm_flags direct modifications with modifier calls 2023-06-07 14:24:57 +00:00
hte
hv Merge 6.1.24 into android14-6.1 2023-04-22 08:52:25 +00:00
hwmon Merge keystone/android14-6.1-keystone-qcom-release.6.1.25 (98d56a5) into qcom-6.1 2023-05-15 08:16:35 -07:00
hwspinlock
hwtracing coresight: csr: add timestamp heartbeat support 2023-08-21 23:08:23 -07:00
i2c drivers: Change boot kpi markers 2023-10-01 12:19:23 +05:30
i3c i3c-master-msm-geni: add changes for ibi stuck in gsi mode 2023-10-03 03:02:27 -07:00
idle Revert "cpuidle, intel_idle: Fix CPUIDLE_FLAG_IRQ_ENABLE *again*" 2023-04-06 12:10:58 +02:00
iio Merge "iio: adc: qcom-spmi-adc5: Update SW calibrated ADC device data" 2023-09-14 17:38:53 -07:00
infiniband UPSTREAM: mm: replace vma->vm_flags direct modifications with modifier calls 2023-06-07 14:24:57 +00:00
input Merge "input: misc: qcom-hv-haptics: adjust VMAX headroom according to VMAX" 2023-08-05 09:40:16 -07:00
interconnect Merge "interconnect: qcom: Update QUP endpoint IDs for CLIFFS" 2023-08-29 08:37:01 -07:00
iommu iommu: Fix missing return check of arm_lpae_init_pte 2023-09-25 17:30:52 -07:00
ipack
irqchip irqchip: mpm: Add the mpm to gic mapping for pitti 2023-10-03 16:17:49 +05:30
isdn use less confusing names for iov_iter direction initializers 2023-02-09 11:28:04 +01:00
leds Merge "arm64: defconfig: cfg/mac 80211 as vendor modules" 2023-06-16 17:19:55 -07:00
macintosh macintosh: windfarm: Use unsigned type for 1-bit bitfields 2023-03-17 08:50:31 +01:00
mailbox Merge keystone/android14-6.1-keystone-qcom-release.6.1.25 (b9d4167) into qcom-6.1 2023-08-10 01:28:37 -07:00
mcb mcb: mcb-parse: fix error handing in chameleon_parse_gdd() 2022-12-31 13:32:41 +01:00
md Merge keystone/android14-6.1-keystone-qcom-release.6.1.25 (a0290fa) into qcom-6.1 2023-06-08 00:45:30 -07:00
media UPSTREAM: media: Add ABGR64_12 video format 2023-08-01 21:45:37 +00:00
memory memory: tegra30-emc: fix interconnect registration race 2023-03-22 13:33:56 +01:00
memstick Revert "Merge remote-tracking branch into HEAD" 2023-06-20 20:55:25 +00:00
message FROMGIT: scsi: core: Change the return type of .eh_timed_out() 2023-03-15 16:17:14 +00:00
mfd Merge keystone/android14-6.1-keystone-qcom-release.6.1.25 (af4467f) into 2023-08-30 02:32:26 -07:00
misc Merge keystone/android14-6.1-keystone-qcom-release.6.1.25 (bd65f1b) into qcom-6.1 2023-09-14 23:00:37 -07:00
mmc mmc: sdhci-msm: snapshot of clock scaling support 2023-09-25 11:43:56 +05:30
most
mtd mtd: spi-nor: fix memory leak when using debugfs_lookup() 2023-04-26 14:28:37 +02:00
mux
net net: stmmac: Enable Serdes driver 2023-09-21 00:56:51 -07:00
nfc nfc: st-nci: Fix use after free bug in ndlc_remove due to race condition 2023-03-22 13:33:46 +01:00
ntb
nubus
nvdimm cxl/pmem: Fix nvdimm registration races 2023-03-10 09:34:20 +01:00
nvme Merge 55fba69fbf ("rust: kernel: Mark rust_fmt_argument as extern "C"") into android14-6.1 2023-05-09 03:32:41 +00:00
nvmem drivers: nvmem: qfprom: Ensure access to qfprom is word aligned 2023-06-20 09:46:02 +05:30
of ANDROID: of: of_reserved_mem: Increase limit for reserved_mem regions 2023-03-22 14:27:16 +00:00
opp OPP: fix error checking in opp_migrate_dentry() 2023-03-10 09:33:01 +01:00
parisc parisc: led: Fix potential null-ptr-deref in start_task() 2023-01-07 11:11:55 +01:00
parport
pci Merge "msm: pci: Avoid calling pci_walk_bus() while holding spin_lock()" 2023-08-25 05:50:21 -07:00
pcmcia
peci
perf drivers: perf: qcom_llcc_pmu: Use physical CPU ID to access LLCC PMU 2023-09-12 02:23:30 -07:00
phy phy: qualcomm: Add UFS PHY support for holi 2023-08-30 23:07:11 -07:00
pinctrl Merge "pinctrl: Rename sdc_data function in cliffs" 2023-09-20 02:36:50 -07:00
platform platform/x86: asus-nb-wmi: Add quirk_asus_tablet_mode to other ROG Flow X13 models 2023-04-26 14:28:37 +02:00
pnp PNP: fix name memory leak in pnp_alloc_dev() 2022-12-31 13:31:56 +01:00
power power: supply: Fix pmic-voter list duplication issue on kernel-6.1 2023-09-06 14:57:47 +05:30
powercap powercap: fix possible name leak in powercap_register_zone() 2023-03-10 09:32:56 +01:00
pps
ps3
ptp ptp_qoriq: fix memory leak in probe() 2023-04-06 12:10:44 +02:00
pwm Merge keystone/android14-6.1-keystone-qcom-release.6.1.25 (a0290fa) into qcom-6.1 2023-06-08 00:45:30 -07:00
rapidio rapidio: devices: fix missing put_device in mport_cdev_open 2022-12-31 13:32:00 +01:00
ras
regulator regulator: rpm-smd: Update sync_state call 2023-07-31 15:08:25 +05:30
remoteproc Merge "drivers: remoteproc: Disable Auto Boot for MonacoAU Rprocs" 2023-09-20 22:34:41 -07:00
reset reset: uniphier-glue: Fix possible null-ptr-deref 2023-02-01 08:34:05 +01:00
rpmsg Merge "soc: qcom: glink_pkt: Adjust skb pointers correctly to avoid memleak" 2023-10-02 23:57:33 -07:00
rtc drivers: rtc: disable rtc alarm wake capability 2023-09-30 23:43:25 -07:00
s390 s390/vfio-ap: fix memory leak in vfio_ap device driver 2023-04-06 12:10:46 +02:00
sbus UPSTREAM: mm: replace vma->vm_flags direct modifications with modifier calls 2023-06-07 14:24:57 +00:00
scsi UPSTREAM: mm: replace vma->vm_flags direct modifications with modifier calls 2023-06-07 14:24:57 +00:00
sh
siox
slimbus Merge "slimbus: qcom-ngd-ctrl: Clear enabled IRQ's during power off" 2023-09-12 04:25:29 -07:00
soc Merge "soc: qcom: hgsl: don't set WC prot on iocoherent system" 2023-09-29 12:59:12 -07:00
soundwire soundwire: cadence: Drain the RX FIFO after an IO timeout 2023-03-11 13:55:40 +01:00
spi Merge "spi: spi-msm-geni: add changes for null pointer check" 2023-10-03 08:08:11 -07:00
spmi spmi: viospmi-pmic-arb: update of_node property 2023-06-04 21:17:51 -07:00
ssb
staging UPSTREAM: media: rkvdec: fix use after free bug in rkvdec_remove 2023-07-04 09:10:16 +00:00
target UPSTREAM: mm: replace vma->vm_flags direct modifications with modifier calls 2023-06-07 14:24:57 +00:00
tc
tee tee: amdtee: fix race condition in amdtee_open_session 2023-03-30 12:49:29 +02:00
thermal Merge "drivers: thermal: Add support qti cpufreq cooling driver to handle partial CPUs" 2023-09-27 00:46:33 -07:00
thunderbolt thunderbolt: Limit USB3 bandwidth of certain Intel USB4 host routers 2023-04-06 12:10:33 +02:00
tty drivers: Change boot kpi markers 2023-10-01 12:19:23 +05:30
ufs Merge "ufs: host: qcom: Config ESI affinity on CPU hot plug" 2023-09-26 11:31:10 -07:00
uio Merge "uio: msm_sharedmem: Added checks to catch failed kcalloc calls" 2023-08-04 16:49:11 -07:00
usb usb: pd: Send extcon notification as soon as APSD detection is done 2023-10-04 10:41:43 -07:00
vdpa UPSTREAM: mm: replace vma->vm_flags direct modifications with modifier calls 2023-06-07 14:24:57 +00:00
vfio UPSTREAM: mm: replace vma->vm_flags direct modifications with modifier calls 2023-06-07 14:24:57 +00:00
vhost UPSTREAM: mm: replace vma->vm_flags direct modifications with modifier calls 2023-06-07 14:24:57 +00:00
video Merge keystone/android14-6.1-keystone-qcom-release.6.1.25 (bd65f1b) into qcom-6.1 2023-09-14 23:00:37 -07:00
virt gunyah: Use kzalloc in gh_rm_booster probe 2023-09-26 17:13:18 +08:00
virtio Merge "qti_virtio_mem: add memory block only if oom from movable zone" 2023-07-18 11:39:30 -07:00
vlynq
w1 w1: fix WARNING after calling w1_process() 2023-02-01 08:34:26 +01:00
watchdog watchdog: sbsa_wdog: Make sure the timeout programming is within the limits 2023-03-11 13:55:24 +01:00
xen UPSTREAM: mm: replace vma->vm_flags direct modifications with modifier calls 2023-06-07 14:24:57 +00:00
zorro
Kconfig
Makefile