Commit graph

878,351 commits

Author SHA1 Message Date
qctecmdr
fadb781fa7 Merge "arm64: defconfig: Enable the pinctrl-shima driver" 2020-02-27 22:33:40 -08:00
qctecmdr
bdd1662e16 Merge "pinctrl: qcom: Add support for Shima SoC pin control" 2020-02-27 16:25:38 -08:00
qctecmdr
3ea7271f60 Merge "ASoC: compare CPU DAI stream name to find BE DAI" 2020-02-27 16:25:38 -08:00
qctecmdr
db213e8a9e Merge "trace/sched: Fix compilation issues on !SMP" 2020-02-27 16:25:37 -08:00
qctecmdr
3ad38dff23 Merge "msm: ADSPRPC: Enable Asynchronous RPC" 2020-02-27 16:25:37 -08:00
qctecmdr
e0f0b6a5db Merge "cnss2: Retry if PCI link training fails" 2020-02-27 16:25:37 -08:00
qctecmdr
b1a2a556e9 Merge "scsi: ufshcd-qti: enable runtime-pm" 2020-02-27 16:25:36 -08:00
qctecmdr
7f05dc796c Merge "cnss2: Avoid double calling MHI force wake put" 2020-02-27 16:25:35 -08:00
Yue Ma
3a7735e8e2 cnss2: Avoid double calling MHI force wake put
If MHI force wake get returns failure, it means MHI force wake
put has already been done. Add checks to avoid double calling.

Change-Id: I14f8cef5e6736130e76c287748d7ce3ff0023505
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2020-02-27 14:48:05 -08:00
qctecmdr
bb4e39e998 Merge "ANDROID: kbuild: avoid excessively long argument lists" 2020-02-27 13:56:44 -08:00
Yue Ma
b7142ef27b cnss2: Retry if PCI link training fails
Retry a few times if PCI link training fails to avoid device side is
not ready in time.

Change-Id: Icd88673b19a4d6f877f597d1c636438f932f85a7
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2020-02-27 12:31:31 -08:00
Sami Tolvanen
85414490f5 ANDROID: kbuild: avoid excessively long argument lists
With LTO, modules with a large number of compilation units maybe end
up exceeding the for loop argument list in the shell. Reduce the
probability for this happening by including only the modules that have
exported symbols.

Bug: 150234396
Change-Id: I4a289aff47e1444aca28d1bd00b125628f39bcd5
Suggested-by: Hsiu-Chang Chen <hsiuchangchen@google.com>
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Git-commit: 1245167
Git-repo: https://android.googlesource.com/kernel/common
Signed-off-by: Prakruthi Deepak Heragu <pheragu@codeaurora.org>
2020-02-27 12:21:13 -08:00
qctecmdr
4f6c398965 Merge "msm: kgsl: Set bus scaling function during gmu probe" 2020-02-27 11:35:11 -08:00
qctecmdr
0a746e2014 Merge "msm: kgsl: Initialize LPAC registers" 2020-02-27 11:35:11 -08:00
qctecmdr
0e7231d5a0 Merge "scsi: ufshcd-qti: Add quirk to disable fastauto mode" 2020-02-27 11:35:11 -08:00
qctecmdr
790f1d6051 Merge "ucsi: start usb host mode when partner type is power cable/ufp" 2020-02-27 11:35:11 -08:00
qctecmdr
c06a32d6ff Merge "haven: doorbell: Remove locks around read/send" 2020-02-27 11:35:10 -08:00
qctecmdr
8621a63922 Merge "cnss2: Add daemon_support dts option for QCA6390" 2020-02-27 11:35:10 -08:00
Satya Durga Srinivasu Prabhala
1b0e828d1e trace/sched: Fix compilation issues on !SMP
Compilation fails on !SMP systems due to scheduler trace points.
Fix the issue by making them available only on SMP system.

Change-Id: Idedf12b6b0bb486184f06a8e9972bae677d9bc97
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
2020-02-27 11:15:08 -08:00
Asutosh Das
7342df160f scsi: ufshcd-qti: enable runtime-pm
Enable runtime power-management with an idle time of 3seconds.

Change-Id: I0716a5eca20e24cc626422b6f7f3d8f0242a50d2
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
Signed-off-by: Can Guo <cang@codeaurora.org>
2020-02-27 09:58:06 -08:00
Mukesh Ojha
d44aee474a arm64: defconfig: Enable the pinctrl-shima driver
Enable the shima pinctrl driver for the functioning of
Top Level Mode Multiplexer block (TLMM) on Shima SoC.

Change-Id: Icc5c058035e0d208ae8f98b5e508c766c41c9330
Signed-off-by: Mukesh Ojha <mojha@codeaurora.org>
2020-02-27 08:40:51 -08:00
Mukesh Ojha
be9ac97db0 pinctrl: qcom: Add support for Shima SoC pin control
Add support for shima pin configuration and control
via pinctrl framework.

Change-Id: I0357030580fd8141656280ee80aff00c31210883
Signed-off-by: Mukesh Ojha <mojha@codeaurora.org>
2020-02-27 08:40:12 -08:00
qctecmdr
a5951a22ce Merge "slim-msm-ngd: Depend on PIL driver notification instead of qmi" 2020-02-27 08:35:42 -08:00
qctecmdr
3bb7283e35 Merge "include: regulator: Add header for RPM-SMD voltage levels" 2020-02-27 06:15:55 -08:00
qctecmdr
2c558dce2d Merge "drivers: soc: qti: Add support for fingerprint driver" 2020-02-27 06:15:55 -08:00
qctecmdr
82e11449a5 Merge "cnss2: Extend idle restart timeout" 2020-02-27 00:18:53 -08:00
qctecmdr
7b7e4e4f1d Merge "msm: pcie: scale CX and rate change after DRV resume" 2020-02-27 00:18:53 -08:00
qctecmdr
3328b1ce21 Merge "defconfig: Enable UFS BSG driver" 2020-02-27 00:18:53 -08:00
qctecmdr
5212d6d3b5 Merge "scsi: ufshcd-qti: Fix null pointer check" 2020-02-27 00:18:52 -08:00
qctecmdr
eeea05d3fe Merge "cnss2: Expose APIs to prevent and allow PCIe L1 state" 2020-02-27 00:18:52 -08:00
qctecmdr
b1a5bd0150 Merge "msm: ipa: create ipa framework" 2020-02-27 00:18:51 -08:00
Abir Ghosh
c6d5ee8048 drivers: soc: qti: Add support for fingerprint driver
Port qbt_handler from msm-4.19 branch upto commit
f5526dd3667d (qbt: Make IPC irq falling edge triggered).

Change-Id: I5adb23732850e56bfce0af89b378bf0bc0e4c192
Signed-off-by: Abir Ghosh <abirg@codeaurora.org>
2020-02-27 13:31:45 +05:30
Banajit Goswami
e496752fb3 ASoC: compare CPU DAI stream name to find BE DAI
While setting up route for a particular device, compare
stream name of CPU DAI and Backend DAI to find the correct
Backend DAI.

Change-Id: Ic3f7c0e5b2a1055e7fdf52c78ded797a9a126d03
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2020-02-26 23:43:55 -08:00
qctecmdr
a2487ea698 Merge "iommu/arm-smmu: Add support for active-only interconnect votes" 2020-02-26 19:04:35 -08:00
qctecmdr
984c7a4fa1 Merge "defconfig: arm64: enable required configs for trusted VM" 2020-02-26 19:04:34 -08:00
qctecmdr
031a77901c Merge "cnss2: Add sanity check for cnss pm runtime APIs" 2020-02-26 19:04:34 -08:00
qctecmdr
bbc1fb5c52 Merge "Revert "mm: oom-kill: Add lmk_kill possible for ULMK"" 2020-02-26 19:04:34 -08:00
qctecmdr
3c948ad14e Merge "cnss2: Add sysfs entry for system shutdown" 2020-02-26 19:04:34 -08:00
Yue Ma
40eb3e3bbb cnss2: Expose APIs to prevent and allow PCIe L1 state
WLAN driver can use the APIs to control if PCIe can enter L1 and
L1ss states.

Change-Id: Iad784b1ca66199ad61c471635a67542afd34480e
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2020-02-26 17:36:02 -08:00
Tony Truong
603d76db80 msm: pcie: scale CX and rate change after DRV resume
PCIe will vote for maximum CX and rate change during DRV resume.
Scale CX and rate change based on final GEN speed after PCIe
regains control.

Change-Id: I004f4bba6ca12944cd48fd56fa5a1290867c82a9
Signed-off-by: Tony Truong <truong@codeaurora.org>
2020-02-26 17:32:00 -08:00
Tony Truong
7fb4a28835 msm: pcie: provide APIs to prevent and allow PCIe ASPM L1
Provide clients an API to exit and prevent the link from active
state power management (ASPM) L1.  Also, give clients the
control to allow the link to enter ASPM L1.

Change-Id: Iedabb4eed51adb981f0eb1f204b468e7b7fbc678
Signed-off-by: Tony Truong <truong@codeaurora.org>
2020-02-26 17:31:28 -08:00
Yue Ma
dcf8badf55 cnss2: Extend idle restart timeout
WLAN driver has its own watchdog timer for idle restart, so
extend idle restart timeout in platform driver to avoid timing
out before WLAN driver.

Change-Id: I4bab19fce7b30c59e9ecc0f0a8923a3693fdec12
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2020-02-26 16:19:46 -08:00
Himateja Reddy
cdafbbd059 msm: ADSPRPC: Enable Asynchronous RPC
Current fastRPC code is synchronous, where invocation to DSP
waits until DSP responds to CPU. With asynchronous fastRPC
support, fastRPC invocation queues asynchronous job to DSP
and returned to the user. User can queue in multiple
asynchronous jobs to DSP without actually waiting for the
response. Reponses from DSP delivered through callback or
can be polled for the job.

Change-Id: Ib78534b8f1775461aa4562112d099abd5c169348
Signed-off-by: Anirudh Raghavendra <araghave@codeaurora.org>
Signed-off-by: Himateja Reddy <hmreddy@codeaurora.org>
2020-02-26 15:42:55 -08:00
Yue Ma
59049c4986 cnss2: Avoid idle restart completely if reboot is in progress
Check if reboot is in progress at the beginning of idle restart in
order to avoid it completely. Also check if reboot is in progress
after wait_for_completion since the event can be completed in the same
context of reboot notification and it needs to return failure for such
cases to caller to avoid other issues.

Change-Id: Iff250df5971ca4c9b885f52250547e2b45d89ac3
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2020-02-26 15:38:57 -08:00
Yu Wang
c3985a135a cnss2: Add sysfs entry for system shutdown
Add sysfs entry '/sys/kernel/shutdown_wlan/shutdown'.
When system is shutting down or rebooting, this entry will be
written so that drvier can be notified and handle it properly.

Change-Id: I2537a2893f8787ff7c9d33608ef6c42075c3d128
Signed-off-by: Yu Wang <yyuwang@codeaurora.org>
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2020-02-26 15:32:45 -08:00
Yue Ma
f628a32c05 cnss2: Set WLAON_QFPROM_PWR_CTRL_REG during power on and off
After device power on and link config, clear VDD4BLOW_EN bit
of WLAON_QFPROM_PWR_CTRL_REG register to disable OTP write.
Before device link suspend and power off, clear VDD4BLOW_EN bit
and set SHUTDOWN_EN bit. Also add a 1ms sleep after writing
WLAON_QFPROM_PWR_CTRL_REG register.

Add a DTSI entry to control above operations.

Change-Id: Icb307a85bb5d283b78bdd7615f9a4757867c8075
CRs-Fixed: 2601850
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2020-02-26 15:30:11 -08:00
Tiger Yu
86af8dc6c3 cnss2: Add sanity check for cnss pm runtime APIs
The cnss pm runtime APIs will be bypassed if the RPM is not enabled.

Change-Id: I41bbf30e1f12426670606b90a88e3af4d0840c9c
Signed-off-by: Tiger Yu <tfyu@codeaurora.org>
2020-02-26 15:25:56 -08:00
Yu Wang
65569d506c cnss2: check wlfw mac before switching to mission mode
To make sure WLAN MAC address has already been well
configured in firmware before switching to mission mode,
send QMI message to WLAN firmware to query the current
MAC status, and wait for 10 seconds at most if it's not
ready.

A new DTS property 'use-nv-mac' is also added:
if 'use-nv-mac' is defined in WLAN dts node, the MAC
checking will be performed; otherwise, it won't.

Change-Id: I1e751d84fb304cb95ea0f989f6939bc7ba5a3ecc
Signed-off-by: Yu Wang <yyuwang@codeaurora.org>
2020-02-26 15:22:58 -08:00
Edgar Flores
41d404f51a msm: adsprpc: Initialize adsp memory region
Initialize adsp memory region.

Change-Id: Ibbd95691227c6f5e3311afc739b252e8c104f0ae
Signed-off-by: Edgar Flores <edgarf@codeaurora.org>
2020-02-26 15:22:06 -08:00
Asutosh Das
83094b231b scsi: ufshcd-qti: Fix null pointer check
Checks for null before using the memory.

Change-Id: Idcf45ccf7d81ebe9b9a81905ad4f42da02827492
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
2020-02-26 15:16:22 -08:00