Commit graph

892,665 commits

Author SHA1 Message Date
Mayank Rana
640176fca2 usb: f_gsi: Send zero length packet for MBIM/GPS on cable connect
Qmuxd bridge daemon is opening /dev/gps before USB enumerated with
USB composition having GPS interface as part of it. This daemon
performs EP_LOOKUP ioctl and encounters failure. It keeps retrying
for some iterations, and later goes into sleep and doesn't perform
any IOs. This results into no GPS related IOs between daemon and
host side QMUXD driver. Hence this change sends zero length packet
for MBIM (as QBI also faces same issue) and GPS interface when
USB cable is connected and those interfaces are part of USB
composition. Both QBI and Qmuxd bridge daemon are now wait for zero
length packet as indication for change in USB cable status, and
queries using GSI_MBIM_GPS_USB_STATUS IOCTL (newly added). Based on
this IOCTL related response, both daemons performs read/write with
created control devices.

Change-Id: Ib47443fe0e473ab4e27facb3f2927b8c13966158
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2020-12-08 13:56:09 -08:00
Hemant Kumar
33be9e30f1 usb: gadget: f_gsi: Add support for gps function driver
gps usb functionality is implemented using qmi packets.
User space entity sends and receives QMI packets using
misc device named /dev/gps.

Change-Id: I73af1caa9b272597909199022739390274a4b034
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
Signed-off-by: Elson Roy Serrao <eserrao@codeaurora.org>
2020-12-08 10:58:33 -08:00
qctecmdr
d073975204 Merge "gki: Set GKI_VERSION to 4271ad6" 2020-12-08 09:13:49 -08:00
qctecmdr
33569a19db Merge "iio: adc: Add support to read ADC5 current channels" 2020-12-05 23:42:41 -08:00
qctecmdr
506ffbdc3e Merge "dt-bindings: iio: Add support to read ADC5 current channels" 2020-12-05 23:42:40 -08:00
qctecmdr
cd70e1f455 Merge "input: touchscreen: nt36xxx: Fix Propagation" 2020-12-05 23:42:40 -08:00
qctecmdr
0249e58009 Merge "sched/walt: Improve the scheduler" 2020-12-05 23:42:40 -08:00
qctecmdr
ca8993b29a Merge "block: disable multi-page bvec" 2020-12-04 22:41:50 -08:00
qctecmdr
2376e2a4b4 Merge "defconfig: Enable EUD on sdxlemur" 2020-12-04 11:18:01 -08:00
qctecmdr
b5aa72cc8f Merge "msm: adsprpc: Change perf module design" 2020-12-04 11:18:01 -08:00
qctecmdr
5fd6cfbf0f Merge "msm: kgsl: Including drawobj flag for msm-perf api" 2020-12-04 05:45:45 -08:00
qctecmdr
8b2cfb34e8 Merge "usb: gadget: Don't giveback request if ep command times out" 2020-12-04 05:45:44 -08:00
qctecmdr
7b64f46b79 Merge "iommu: arm-smmu: defer tlbi invalidation" 2020-12-04 05:45:44 -08:00
qctecmdr
f1971555ee Merge "proc/meminfo: update offline region in Memtotal" 2020-12-04 05:45:44 -08:00
qctecmdr
93fe7227e1 Merge "drivers: soc: ddr_stats: Initialize the uninitialized variable" 2020-12-04 05:45:44 -08:00
qctecmdr
5116273a38 Merge "drivers: staging: ion: mark secure page private" 2020-12-04 05:45:43 -08:00
qctecmdr
a3ecd679dc Merge "msm: ADSPRPC: Handle Null pointer De-reference" 2020-12-04 05:45:43 -08:00
qctecmdr
75e68a7d23 Merge "soc: qcom: glink_probe: use lock while sending ssr notification" 2020-12-04 05:45:43 -08:00
Aman Mehta
b712bdb81b msm: kgsl: Including drawobj flag for msm-perf api
The inclusion of draw object flag for msm_perf_events_update.
Since user-space thread is triggered based on kgsl events
this will be vital to distinguish the events based on frame
states and prevent undesirable user-space thread wake-ups.

Change-Id: I28040808d6c114b718aad0e0ab63554683e77460
Signed-off-by: Aman Mehta <amanmeht@codeaurora.org>
2020-12-04 01:24:32 -08:00
qctecmdr
3402a7974e Merge "mailbox: apcs-ipc: Add compatible string for sdxnightjar" 2020-12-04 01:05:25 -08:00
qctecmdr
68d460cb7d Merge "haven: remove config to disable hyp uart" 2020-12-04 01:05:24 -08:00
qctecmdr
6efa9b3e62 Merge "defconfig: enable MDF core for WCD support for sdxnightjar" 2020-12-04 01:05:24 -08:00
qctecmdr
e73c8ff3a8 Merge "input: touchscreen: nt36xxx: add new touch driver" 2020-12-04 01:05:23 -08:00
Asish Bhattacharya
3cbf423423 defconfig: enable MDF core for WCD support for sdxnightjar
Enable the Kconfig to expose mfd APIs.

Change-Id: Id401ba94222df508a901c330443b705b35265883
Signed-off-by: Asish Bhattacharya <asishb@codeaurora.org>
2020-12-04 07:13:14 +05:30
Asish Bhattacharya
9fc7c22ea4 msm: mfd: Enable MFD for WCD support
Add support to enable MFD core.

Change-Id: I512c2024498ff426fb45127d64b7035d63c65694
Signed-off-by: Asish Bhattacharya <asishb@codeaurora.org>
2020-12-04 07:12:57 +05:30
Murali Nalajala
feb7397985 haven: remove config to disable hyp uart
Hyp uart is default disabled from ABL now. There is no need of
CONFIG_HH_DISABLE_UART option anymore. Hyp uart now can be controlled
using DEBUG_FS interface.

Change-Id: Ie1a0986399d30b89bf62468a23633994c8d6b11b
Signed-off-by: Murali Nalajala <mnalajal@codeaurora.org>
2020-12-03 17:19:56 -08:00
Murali Nalajala
704f8b0a03 haven: ctrl: add debugfs interface to control hyp uart
Hyp uart is disabled default today in ABL. Provide debugfs
interface to users when they want to enable hyp uart to
debug hypervisor and VM issues.

Change-Id: I5e2c0501ed309a65c9dff1304b2e88e0d58917ae
Signed-off-by: Murali Nalajala <mnalajal@codeaurora.org>
2020-12-03 16:38:09 -08:00
qctecmdr
b0d1963b89 Merge "arm64: defconfig: Add support for GPUCC for YUPIK" 2020-12-03 06:20:07 -08:00
qctecmdr
11b5bc34f4 Merge "usb: dwc3-msm: Avoid access of gsi_reg for non-GSI targets" 2020-12-03 06:20:07 -08:00
qctecmdr
5161b65167 Merge "cnss_utils: Compile wlan service file as part of GPL module" 2020-12-03 06:20:06 -08:00
qctecmdr
d3cbb54d34 Merge "msm: ipa: Support hardware accelerated DIAG over qdss with ipa_fmwk" 2020-12-03 06:20:06 -08:00
qctecmdr
f79ed0dbae Merge "selinux: move ibpkeys code under CONFIG_SECURITY_INFINIBAND" 2020-12-03 06:20:06 -08:00
qctecmdr
bdd0d3a7cc Merge "drivers: soc: qcom: Check if readq_relaxed macro is defined" 2020-12-03 06:20:05 -08:00
Prakash Gupta
ed8be7b855 proc/meminfo: update offline region in Memtotal
When memory block is logically offlined, it is still part of System RAM but
is inactive, and can be made active or Onlined anytime.
Take totalram snapshot to include offlined memory in Memtotal.
This method avoids taking device_hotplug lock to meminfo.

Fixes: dc00b6d99a ("proc/meminfo: include offlined region for mem total")
Change-Id: I2b69444e6f066e1c1928278707616840308b00d0
Signed-off-by: Prakash Gupta <guptap@codeaurora.org>
2020-12-03 02:42:01 -08:00
Prakash Gupta
88d7aafe84 iommu: arm-smmu: defer tlbi invalidation
With QCOM quirks, the invalidations are agrregated to reduce map/unmap
time.  In absenence of CONFIG_QCOM_IOMMU_TLBI_QUIRKS enabled, the map/unmap
latency impact time critical usecases. Hence defer TLB invalidation when
CONFIG_QCOM_IOMMU_TLBI_QUIRKS is not enabled.

Change-Id: I866b4211901f71fe054bbd9f465b4df5c7dac82c
Signed-off-by: Prakash Gupta <guptap@codeaurora.org>
2020-12-03 02:29:26 -08:00
Deepak Kumar Singh
c3c08ac7a1 soc: qcom: glink_probe: use lock while sending ssr notification
In ssr handling of remote subsystem down, all rpmsg devices are removed
for that edge. If at the same time ssr down is received for other remote
subsystem, it may try to notify already down remote and end up using
invalid rpmsg device which causes use after free.

Store device state in ssr context and update this with holding a lock.
SSR notification function should also use the same lock and perform
check for validity of rpmsg device.

CRs-Fixed: 2580433
Change-Id: I339e228a527f7b6a737944d8e9e53caa31992914
Signed-off-by: Deepak Kumar Singh <deesin@codeaurora.org>
2020-12-03 13:49:27 +05:30
Deepak Kumar Singh
95d601bb7f soc: qcom: glink_probe: Use ref count for holding ssr context
During ssr rpmsg ssr device will unregister, which can result
in use of stale device pointer in ssr callback function.

Now incrementing refcount inside ssr callback function to
prevent release of rpmsg device.

CRs-Fixed: 2551255
Change-Id: If3fc57c4635378dc6fdcb7df120c83dca0e83758
Signed-off-by: Deepak Kumar Singh <deesin@codeaurora.org>
2020-12-03 13:49:09 +05:30
Ravikanth Tuniki
6b33e5f704 input: touchscreen: nt36xxx: Fix Propagation
This change propagates the missing fixes in novatek tcm touch
driver from msm-4.19 to msm-5.4.

Change-Id: Ie404c8412f7efa847b8e14965bcaf45568225502
Signed-off-by: Ravikanth Tuniki <rtunik@codeaurora.org>
2020-12-03 13:26:01 +05:30
chenx
46689bcfc2 input: touchscreen: nt36xxx: add new touch driver
Add this new touch driver code here.

Change-Id: Ibc8c382cb67246ccc0fad570648bf78963cc7f51
Signed-off-by: chenx <luxh0702@thundersoft.com>
Git-commit: 7af455f1e6f65871f9c722dff4c1c9de6989500b
Git-repo: https://source.codeaurora.org/external/thundersoft/ihvjointlab/sensor-driver/commit/?h=Novatek_nt36xxx
Signed-off-by: Fei Mao <feim1@codeaurora.org>
2020-12-02 21:37:55 -08:00
Jishnu Prakash
348ea390bc iio: adc: Add support to read ADC5 current channels
Add scaling function required to read PMIC5 current ADC channels
so that channel 0xA5 (ADC5_PARALLEL_ISENSE) can use that.

Change-Id: I55ede0c736c6f350df8ac92ea8661db4129da13c
Signed-off-by: Jishnu Prakash <jprakash@codeaurora.org>
2020-12-03 10:49:08 +05:30
Blagovest Kolenichev
e0d735105c gki: Set GKI_VERSION to 4271ad6
Change-Id: I8af18243659aaf7f29cc07f9106be2e25f235505
Signed-off-by: Blagovest Kolenichev <bkolenichev@codeaurora.org>
2020-12-02 20:55:23 -08:00
qctecmdr
e14ef833ac Merge "guestvm_loader: isolate cpus when VM is starting" 2020-12-02 16:21:18 -08:00
qctecmdr
1ddf016918 Merge "icnss: Update FW_INIT_DONE QMI indication with hang event params" 2020-12-02 16:21:17 -08:00
qctecmdr
3068283a7a Merge "clk: qcom: Add support for NPU QDSS clocks" 2020-12-02 16:21:17 -08:00
qctecmdr
16577402f7 Merge "coresight: Doesn't save and restore ETMs state while CPU hot-plug" 2020-12-02 16:21:17 -08:00
Melody Olvera
a1ee505096 defconfig: Enable EUD on sdxlemur
Added defconfig for EUD on sdxlemur.

Change-Id: I7ea1c964f9442b7a093e7f57ed6bc7e98973a0e2
Signed-off-by: Melody Olvera <molvera@codeaurora.org>
2020-12-02 13:07:15 -08:00
qctecmdr
858cd7768a Merge "msm: kgsl: Poll a6x crashdumper register memory for status" 2020-12-02 12:33:05 -08:00
qctecmdr
716324595c Merge "icnss2: Add support for host triggered recovery" 2020-12-02 12:33:04 -08:00
qctecmdr
03ee1e4f8a Merge "icnss2: Avoid race between soc wake release threads" 2020-12-02 12:33:04 -08:00
qctecmdr
a9178e5c9b Merge "spi: spi-msm-geni: Bypass hw_version read for SVM" 2020-12-02 12:33:04 -08:00