Commit graph

607405 commits

Author SHA1 Message Date
Amandeep Singh
412a92fa0f msm: qcn: Change spin_lock api to synchronize clients
Change spin_lock api to spin_lock_bh to provide synchronization
between bottom halves and threads.

Change-Id: Ia964796e3d91ebce60238ad110086ba06a1026c1
Signed-off-by: Amandeep Singh <amansing@codeaurora.org>
2019-09-12 15:40:35 +05:30
Amandeep Singh
a08ceb359a msm: qti_sdio_client: Return error number in diag callback
Return error number in the diag callback to handle it in calback's
error handling sequence. This potentially fixes a memory leak when
device is reenumerated multiple times such as during SSR.

Change-Id: I841d07dfa2f3231e54c5145f27dda977fa8c9f97
Signed-off-by: Amandeep Singh <amansing@codeaurora.org>
2019-09-12 15:20:45 +05:30
Amandeep Singh
e53bd39000 msm: qcn: Remove irq release when switching to RDDM
Remove irq release call while switching to RDDM as the same
is done during the function removal sequence.

Change-Id: I0013c304f739269014caa565c15d851ee2c39aa4
Signed-off-by: Amandeep Singh <amansing@codeaurora.org>
2019-09-12 15:20:20 +05:30
Amandeep Singh
8ed99bcd17 msm: mmc: Check card structure for NULL pointer
Check card structure for NULL pointer before dereferencing it to
check for asynchronous interrupt support.

Change-Id: Ie433d076c4624616a0fceb02b7d9754116669da4
Signed-off-by: Amandeep Singh <amansing@codeaurora.org>
2019-09-12 15:19:57 +05:30
Linux Build Service Account
ffc3c271c9 Merge "rtac: add NULL pointer check for asm handle" 2019-09-10 23:41:46 -07:00
Linux Build Service Account
b2c10286f7 Merge "defconfig: Disable OverlayFS for SDM660 and MSM8998" 2019-09-09 14:30:41 -07:00
Linux Build Service Account
c743df7660 Merge "ARM: dts: msm: correct video codec MMU non-secure CB on msm8996" 2019-09-08 21:10:52 -07:00
Linux Build Service Account
9c59fb632e Merge "defconfig: msm8996: enable Inline Crypto Module for eMMC" 2019-09-06 16:02:02 -07:00
Linux Build Service Account
e70aa207cc Merge "scsi: ufs: Fix race condition in rls_work and ufshcd_resume" 2019-09-06 07:36:59 -07:00
Linux Build Service Account
595a0ad6e0 Merge "msm: qcn: Release interrupt during driver teardown" 2019-09-06 07:36:47 -07:00
Linux Build Service Account
6ec84a46b9 Merge "msm: camera: isp: use correct number of entries" 2019-09-06 07:36:44 -07:00
Linux Build Service Account
aae46fb8df Merge "mmc: core: Return SD card status if sdr104_wa is not present" 2019-09-06 07:36:42 -07:00
Gerrit - the friendly Code Review server
9767abdcf7 Merge changes into msm-4.4 2019-09-06 07:31:49 -07:00
Linux Build Service Account
f2a437b52b Merge "i2c-msm-v2: Add NULL pointer check on i2c messages" 2019-09-05 23:59:02 -07:00
Linux Build Service Account
ac95bb8bcb Merge "ANDROID: cpufreq: times: add /proc/uid_concurrent_{active,policy}_time" 2019-09-05 23:59:01 -07:00
Bo Fang
103a52ae45 ARM: dts: msm: correct video codec MMU non-secure CB on msm8996
Add the proper non-secure CB configuration required for video
codec MMU on msm8996.

Change-Id: I4952e31d1154a7043b871a54be2d29a7a709e45f
Signed-off-by: Bo Fang <bofang1@codeaurora.org>
2019-09-06 14:47:18 +08:00
Phanindra Babu Pabba
bc86fede67 defconfig: msm8996: enable Inline Crypto Module for eMMC
Enable ICE driver for eMMC storage encryption

Change-Id: Ie6e342728441f3e091f4630c12cf04517a87ae23
Signed-off-by: Phanindra Babu Pabba <pabba@codeaurora.org>
2019-09-05 22:19:08 -07:00
Vipin Deep Kaur
67dab0377c i2c-msm-v2: Add NULL pointer check on i2c messages
Add check in i2c driver to ensure the client passes valid messages
for i2c transfer.

Change-Id: I75ceee649d387e4324155c01d0c1e8a40342dff5
Signed-off-by: Vipin Deep Kaur <vkaur@codeaurora.org>
2019-09-05 22:10:54 -07:00
Linux Build Service Account
a2c5ca327b Merge "Merge android-4.4.190 (ac7fbca) into msm-4.4" 2019-09-05 13:11:04 -07:00
Amandeep Singh
a74345fffa msm: qcn: Release interrupt during driver teardown
Release interrupt synchronously on driver teardown such as during
re-enumeration, manual rmmod and device power down.

Change-Id: I8a2f97266513001ed9a6c08b8ca865c9ffac9065
Signed-off-by: Amandeep Singh <amansing@codeaurora.org>
2019-09-05 12:28:03 +05:30
Linux Build Service Account
53eacca70d Merge "ASoC: qdsp6v2: increase RTAC_MAX_ACTIVE_DEVICES to 6" 2019-09-04 13:12:52 -07:00
Rahul Shahare
dcc276413c defconfig: Disable OverlayFS for SDM660 and MSM8998
OverlayFS should be enabled only for new launch target,
so disabled it for OTA target i.e. sdm660 & msm8998.

Change-Id: Ib1f3cadd888d345bd58a945996f887e0831ea6e0
Signed-off-by: Rahul Shahare <rshaha@codeaurora.org>
2019-09-04 02:00:04 -07:00
Sayali Lokhande
1fc3a7badb scsi: ufs: Fix race condition in rls_work and ufshcd_resume
In some rare scenario, race condition is observed between
rls_work handler and ufshcd_resume operation.
Sequence of events:
1.rls_work is scheduled due to UIC error.
2.ufshcd_rls_handler sets host_self_blocked to 1 and then
invokes pm_runtime_get_sync
3. pm_runtime_get_sync is not yet completed because
runtime_status was RPM_RESUMING.
4.pm_runtime_work schedules at almost same time of rls_work.

Here ufshcd_resume schedules out as host_self_blocked
was set to 1 by rls_work.

Call stacks:

-006|wait_for_completion_io(?)
-007|blk_execute_rq()
-008|scsi_execute()
-009|scsi_execute_req_flags()
-010|ufshcd_set_dev_pwr_mode()
-011|ufshcd_resume()
-012|ufshcd_runtime_resume(hba)
-013|ufshcd_pltfrm_runtime_resume(?)
-014|pm_generic_runtime_resume(?)
-015|__rpm_callback(inline)

-003|schedule()
-004|spin_lock_irq(inline)
-004|rpm_resume()
-005|__pm_runtime_resume()
-006|ufshcd_rls_handler()

Fix this by calling pm_runtime_get_sync before setting
host_self_blocked to 1 during rls_work.

Change-Id: I69f23c169ac8a9eb59062b461302f5521cd57ebc
Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>
2019-09-04 14:08:48 +05:30
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