Commit graph

882,308 commits

Author SHA1 Message Date
Bhaumik Bhatt
ff5352870f mhi: core: fix error handling in time synchronization function
Error handling in time synchronization function is not
appropriate as an error in disabling link level low power modes
could cause a spin lock to be unlocked without being locked.

Change-Id: I06177e587f4010b0558bf1331d3b80daf6948e53
Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
2020-04-17 23:31:19 -07:00
Bhaumik Bhatt
dd0fe1d092 mhi: core: unconditionally trigger resume to assert device wake
In order to ensure that a DRV resume follows immediately after
a client calls device wake assert or deassert, MHI core driver
must unconditionally increment the PM runtime usage count and
post a wake source before waiting for the state change.

Change-Id: I50228742c090a5df6fcb06f89f53723179bcd76d
Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
2020-04-17 23:27:50 -07:00
Bhaumik Bhatt
6275ce75f6 mhi: core: fix bandwidth scaling initialization failure
An incorrect failure check needs to be fixed in the bandwidth
scaling initialization function as the absence of the supported
event ring support does not get factored in.

Change-Id: If80e5126821bc4c9223fe37c4403935a6b1bf047
Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
2020-04-17 23:26:27 -07:00
Bhaumik Bhatt
f1ae7429fb mhi: core: ensure non-zero session or sequence ID values
While writing any sequence or session identifiers, it is
possible that the host could write a zero value, whereas only
non-zero values are supported writes to those registers. Ensure
that host does not write a non-zero value for those cases.

Change-Id: I33248a0aa43321c85a107e394f953774140dec50
Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
2020-04-17 23:23:52 -07:00
Bhaumik Bhatt
a71b413373 mhi: core: serialize execution environment and power off changes
Execution environment and power off changes can be serialized
to avoid changing these important controller variables from
multiple places and serialize handling of all state transitions.

Change-Id: I394e5ff4992d7c911e3889f96057d8467d79509c
Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
2020-04-17 23:20:35 -07:00
Bhaumik Bhatt
6bc53ff9fa mhi: core: remove unused timesync device
Remove the unused timesync MHI device as we use the controller
device for timesync related activity instead.

Change-Id: If2bb5937cbf468d8778b89549afdb1d0a9af7782
Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
2020-04-17 22:51:41 -07:00
qctecmdr
440b0124f5 Merge "input: qcom-hv-haptics: update FIFO samples in IRQ thread" 2020-04-17 16:10:09 -07:00
qctecmdr
f417c81eb1 Merge "mhi: core: do not toggle PCIe low power mode in sleeping context" 2020-04-17 16:10:09 -07:00
qctecmdr
1c8659071c Merge "defconfig: arm64: Enable of_devlink proxy consumer for Lahaina" 2020-04-17 16:10:09 -07:00
qctecmdr
c9e50a28fa Merge "msm: kgsl: Add a terminating empty entry to a660_protected_regs array" 2020-04-17 15:54:47 -07:00
qctecmdr
32ef04353a Merge "msm: kgsl: Modify CP_LPAC_PROG_FIFO_SIZE register value for A660" 2020-04-17 15:54:46 -07:00
qctecmdr
13ffc50455 Merge "power: qti_battery_charger: Block PMIC GLINK Tx for debug battery" 2020-04-17 15:54:46 -07:00
qctecmdr
21045cf753 Merge "soc: qcom: Add support for proxy consumers on of_devlink" 2020-04-17 15:54:45 -07:00
qctecmdr
2062bd224e Merge "msm: cvp: fixed cache operation func param issue" 2020-04-17 15:54:45 -07:00
qctecmdr
5bcf7e3ec6 Merge "usb: gadget: composite: Support more than 500mA MaxPower" 2020-04-17 15:38:17 -07:00
qctecmdr
ab470e82dd Merge "sched: Improve the scheduler" 2020-04-16 16:49:31 -07:00
qctecmdr
f205d5a440 Merge "cnss2: Enable time sync feature for QCA6490" 2020-04-16 16:49:31 -07:00
qctecmdr
ba398e7818 Merge "interconnect: qcom: lahaina: Use the correct binding for qnm_pcie" 2020-04-16 16:49:30 -07:00
qctecmdr
00e20a4709 Merge "netfilter: Include alarm type timer in idletimer" 2020-04-16 16:49:30 -07:00
qctecmdr
04c75d5d9f Merge "defconfig: holi: Enable holi pinctrl" 2020-04-16 16:49:29 -07:00
qctecmdr
0f383d5ad2 Merge "cnss2: Remove improper runtime PM enablement checks" 2020-04-16 16:49:29 -07:00
qctecmdr
1ddf3853b2 Merge "defconfig: Enable header tests for Lahaina GKI" 2020-04-16 11:22:40 -07:00
qctecmdr
8c3d768ae8 Merge "msm: cvp: Fix NULL pointer error when DEBUG_FS is disabled" 2020-04-16 11:22:40 -07:00
qctecmdr
8e57ec125a Merge "mhi: core: Cache last processed event ring element" 2020-04-16 11:22:39 -07:00
qctecmdr
79cec43dde Merge "mhi: core: Add OOB and DB mode event IPC log and count" 2020-04-16 11:22:39 -07:00
qctecmdr
64091379ee Merge "msm: kgsl: Don't populate the OPP table if it already exists" 2020-04-16 01:40:57 -07:00
qctecmdr
c11b140de7 Merge "ASoC: compress: Avoid race condition in compress drain" 2020-04-16 01:40:57 -07:00
qctecmdr
232c301b54 Merge "usb: f_fs: Clear OS Extended descriptor counts to zero in ffs_data_reset()" 2020-04-16 01:40:57 -07:00
qctecmdr
69c989254f Merge "dt-bindings: clock: Update clock ids of GCC for SHIMA" 2020-04-16 01:40:56 -07:00
qctecmdr
b9651440c2 Merge "usb: dwc3-msm: Revert back to power_supply_by_name() lookup" 2020-04-16 01:40:56 -07:00
qctecmdr
6f2e87c346 Merge "sched: Improve the scheduler" 2020-04-16 01:40:54 -07:00
qctecmdr
37d0a368db Merge "clk: qcom: clk-alpha-pll: Add support for Fabia print registers" 2020-04-15 20:35:59 -07:00
qctecmdr
b448ce7bd1 Merge "arm64: defconfig: Enable LLCC driver" 2020-04-15 20:35:59 -07:00
qctecmdr
6e44585f72 Merge "defconfig: Add initial defconfig fragments for Holi" 2020-04-15 20:35:58 -07:00
qctecmdr
13aa3f4764 Merge "msm: sps: Fix the SPS_DBG macro definitions" 2020-04-15 20:35:58 -07:00
qctecmdr
f4464ff43e Merge "ANDROID: serdev: restrict claim of platform devices" 2020-04-15 20:35:58 -07:00
qctecmdr
5d44961440 Merge "memshare: Rectify sourcing memshare driver for compiling" 2020-04-15 20:35:57 -07:00
Fenglin Wu
d79818afa6 input: qcom-hv-haptics: update FIFO samples in IRQ thread
Instead of sending a completion from the IRQ thread to notify a
worker thread to update the FIFO samples, update the samples in
the IRQ thread directly. This should help achieve lower latency
which is good for FIFO playing.

Meanwhile, following changes are made for FIFO playing:
 1) Defer stopping command into erase() function if it's coming
    before all FIFO samples are played. This gives the hardware
    a little more time to play before stopping.
 2) Restore FIFO play rate to T_LRA after playing is done according
    to hardware recommendation.

Change-Id: I7b21589641d753d45b1261ce0e342373c249f4e5
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
2020-04-16 08:49:34 +08:00
Yu SI
27b17819b2 msm: cvp: fixed cache operation func param issue
param offset and size were switched in the function signature

Change-Id: Ice7b9b6c2651940648a95bdf8fa331b62c577378
Signed-off-by: Yu SI <ysi@codeaurora.org>
2020-04-15 17:13:40 -07:00
Raghu Ananya Arabolu
ce6b530fc1 msm: kgsl: Add a terminating empty entry to a660_protected_regs array
The last entry of the a660_protected_regs array must be an empty
entry. The empty entry serves as a terminating placeholder value
indicating the end of the array.

Change-Id: Ie5dd6afcd65dca3ea1fa885d3aa675c23bdf5ca0
Signed-off-by: Raghu Ananya Arabolu <rarabolu@codeaurora.org>
2020-04-15 17:00:22 -07:00
qctecmdr
6dfa423a35 Merge "phy: ufs: Add set_mode callback for RUMI UFS PHY driver" 2020-04-15 15:21:57 -07:00
qctecmdr
1abff4a10a Merge "cnss2: Add SRAM mem dump for debug" 2020-04-15 15:21:57 -07:00
qctecmdr
2b861979ae Merge "msm: adsprpc: retrieve table index directly from context ID" 2020-04-15 15:21:56 -07:00
qctecmdr
1ab68dd612 Merge "dt-bindings: iio: Update PMIC5 ADC support" 2020-04-15 15:21:56 -07:00
qctecmdr
c4687c841e Merge "trace: Make ion.h work with KERNEL_HEADER_TEST" 2020-04-15 15:21:56 -07:00
qctecmdr
7bafe03443 Merge "cnss2: Avoid blocking target to reboot or shutdown" 2020-04-15 15:21:55 -07:00
Raghavendra Rao Ananta
ada5825087 defconfig: arm64: Enable of_devlink proxy consumer for Lahaina
Enable the proxy consumer drivre for Lahaina platform to satisfy
the sync-state requirements in the abcense of real drivers.

Change-Id: I255aee9c1cf2995ab7038f7c95e45afdd94ef42b
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2020-04-15 10:14:38 -07:00
Raghavendra Rao Ananta
7a02db5182 soc: qcom: Add support for proxy consumers on of_devlink
A target may contain multiple defconfigs, but only one device-tree
configuration. Such a target may have device-drivers that are
only enabled in a particular defconfig, while disabled in the
others. For the kernel that boots up with disabled configuration,
since the device-tree node exists, the of_devlink logic expects
the driver to be probed, which is not possible. As a result, the
sync-state remains incomplete.

Hence, add support for a proxy consumer driver that shows a
proxy-presence of the main driver to satisfy the sync-state.

Change-Id: Ica8c2599fb66420c67e6a72e9b35e7afc0ae3220
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2020-04-15 10:14:30 -07:00
Jordan Crouse
789e044344 msm: kgsl: Don't populate the OPP table if it already exists
If we query the OPP table when it doesn't exist we get an error. If
we populate it again with the same operating points we get an error.
So just skip the table create if it already exists and go with
whatever we have.

Change-Id: Ic0dedbad3d5bd24b35867a82873a6ece555d8314
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2020-04-15 08:58:40 -06:00
qctecmdr
7e5cfaa6da Merge "net: Indicate whether a socket is a transparent socket" 2020-04-15 04:57:01 -07:00