Commit graph

882,752 commits

Author SHA1 Message Date
Laxminath Kasam
409f3e56bb Revert "ASoC: soc-pcm: BE dai needs prepare when pause release after resume"
This reverts commit 3c3dd68c48e83aca55dc72a33260a71608510160.
In QC platforms, backend is not teardown during pause state.
Backend prepare is not needed when resume from pause state.

Change-Id: Ia9f8ab36f5061f9909d9026271bac4a2f6d3e79b
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-05-10 23:39:01 -07:00
qctecmdr
0070b55b6b Merge "msm:ADSPRPC: memory map updates to remote process" 2020-05-09 23:44:37 -07:00
qctecmdr
bfc032ea12 Merge "usb: f_qdss: Fix watchdog bark issue on wait_for_completion" 2020-05-09 23:44:37 -07:00
qctecmdr
a92558f282 Merge "haven: ctrl: Enable setting trace class" 2020-05-08 19:54:31 -07:00
qctecmdr
d7ef1fc193 Merge "arm64: defconfig: Enable HH_IRQ_LEND for Lahaina GKI" 2020-05-08 19:54:31 -07:00
Himateja Reddy
98fa1b3fe6 msm:ADSPRPC: memory map updates to remote process
New version of interface for mapping and unmapping buffer
to remote process on DSP with additional mapping control flags.
All mappings of user allocated memory are tagged with file descriptor.

Change-Id: I2fb20df3f39476f92dbe0a6ec10e0b6065f90749
Acked-by: Viswanatham Paduchuri <vpaduchu@qti.qualcomm.com>
Signed-off-by: Himateja Reddy <hmreddy@codeaurora.org>
2020-05-08 19:46:30 -07:00
qctecmdr
4c36c73742 Merge "dt-bindings: clock: add support for DSI CPHY clocks" 2020-05-08 09:36:12 -07:00
himta ram
5499a4c2a7 radio: RTC6226: remove open and release v4l2_fh file
As part of v4l2_fh_open call at rtc6226 driver
open time memory is allocated via kzalloc() and
the same memory is not released at the time of
rtc6226 driver open failure case.
Remove the open and release v4l2_fh file as
it not required for rtc6226 driver.

Change-Id: I98195b9b0731d5392b82c3d12e393c6ffaad702c
Signed-off-by: himta ram <hram@codeaurora.org>
2020-05-08 05:56:18 -07:00
Yuan Zhao
7def97e0a3 dt-bindings: clock: add support for DSI CPHY clocks
Add CPHY specific clocks to support MIPI DSI CPHY on
Lahaina hardware. Add the relevant clock bindings.

Change-Id: If7dd806e6427b65427d5999bb9ccda7098ec610b
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
Signed-off-by: Yuan Zhao <yzhao@codeaurora.org>
2020-05-08 11:55:18 +08:00
Siddharth Gupta
a65504bf2b firmware: scm: Add export symbol for scm API
Add missing export symbol for wdog trigger available API.

Change-Id: Ib9fa8de3c8fa906bc8d09073e1df5509aa0c55e2
Signed-off-by: Siddharth Gupta <sidgup@codeaurora.org>
2020-05-07 13:40:51 -07:00
qctecmdr
492d9b26fb Merge "cpufreq: qcom: Add a property for max lut entries" 2020-05-07 07:00:55 -07:00
qctecmdr
13ff2c4c53 Merge "arm64: defconfig: Enable debugfs for QMP on perf build" 2020-05-06 23:50:34 -07:00
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
Udipto Goswami
5a2932496a usb: f_qdss: Fix watchdog bark issue on wait_for_completion
The coresight driver is freeing up d_req as part of notify
from write_complete. Accessing write_done form qdss_close,
wait_for_completion will be stuck there causing watchdog
bark.

Fix this by making f_qdss independent of coresight driver
from initializing complete. Initialization of completion
now occurs from alloc_req.

Change-Id: Ie6b1cd445ed6bb38c1a555f6c4c41068090e4fac
Signed-off-by: Udipto Goswami <ugoswami@codeaurora.org>
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2020-05-06 18:55:42 -07:00
Udipto Goswami
3b6534f147 usb: f_qdss: Remove QDSS read functionality as not in use
Removing the APIs related to ctrl_read since those are
not used by any client of f_qdss.

Change-Id: Idf7f1ffd8afe8a72f83e036a7986d35f2f71bea8
Signed-off-by: Udipto Goswami <ugoswami@codeaurora.org>
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2020-05-06 18:53:09 -07:00
Elson Roy Serrao
a394115fd4 usb: f_qdss: Handle async completion of requests during qdss_close
When qdss_close is called we try to dequeue the pending and started
requests and then free those requests. But when async completion is
enabled the completion callback could be called after freeing up
that request which may lead to list corruption. Handle this by
ensuring that the requests are freed only after the completion
callback is done for all the requests.

Change-Id: I3e5b1bad06f281422a71c84a617feb65027c2c84
Signed-off-by: Elson Roy Serrao <eserrao@codeaurora.org>
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2020-05-06 18:52:56 -07:00
Elson Roy Serrao
c1b6981830 usb: f_qdss: Dequeue pending requests upon qdss close
When qdss_close is called the pending requests sent to the
controller are not stopped and as a result the completion
call back can occur at any time. If the qdss bridge driver
frees the requests before the completion callback may result
in use after free. Call dequeue on the pending requests in
qdss close so that the requests are terminated instantly.

Change-Id: I2752a598e8b104a6803064343743f591adc924e4
Signed-off-by: Elson Roy Serrao <eserrao@codeaurora.org>
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2020-05-06 18:32:13 -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
Elliot Berman
25a092f8dd arm64: defconfig: Enable HH_IRQ_LEND for Lahaina GKI
Enable Haven IRQ lend framework for Lahaina.

Change-Id: Ibad5de26ba0343e09775de6694894eeb0d42aa21
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2020-05-06 11:59:37 -07:00
Elliot Berman
b99f3982c9 arm64: defconfig: Add HH_IRQ_LEND to genericarmv8
Enable Haven IRQ lend framework for genericarmv8.

Change-Id: I396e452840086ccd277f110d535ebd67e819d883
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2020-05-06 11:59:36 -07:00
Elliot Berman
3205fcd904 haven: irq_lend: Lendee registration persists across transactions
Presently, clients must re-register to receive IRQ lend notification.
Every client presently must do this and there is no use-case to require
clients to re-register to receive IRQ lend notification. Return the
internal IRQ lend state to WAIT_LEND after release, instead of
unregistered.

Change-Id: I17504e2850ae60e68d755b587ff6d0c3e78926d9
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2020-05-06 11:59:36 -07:00
Elliot Berman
4510fcd855 haven: irq_lend: Defer vm_name to vmid translation
Presently, hh_irq_wait_for_lend translates supplied vm_name to vmid.
However, if this function is called prior to RM populating this table,
then wait_for_lend call fails with -EINVAL. Translating vm_name to vmid
in wait_for_lend is unnecessary, and only done because it was convenient
in private data structure. Thus, add vm_name to the private data
structure and translate vm_names upon receiving a lend notification.

Change-Id: Iaa51aaab42508ffa121a550afa0568a048327dca
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2020-05-06 11:59:35 -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
Elliot Berman
6e9663dcc1 haven: ctrl: Enable setting trace class
Clean up compiler warnings in haven control driver.

Change-Id: I6246a108f2e30c812071df9e5c1adbce12853fbf
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2020-05-04 09:50:57 -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