Add a missing dma_unmap_single() that was accidentally deleted when adding
tracepoints in the secure_buffer driver.
Change-Id: I8159bee354b4debffb2a55165d2e543d5979daff
Signed-off-by: Chris Goldsworthy <cgoldswo@codeaurora.org>
Improve understandability of SMCCC macros as they are all functions of
how many arguments can be shoved in registers and how many SCM arguments
are supported.
Change-Id: Iac0378fc4c5e20943a64b98223d53caa4955dd53
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
Add LEGACY_FUNCNUM to qcom_scm-32.c and move SMCCC_FUNCNUM closer to
other smccc-specific macros.
Change-Id: I385f0b5ba31cb14e304617d5aa67b37dc3c33c9c
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
Qcom's smmu-500 needs to toggle wait-for-safe sequence to
handle TLB invalidation sync's.
Few firmwares allow doing that through SCM interface.
Add API to toggle wait for safe from firmware through a
SCM call.
Change-Id: I425b4dda32f285996178540e551e3168c51da610
Signed-off-by: Vivek Gautam <vivek.gautam@codeaurora.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Acked-by: Andy Gross <agross@kernel.org>
Signed-off-by: Sai Prakash Ranjan <saiprakash.ranjan@codeaurora.org>
Patch-mainline: https://lore.kernel.org/patchwork/patch/1129993/
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
There are scnenarios where drivers are required to make a
scm call in atomic context, such as in one of the qcom's
arm-smmu-500 errata [1].
[1] ("https://source.codeaurora.org/quic/la/kernel/msm-4.9/
tree/drivers/iommu/arm-smmu.c?h=msm-4.9#n4842")
Change-Id: I5b313e6629a7ea54055c2cd83d439f5f0d9069c1
Signed-off-by: Vivek Gautam <vivek.gautam@codeaurora.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Acked-by: Andy Gross <agross@kernel.org>
Signed-off-by: Sai Prakash Ranjan <saiprakash.ranjan@codeaurora.org>
Patch-mainline: https://lore.kernel.org/patchwork/patch/1129992/
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
PMIC Glink driver provides the interface for the clients to
communicate over GLink for sending and receiving the data to
charger PD firmware that runs on ADSP which supports charging
and gauging.
This enable the clients to read/write and get notifications on
battery charging parameters.
Change-Id: I2747a86d88dac571bd7e4b8c6dfcd7b8ac596e4b
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
The PMIC Glink driver provides the interface for clients to
communicate over GLink for sending and receiving data to charger
firmware that runs on a remote subsystem (e.g. ADSP) which
supports charging and gauging.
This enables clients to read/write battery charging parameters
and get notifications.
Change-Id: I1e4c09d1ee10c8c5397f4459afe8d656593d718a
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
Enable BT driver as module in defconfig on Lahaina
Change-Id: Idad7e5fb276e1fa7c4a371fcebad81e453c50422
Signed-off-by: Umesh Vats <uvats@codeaurora.org>
Correct the validation of number of dma entries in DMA table
to overcome the out-of-bounds access to dma buffers array.
And make changes to initialize an uninitialized variable
which may contain junk data.
Change-Id: Ia05082c887548e58831ab7dfae42cba97ec13fec
Signed-off-by: Praveen Kurapati <pkurapat@codeaurora.org>
IMD command syntax fix for increment and adding a return
condition for parameter check.
Change-Id: I3e171bd09c3a4ae0d679348186cae1f87da076fe
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
This change will ensure the APIs are updated correctly to the
latest for wakeup_source and dma functions.
Change-Id: Iaaffe6f876dab3824f7a8b72f9d71be686033a6b
Acked-by: Priyadarshini Rajagopal <prajagop@qti.qualcomm.com>
Signed-off-by: Bojun Pan <bojunp@codeaurora.org>
Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
SSR is triggered when the system does not have a sound card
registered, but has codecs. The pointer card sent from codec driver
to snd_soc_card_change_online_state is NULL.
Add null check for soc_card before dereferencing.
Change-Id: I23342a6cbd9d53e62b2ea11dfe79aad3759df6f0
Signed-off-by: Meng Wang <mwang@codeaurora.org>
This is a snapshot of watchdog driver as of msm-4.19 commit
<5a4fd734e3e0e76c8e0819c47eb0d333e09d0f9f>. (Merge "msm: audio: support
for gapless_pcm").
Change-Id: I8b683c8b5c4c56f328d0025b2829f42105d03940
Signed-off-by: Prakruthi Deepak Heragu <pheragu@codeaurora.org>
Add virtual QUP bus nodes to separate out bandwidth requests
and clock votes to allow for independent control.
Change-Id: I8d5a171e60b2e76db83e1d5a27f4cdfe4a1408d9
Signed-off-by: David Dai <daidavid1@codeaurora.org>
Close the coaleascing frame before control sequences involving
coalescing to ensure HPS is idle and that there are no open
coalescing frames/contexts.
Change-Id: I5914b7d64c58a7e557854df6fa2c6fc15a4e21df
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
Add new CVP feature support. Make CVP driver work with 5.x kernel:
Modified bus and ion function calls. Modified synx and firmware
version function calls. Demodulized CPU-DSP driver interface. Added
Lahaina platform configuration. Enable building CVP driver as DLKM.
Change-Id: I8a0a21b3ae87c19bf4e59bed16e9dba304503cc6
Signed-off-by: George Shen <sqiao@codeaurora.org>