Commit graph

607297 commits

Author SHA1 Message Date
Linux Build Service Account
53eacca70d Merge "ASoC: qdsp6v2: increase RTAC_MAX_ACTIVE_DEVICES to 6" 2019-09-04 13:12:52 -07:00
Linux Build Service Account
20c4cc6a6e Merge "msm: qcn: Add QCN SDIO core driver directory in Kconfig" 2019-09-03 23:21:35 -07:00
Linux Build Service Account
3bf778da1f Merge "msm: qcn: Fix type casting of channel descriptor" 2019-09-03 23:21:35 -07:00
Linux Build Service Account
5543865cef Merge "msm: qcn: Synchronize card state change API" 2019-09-03 23:21:32 -07:00
Linux Build Service Account
34b6804ae9 Merge "msm: Add ipc router config in Makefile and Kconfig" 2019-09-03 14:02:24 -07:00
Linux Build Service Account
8d75d72e2e Merge "mmc: sdhci-msm: Ping with known good phase" 2019-09-03 14:02:22 -07:00
Linux Build Service Account
23264a957c Merge "soc: qcom: Update ipc router sdio transport plugin" 2019-09-03 14:02:21 -07:00
Linux Build Service Account
82606b1c94 Merge "msm: diag: Add SDIO transport in diag" 2019-09-03 14:02:19 -07:00
Linux Build Service Account
81a9e55e08 Merge "diag: Add diag over sdio support" 2019-09-03 14:02:19 -07:00
Linux Build Service Account
a7499d6ace Merge "Revert "msm: camera_v2: CPP AXI reset at close"" 2019-09-03 14:02:18 -07:00
Linux Build Service Account
691b7ecff9 Merge "qseecom: check invalid handle for app loaded query request" 2019-09-03 14:02:17 -07:00
Linux Build Service Account
616e638939 Merge "Asoc: apr: Fix sound card failure at stability runs" 2019-09-03 14:02:15 -07:00
Linux Build Service Account
b81152ef29 Merge "asoc: codecs: Fix LPASS register access during bootup" 2019-09-03 14:02:14 -07:00
Linux Build Service Account
f5790ad805 Merge "diag: dci: Prevent using uninitialized variables" 2019-09-03 14:02:13 -07:00
Linux Build Service Account
1bdf2d7865 Merge "ks_bridge: Kill anchored urbs in release callback" 2019-09-03 14:02:12 -07:00
Linux Build Service Account
6dabdf86e7 Merge "msm: ipa3: Fix to memory allocation failure" 2019-09-03 14:02:10 -07:00
Amandeep Singh
475c082bb4 msm: qcn: Add QCN SDIO core driver directory in Kconfig
Add QCN SDIO core diver directory in parent directory's Kconfig
to enable its compilation.

Change-Id: I176d17040bf4a63d19635272088e0c4053f8a092
Signed-off-by: Amandeep Singh <amansing@codeaurora.org>
2019-09-03 12:29:00 +05:30
Amandeep Singh
f19263cde8 msm: qcn: Fix type casting of channel descriptor
Fix type casting of channel descriptor to avoid memory access
violations during the descriptor usage.

Change-Id: I3d73bf327fd796f482e492265d18d3417f21dc9a
Signed-off-by: Amandeep Singh <amansing@codeaurora.org>
2019-09-03 11:51:13 +05:30
Amandeep Singh
652a8550db msm: qcn: Synchronize card state change API
Update card state change API to synchronize multiple invocation
of the same API from different drivers.

Change-Id: I03c18a9540bdb64fa462262faa9cabe158e9e199
Signed-off-by: Amandeep Singh <amansing@codeaurora.org>
2019-09-03 11:49:22 +05:30
Amandeep Singh
9ea2de0a4e msm: Add ipc router config in Makefile and Kconfig
Add ipc router sdio plugin config in Makefile and Kconfig
to enable it for compilation.

Change-Id: If3bc8e812240bd86f2ef3bc63452edcdf69deac6
Signed-off-by: Amandeep Singh <amansing@codeaurora.org>
2019-09-03 11:46:49 +05:30
Amandeep Singh
38de3ce82f msm: qcn: Disable logs to console after reporting error
Disable logs to console after reporting error only once,to stop
excessive prints on console whcich causes watchdog bite due to
console lock up.

Change-Id: I26d9f3f258e0428c059440369c88691b2d523bba
Signed-off-by: Amandeep Singh <amansing@codeaurora.org>
2019-09-03 11:44:55 +05:30
Amandeep Singh
b47bd8b9e7 qti_sdio_client: Free rx DMA buffers after use
Free rx DMA buffere after the data is read from the buffer.

Change-Id: I2b8f97beb50b4752674fc8b4034feb84d2a36302
Signed-off-by: Amandeep Singh <amansing@codeaurora.org>
2019-09-03 11:42:32 +05:30
Amandeep Singh
52ad57ba4e msm: qcn: Add driver state information param
Add driver state information param to view from the user space.

Change-Id: I2d4cd86ae5d67ac948a93d28e24ea96394343513
Signed-off-by: Amandeep Singh <amansing@codeaurora.org>
2019-09-03 11:39:20 +05:30
Amandeep Singh
9fe2396185 msm: qcn: Disable retuning in function 1 driver
Disable retuning in function 1 driver by default. Created a sysfs
entry to enable it if needed.

Change-Id: I29b5ea4a8e0f1614b10226edb21c6cbeb7a327cd
Signed-off-by: Amandeep Singh <amansing@codeaurora.org>
2019-09-03 11:37:30 +05:30
Amandeep Singh
a419a64bc9 msm: qcn: Detect and switch host to RDDM
Switch driver operating mode to RDDM when target device switches to RDDM.

Change-Id: I501672f4965e57e59f5a272e35534e66c63b67c1
Signed-off-by: Amandeep Singh <amansing@codeaurora.org>
2019-09-03 11:35:06 +05:30
Amandeep Singh
2ca7eb28dc mmc: sdhci-msm: Ping with known good phase
Ping with known good phase if last phase of tuning fails.

Change-Id: I3d8d8ce3d8a4dc00146668b815b69619d3a4cea8
Signed-off-by: Amandeep Singh <amansing@codeaurora.org>
2019-09-03 11:33:13 +05:30
Amandeep Singh
ae6070aa42 qti_sdio_client: Drop read write request during removal
Update read write API to drop further messages during transport or
interface removal.

Change-Id: Ied43de8aa7cef1c36c9c520976357ba1e63017db
Signed-off-by: Amandeep Singh <amansing@codeaurora.org>
2019-09-03 11:31:29 +05:30
Amandeep Singh
31c7686157 msm: qcn: Add dynamic add and remove of SDIO card
Add API to dynamically add and remove the SDIO card on demand.

Change-Id: I946115880da75804a6636616d9cf7cfb4a682b92
Signed-off-by: Amandeep Singh <amansing@codeaurora.org>
2019-09-03 11:29:37 +05:30
Amandeep Singh
d1c96aa388 msm: qcn: Enable QCN SDIO core driver for compilation
Add QCN SDIO core diver config into Makefile and
Kconfig to enable its compilation.

Change-Id: I19d184c628658175179d9b5c52a3a8bd07dd7999
Signed-off-by: Amandeep Singh <amansing@codeaurora.org>
2019-09-03 11:27:47 +05:30
Amandeep Singh
02768612ca msm: qcn: Enable QCN SDIO client driver for compilation
Add QCN SDIO client driver config into Makefile and
Kconfig to enable its compilation.

Change-Id: I40ffa1844b2030aca53d0e36f1bee2900a3ea8d4
Signed-off-by: Amandeep Singh <amansing@codeaurora.org>
2019-09-03 11:26:01 +05:30
Amandeep Singh
c83973e117 soc: qcom: Update ipc router sdio transport plugin
Update ipc router sdio plugin initial snapshot to support peripheral
device over sdio transport.

Change-Id: I097ad755b3bd2270cda74738bed409e88dee343c
Signed-off-by: Amandeep Singh <amansing@codeaurora.org>
2019-09-03 11:24:16 +05:30
Amandeep Singh
3451ee0a58 soc: qcom: Add ipc router plugin for sdio transport
This snapshot is taken as of msm-4.4 commit dc86ce0faa ("soc: qcom:
ipc_rtr_xprt: Add support to set version in transport").

Change-Id: I729d3c910372d2c3c0bbaaae74a42150c9929732
Signed-off-by: Amandeep Singh <amansing@codeaurora.org>
2019-09-03 11:21:53 +05:30
Amandeep Singh
851aa308b0 msm: diag: Add SDIO transport in diag
Add support for SDIO transport in diag core framework.

Change-Id: Ic3ccfec3acd60b36a96aebb49a5681219a25e643
Signed-off-by: Amandeep Singh <amansing@codeaurora.org>
2019-09-03 11:20:14 +05:30
Amandeep Singh
53d7ba42ba diag: Update diag over sdio snapshot
Update code to support diag for peripheral devices over sdio bus.

Change-Id: I14678f301f94b239b61c4c94d3c0ff65204e739e
Signed-off-by: Amandeep Singh <amansing@codeaurora.org>
2019-09-03 11:18:27 +05:30
Amandeep Singh
f9d7069388 diag: Add diag over sdio support
This commit is taken as of msm-4.4 commit f185067e36 ("diag: Fix
HSIC read complete work function").

Change-Id: I629fe0d9ed697fb20fd9263ecea6009157181e63
Signed-off-by: Amandeep Singh <amansing@codeaurora.org>
2019-09-03 11:16:45 +05:30
Amandeep Singh
3f4b675e60 msm: qcn: Update completion sequence during tx
Update the completion variable sequence to avoid multiple complete
call on a stale staack completion variable.

Change-Id: I582777431918c359cd10e4e072f33589dc600e62
Signed-off-by: Amandeep Singh <amansing@codeaurora.org>
2019-09-03 11:15:09 +05:30
Amandeep Singh
270a493149 msm: qcn: Add QCN bridge client driver
Add QCN bridge client driver to provide interface to QCN SDIO
core function-1 driver. This driver currently provides interfacing
for diag, IPC router and sahara application.

Change-Id: Ie992aec91347bb68e46a01ee6f67a1d07ce40ecc
Signed-off-by: Amandeep Singh <amansing@codeaurora.org>
2019-09-03 11:13:18 +05:30
Amandeep Singh
23ddb3ee2d msm: qcn: Synchronize clients operating at different modes
Add synchronization support between clients that operate on different
modes, i.e. synchronous or asynchronous. The synchronous client will
momentarily switch to asynchronous if any asynchronous transmission is
scheduled.

Change-Id: I41aec9bff950d2816a9ce55017e118e8504be77a
Signed-off-by: Amandeep Singh <amansing@codeaurora.org>
2019-09-03 11:11:32 +05:30
Amandeep Singh
ff692c2700 msm: qcn: Reserve 8 bufferes in RW queue for RX
The current QCN core driver support four concurrent clients,
and there can be only two CRQ's that can be raised per client
from device.
Reserve 8 bufferes for data reception from device to host.

Change-Id: Iac72b5dd51988ffd1139bf55ecb9799bded77710
Signed-off-by: Amandeep Singh <amansing@codeaurora.org>
2019-09-03 11:09:55 +05:30
Amandeep Singh
4c78c55ad2 msm: qcn: Increase RW queue size
Increase RW queue size to compensate higer data transfer from host
to device, when device is operating at lower frequencies.

Change-Id: I443aead06c757cde40ee99ea2c29a5f323249b8b
Signed-off-by: Amandeep Singh <amansing@codeaurora.org>
2019-09-03 11:08:05 +05:30
Amandeep Singh
bec7c9d8a8 msm: qcn: Update read/write APIs
Update read/write API in QCN sdio core driver to issue CMD53
instead of CMD52 for data equal or greater than 4 bytes.

Change-Id: I5641f32fa8896d3fafb087b440ff69ad936a83ee
Signed-off-by: Amandeep Singh <amansing@codeaurora.org>
2019-09-03 11:05:57 +05:30
Amandeep Singh
e4f6d17190 msm: Add QCN SDIO core driver
Add QCN SDIO core driver as function-1 driver to provide streamlined
communication for peripheral device connected over sdio.

Change-Id: Ia8aec77807b59d3e1476b0a12ee7016809335b39
Signed-off-by: Amandeep Singh <amansing@codeaurora.org>
2019-09-03 11:03:23 +05:30
Linux Build Service Account
3c8c50fdda Merge "Merge android-4.4.189 (74c8219) into msm-4.4" 2019-09-02 21:56:44 -07:00
Linux Build Service Account
4910099d3a Merge "Merge android-4.4.188 (886d085) into msm-4.4" 2019-09-02 21:56:43 -07:00
Zhen Kong
ccc8c4fcf6 qseecom: check invalid handle for app loaded query request
Check if the handle data type received from userspace is valid
for app loaded query request to avoid the offset boundary check
for qseecom_send_modfd_resp is bypassed.

Change-Id: I5f3611a8f830d6904213781c5ba70cfc0ba3e2e0
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
2019-08-30 14:51:37 -07:00
Venu Raidu
1ee2add2a0 Revert "msm: camera_v2: CPP AXI reset at close"
This reverts commit e4250ce4ec.

AB/IB voting is not required to reset CPP AXI/HW during
camera close.

Change-Id: I230276b9d2c821dbc651fc5dd2a458e4e987baf9
Signed-off-by: Venu Raidu <vraidu@codeaurora.org>
2019-08-30 14:53:45 +05:30
Soumya Managoli
7e58376e99 Asoc: apr: Fix sound card failure at stability runs
In stability reboot tests, deferred audio drivers
are not invoked after lpass loading sometimes and
results in sound card failure. Change APR to platform
device and after APR status changes to loaded state,
add dummy module child device under APR which invokes
deferred audio drivers and sound card registers successfully.

In analog codec driver defers until Q6 core ready.

Change-Id: I1c82d9da55e771299df356a2771de2b2e62348cf
Signed-off-by: Soumya Managoli <smanag@codeaurora.org>
2019-08-28 11:13:40 +05:30
Vijayavardhan Vennapusa
6bc2851b18 ks_bridge: Kill anchored urbs in release callback
Currently ks_bridge driver queues requests to USB hardware in
open callback, but killing those urbs in disconnect() callback.
Due to this, USB host controller tries to ping on these endpoints
of ks_bridge driver, even though release callback is called. This
results in not using bandwidth for usecase data transfers in highspeed
mode. Fix this by killing those anchored urbs in release callback.

Change-Id: Iebe60125bfa3311337b0c9e5aaca44197a67c2be
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2019-08-26 10:33:14 +05:30
Manoj Prabhu B
c3403636a9 diag: dci: Prevent using uninitialized variables
Presently chance of using uninitialized variables if a dci
command is not found is avoided by initializing command
structure variables.

Change-Id: I190299917ea6c7fadfc7686d43a7da098e0bc05e
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
2019-08-21 23:03:51 -07:00
Soumya Managoli
267bc574c9 ARM: dts: msm: load audio-apr module
Entry for apr module and add audio apr dummy device
as child of apr device. This will invoke deferred probe
devices to address sound card failure issue.

Change-Id: I00aacb023f5a36b24da1f2b3d3c71646ffcfb47b
Signed-off-by: Soumya Managoli <smanag@codeaurora.org>
2019-08-20 11:53:33 +05:30