Add support for the new mmw related ADC thermistor support. The support
includes for the qmi sensors mmw_pa1, mmw_pa2, mmw_pa3, and
sdr_mmw_therm.
Change-Id: I07267b84d4287ac04824697b14f8355cfae47dfd
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
Add new devicetree macros for the mmw ADC thermistors. The support
includes for the sensors mmw_pa1, mmw_pa2, mmw_pa3, and
sdr_mmw_therm.
Change-Id: I2e4e273bf438483f31700daf91defc6121439c52
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
Adding numerator and denominator to sensor data
for increasing scalability of driver.
Change-Id: Iba90d890b70feae41a273fd51d1a76ab61c5211b
Signed-off-by: Rohit Bandi <rohitbandi@codeaurora.org>
Add support for CDSP DCVS and CDSP hardware cooling devices to QMI
cooling device driver. These cooling devices can be used to mitigate
CDSP subsystem at high temperature via qmi interface.
Change-Id: Ia9906b07ebca4bd6158b68e6e100405ebaa30b60
Signed-off-by: Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
Requeue dispatcher jobs that could not be completed because inflight is
full and handle them before processing new requests from the main queue.
Change-Id: Ic0dedbad70f844372127e707c188c9f4a103624e
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Do not hard code resource address in PDC initialization
sequence to avoid incorrect configuration. Instead get
resource address from cmd-db driver.
Change-Id: If2cc8378c1c00304033d726fdb8bd4e8690ef110
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
Add clock IDs for GCC/DISPCC/GPUCC for clients to be able to
request for clocks from these clock controllers.
Change-Id: I601af44801668ae76d5cd181051ae9ba7b0c6dc0
Signed-off-by: Saurabh Sahu <sausah@codeaurora.org>
This change is a performance optimization. Instead of sending a DRI
deassert command at the end of a Data Ready DRI, the FW shall get a FIFO
empty internal signal. FW sets the don't deassert bit in relevant cases,
like Data Ready DRI, or SYSASSERT DRI.
Change-Id: I810e891a82b80c256857987b446c2162bacc399e
Signed-off-by: Gidon Studinski <gidons@codeaurora.org>
Signed-off-by: Alexei Avshalom Lazar <ailizaro@codeaurora.org>
Data read over SPI was guaranteed to be in a full burst size. This change
enables FW to raise the Data Ready DRI earlier, before the full burst is
ready. The driver must handle the case where data size reported by the HW
is less than a full burst, and then execute another iteration until the
whole burst is read.
This change causes a performance optimization, since the FW can raise the
Data Ready DRI earlier. The whole burst data is usually in place when the
driver handles it.
Change-Id: I98966ec5c1ef614c3c145e99bb3327febe1ebe74
Signed-off-by: Gidon Studinski <gidons@codeaurora.org>
Signed-off-by: Alexei Avshalom Lazar <ailizaro@codeaurora.org>
Return -ENODEV in case a change_mode command is issued when the system
is in SYS_ASSERT state. This guarantees that the user space application
is aware of the bad state and waits for the FW_READY event.
Change-Id: If26dc115078a3cd1af5d7efa93225019c1105184
Signed-off-by: Gidon Studinski <gidons@codeaurora.org>
Signed-off-by: Alexei Avshalom Lazar <ailizaro@codeaurora.org>
Impose less restrictions on state changes, as required by the new system
design.
Change-Id: I9ea6d2fcf2bde4dd013cf7c494dcb5c0c4948fd7
Signed-off-by: Gidon Studinski <gidons@codeaurora.org>
Signed-off-by: Alexei Avshalom Lazar <ailizaro@codeaurora.org>
In case user space application requests for data size which is not a
multiple of the burst size and there is enough data in the drivers internal
buffer, a partial burst may be read by the application, which may cause
loss of burst boundary.
This patch fixes the above. In case the application supplies a buffer which
is smaller than the burst size, an error is returned to the application.
Change-Id: I5233476d99937dd1a13ceaec625588414a1dc04a
Signed-off-by: Gidon Studinski <gidons@codeaurora.org>
Signed-off-by: Alexei Avshalom Lazar <ailizaro@codeaurora.org>
In case sys-assert DRI is pending, there is no need to process other
pending DRIs.
Change-Id: I3f1422d75ae5d966c855213031b3524c46d7f5d5
Signed-off-by: Gidon Studinski <gidons@codeaurora.org>
Signed-off-by: Alexei Avshalom Lazar <ailizaro@codeaurora.org>
Prevent state changes during DRI handling, which may cause the driver to
get out of synchronization. Prevent data read from user space and from
kernel space during change_mode processing.
Change-Id: I2ee277c8894996119d13acbe87a5163e4064923c
Signed-off-by: Gidon Studinski <gidons@codeaurora.org>
Signed-off-by: Alexei Avshalom Lazar <ailizaro@codeaurora.org>
change_mode command sometimes fail. In such a case, a proper error code
should be returned to the calling user space application. Otherwise, the
application tries to read data, which is not available.
Change-Id: I03778cace54fd98847a099bbeaf7884cfbaac586
Signed-off-by: Gidon Studinski <gidons@codeaurora.org>
Signed-off-by: Alexei Avshalom Lazar <ailizaro@codeaurora.org>
Driver can now send asynchronous events to user space application.
Available events are RESET and FW_READY.
Change-Id: I8b3819927ac3e55b69be03d288600c81ad23e319
Signed-off-by: Gidon Studinski <gidons@codeaurora.org>
Signed-off-by: Alexei Avshalom Lazar <ailizaro@codeaurora.org>
32 bit SPI transactions are more efficient. Additionally, the data is
received in the correct endianness, as expected by the host, therefore an
endianness flip can be avoided.
Change-Id: I35c0be291c971d5f07a00e79923c2050914d9642
Signed-off-by: Gidon Studinski <gidons@codeaurora.org>
Signed-off-by: Alexei Avshalom Lazar <ailizaro@codeaurora.org>
WIGIG_SENSING_IOCTL_GET_NUM_AVAIL_BURSTS returns the number of available
bursts in the drivers buffer.
Change-Id: I474770a817393e1b64831886803d65a3f76d92e0
Signed-off-by: Gidon Studinski <gidons@codeaurora.org>
Signed-off-by: Alexei Avshalom Lazar <ailizaro@codeaurora.org>
This driver adds support for sensing use cases over 60GHz frequency band.
Sensing uses 60GHz radio signal to 'sense' the environment, allowing
various use cases such as proximity detection, face recognition, gesture
detection and more.
The driver communicates with the QCA6436 HW using SPI bus. The driver
requires SPI and wil6210 drivers to operate.
Change-Id: Ieaae89de8ef77617a24efafea0f476a3546cf27f
Signed-off-by: Gidon Studinski <gidons@codeaurora.org>
Signed-off-by: Alexei Avshalom Lazar <ailizaro@codeaurora.org>
Fix a potential out-of-bounds write into fw image name array.
Change-Id: I646587bcb421c427208d37aea3d231336ec76627
Signed-off-by: George Shen <sqiao@codeaurora.org>
After calling remove call back in mhi_pm_disable_transition
there is possibility of MHI client calling mhi_device_get_sync
which increments dev wake. This results in to MHI ASSERT due
to non zero dev wake count. Fix this issue by checking pm error
state before incrementing dev wake count.
Change-Id: I817d571f210b77aef444a7ae1f9b2cc5af057ab2
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
Error handling in time synchronization function is not
appropriate as an error in disabling link level low power modes
could cause a spin lock to be unlocked without being locked.
Change-Id: I06177e587f4010b0558bf1331d3b80daf6948e53
Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
In order to ensure that a DRV resume follows immediately after
a client calls device wake assert or deassert, MHI core driver
must unconditionally increment the PM runtime usage count and
post a wake source before waiting for the state change.
Change-Id: I50228742c090a5df6fcb06f89f53723179bcd76d
Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
An incorrect failure check needs to be fixed in the bandwidth
scaling initialization function as the absence of the supported
event ring support does not get factored in.
Change-Id: If80e5126821bc4c9223fe37c4403935a6b1bf047
Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
While writing any sequence or session identifiers, it is
possible that the host could write a zero value, whereas only
non-zero values are supported writes to those registers. Ensure
that host does not write a non-zero value for those cases.
Change-Id: I33248a0aa43321c85a107e394f953774140dec50
Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
Execution environment and power off changes can be serialized
to avoid changing these important controller variables from
multiple places and serialize handling of all state transitions.
Change-Id: I394e5ff4992d7c911e3889f96057d8467d79509c
Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>