The msmcobalt interposer target has interposed with pm_falcon pmic.
Remove the pm_cobalt regulator handler reference, clock and smmu
memory address and offset from the ICNSS DT node. Allow ICNSS DT
node compilation for msmcobalt interposer target.
CRs-Fixed: 1085547
Change-Id: I4aa1b9876bf1afd9b895d89dc5c4323ba3a3f661
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
GPIO_LV_MV subtype has different MODE_SEL mask with other existing
subtypes. Correct the MODE_SEL mask in qpnp_pin_get() function to
make sure it could get the correct status for LV_MV subtype GPIOs.
CRs-Fixed: 1081831
Change-Id: Ibeb5d34412d4333f9c7f21d2fc7df1d3b1d4e72e
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
In case of remote QMI client restart, QMI client disconnect
is notified to qmi server. Handle this notification by going
over all the active usb audio devices and issue set alt 0
on corresponding active interfaces of device. After this
perform usb audio device clean up to unmap iova.
Change-Id: Ie89b06d821c1f968ecc30333654bc3a1466f74e3
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
There is a possibility of unacknowledged pending interrupt at the time
of secondary event ring cleanup. As a result xHC does not generate any
interrupt further because event handler busy flag is set. Hence disable
interrupter to prevent any further interrupt, acknowledge any pending
interrupt and clear event handler busy flag. This allows xHC to generate
interrupt after setting up new event ring.
Change-Id: I1b1791eacbf7afffd101d56d0ae06fe237b8c076
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
Prevent using a binder_ref with only weak references where a strong
reference is required.
BUG: 30445380
Signed-off-by: Arve Hjønnevåg <arve@android.com>
Git-repo: https://android.googlesource.com/kernel/msm.git
Git-commit: 5e2a2bc89956ae1c739854403408059144b23c28
Signed-off-by: Ravi Kumar Siddojigari <rsiddoji@codeaurora.org>
Change-Id: I66c15b066808f28bd27bfe50fd0e03ff45a09fca
Signed-off-by: Ravi Kumar Siddojigari <rsiddoji@codeaurora.org>
Current bus_floor_vote_store_api does not limit/check
the size of the string in input, allowing stack overflow.
Specify the max number of characters read allowable to
the size of destination buffer.
CRs-Fixed: 1050455
Change-Id: Idd409e3e38cfb01b28fa24543112d6bb206314ff
Signed-off-by: David Dai <daidavid1@codeaurora.org>
Ignore suspend flag is not set for "MAD_CPE" out widgets, causing
device not to go into suspend state during voice activation. Set
ignore suspend flag to allow suspend during SVA use case.
Change-Id: I18b7cb311e793c820da10990c47f472f7a0d0944
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
When ADSP goes down, all tasks waiting for response from
ADSP should be woken up, so that the upper layers can
proceed with the clean up. Change adds code to wake up
tasks, waiting for response from ADSP for memory related
commands, when ADSP sub-system notifier reaches ASM driver.
CRs-Fixed: 1085631
Change-Id: I0eed467aec676dd6eba71bf08aa4a45ada90133b
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
There is possibility for use of uninitialized variable. Hence initialize
the structure with default values.
Also fix couple of other debug logs.
CRs-Fixed: 1078904
Change-Id: I32abceba2d55c95bdb8e9b6463a39d29fb3bc7c7
Signed-off-by: Puja Gupta <pujag@codeaurora.org>
The glink buffers used to send commands to adsp using
glink_tx() will be freed by glink using notify_tx_abort()
during remote subsystem restart. Implement notify_tx_abort()
so that the buffers can be reclaimed by APR.
Change-Id: Ibc9ce23d4ba15d0e3faa9db3e760965a7439aed8
Signed-off-by: Shiv Maliyappanahalli <smaliyap@codeaurora.org>
Add support for secure display and camera in driver. The physical address
of the secure buffers is programmed into driver and hence there is no
need of stage 1 translation. These changes handle the detach/attach of
smmu contexts while going into and coming out of secure use case.
For secure display both the secure and unsecure contexts are detached,
while for secure camera only the secure context is detached.
CRs-Fixed: 1085143
Change-Id: Iadab43e9655a9e97cdc6661c17a73891cbc2a17f
Signed-off-by: Abhijit Kulkarni <kabhijit@codeaurora.org>
-- Add whitelist support for listener to send modified resp to TZ;
-- support whitelist for kernel client;
-- Change the method to check whitelist feature.
Change-Id: I0030b0008d6224cda3fdc1f80308a7e9bcfe4405
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
Add device tree support for msmcobalt interposer platform
using msmfalcon CDP/MTP.
Change-Id: Ie9eef135cdefc8d2a55f038cf9de5fc7f3656f64
Signed-off-by: Srinivas Ramana <sramana@codeaurora.org>
This is a snapshot from msm-3.18 upto the
commit 262b8c5814ec ("edac: cortex_arm64_edac:
modify sbe detection to use perf events") for the
arm64 cache cpu erp bindings.
Change-Id: I7313a121440bf5a455401cf73bd5ef4d6c1506cb
Signed-off-by: Srinivas Ramana <sramana@codeaurora.org>
Add vdd_class support which would help vote/unvote for any voltage rail
for the clock frequency to the regulator framework. A clock client request
for a clock frequency would look for the corresponding voltage vote and
would be send the request to regulator framework.
Change-Id: I5b1229091fcb7b3887b54735b9663fd31a35db21
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Taniya Das <tdas@codeaurora.org>
Only call an SVID handler's disconnect function only if it was
previously connected, i.e. when the state machine had proceeded
received a successful DISCOVER_SVIDs response. This helps to
avoid excessive notification to SVID clients.
While at it, require that .connect and .disconnect callbacks
are supplied during registration. This helps to eliminate NULL
checks each time they are called.
Change-Id: I030153a6b2106a6504ed51b5cb00a27f842e2488
Signed-off-by: Jack Pham <jackp@codeaurora.org>
Add camera dtsi file for msmcobalt qrd skuk board.
Camera dtsi define DT of rear and front camera.
Change-Id: I7529a30af5d3c16a9c40ace5b5bb85e43cc28923
Signed-off-by: penliu <pengfeiliu@codeaurora.org>
Update headphone OCP (Over Current Protection)
connection attempts to 2 to avoid hardware state
machine getting stuck in OCP state even after
reset.
CRs-Fixed: 1083736
Change-Id: I69e37a93418b99a187c7b46cf62524c5fc4901f2
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
Adds lock to ioctl and other external calls to driver.
Adds missing null check in __usf_set_stream_param.
Change-Id: I142f31c6bb46d6a394ad012077e1703875a120ad
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
Add interface support for secure camera. This change adds the
flag for the secure camera buffer in mdss and sde rotator driver
interface.
CRs-Fixed: 1085143
Change-Id: I3d4c1c7587b367836a151c3c988f58790611acd1
Signed-off-by: Abhijit Kulkarni <kabhijit@codeaurora.org>
The codec DSP needs to be enabled only when there is use case that
utilizes the DSP. This way the codec DSP can be shutdown when it
is not used. Change adds misc device node that the user space can
use to trigger boot and shutdown of DSP.
CRs-Fixed: 1085213
Change-Id: Ie8bb9ed903e46b0914b4ba2630efa864c751c29b
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
Upon host bus reset driver draws 0mA and switches
to higher value 900/500 mA after moving to configured
state. This causes a glitch in the led and battery icon
status. Hence request to draw 100mA to void the glitch.
Change-Id: Id570e427d40d08e29cad7cb74be426bf218d00ee
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>