Commit graph

878,368 commits

Author SHA1 Message Date
Sai Harshini Nimmala
dc28abd851 trace: Toggle irqsoff tracing to dmesg
Allow tracing irqsoff to dmesg based on userspace tunable.

Change-Id: I36ca46c787d25ec08a6d050eed4ce0a23db26a1a
Signed-off-by: Sai Harshini Nimmala <snimmala@codeaurora.org>
2020-03-13 15:46:19 -07:00
qctecmdr
41dfbf027b Merge "leds: qti-flash: Add maximum available flash current prediction" 2020-02-28 09:29:37 -08:00
qctecmdr
c6aacf321e Merge "defconfig: lahaina: enable QBT_HANDLER" 2020-02-28 07:11:58 -08:00
qctecmdr
40287648fd Merge "slim-msm-ngd: Check current state of sub system restart notifier" 2020-02-28 04:39:55 -08:00
qctecmdr
32e8550ed0 Merge "scsi: ufs-qcom: Refactor phy_power_on/off calls" 2020-02-28 04:39:55 -08:00
Prudhvi Yarlagadda
80269d295f slim-msm-ngd: Check current state of sub system restart notifier
Check for the current state of sub system restart notifier when
the LOCATOR_UP notification is given to slimbus driver and do the
slimbus initialization if the current state is already set to
SERVREG_NOTIF_SERVICE_STATE_UP_V01.

This change is needed in the cases where LOCATOR_UP notification
to slimbus driver got delayed and the state of the sub system restart
notifier is already set to SERVREG_NOTIF_SERVICE_STATE_UP_V01 as
slimbus will be expecting the SERVREG_NOTIF_SERVICE_STATE_UP_V01
notification which is not going to come as the notifier state is
already changed.

Change-Id: I4804bbb13e065ac78be7a442993286532402db9d
Signed-off-by: Prudhvi Yarlagadda <pyarlaga@codeaurora.org>
2020-02-27 23:24:25 -08:00
Prudhvi Yarlagadda
e7761f93ac slim-msm-ngd: Prevent system suspend during initialization
Prevent system suspend from happening during slimbus initialization
process where the NGD Slimbus component gets enummerated with
ADSP slimbus component and then queries the logical addresses of
the clients connected.

This is to prevent the issue where the slimbus driver goes to
suspend due to system suspend after the enumeration phase is
done after an SSR/PDR. Driver again resumes for querying logical
addresses of clients connected assuming enumeration process is
already done whereas it has to be re-enumerated as driver got
suspened and resumed.

Change-Id: I42ab3f7a6061a1c464d436aa13e43d27eb312fd4
Signed-off-by: Prudhvi Yarlagadda <pyarlaga@codeaurora.org>
2020-02-27 23:23:23 -08:00
Abir Ghosh
7db2b2ff28 defconfig: lahaina: enable QBT_HANDLER
Enable support for ultrasonic fingerprint
driver in lahaina defconfig.

Change-Id: Ib66316b7b3e6fc186f6f5a92c50e62e1332e92b8
Signed-off-by: Abir Ghosh <abirg@codeaurora.org>
2020-02-27 22:42:35 -08:00
qctecmdr
b0866600a2 Merge "scripts: gki: Ensure HOSTLD and HOSTAR are not changed" 2020-02-27 22:33:41 -08:00
qctecmdr
c84acc8ce0 Merge "scsi: ufs-qcom: Adjust the order of bus bandwidth voting and unvoting" 2020-02-27 22:33:41 -08:00
qctecmdr
fadb781fa7 Merge "arm64: defconfig: Enable the pinctrl-shima driver" 2020-02-27 22:33:40 -08:00
Shyam Kumar Thella
19b532c6ac leds: qti-flash: Add maximum available flash current prediction
Add support to calculate maximum current available for flash module.
Clients of flash LED makes use of this API qti_flash_led_prepare()
to query maximum available current for different flash LED channels.

Change-Id: I26988b1afb1e57a190aa25061189b71ca3f7ea95
Signed-off-by: Shyam Kumar Thella <sthella@codeaurora.org>
2020-02-28 10:36:59 +05:30
Abir Ghosh
a309409b03 qbt_handler: Change return type of qbt_poll
Add changes to make touch events notifier static.
Change the return type of qbt_poll from unsigned int
to __poll_t.

Change-Id: Ib43f6bb5ba77cb48d1e47e1ecd1d5b810f7c9159
Signed-off-by: Abir Ghosh <abirg@codeaurora.org>
2020-02-28 10:23:20 +05:30
Prakruthi Deepak Heragu
49983a65ef scripts: gki: Ensure HOSTLD and HOSTAR are not changed
Change the way the HOSTLD and HOSTAR are assigned in the envsetup.sh
so that the original values don't get overwritten.

Change-Id: Ia2dd91d47b1ab3a527305973a67d8b5b5368a607
Signed-off-by: Prakruthi Deepak Heragu <pheragu@codeaurora.org>
2020-02-27 17:29:46 -08:00
Can Guo
33714450cb scsi: ufs-qcom: Refactor phy_power_on/off calls
Commit 052553af6a ("ufs/phy: qcom: Refactor to use phy_init call") puts
enabling regulators & clks, calibrating UFS PHY, starting serdes and
polling PCS ready status into phy_power_on.

Due to UFS PHY's registers are retained after power collapse, so
calibrating UFS PHY, starting serdes and polling PCS ready status need to
be done only when start hba, but not needed every time when phy_power_on
is called during resume. Keep the codes which enables PHY's regulators &
clks in phy_power_on but move the rest steps into PHY's general calibration
func, namely phy_calibrate.

Commit 3f6d1767b1 ("phy: ufs-qcom: Refactor all init steps into
phy_poweron") removes the phy_power_on/off from ufs_qcom_setup_clocks.

To have a better power saving, remove the phy_power_on/off calls from
resume/suspend path and put them back to ufs_qcom_setup_clocks, so that
PHY's regulators & clks can be turned on/off along with UFS's clocks.

At last, add a mutex lock to protect the usage of is_phy_pwr_on against
possible racing.

Change-Id: I1ed5d5d6968c3f16018e9723eab010ea7ed798b2
Signed-off-by: Can Guo <cang@codeaurora.org>
2020-02-27 16:54:51 -08:00
Can Guo
55af5bb593 scsi: ufs-qcom: Adjust the order of bus bandwidth voting and unvoting
The bus bandwidth voting is required to be done before the bus clocks
are enabled, and the unvoting is required to be done only after the bus
clocks are disabled.

Change-Id: Ie231d9c373c0d8c8f3dd90b8322ff24fabdfae26
Signed-off-by: Can Guo <cang@codeaurora.org>
2020-02-27 16:54:50 -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
3595f45491 scsi: ufshcd-qti: Always allow vendor to configure clocks
Allow vendor configuration on prechange and post-change
change while setting up clocks.

Change-Id: I90c7657f1ccfd1beed97779d2c7a3a85173fd176
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
2020-02-27 10:17:49 -08:00
Asutosh Das
f8c15594b0 scsi: ufs-qcom: Get low power levels from devicetree
Parse runtime-pm and system-pm levels from devicetree.
If unspecified, assign invalid levels so that default
values of 3 are used.

Change-Id: I74a7f35c40299207b13221d87d3fbc3ffad4fe10
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
2020-02-27 09:58:47 -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