Commit graph

876,265 commits

Author SHA1 Message Date
rbandi
8d2a6df81e HID: qvr: Correct axes orientation
Some viewers report axes orientation different
from others. Correct sensor axes orientation for
certain viewers depending on certain fields in the
IMU data.

Change-Id: I4ace679cd5e147817185bcd878db4188569554fe
Signed-off-by: rbandi <rohitbandi@codeaurora.org>
2020-01-07 15:39:31 -08:00
Kedi Xu
842de575e1 HID:correct mag axis config for External viewer
External viewer mag axis is different from ACCEL and
Gyro, we need change it to Android coordinate system.

Change-Id: I90b8427b3cbd176f5daea30e5ff01991ca146ae3
Signed-off-by: Kedi Xu <kedix@codeaurora.org>
2020-01-07 15:39:25 -08:00
Rohit Bandi
2c6da39016 HID: qvr: wait event interruptible timeout change
To improve read calibration data latency use a minimum
but enough timeout value. To improve consistency in
controlling IMU stream use a different value.

Change-Id: Iff196d055f0202e642de218020605f7797e3ae4a
Signed-off-by: Rohit Bandi <rohitbandi@codeaurora.org>
2020-01-07 15:39:17 -08:00
rohit bandi
08e31bc7f0 HID: qvr: Decrease wait event interruptible timeout value
To improve read calibration data latency use a
minimum but enough timeout value.

Change-Id: I629ae61ca5005d0f3d0a48e9780ad0940a1ca860
Signed-off-by: Rohit Bandi <rohitbandi@codeaurora.org>
2020-01-07 15:39:12 -08:00
rohit bandi
6862b25d72 HID: qvr: Optimized Viewer Requirements
Add support for 128 byte format to comply
with optimized viewer requirements.

Change-Id: Icfa7ca1cadf3f18533912f403af50532eea47c60
Signed-off-by: Rohit Bandi <rohitbandi@codeaurora.org>
2020-01-07 15:39:08 -08:00
rohit bandi
14adcc2bdb HID: qvr: Code refactoring
Refactoring code for hid-qvr to improve
readability.

Change-Id: I00f679b6e1cf6f59d576243757cba1a88c9286b6
Signed-off-by: Rohit Bandi <rohitbandi@codeaurora.org>
2020-01-07 15:39:04 -08:00
Sathish Ambley
002053fd87 HID: Read calibration data from external sensor
Adding IOCTLs to give userspace control over to start / stop
IMU streaming and read calibration data from the external
device.

Change-Id: Iee5103e3a13cc31e4afcac13284e3594f49735bf
Signed-off-by: rbandi <rohitbandi@codeaurora.org>
Signed-off-by: Sathish Ambley <sathishambley@codeaurora.org>
2020-01-07 15:38:57 -08:00
rbandi
64108d4ba0 HID: Filtering mag data depending on timestamp
Need this fix to filter updated mag data.

Change-Id: Idaa4f18c6473182c3ac6b81f4f15bcde5526834c
Signed-off-by: rbandi <rohitbandi@codeaurora.org>
2020-01-07 15:38:49 -08:00
rbandi
3d43fd3787 HID: external sensor driver
HID driver to handle sensor data from external device
and writes it in to shared memory. Sensor data includes
temperature, accelerometer, gyroscope, magnetometer data.

Change-Id: I06a897166a1106889c60bda0d8f8f84684032d0e
Signed-off-by: rbandi <rohitbandi@codeaurora.org>
2020-01-07 15:38:17 -08:00
qctecmdr
36a6b6c608 Merge "arm64: qcom: Enable QTI config" 2020-01-07 12:11:42 -08:00
qctecmdr
113f80cdcf Merge "iommu/arm-smmu: Rename the ARM SMMU module" 2020-01-07 09:57:12 -08:00
qctecmdr
71208b8ab7 Merge "scsi: ufs-qti: Check for valid vcc before accessing" 2020-01-07 09:12:14 -08:00
qctecmdr
f1ed9b23aa Merge "iommu/arm-smmu: Use dev_iommu_fwspec_get() to retrieve IOMMU fwspec" 2020-01-07 08:36:35 -08:00
qctecmdr
b0585180a5 Merge "iommu/arm-smmu: Unregister TBU driver when unloading the SMMU module" 2020-01-07 08:02:42 -08:00
qctecmdr
687b078378 Merge "iommu/arm-smmu: Add missing iommu_device_unregister()" 2020-01-07 07:20:30 -08:00
qctecmdr
2b9c58c7eb Merge "msm: tsens: Add Tsens driver snapshot" 2020-01-07 05:28:23 -08:00
qctecmdr
8456aba1cb Merge "regmap: Quit the read-loop based on position of file-offset" 2020-01-07 04:48:41 -08:00
qctecmdr
576b0d3156 Merge "Revert "drivers: qcom: cmd-db: modularize commandDB driver"" 2020-01-07 03:38:34 -08:00
qctecmdr
321ba0dbe8 Merge "msm: ipa: fix ipa_disable_apps_wan_cons_deaggr declaration" 2020-01-07 02:59:26 -08:00
qctecmdr
219108d0e3 Merge "msm: ipa3: IPA clock vote ioctl" 2020-01-07 02:11:20 -08:00
qctecmdr
c6ee0e7602 Merge "arm64: defconfig: Enable slimbus driver config for lahaina" 2020-01-07 01:33:51 -08:00
qctecmdr
1070f3fe7d Merge "defconfig: lahaina: Enable ADC drivers for lahaina" 2020-01-07 00:52:13 -08:00
qctecmdr
427a09ef8d Merge "arm64: defconfig: Enable all memory hotplug related configs on Lahaina" 2020-01-06 23:58:07 -08:00
qctecmdr
90c477596b Merge "msm: ipa3: IPA clock vote ioctl" 2020-01-06 23:22:09 -08:00
qctecmdr
00e3b2aa32 Merge "coresight: tmc: etr: Add sys interface for ETR" 2020-01-06 21:16:11 -08:00
qctecmdr
dbda2794b3 Merge "msm: cvp: remove additional checks in response_handler" 2020-01-06 20:39:03 -08:00
qctecmdr
33a38d88b2 Merge "thermal: adc-tm: Add support for PMIC7 ADC_TM" 2020-01-06 20:00:20 -08:00
qctecmdr
68af8c2603 Merge "thermal: adc-tm: Add ADC_TM driver snapshot" 2020-01-06 19:18:35 -08:00
qctecmdr
f305d3b58f Merge "arm64: defconfig: Enable WALT for Lahaina" 2020-01-06 17:44:01 -08:00
Isaac J. Manjarres
e317564e4c iommu/arm-smmu: Rename the ARM SMMU module
In the GKI configuration, the arm-smmu-mod module will already
be present as a GKI module (i.e. the module will be generated from
the GKI ARM SMMU source). As such, there is no way to distinguish
between Qualcomm's ARM SMMU module, and the GKI ARM SMMU module,
since they have the same name. Thus, rename Qualcomm's ARM SMMU
module to distinguish between the two.

Change-Id: I6a41d3d518a800da4d560c8b8d2b8c48f1866d9a
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-01-06 16:33:46 -08:00
Anirudh Ghayal
40e7dc2fd6 regmap: Quit the read-loop based on position of file-offset
Some implementation's of the 'cat' command pass the
absolute position of the file-offset. In the current
implementation of 'regmap_data_read_file' this leads
to dumping all the registers from offset 0.

Avoid this by quitting the read loop if the file-offset
requested is lower than actual read-offset.

Change-Id: I7c6c31958e92f16387bf4cb5de7fbf4572fcce21
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2020-01-06 16:22:05 -08:00
Asutosh Das
f263ac46cf arm64: qcom: Enable QTI config
This enables the QTI specific ufs core driver.
The upstream core driver is skipped when enabled.

Change-Id: Ia2c3932aa627245495d1ff70027c2f9f9c3a5bc0
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
2020-01-06 16:14:30 -08:00
Asutosh Das
4eb78fc2b5 scsi: ufs-qti: Check for valid vcc before accessing
This patch fixes a NULL pointer dereference by checking
if vccq & vccq2 are valid before dereferencing it.

Change-Id: Ieb5aefab77428adbbbbf892f2be1a9942d7c3851
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
2020-01-06 16:12:44 -08:00
Isaac J. Manjarres
cf2f94d573 iommu/arm-smmu: Use dev_iommu_fwspec_get() to retrieve IOMMU fwspec
Use the dev_iommu_fwspec_get() accessor, instead of directly
accessing the device structure for the IOMMU fwspec, as well
as remove an unnecessary forward declaration.

Change-Id: Id09202bd468bddbf8bdf194513fda34b59756fba
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-01-06 15:58:35 -08:00
Isaac J. Manjarres
e57dc23fb1 iommu/arm-smmu: Unregister TBU driver when unloading the SMMU module
When the ARM SMMU module is unloaded, the exit routine does not
fully clean-up after the initialization routine, as it leaves
the TBU driver registered. Thus, unregister the TBU driver
when unloading the SMMU module.

Change-Id: I536f756dab7eebeffe0dd907629feed6657a2532
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-01-06 15:58:34 -08:00
Isaac J. Manjarres
fa1dabd437 iommu/arm-smmu: Add missing iommu_device_unregister()
The remove() callback for the ARM SMMU driver should ensure
the SMMU devices that are being registered are no longer
visible to the IOMMU framework, so remove the devices
by invoking iommu_device_unregister().

Change-Id: I87dd7b4619e5b26b7eed64b04e3716f3b9c417c5
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-01-06 13:54:50 -08:00
Jia Ding
35a816d085 msm: ipa: fix ipa_disable_apps_wan_cons_deaggr declaration
ipa_disable_apps_wan_cons_deaggr() has different declarations when
CONFIG_IPA or CONFIG_IPA3 are not set. Thus fix the declaration to
align with CONFIG_IPA or CONFIG_IPA3 enabled one.

Change-Id: Ic09cac2484c9cfbcd0833583c05c6fc19a3c2aed
Signed-off-by: Jia Ding <jiad@codeaurora.org>
2020-01-06 13:34:53 -08:00
Lina Iyer
9385860b4f Revert "drivers: qcom: cmd-db: modularize commandDB driver"
This reverts commit 75afa532e7.
Too many things rely on cmd-db to be built in to allow it to
be built as a module.

Change-Id: I317ba89a7d3c9f88832e73834b65bcccac79bbe1
Signed-off-by: Lina Iyer <ilina@codeaurora.org>
2020-01-06 14:31:45 -07:00
Perry Randise
4183cb329b msm: ipa3: IPA clock vote ioctl
The ability to vote IPA clock from user space is now required.  Given
this, voting for IPA clock can now be done via an ioctl. These changes
implement the ioctl.

Change-Id: Id7e02678e96da98f2a17f35e7f6736fba39ca990
CRs-Fixed: 2592003
Signed-off-by: Perry Randise <prandise@codeaurora.org>
2020-01-06 11:25:01 -05:00
qctecmdr
90ae165d38 Merge "msm: IPA: add the missing iounmap handle" 2020-01-06 07:34:15 -08:00
Perry Randise
6674562cc7 msm: ipa3: IPA clock vote ioctl
The ability to vote IPA clock from user space is now required. Given
this, voting for IPA clock can now be done via an ioctl. This header
file supports the ioctl and can be independently propagated.

Change-Id: I742a7950f9fc53f17cb6f210f2b7f06ade842011
CRs-Fixed: 2592003
Signed-off-by: Perry Randise <prandise@codeaurora.org>
2020-01-06 05:34:25 -08:00
qctecmdr
f7a35f03cb Merge "soc: qcom: mem-offline: Clear page-table entries after offline" 2020-01-06 03:42:34 -08:00
Ajay Prathi
7064434d96 msm: tsens: Add Tsens driver snapshot
Add snapshot of tsens driver from msm-4.19 to msm-5.4
'commit clk: qcom: dispcc: Removal vdd voting for xo clock
("d7bfaea22970741de640a5fbc01c0dbe82751737")'.

Change-Id: Id953a25144089b54fb9b48f0127607aa27c92219
Signed-off-by: Ajay Prathi <aprathi@codeaurora.org>
2020-01-06 15:48:53 +05:30
qctecmdr
a526f6ca07 Merge "soc: qcom: mem-offline: Set offlinable region based on minimum DDR sizes" 2020-01-06 01:09:30 -08:00
qctecmdr
7ffd447954 Merge "arm64: Update dram end address while randomizing base" 2020-01-06 00:24:54 -08:00
qctecmdr
81fcfc47cc Merge "arm64: mm/memblock: Update memory limit calculation" 2020-01-05 23:45:49 -08:00
qctecmdr
884823fbcf Merge "drivers: base: expose amount allocated per block" 2020-01-05 23:03:11 -08:00
Prudhvi Yarlagadda
ec5bc759f3 arm64: defconfig: Enable slimbus driver config for lahaina
Enable slimbus driver config for lahaina defconfig.

Change-Id: I22674ec93618ca7bf8d6de83d6cab2a2c7d2f29e
Signed-off-by: Prudhvi Yarlagadda <pyarlaga@codeaurora.org>
2020-01-06 12:00:37 +05:30
qctecmdr
51cdd0125f Merge "msm: ipa3: Fix to avoid memory out of bound access error" 2020-01-05 22:25:54 -08:00
suchawla
833bd8ca3c msm: cvp: remove additional checks in response_handler
possibility of OOB access on device->response_pkt in
__response_handler. for e.x if msg queue contains 1000
messages and all 1000 were read and queue is empty.
So __get_q_size api will return zero and _iface_msgq_read
will go in an infinite loop, even if packet_count
== max_packets.

Change-Id: I8e64ff70d5bcefb52d66bfea121f3febf4728384
Signed-off-by: suchawla <suchawla@codeaurora.org>
2020-01-05 22:16:50 -08:00