On PMICs such as PM8350C, the lookup table containing the pattern data
is stored in a separate nvmem device from the one where the per-channel
data is stored.
Add two separate nvmems to handle this case while maintaining backward
compatibility for those targets that use only a single nvmem device.
Differentiate between the two schemes via an enum.
Change-Id: I2826a9acc8cee4d83b6cf2bf2d4d60b1ec3b67d7
Signed-off-by: Guru Das Srinagesh <gurus@codeaurora.org>
Urgent bkops level is used to compare against actual bkops status read
from UFS device. Urgent bkops level is set during initialization and might
be updated in exception event handler during runtime, but it should not be
updated to the actual bkops status every time when auto bkops is toggled.
Otherwise, if urgent bkops level is updated to 0, auto bkops shall always
be kept enabled.
Change-Id: I27e1ce00acc171c7c111dc3073ecdb23bd509851
Signed-off-by: Can Guo <cang@codeaurora.org>
When auto RC clock calibration mode is selected, the 32.768 KHz sleep
clock is used as the reference clock but the hardware module assumes
the reference clock is 32 KHz. This results in inaccuracy on output
drive frequency. Correct this by scaling the LRA period using a factor
of 1.024 in auto RC clock calibration case.
Change-Id: I1d4f6cb90c00ffbd9932928e64666a2122d8d4af
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
Increase the memlat ratio_ceil limit to 50k so
that it can cover a wider range of use cases.
Change-Id: I4785b418e160acc0dabe0ed98146c16336e1e923
Signed-off-by: Amir Vajid <avajid@codeaurora.org>
UAPI_HEADER_TEST ensures that all the uapi headers can be built as
standalone files which facilitates their use in the wider world. Fix
headers to use common kernel definitions.
Change-Id: Id20599d5cf1c20150ad90752bccdcf2c218b35da
Signed-off-by: Siddharth Gupta <sidgup@codeaurora.org>
As the vendor devicetree directories are softlinked, ignore them through
git. Remove "/" in the end for arm64 for properly ignoring.
Change-Id: Ib6c9c31ecd2322f93609f72cbfb0143bd042a649
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
Change adds unmap_kernel_range, get_vm_area, and
ioremap_page_range to qcom whitelist and update the
ABI snapshot.
Change-Id: I34e3a976f68281b7937719f62379002cb7bf6d93
Signed-off-by: Satya Rama Aditya Pinapala <psraditya30@codeaurora.org>
These registers are driver owned and need to be saved/restored
across preemption and IFPC.
Change-Id: Ic9ccff0a047fb5566a7c20e860aefc9dd87284a0
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
Signed-off-by: Raghu Ananya Arabolu <rarabolu@codeaurora.org>
Turn-off Vdd-hba of ufs when link is not off.
This will not prevent CxPC.
Change-Id: I70dc95a2b4f2001ce052877f698930adb6b4b72b
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
Added support for retrieving and logging values for various power
resources used by bluetooth driver.
Change-Id: Ia92d6570ef93ca76fc68546e6466df80ec1cf397
Signed-off-by: Umesh Vats <uvats@codeaurora.org>
Enable PCI_QTI config flag to add QTI specific code to upstream
PCI driver.
Change-Id: Ifb066c22faddaef96eaba57c14cc56ac9e79245e
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
CNSS driver is already saving PCIe config space as part of suspend and
resume. There is no need for PCIe framework to do it again. This is
able to improve suspend/resume KPI.
Change-Id: I940959ec93c435b9fd711c5e75a8bbc40ec916ad
Signed-off-by: Yue Ma <yuem@codeaurora.org>
The vddcx-supply and vdd-supply properties are not defined by the
'qcom,kgsl-3d0' device in GPU DTSI since the corresponding regulators
are not required by the device. Invoking devm_regulator_get for vdd and
vddcx supply results in obtaining a dummy supply. Only invoke
devm_regulator_get for 'qcom,kgsl-3d0' device when the corresponding
supply properties are defined in the DTSI.
Change-Id: Ie3ae363e5644ff123bc984359abef9af2dc102d9
Signed-off-by: Raghu Ananya Arabolu <rarabolu@codeaurora.org>
Add menu choice options for reclaiming virtual
memory belonging to any subsystem expected to have
a lifetime of the entire system. By default virtual
memory is not reclaimed.
Change-Id: I1b8a1492062bb9532700122878618989e5148647
Signed-off-by: Neeti Desai <neetid@codeaurora.org>
Signed-off-by: Susheel Khiani <skhiani@codeaurora.org>
Signed-off-by: Zhenhua Huang <zhenhuah@codeaurora.org>
Signed-off-by: Qingqing Zhou <qqzhou@codeaurora.org>
Add the I/O coherency support for devices that can issue a cache
coherent transactions.
Change-Id: I01b1dca4d72395df41ac5b882dcd3fd75a682b8c
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
Signed-off-by: Vishwanath Raju K <vishk@codeaurora.org>
Signed-off-by: Qingqing Zhou <qqzhou@codeaurora.org>
VTCM handling in cdsp request manager, reads the device
tree as part of platform driver registration notifier and
sends the data to guestos driver via rpmsg channel and
exposes methods to override partition mapping via
debugfs node.
Change-Id: Ie28e750f0a27f35ec114278aa0b87952ecda70f6
Acked-by: Sreekanth Gande <sgande@qti.qualcomm.com>
Signed-off-by: Bavyasritha Alahari <alahari@codeaurora.org>
This reverts commit 0b06cd5ca5.
The meaning of DMA_ATTR_NO_KERNEL_MAPPING changes, it will not remove
kernel mapping, just return the page pointer directly, so make 32 bit
align with 64 bit.
Change-Id: I905f2faa11681dff745191928345fef00c9ec796
Signed-off-by: Qingqing Zhou <qqzhou@codeaurora.org>
There is a chance CVP application closes a session without
stopping it first. The change will ensure there is no resource
leakage in above case.
Change-Id: I2b93af11a47eda8de81f3d8c0f054e3319e48802
Signed-off-by: George Shen <sqiao@codeaurora.org>
This log message can come unnecessarily particularly when the
controller is operating in host mode and the xHCI HCD driver
is primarily handling interrupts. As there should be no gadget
specific events there should not be any value showing in the
GEVNTCOUNT registers so dwc3_interrupt() should normally return
silently. Only print the "NO_PULLUP" log in case there are
new/pending events and the gadget is in halted state.
Change-Id: I4e5040409a14f18d454833fd67d41ca5d0f13501
Signed-off-by: Jack Pham <jackp@codeaurora.org>
In case of a soft disconnect the controller will be halted
via dwc3_gadget_run_stop(). However, a function driver might
be unaware of this and could still be continuing to call
usb_ep_queue() in a different process. Since pullups_connected
is false, this results in a dev_err() to be printed and could
happen quite frequently before the function's disconnect or
unbind callbacks are finally notified. Rate limit this error
message to avoid flooding the kernel log.
Change-Id: If5299cdfd7eee13bb51a8cf29917d9674d0a7c9b
Signed-off-by: Jack Pham <jackp@codeaurora.org>
Enable the GPU driver and the dependent driver to support
graphics functionaltiy for holi SOC.
Change-Id: I37c5fb748af0d41e8351c42e1d0bd623f6620389
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
Some endpoint devices do not go into D3hot during suspend.
By pass auto suspend if device do not allow D3hot. In order
prevent ABI breakage warp this QTI specific change under
CONFIG_PCI_QTI.
CRs-Fixed: 2418347
Change-Id: Ida6e4a2b60b7d08932bfff79144afd67787ca0f2
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
Signed-off-by: Tony Truong <truong@codeaurora.org>
Ignore the ENODEV failures returned by kernel_sendmsg(). These errors
mean either the local port has closed or the remote has gone down.
Neither of these scenarios are fatal and will eventually be handled
through packets that are later queued on the control port.
Also improve the logging messages to print the error code returned by
kernel_sendmsg().
Change-Id: Ibcebd1f44a3fbc87febaa84b11e05675663da5a0
Signed-off-by: Chris Lew <clew@codeaurora.org>
Add pr_fmt to the ns file for easier error log matching.
Change-Id: I711735ee60c1fd9fde25850b8e625bb44c04f4c4
Signed-off-by: Chris Lew <clew@codeaurora.org>
Add "LAHAINAP", that has an msm-id of 439, to the list of
soc-ids supported.
Change-Id: I9e9a98bb66b541e654de6ad9e9a8ec9d2bd5cd03
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
Lucid EVO PLL print registers are required to get the PLL values from
the debugfs, thus add support for the same.
Change-Id: Ia5c43a032e8e844c41d4ec2ff9097bac6a08bfa2
Signed-off-by: Naveen Yadav <naveenky@codeaurora.org>
Lucid EVO PLL is required to be supported from HLOS clock controller,
thus add support for fixed lucid evo pll ops.
Change-Id: I09f89af4e9f3e85649a957872e6bc49e95a94679
Signed-off-by: Naveen Yadav <naveenky@codeaurora.org>
Add extra checks to avoid NULL pointer derefernce when DEBUG_FS
is disabled.
Change-Id: I46ff3b8b27b53ff5bb5dead78ccdefc410435dda
Acked-by: Tadakamalla Krishnaiah <ktadakam@qti.qualcomm.com>
Signed-off-by: Mohammed Nayeem Ur Rahman <mohara@codeaurora.org>