Allow tracing irqsoff to dmesg based on userspace tunable.
Change-Id: I36ca46c787d25ec08a6d050eed4ce0a23db26a1a
Signed-off-by: Sai Harshini Nimmala <snimmala@codeaurora.org>
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>
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>
Enable support for ultrasonic fingerprint
driver in lahaina defconfig.
Change-Id: Ib66316b7b3e6fc186f6f5a92c50e62e1332e92b8
Signed-off-by: Abir Ghosh <abirg@codeaurora.org>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Allow vendor configuration on prechange and post-change
change while setting up clocks.
Change-Id: I90c7657f1ccfd1beed97779d2c7a3a85173fd176
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
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>
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>
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>
Add support for shima pin configuration and control
via pinctrl framework.
Change-Id: I0357030580fd8141656280ee80aff00c31210883
Signed-off-by: Mukesh Ojha <mojha@codeaurora.org>
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>