Remove the flush_cache_all usage from power off driver.
For the crash reset flow, this api is not needed on
latest SoCs and secure world can flush cpu caches.
Change-Id: If50364810e63c72c09ada026f7f295112414c413
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
If IO coherency for the USB controller is enabled, the shared buffers
need to be remapped with the cached attribute set so that the
controller HW can properly access the memory coherently. Otherwise,
the HW could end up reading stale data from cache.
While at it, remove the dma_sync_* calls, as they were previously
added with the misunderstanding that the APPS needs to force an
invalidation before passing it to the ADSP. This is not required
as long as the coherency settings are matched as there is no need
to manually perform cache maintenance when handing off the buffers.
Change-Id: I3a7ecbd7b7f1c264c64e9f5f82c9d4ec27848dc0
Signed-off-by: Jack Pham <jackp@codeaurora.org>
In constant waveform playing, there is no need to use an effect data
structure to capture the current playing effect, hence set it to NULL.
This also helps the set_gain() callback to use the correct Vmax when
it's called in constant playing case. Also add a debug message to show
the Vmax setting.
Change-Id: I763ec7407b8696300dbe93f5e6935900544e75a8
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
This change enables the controller driver, phy and function
drivers on sdxlemur.
Change-Id: Ief79a286ee4a624b32c0e4fc2aff5c091657c54c
Signed-off-by: Elson Roy Serrao <eserrao@codeaurora.org>
Use LINUX_GCC_CROSS_COMPILE_ARM32_PREBUILTS_BIN instead of
LINUX_GCC_CROSS_COMPILE_COMPAT_PREBUILTS_BIN since that is
backwards-compatible with older kernel/build revisions.
Change-Id: I10b60db33ffdde3d8147b983121367e5ec6566db
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
While performing very fast etr enable/disable from coresight
there is a chance that when alloc_req is trying to allocate
the request qdss_close got called due to etr disable
invoking it, and before alloc_req could complete it's
execution driver is trying to free the request. This leads
to poison error.
Fix this by securing alloc_req under spinlock to avoid this
scenario. qdss_close is already under spinlock protection.
Change-Id: Ia2c629911c9044536a1eca5d72b6f6b3a91ef806
Signed-off-by: Udipto Goswami <ugoswami@codeaurora.org>
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
Removed flags which are already part of techpack
defconfig.
Change-Id: I4f3f535413f397a0785ee4a774b6d7082a499b05
Signed-off-by: sivakanth vaka <svaka@codeaurora.org>
This feature is to enable the disconnection of the battery from the
device as the final step in the assembly of a phone on the factory floor
to prevent battery rundown while in transit to the hands of the final
consumer.
Usage:
# echo 1 > /sys/class/qcom-battery/ship_mode_en
Following this, either manually shut down using power key, or:
# reboot -p
Change-Id: Ifef053c6ebb3b86c10f9dbe3c9c47d7c3548d95b
Signed-off-by: Guru Das Srinagesh <gurus@codeaurora.org>
As there is etr status check in usb notifier, call usb_qdss_open after
all etr settings are done to avoid the race condition between etr status
and usb notifier call.
Change-Id: Ib4b5ca8001ca135539e0d55cbb86cb061b564e9d
Signed-off-by: Mao Jinlong <jinlmao@codeaurora.org>