Commit graph

882,728 commits

Author SHA1 Message Date
qctecmdr
f0873c1708 Merge "haven: display: add IRQ label for display" 2020-05-06 23:50:34 -07:00
qctecmdr
20163dcd71 Merge "ucsi: ucsi_glink: Fix message handling in ucsi_qti_notify()" 2020-05-06 23:50:33 -07:00
qctecmdr
ef0a8ac3e8 Merge "cnss2: Enable Support for WFC call TWT config" 2020-05-06 23:50:32 -07:00
Subbaraman Narayanamurthy
d5f6277a9f ucsi: ucsi_glink: Fix message handling in ucsi_qti_notify()
Currently, ucsi_qti_notify() is checking the received data from
charger firmware (PPM) to see if there is any connector status
response with partner accessory information (e.g. analog audio).
It does this based on setting a flag (cmd_requested_flags) when
UCSI_GET_CONNECTOR_STATUS command is sent from UCSI framework to
PPM so that the response for that command can be read and clients
registered for getting notification on partner accessory can get
notified. However, in a certain scenario, multiple response for
different commands can be received from PPM. See a possible
example below.

1. UCSI framework sends UCSI_GET_CONNECTOR_STATUS command
2. ucsi_glink driver sets cmd_requested_flags, waits for response
3. UCSI framework sends UCSI_GET_CURRENT_CAM command
4. ucsi_glink driver gets a response for UCSI_GET_CONNECTOR_STATUS
   and schedules notify_work since ucsi_qti_notify() is called
   with cmd_requested_flags set.
5. ucsi_glink driver gets a response for UCSI_GET_CURRENT_CAM and
   this can end up reading "flags" because cmd_requested_flags is
   not cleared yet. However, this causes a buffer overflow because
   ucsi_qti_read() passes "val" pointer passed from UCSI framework
   which is of 1 byte length and ucsi_qti_notify() ends up reading
   "flags" which is at an offset 2 of length 9 bytes.
6. ucsi_qti_notify_work() clears cmd_requested_flags.

Fix this by checking the message length in ucsi_qti_notify()
to ensure that status->flags is read only when a response is
received for UCSI_GET_CONNECTOR_STATUS. Also, relocate the
clearing of "cmd_requested_flags" flag.

CRs-Fixed: 2678391
Change-Id: Iac1d5c58e1ed2fd0f3bc153da23cddf0700cc097
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2020-05-06 12:08:45 -07:00
qctecmdr
9cbbef041c Merge "scsi: pm: Balance pm_only of request queue during system resume" 2020-05-06 01:33:17 -07:00
qctecmdr
acbfb2fe83 Merge "Revert "ASoC: Update the widgets power up/down sequence"" 2020-05-06 01:33:17 -07:00
qctecmdr
734edfb319 Merge "Revert "usb: gadget: Mark usb gsi driver dma memory as cached"" 2020-05-05 23:42:02 -07:00
qctecmdr
538f050c4d Merge "usb: misc: nb7vpq904m: rework to work with ucsi framework" 2020-05-05 23:42:01 -07:00
qctecmdr
f5e54b5820 Merge "sound: usb: Flush cache explicitly after mapping buffers" 2020-05-05 23:42:01 -07:00
Manikandan Mohan
b9ecde3bae cnss2: Enable Support for WFC call TWT config
Update cnss2 driver to support WFC call TWT config params exchange
between IMS and WLAN firmware.

Change-Id: I8ec9b3c41e048848a91097e653d8cd45a8de0d0b
Signed-off-by: Manikandan Mohan <manikand@codeaurora.org>
2020-05-05 10:48:02 -07:00
qctecmdr
25339ae960 Merge "regulator: rpm-smd-regulator: Add support for proxy consumers" 2020-05-05 03:42:18 -07:00
qctecmdr
17a385d03d Merge "scripts: headers_install: Add sigcontext.h into the bypass list" 2020-05-05 03:42:18 -07:00
qctecmdr
8bc1361719 Merge "msm: adsprpc : Change to resolve undefined behaviour" 2020-05-04 12:24:20 -07:00
qctecmdr
66b4463f98 Merge "defconfig: arm64: Enable SDCARD_FS for Lahaina" 2020-05-03 06:14:59 -07:00
qctecmdr
e195cd0a45 Merge "msm: kgsl: Fix preemption fault handling for A6xx GPU" 2020-05-03 06:14:59 -07:00
qctecmdr
40a712728d Merge "clockevents: Add NULL definition for tick_broadcast on UP" 2020-05-03 06:14:58 -07:00
qctecmdr
a0fc4c2dfc Merge "cnss2: Post register driver work as unkillable event" 2020-05-03 06:14:58 -07:00
qctecmdr
c44ac6a1ef Merge "wigig_sensing: add SPI profiling" 2020-05-03 06:14:58 -07:00
qctecmdr
f2d1ca67ff Merge "msm: gsi: Add support for EV RP DDR access feature" 2020-05-03 06:14:57 -07:00
qctecmdr
339df4b9e2 Merge "msm: kgsl: Check for an OPP table without accidentally creating one" 2020-05-03 01:19:19 -07:00
qctecmdr
a5d7a7b302 Merge "haven: dbl: Make hh_dbl_ functions wait for capid availability" 2020-05-03 01:19:18 -07:00
qctecmdr
846ffba204 Merge "uapi: sound: remove redundant QGKI config checks" 2020-05-03 01:19:18 -07:00
qctecmdr
1d6e0d80c7 Merge "mhi: cntrl: qcom: enhance logging for forced suspend" 2020-05-03 01:19:17 -07:00
Yue Ma
b790cefd54 cnss2: Post register driver work as unkillable event
Register driver work handler will only power up device, resume PCIe
link and start MHI to download firmware. It may only block there
for a timeout, so there is no need to post it as killable event.

Change-Id: Ib82050358dc8df4a8163ecb43702aa86ed34f23d
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2020-05-02 20:52:29 -07:00
qctecmdr
8f0707c3b2 Merge "clk: qcom: gdsc-regulator: correct gdsc_disable() success return value" 2020-05-02 20:22:54 -07:00
qctecmdr
3ba80746bb Merge "coresight: add sw usb mode support for tmc" 2020-05-02 20:22:54 -07:00
qctecmdr
6ebf3aed6d Merge "ARM: convert build of appended dtb zImage to list of dtbs" 2020-05-02 20:22:53 -07:00
qctecmdr
767553452e Merge "sched: Improve the scheduler" 2020-05-02 20:22:53 -07:00
qctecmdr
084a5df97c Merge "coresight: tmc: clear has_iommu flag when smmu is bypassed" 2020-05-02 15:19:03 -07:00
qctecmdr
9540b205e9 Merge "ucsi: ucsi_glink: notify partner information" 2020-05-02 15:19:02 -07:00
qctecmdr
4a43d0560b Merge "Revert "arm64: defconfig: Insert Adreno default governor in gki defconfig"" 2020-05-02 15:19:02 -07:00
qctecmdr
d6503522e1 Merge "haven: irq_lend: Use Linux IRQ numbers" 2020-05-02 15:19:02 -07:00
qctecmdr
29375aecce Merge "soc: qcom: service-locator: Add soft-dependency on QRTR" 2020-05-02 15:19:01 -07:00
Mahesh Sivasubramanian
2e36c317d1 clockevents: Add NULL definition for tick_broadcast on UP
For uniprocessor systems, add a NULL definition of tick_broadcast to
add support for tick broadcast.

Change-Id: I7dc47984cb6b60c9814171888f6adbc480a1e990
Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>
2020-05-02 10:35:32 -07:00
qctecmdr
83cac1e0c8 Merge "drivers: qcom: rpmh_master_stat: remove stub function definition" 2020-05-02 10:14:16 -07:00
qctecmdr
5d8da363c2 Merge "Revert "arm64: defconfig: Remove IKHEADERS option"" 2020-05-02 10:14:16 -07:00
qctecmdr
e4441676ea Merge "ASoC: update uapi header for upstream compliance" 2020-05-02 10:14:15 -07:00
qctecmdr
cb30c9816d Merge "arm64: defconfig: Trim genericarmv8 defconfig" 2020-05-02 05:16:40 -07:00
qctecmdr
a2ebf03e30 Merge "wigig_sensing: fix driver state machine" 2020-05-02 05:16:40 -07:00
qctecmdr
9ba050d822 Merge "msm: adsprpc: remove excesive logging from debugfs during smmu probing" 2020-05-02 05:16:39 -07:00
qctecmdr
f902c046c2 Merge "cnss2: Fix a few issues during platform reboot or shutdown" 2020-05-02 05:16:39 -07:00
qctecmdr
822206b028 Merge "mhi: controller: Enable L1 when mhi is not active" 2020-05-02 05:16:38 -07:00
qctecmdr
b425914af6 Merge "devfreq: memlat: track cpu during ipi to cluster" 2020-05-02 05:16:37 -07:00
qctecmdr
82b466e558 Merge "Rest replicator registers when enabling it first time" 2020-05-02 00:07:40 -07:00
qctecmdr
c8694fd073 Merge "msm: adsprpc: Driver capability" 2020-05-02 00:07:40 -07:00
qctecmdr
80aa14bd32 Merge "lib: spinlock: Cause a watchdog bite on spin_dump" 2020-05-02 00:07:39 -07:00
qctecmdr
09afa87a80 Merge "cnss2: Add code to update cnss soc info" 2020-05-02 00:07:39 -07:00
qctecmdr
e908b225bb Merge "wigig_sensing: fix usage of wait_event_interruptible_timeout()" 2020-05-02 00:07:39 -07:00
Shaleen Agrawal
c9d4a841c6 sched: Improve the scheduler
This change is for general scheduler improvement.

Change-Id: I15daf3a5837f8147f1fbb179e0fba7e1547cb499
Signed-off-by: Shaleen Agrawal <shalagra@codeaurora.org>
2020-05-01 21:43:39 -07:00
Can Guo
dc511639bd scsi: pm: Balance pm_only of request queue during system resume
During system resume, scsi_resume_device() decreases a request queue's
pm_only counter if the scsi device was quiesced before. But after that,
if the scsi device's RPM status is RPM_SUSPENDED, the pm_only counter is
still held (non-zero). Current scsi resume hook only sets the RPM status
of the scsi device and its request queue to RPM_ACTIVE, but leaves the
pm_only counter unchanged. This may make the request queue's pm_only
counter remain non-zero after resume hook returns, hence those who are
waiting on the mq_freeze_wq would never be woken up. Fix this by calling
blk_post_runtime_resume() if this sdev's RPM status was RPM_SUSPENDED.

Change-Id: I11736dae2d3e79fc940f97433da89b89e2de9044
Signed-off-by: Can Guo <cang@codeaurora.org>
2020-05-02 11:06:18 +08:00