Commit graph

894,770 commits

Author SHA1 Message Date
mkoch
fcd3f98a43 soc: qcom: hab: add the guest_shm.h header file
This header file is used by HAB(Hypervisor ABstraction)
driver to implement its physical channels for communication
with the host OS.

Change-Id: I6708001a994961da16e0fb2dad6410028d0bba9a
Git-repo: https://github.com/qnx/virtregistry.git
Git-commit: 6ac2906a2df547598cbdffa35254cc01a3b41490
Signed-off-by: mkoch <mkoch@blackberry.com>
Signed-off-by: Yong Ding <yongding@codeaurora.org>
Signed-off-by: Sonic Zhang <sonic@codeaurora.org>
2020-12-28 22:29:46 -08:00
Arun Kumar Neelakantam
b153e73bf5 drivers: char: msm_smd_pkt: Return error in case driver is not ready
In some cases RPMSG callback is called before RPMSG probe complete.

Return error code from call back to avoid invalid access when probe
is not completed.

Change-Id: Ib3dbec47e44d7542c8d3d44aefe3cb750384f5b5
Signed-off-by: Arun Kumar Neelakantam <aneela@codeaurora.org>
2020-12-28 21:28:16 -08:00
Rakesh Kota
f643fb0705 clk: qcom: cpu: Re-org CPU clock driver for SDXLemur
Fix cpu clock driver to remove unused properties and re-org
the code to parse the device tree data as we prepare for
the driver to be shared across multiple cpu clocks.

Change-Id: Id7db6d0a860155f2a213d168385913341a562315
Signed-off-by: Rakesh Kota <kotarake@codeaurora.org>
2020-12-29 10:14:11 +05:30
Karthik Rudrapatna
f52befa6e6 defconfig: sdxlemur: Enable IPA offload on Realtek R8125 driver
Enable IPA offload on Realtek R8125 driver for sdxlemur target.

Change-Id: Ie9eee2788669c079ae9c5ff4b7436122116cff26
Signed-off-by: Karthik Rudrapatna <krudrapa@codeaurora.org>
2020-12-28 20:39:22 -08:00
Karthik Rudrapatna
759a41710a msm: IPA offload config for Realtek R8125 driver
Adding IPA offload config to enable IPA oflload path for
Realtek R8125 driver.

Change-Id: I56f997d0b373597d4482f893eab66e8eec06b730
Signed-off-by: Karthik Rudrapatna <krudrapa@codeaurora.org>
2020-12-28 20:26:54 -08:00
Kai Liu
743ec281a9 cnss2: Add cold boot calibration support for WCN7850 chipset
Add WCN7850 device to cold boot calibration supported list.

Change-Id: Id6a54f6eaab143c4db48b6defdaa68748b434db8
Signed-off-by: Kai Liu <kaliu@codeaurora.org>
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2020-12-28 12:04:13 -08:00
Yue Ma
aa77b29b3d cnss2: Disable calibration for emulation builds
Skip cold boot calibration if CONFIG_CNSS_EMULATION is enabled.

Change-Id: Ifee1c5cdf0ab23cbf891c447332d06fef213b46e
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2020-12-28 11:59:52 -08:00
Karthik Rudrapatna
b74c0a27e6 defconfig: sdxlemur: Enable R8125 driver
Enable R8125 driver.

Change-Id: I28b13e22c22822e5e2baa7f6c2e623a57b187d2e
Acked-by: Lakshit Tyagi <ltyagi@codeaurora.org>
Signed-off-by: Karthik Rudrapatna <krudrapa@codeaurora.org>
2020-12-28 10:28:30 -08:00
Ashish Kori
a15853d32a spi: spi-msm-geni: Configure DFS index and clk before doing set rate
Currently we set rate before configure SPI DFS clk. Configure DFS
clk before doing set rate to SE clk. This will allow us to enable
correct parrent clk.

Change-Id: Ifa193bce28937ed363eadeb1bdc2e4bcbacb210b
Signed-off-by: Ashish Kori <akori@codeaurora.org>
2020-12-28 20:39:57 +05:30
Zhiqiang Tu
032e643834 ANDROID: ABI: Update allowed list for QCOM
Leaf changes summary: 0 artifact changed
Changed leaf types summary: 0 leaf type changed
Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 0 Added function
Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 0 Added variable

Bug: 176306856
Change-Id: I52e0bbea0f41d97ca4241f6309babfad7dac82f8
Signed-off-by: Zhiqiang Tu <ztu@codeaurora.org>
2020-12-28 14:20:02 +00:00
Taniya Das
d7293b4f0e clk: qcom: clk-alpha-pll: Replace hw->init in PLL code
The hw->init is no longer valid after the HW clock is registered with
the clock framework, thus clean up the clock enable/disable. While at it
update the list register offset.

Change-Id: I965cd1d5c14efd2bea8cc220f2b19ed1f3ddfb8c
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2020-12-28 17:02:53 +05:30
Taniya Das
456857a0ef clk: qcom: clk-regmap: Add support for devm_clk_regmap_list_node
There can be cases where the clock providers have multiple regmaps and
directly registers to the clock framework. The clk regmap ops like list
registers/clk rate max would be registered only if the provider is added
to the regmap list node.
Thus expose this API for those providers to add to the list.

Change-Id: I1463c12eeed431d30e96404f2162dd75d202d4b9
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2020-12-28 17:02:02 +05:30
Saurabh Ambulkar
55611bbd81 defconfig: gen3auto: Enable arm smmu driver for gen3auto
Enable arm smmu driver so that clients can use.

Change-Id: Ia1838b2d97e95c5fe224f735e42ce3e5bdbf008a
Signed-off-by: Saurabh Ambulkar <sambulka@codeaurora.org>
2020-12-28 16:21:34 +05:30
Rakesh Kota
133892d48d clk: qcom: debugcc: Add support for CPU clock measure for SDXNIGHTJAR
Add support for debug clock controller to measure
frequency of APCS mux clock.

Change-Id: I951c420c52aa62eb6a3cbfc0ccea9d244de6bb06
Signed-off-by: Rakesh Kota <kotarake@codeaurora.org>
2020-12-28 15:33:48 +05:30
Jeya R
593398e786 msm: adsprpc: Copy correct size for async job
Copy correct size in invoke2 for async job to avoid
stack out-of-bounds issue.

Change-Id: Ia4ba5acf372ef46ab89b860c7d9ce47f49a9672e
Acked-by: Deepika Singh <dsi@qti.qualcomm.com>
Signed-off-by: Jeya R <jeyr@codeaurora.org>
2020-12-28 14:14:14 +05:30
Ajay Agarwal
b595281eb8 usb: dwc3-msm: Add support for snps SSPHY suspend in system suspend
Currently the platforms using SNPS SSPHY do not suspend it so as
to receive SS wakeup events via pwr_event_irq. But certain
telematics platforms do not need SS wakeup in system suspend
scenario.
USB wakeup from PM suspend/hibernation is not a requirement for
automotive/telematics platforms. Use enable_wakeup parameter in
dwc3_msm_suspend call to allow SSPHY suspend to happen and also
to keep the IRQs enabled/disabled.

Change-Id: I691585e15539490e63a345fe2b3aacf182352399
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
Signed-off-by: Harsh Agarwal <harshq@codeaurora.org>
2020-12-27 22:38:08 -08:00
Ajay Agarwal
74b8a97e90 usb: host: Modify PM handling for USB interconnect platforms
Currently the PM handling power collapses the core and issues
reset-resume for all the connected devices, both during system
suspend-resume and hibernation-restore scenarios. But certain USB
interconnect platforms want the connected device to not undergo
reset-resume on system resume.
Modify the operations to keep the core powered up, PHY resources
ON and xhci_resume with hibernated flag as 'false' so that
suspend-resume of the connected device is done on resume from
system suspend. Keep the hibernation operation as is.
Also change the DT flag to 'qcom,ignore-wakeup-src-in-hostmode'.

Change-Id: I661494595a3e270890174e0952a67985db58706d
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
Signed-off-by: Harsh Agarwal <harshq@codeaurora.org>
2020-12-27 22:37:29 -08:00
Ashish Kori
210a4cb607 spi: spi-msm-geni: Calculate transfer timeout dynamically
Calculate SPI transfer timeout dynamically based on the transfer size
and add flag for fixed timeout.

Change-Id: Idb4dd232bc97d52e5df74f3cb931f5aa6cbcaaa1
Signed-off-by: Ashish Kori <akori@codeaurora.org>
2020-12-28 11:28:43 +05:30
qctecmdr
5bf38f9905 Merge "icc: dt-bindings: add endpoint IDs for interconnects for MONACO" 2020-12-27 17:54:23 -08:00
qctecmdr
502034be7b Merge "msm: pci: use local pointer for rpmsg_device while sending rpmsg" 2020-12-27 17:54:22 -08:00
qctecmdr
c75c3d980f Merge "usb: misc: nb7vpq904m: fix suspend/resume issue" 2020-12-27 17:54:22 -08:00
Naman Padhiar
bf935090f4 icnss2: Clear SMP2P data during SSR
Clear smp2p data during subsystem down to
prevent false smp2p notification to FW when
subsystem is up.

Change-Id: Iaa9a360e27a6e59d34ba9f02a28ce5dcf71ed0f5
Signed-off-by: Naman Padhiar <npadhiar@codeaurora.org>
2020-12-24 20:19:23 -08:00
Chandana Kishori Chiluveru
87f4d33019 usb: f_gsi: Increase GPS EP maxpacket size to 64bytes
Currently usb driver is using 8 bytes request on interrupt endpoint
for all CDC functions. GPS host driver is expecting short packet/zero
length packet on interrupt endpoint and failing the transfer with 8 bytes
maxpacket. Increase the maxpacket size to 64 bytes so that host ends
the transfer with a short packet.

Change-Id: Icc9919fbd633468d3cc7d4d8ab1945730cdc7c06
Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
2020-12-24 04:55:31 -08:00
jian.gong
8038bc2bb9 ANDROID: ABI: add symbols of __dynamic_netdev_dbg to unisoc
Add symbols of __dynamic_netdev_dbg to unisoc,
and updates the ABI representation accordingly.

Leaf changes summary: 1 artifact changed
Changed leaf types summary: 0 leaf type changed
Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 1 Added function
Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 0 Added variable

1 Added function:

  [A] 'function void __dynamic_netdev_dbg(_ddebug*, const net_device*, const char*, ...)'

Bug: 160255258
Change-Id: I357d2f430fbe76f061fbc85919eaba9f95ce7e2e
Signed-off-by: jian.gong <jian.gong@unisoc.com>
2020-12-24 19:43:37 +08:00
Odelu Kukatla
299903dad6 icc: dt-bindings: add endpoint IDs for interconnects for MONACO
Add master and slave IDs for all Qualcomm Technologies, Inc. Monaco
interconnect providers which consumers can use to set bandwidth
constraints and find paths in the NoC (Network-On-Chip) topology.

Change-Id: Id2e816a74e382946c02345a5d1e39ed1d913ef90
Signed-off-by: Odelu Kukatla <okukatla@codeaurora.org>
2020-12-24 15:33:03 +05:30
qctecmdr
28255001cf Merge "spi: spi-msm-geni: Propagate missing change from 4.14 to 5.4" 2020-12-23 23:10:16 -08:00
qctecmdr
959b3a1fac Merge "msm: kgsl: Add apb_pclk to the clock list and increase KGSL_MAX_CLKS" 2020-12-23 23:10:16 -08:00
qctecmdr
a7f770af3b Merge "arm: defconfig: Enable interconnect driver for NIGHTJAR" 2020-12-23 23:10:15 -08:00
qctecmdr
475b0d24b7 Merge "usb: gsi: Allow suspend upon previous suspend failure in gsi_suspend" 2020-12-23 23:10:15 -08:00
qctecmdr
44abfd814c Merge "input: touchscreen: Enable Novatek nt36xxx Module" 2020-12-23 23:10:15 -08:00
Sarthak Garg
a1ccf2b535 mmc: core: Retry claim host in mmc_sd_detect
Use mmc_try_claim_host with a timeout instead of mmc_claim_host in
mmc_sd_detect. This is to ensure that mmc rescan work item is doesn't
get blocked on claim_host for longer period.
In the pm_suspend path, we cancel the mmc_rescan work item.
If this work item is already scheduled, suspend would be blocked till
mmc_rescan gets finished. In case, mmc_rescan is blocked on claim_host
lock, pm_suspend could get blocked for longer period.  This can result
in momentary UI freeze since pm_suspend is blocked for longer duration.
This change is to prevent this scenario.

Change-Id: Ib93bae6745a153bad3579ae42f46c3c3a7c1b95a
Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
Signed-off-by: Sarthak Garg <sartgarg@codeaurora.org>
2020-12-23 22:26:38 -08:00
Lijuan Gao
daae44ea12 defconfig: Enable SOCINFO config for sdxnightjar target
Enable SOCINFO config for sdxnightjar soc_id query.

Change-Id: Iaa59d03e3454d2d4278775ed4d89d13d71e9b65b
Signed-off-by: Lijuan Gao <lijuang@codeaurora.org>
2020-12-24 14:25:17 +08:00
Tushar Nimkar
019a94d233 drivers: lpm-levels: Return correct value while suspend
Currently lpm_suspend_enter and lpm_cpuidle_s2idle return
success always. This misleads on succcess and failure counts.

This change adds support to return correct value to caller.

Change-Id: I57dd0a4385f16f0e0aa1c92d602c0816ed358e2c
Signed-off-by: Tushar Nimkar <tnimkar@codeaurora.org>
2020-12-24 10:33:39 +05:30
Veera Vegivada
3dde3cb49e interconnect: qcom: Add OSM L3 support on SCSHRIKE
Add Operating State Manager (OSM) L3 interconnect provider support on
SCSHRIKE SoCs.

Change-Id: I69bd044422520601b121f260ff0cebf07d5a5220
Signed-off-by: Veera Vegivada <vvegivad@codeaurora.org>
2020-12-24 09:49:44 +05:30
Veera Vegivada
c680e4f46f interconnect: qcom: Refractor OSM L3 code
Refractor the OSM L3 driver to make it easy to extend for
other targets.

Change-Id: Id9e9ff3c2e9a299fcee8881c68f43649b866259b
Signed-off-by: Veera Vegivada <vvegivad@codeaurora.org>
2020-12-24 09:49:06 +05:30
Veera Vegivada
21b7e009d6 interconnect: qcom: Add SCSHRIKE interconnect provider driver
Introduce QTI SCSHRIKE specific provider driver using the
interconnect framework.

Change-Id: I16865c527a4e70d2e0e42f048bfa451a31027462
Signed-off-by: Veera Vegivada <vvegivad@codeaurora.org>
2020-12-24 09:46:57 +05:30
Nitesh Gupta
5fc6f0eef5 arm64: defconfig: Adding all CoreTech Defconfigs to Mainline 5.4
Changes Included:-
1.) PCIE:- 3172299 3197640
2.) USB:- 3186918 3325023
3.) BUSES:- 3198026
4.) STORAGE:- 3261577.

Change-Id: I69c4cded2463d78b31302673114f462fe4e88461
Signed-off-by: Nitesh Gupta <nitegupt@codeaurora.org>
2020-12-23 19:45:36 -08:00
Naman Padhiar
74a8a7d227 icnss2: Add support for WPSS SSR
Add support to enable WPSS recovery and handle
subsystem restart.

Change-Id: I1b1e91680b280940d19c7eab9f54401ca4ac02d7
Signed-off-by: Naman Padhiar <npadhiar@codeaurora.org>
2020-12-24 02:00:05 +05:30
Manu Gautam
3717aafa04 usb: f_gsi: Fix GSI enable logic for ADPL only composition
Driver enables GSI wrapper only if OUT EP is present in
GSI interface which is not the case with DPL function.
This logic works as long as there is another GSI function
present with OUT EP (e.g. RMNET/RNDIS). However, if ADPL is
the only GSI function in composition then driver does all
the EP specific programming in USB GSI wrapper but doesn't
enable it. Since, initial doorbell is rung by software, data
transfer does start but eventually stall happens as USB GSI
wrapper doesn't ring doorbell.
Fix it by not having an EP check while enabling GSI.

Change-Id: Ia40209d5a3f3b5947b13e8909ef9f994200f7a85
Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
2020-12-23 08:52:39 -08:00
Mukesh Kumar Savaliya
20e81ac78a i2c-msm-geni: Initialize completion variable before txfer request
During I2C GSI mode transfer scenario, there is a potential race between
initializing the completion variable and waiting for the completion.
After submitting the DMA transfer request, initializing the completion
may actually reset the received event as DMA could have complete the
transfer immediately before driver waits for the event. Then it can
never receive the completion and results in timeout.

This change initializes the completion variable before submitting the
DMA transfer request and then waits for the completion.

Change-Id: I537d1187a84171a0811862efd5e118c8d8b57fef
Signed-off-by: Mukesh Kumar Savaliya <msavaliy@codeaurora.org>
2020-12-23 22:12:44 +05:30
Jagadeesh Kona
3f188a4419 arm64: defconfig: Add support for CAMCC for YUPIK
Enable Camera clock controller for YUPIK.

Change-Id: I57fee8bd174d26072014111d5d633f48d5b1d226
Signed-off-by: Jagadeesh Kona <jkona@codeaurora.org>
2020-12-23 19:19:18 +05:30
Jagadeesh Kona
d3bd94fafc clk: qcom: camcc: Add support for CAMCC clock driver for YUPIK
Add support for Camera clock controller driver for the camera
clients to be able to control clocks.

Change-Id: Idf65246d08e0228bc92b415ce57945ba7d708433
Signed-off-by: Jagadeesh Kona <jkona@codeaurora.org>
2020-12-23 19:18:07 +05:30
Mohammed Siddiq
b097b3b92f defconfig: Enable icnss2 config for Yupik
This change enables icnss2 wlan platform driver
configs for Yupik.

Change-Id: If893eaf554089fda70b50cffdf0ef7faa81215c5
Signed-off-by: Mohammed Siddiq <msiddiq@codeaurora.org>
2020-12-23 17:54:58 +05:30
qctecmdr
265c742dd3 Merge "arm_scmi: cleanup the mailbox channels upon errors" 2020-12-23 04:18:09 -08:00
qctecmdr
17d38587c7 Merge "soc: qcom: smem: Add support for suspend to disk" 2020-12-23 04:18:09 -08:00
qctecmdr
9f01e9df06 Merge "mailbox: msm_qmp: Add support for suspend to disk" 2020-12-23 04:18:08 -08:00
qctecmdr
c88ac3211c Merge "soc: qcom: smp2p: Add support for suspend to disk" 2020-12-23 04:18:08 -08:00
qctecmdr
fe2aee57e6 Merge "msm: kgsl: Protect the memdesc->gpuaddr in SVM use cases" 2020-12-23 04:18:08 -08:00
qctecmdr
05632b2aaa Merge "serial: msm_geni_serial: Perform Abort sequence for cancel failure" 2020-12-23 04:18:07 -08:00
qctecmdr
e2b99152a5 Merge "msm: cvp: Fix to avoid cache entry for unwanted buffer" 2020-12-23 04:18:07 -08:00