Commit graph

607649 commits

Author SHA1 Message Date
Ilya Trukhanov
4322f947c6 HID: Add 044f:b320 ThrustMaster, Inc. 2 in 1 DT
[ Upstream commit 65f11c72780fa9d598df88def045ccb6a885cf80 ]

Enable force feedback for the Thrustmaster Dual Trigger 2 in 1 Rumble Force
gamepad. Compared to other Thrustmaster devices, left and right rumble
motors here are swapped.

Signed-off-by: Ilya Trukhanov <lahvuun@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-09-06 10:18:04 +02: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
Ajay Agarwal
95787599a7 ARM: dts: msm: Disable QUSB2 PHY autosuspend for MSM8996
Disable QUSB2 PHY autosuspend for MSM8996 to avoid PLL lock
warnings during phy_init.

Change-Id: I86ded1454ce13b6a80c235fb1b26b11b3183aada
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2019-09-05 20:22:57 +05:30
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
Naman Padhiar
5d2f1dd556 icnss: Correct condition to check invalid address range
For wlfw_msa_mem_info_send_sync_msg QMI request to firmware,
it expects range of addresses and size in response from firmware.
Correct condition used to check whether address and size in
response fall under valid range.

Change-Id: If431fdf3d2bd8a913bd5ee34e0a5778d7c2f36e7
Signed-off-by: Naman Padhiar <npadhiar@codeaurora.org>
2019-09-04 02:37:35 +05:30
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