Commit graph

893,289 commits

Author SHA1 Message Date
qctecmdr
a67c893c8c Merge "msm: pcie-ep: Update AOSS reset name" 2021-01-08 17:26:20 -08:00
qctecmdr
da53fdd298 Merge "cnss2: Add code to handle idle-restart failure gracefully" 2021-01-08 17:26:20 -08:00
qctecmdr
1a91a6be35 Merge "input: touchscreen: nt36xxx: Expose trusted touch event" 2021-01-08 14:20:45 -08:00
qctecmdr
11c7a21486 Merge "regulator: rpmh-regulator: fix rpmh_regulator_init_vreg_supply memory leak" 2021-01-08 14:20:45 -08:00
qctecmdr
3fa38c8e5b Merge "defconfig: sdxlemur: Enable IPA offload on Realtek R8125 driver" 2021-01-08 05:17:41 -08:00
Mohammed Siddiq
aa3f811392 cnss2: Add code to handle idle-restart failure gracefully
During idle-restart failure the platform driver does not complete
the power_up completion event and it eventually results in the
driver timeout. Add code to handle idle-restart failure and
return the value of the failure to the host driver.

Change-Id: I9d80b844429ecb292a6c7e9d35362fbfd3a24adb
Signed-off-by: Mohammed Siddiq <msiddiq@codeaurora.org>
2021-01-08 11:54:53 +05:30
qctecmdr
530d87338f Merge "driver: pinctrl: Add reserved GPIOs for Yupik" 2021-01-07 19:00:56 -08:00
qctecmdr
6c2032cc4f Merge "defconfig: Remove CONFIG_CNSS_QCA6490" 2021-01-07 19:00:56 -08:00
Naina Mehta
67d881e295 driver: pinctrl: Add reserved GPIOs for Yupik
Certain GPIOs are reserved for secure world and cannot be accessed by HLOS.
Supply "reserved_gpios" to msm_pinctrl to mark these pins as invalid.

Change-Id: I7ff8444af2819a68c60e66bd4e4e9f5ecf4990fa
Signed-off-by: Naina Mehta <nainmeht@codeaurora.org>
2021-01-07 00:05:42 -08:00
Ritesh Kumar
bd5377681e input: touchscreen: nt36xxx: Expose trusted touch event
Expose trusted touch event through sysfs node for TUI
error handling.

Change-Id: Ib303d36e3b807c770f670abc2a2ee3e3fd2e009d
Signed-off-by: Ritesh Kumar <riteshk@codeaurora.org>
2021-01-06 13:17:18 -08:00
Ritesh Kumar
c30aa8dbe9 input: touchscreen: nt36xxx: Block resume work on PVM
While trusted touch is underway, block resume work
to flush touch FIFO since ownership of register space
is with Trusted VM.

Change-Id: Ib87a81aa8f39631ae3f3ea44f4a5dee4563bc514
Signed-off-by: Ritesh Kumar <riteshk@codeaurora.org>
2021-01-07 02:46:49 +05:30
Ritesh Kumar
96ea71a1c2 input: touchscreen: nt36xxx: release i2c session early
Release I2C session lock before releasing IO regions in TVM
during trusted touch scenario.

Change-Id: Ibd3b63e5d084097eb464e3697b8d7d82ea17262e
Signed-off-by: Ritesh Kumar <riteshk@codeaurora.org>
2021-01-06 12:42:26 -08:00
Ritesh Kumar
27da55afee arm64: defconfig: Enable novatek trusted touch for genericarmv8
Enable Trusted touch config in genericarmv8 defconfig for
novatek touch driver.

Change-Id: Ic96ec1971314479ed809c1d3b403237c258a7e5f
Signed-off-by: Ritesh Kumar <riteshk@codeaurora.org>
2021-01-06 12:42:18 -08:00
Ritesh Kumar
cccc78c256 arm64: defconfig: Enable novatek trusted touch on lahaina
Add trusted touch support to Lahaina GKI defconfig for
novatek touch driver.

Change-Id: I7da16992f20fee569f2b8da583543338ad3175d8
Signed-off-by: Ritesh Kumar <riteshk@codeaurora.org>
2021-01-06 12:42:11 -08:00
Ritesh Kumar
36f6aedb51 input: touchscreen: nt36xxx: Add trusted touch support
Add Trusted touch support to nt36xxx Touchscreen driver.
This feature enables driver to operate in trusted touch
mode in trusted virtual machine(TVM). The primary virtual
machine(PVM) lends resources such as IO memory and touch
irq to TVM prior to trusted touch is initiated and
reclaims those resources back after trusted touch usecase
finishes. The resource requirements of TVM such as clock,
regulators etc are taken care by PVM. Introduce state
machine for various checkpoints in trusted touch usecase.
In error scenarios, this state machine helps driver to
rollback to previous state.

Change-Id: I5000ba016cee21c7b6b6beab8a7bb15a8c23f8d5
Signed-off-by: Ritesh Kumar <riteshk@codeaurora.org>
2021-01-06 12:42:01 -08:00
David Collins
95d95d5a31 regulator: rpmh-regulator: fix rpmh_regulator_init_vreg_supply memory leak
Commit 29c41d5c47 ("regulator: rpmh-regulator: support parent
supply specification in subnodes") introduced a memory leak in
the function rpmh_regulator_init_vreg_supply() due to 'buf' not
being freed in the new 'else if' statement.  Fix this memory leak
by freeing 'buf' correctly.

Change-Id: If2748b595d8ae3a4564a2956a67aeda476975309
Signed-off-by: David Collins <collinsd@codeaurora.org>
2021-01-05 11:18:13 -08:00
qctecmdr
4afb66961f Merge "spi: spi-msm-geni: Configure DFS index and clk before doing set rate" 2021-01-05 10:50:55 -08:00
qctecmdr
08dc7ff311 Merge "spi: spi-msm-geni: Calculate transfer timeout dynamically" 2021-01-05 10:50:54 -08:00
qctecmdr
14d5ad2a5e Merge "arm: vdso: Fix GENERIC_GETTIMEOFDAY dependencies" 2021-01-05 10:50:54 -08:00
qctecmdr
50694617b0 Merge "scsi: ufs: Increase the PA_HIBERN8TIME on the host" 2021-01-05 10:50:53 -08:00
qctecmdr
77aca605c0 Merge "clk: qcom: gcc: Add support for GCC clock Driver for sdxnightjar" 2021-01-05 10:50:53 -08:00
qctecmdr
a704da9e6e Merge "clk: qcom: cpu: Re-org CPU clock driver for SDXLemur" 2021-01-05 10:50:52 -08:00
qctecmdr
1975f8264d Merge "cnss2: skip pci link recovery for EACCES error" 2021-01-05 06:05:14 -08:00
qctecmdr
901012883c Merge "arm64: defconfig: explicitly SLIMBUS_MSM_NGD as m" 2021-01-05 06:05:13 -08:00
qctecmdr
82ffd15f1b Merge "arm64: Kconfig: Add config option for SA6155" 2021-01-05 06:05:13 -08:00
qctecmdr
5d3347b4b6 Merge "firmware: qcom_scm: Check for NULL before dereferencing __scm" 2021-01-05 00:35:26 -08:00
qctecmdr
b8aa4abaea Merge "mmc: core: Retry claim host in mmc_sd_detect" 2021-01-05 00:35:25 -08:00
qctecmdr
bf525affe2 Merge "input: touchscreen: focaltech: Block resume work on PVM" 2021-01-05 00:35:25 -08:00
qctecmdr
a92909e0b4 Merge "input: touchscreen: st: Block resume work on PVM" 2021-01-05 00:35:25 -08:00
qctecmdr
9c5eac7747 Merge "coresight: Add snapshot of Coresight Dbgui driver" 2021-01-05 00:35:24 -08:00
qctecmdr
d84c33524e Merge "arm64: defconfig: Enable LLCC driver" 2021-01-05 00:35:24 -08:00
qctecmdr
39b1e4e2e5 Merge "asoc: Update supported rate and format for dummy dai" 2021-01-05 00:35:24 -08:00
qctecmdr
7bd2a2072a Merge "usb: gadget: composite: Add spinlock protection for usb string descriptor" 2021-01-05 00:35:23 -08:00
Raghavendra Rao Ananta
c75011c99d arm: vdso: Fix GENERIC_GETTIMEOFDAY dependencies
GENERIC_GETTIMEOFDAY can be enabled only if HAVE_GENERIC_VDSO
is enabled. However, HAVE_ARM_ARCH_TIMER selects it unconditionally,
thus throwing the following warning:

WARNING: unmet direct dependencies detected for GENERIC_GETTIMEOFDAY
Depends on [n]: HAVE_GENERIC_VDSO [=n]
Selected by [y]:
- HAVE_ARM_ARCH_TIMER [=y] && CPU_V7 [=y]

Fix this by selecting GENERIC_GETTIMEOFDAY conditionally in
HAVE_ARM_ARCH_TIMER as well.

Also, handle this conditional dependency in all the references.

Change-Id: Iccb154ad4c0f49857115372334e49504f31a8380
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2021-01-04 12:57:15 -08:00
Ashok Vuyyuru
cceceac1d8 firmware: qcom_scm: Check for NULL before dereferencing __scm
The function qcom_scm_mem_protect_region_id dereferences __scm without
checking for NULL and could potentially lead to a NULL pointer exception.
This scenario can happen if the clinet calls qcom_scm_mem_protect_region_id
before qcom_scm driver is even probed. Hence, check for NULL before
dereferencing it.

Change-Id: I1a9eba6d45ba8ebf73da80bca984b4dfad05042e
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
2021-01-04 20:56:54 +05:30
Neeraj Upadhyay
87fa6c04a8 arm64: defconfig: Enable LLCC driver
Enable the Last Level Cache Controller (LLCC) driver for Yupik.

Change-Id: I31723ec8588d398d22d0fbcf69ca0425dbb423f6
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
2021-01-04 18:07:21 +05:30
Ziqi Chen
06efe84d5f scsi: ufs: Increase the PA_HIBERN8TIME on the host
The device advertises PA_HIBERN8TIME may not be enough for some UFS
devices. To workaround this issue, host should add more 100 us.

The commit 8941234ea1 ("scsi: ufs: Add UFS_DEVICE_QUIRK_PA_HIBER8TIME
quirk") just increase PA_HIBERN8TIME base on TX_HIBERN8TIME_CAPABILITY,
we should increase PA_HIBERN8TIME directly because the
RX_HIBERN8TIME_CAPABILITY may be more than TX_HIBERN8TIME_CAPABILITY.

Change-Id: If5e28e11a656df999fc50014e65bc89498b28499
Signed-off-by: Ziqi Chen <ziqichen@codeaurora.org>
2021-01-04 17:33:58 +08:00
Yuanfang Zhang
57e094d312 coresight: Add snapshot of Coresight Dbgui driver
Add snapshot for coresight Dbgui driver from msm-3.18
commit cf126d1be1a("ANDROID: sdcardfs: Add option to
not link obb"). Make necessary change to adopt coresight
framework change.

Change-Id: I3cf911f20b79f88cbc6482304fd6f43989aa881a
Signed-off-by: Yuanfang Zhang <zhangyuanfang@codeaurora.org>
2021-01-04 16:01:48 +08:00
Rakesh Kota
3b29f87982 clk: qcom: gcc: Add support for GCC clock Driver for sdxnightjar
Add MSS_Q6_BIMC_AXI and MSS_CFG_AHB clocks to GCC for peripheral
clock clients to be able to request for the clocks. While at it, also
add support for debug clock controller to measure frequency of clocks.

Change-Id: Iefdd56797632c317c8ae31c277380622726a9c7c
Signed-off-by: Rakesh Kota <kotarake@codeaurora.org>
2021-01-04 11:35:43 +05:30
Mohammed Siddiq
f64b19b7c5 cnss2: skip pci link recovery for EACCES error
Skip pci link recovery for EACCES error returned
from msm_pcie_prevent_l1. Do link recovery only
if the error is EIO.

Change-Id: I037a729e282e22e8c7174f83c61a58fa0faad579
Signed-off-by: Mohammed Siddiq <msiddiq@codeaurora.org>
2021-01-03 21:06:16 -08:00
Shashank Babu Chinta Venkata
71f19c2d0f input: touchscreen: st: Block resume work on PVM
While trusted touch is underway, block resume work
to flush touch FIFO since ownership of register space
is with Trusted VM. Additionally add extra regulator
vote before starting TUI.

Change-Id: I50e94400e467194b5caf615bdbd0d2f4d8630a96
Signed-off-by: Shashank Babu Chinta Venkata <sbchin@codeaurora.org>
2021-01-04 10:33:36 +05:30
Ritesh Kumar
ddce185d77 input: touchscreen: focaltech: Block resume work on PVM
While trusted touch is underway, block resume work
to flush touch FIFO since ownership of register space
is with Trusted VM.

Change-Id: Ibcd7274c560ddc9eae4eb9218198ab5039acdc18
Signed-off-by: Shashank Babu Chinta Venkata <sbchin@codeaurora.org>
Signed-off-by: Ritesh Kumar <riteshk@codeaurora.org>
2021-01-04 10:16:41 +05:30
qctecmdr
5f5ad727a8 Merge "qseecom: Added boundary checks between two subsequent fields" 2021-01-03 17:29:48 -08:00
qctecmdr
787ab105df Merge "interconnect: qcom: Add interconnect stub provider driver for MONACO" 2021-01-02 23:03:24 -08:00
Nitin LNU
d31677846c qseecom: Added boundary checks between two subsequent fields
Checking if there is enough room in between the offset of the
two subsequent field so that data of field 2 will not overlap
the data of field 1.

Change-Id: I96f656bb25878a302e7de109dd8f981045ed52e7
Signed-off-by: Nitin LNU <nlakra@codeaurora.org>
2021-01-03 11:40:16 +05:30
qctecmdr
3d0000932d Merge "leds: qpnp-flash-v2: Fix out-of-bound array access" 2021-01-02 10:22:53 -08:00
qctecmdr
a304838842 Merge "pinctrl: qcom: Add GPIO to PDC wakeirq map for sdmshrike" 2021-01-02 01:03:50 -08:00
qctecmdr
cda63c9989 Merge "clk: qcom: Remove measure support for unregistered clocks in Lahaina" 2021-01-01 22:21:01 -08:00
qctecmdr
694f449bf2 Merge "defconfig : Enabling NET and NF configs" 2021-01-01 04:41:58 -08:00
qctecmdr
4f20029327 Merge "usb: xhci: Increase xhci halt timeout" 2020-12-31 21:57:35 -08:00