Commit graph

577383 commits

Author SHA1 Message Date
Hardik Kantilal Patel
a421f9710c defconfig: Enable CONFIG_ICNSS_DEBUG for msmfalcon
Enable CONFIG_ICNSS_DEBUG to enable driver debugging.

CRs-fixed: 1076049
Change-Id: I0d97a9aca9525da4aee6a9ddbf97849cd9c11a55
Signed-off-by: Hardik Kantilal Patel <hkpatel@codeaurora.org>
2016-10-10 06:14:51 -07:00
Linux Build Service Account
1fac7f53bd Merge "input: misc: pat9125: fix issues found in static analysis" 2016-10-10 05:57:59 -07:00
Linux Build Service Account
d1df49872e Merge "ASoC: msm: create backend dailink for wcd934x MAD" 2016-10-10 05:57:59 -07:00
Linux Build Service Account
f6179aab9b Merge "ASoC: soundwire: add null check before pointer dereference." 2016-10-10 05:57:50 -07:00
Vevek Venkatesan
72ce5ca478 input: misc: pat9125: code clean-up in pat9125 driver
Remove redundant code from the Pixart PAT9125 reference driver
- Remove unwanted struct declarations and definitions
- Remove unwanted header files
- Dynamically allocate platform data structure
- Change pr_err to dev_err
- Changes as per Linux coding guidelines
- Clean-up probe and remove routines
- Remove unwanted file operations
- Remove unused functions and variables

Change-Id: I71b1d2548dc07c21ab8f12327662f5bb6998cdcb
Signed-off-by: Vevek Venkatesan <vevekv@codeaurora.org>
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2016-10-09 23:21:25 -07:00
Himanshu Aggarwal
01e2708af5 input: misc: pat9125: fix issues found in static analysis
Fix the following issues found in static analysis:
- missing blank lines after declarations
- unnecessary return in a void function
- exporting world writable files is usually an error
- block comments use * on subsequent and trailing lines
- Add DT binding description and vendor prefixe for the
driver.
- Add Linux Foundation copyright markings.

Change-Id: Id2ed9a6d4e31bd2acd3185bf7ef9c78f8a41cf36
Signed-off-by: Himanshu Aggarwal <haggarwa@codeaurora.org>
Signed-off-by: Vevek Venkatesan <vevekv@codeaurora.org>
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2016-10-09 23:21:05 -07:00
Lawrence Liao
4e09168fe6 This is the reference driver source code for Pixart OTS PAT9125.
Change-Id: Ie366894e9e89707fa2950a7ffbfe4e93059a19a3
Signed-off-by: Lawrence Liao <lawrence_liao@pixart.com>
(cherry picked from commit dfc4349a8aa02bb0b7b0639ad5368a5c85f6520f)
Git-commit: dfc4349a8aa02bb0b7b0639ad5368a5c85f6520f
Git-repo: https://github.com/PixartOpen/pixart-sensor-db810-linux-driver
[shjain@codeaurora.org: removed below listed files from original
commit as they are not needed and to resolve trivial merge conflicts:
1. arch/arm/boot/dts/qcom/apq8094-dragonboard.dtsi
2. arch/arm/boot/dts/qcom/msm8994-pinctrl.dtsi
3. arch/arm/boot/dts/qcom/msm8994.dtsi
4. drivers/input/misc/Makefile
5. drivers/input/misc/ots_pat9125/Makefile
Remove the unused pieces of algorithm from the reference
driver of Pixart PAT9125 Rotating side button.]
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2016-10-10 11:48:08 +05:30
Se Wang (Patrick) Oh
448971ccea arm64: mm: Log the process id in the rtb
Store the process id in the register trace buffer.
This gives a general idea about what process was last
running when the RTB stopped.

Change-Id: Idcbd8db9eb451f2d732c935f00b6c50f9af3c592
Signed-off-by: Se Wang (Patrick) Oh <sewango@codeaurora.org>
2016-10-09 21:39:27 -07:00
Linux Build Service Account
6bbaf84de6 Merge "wil6210: initial support for FTM and AOA" 2016-10-09 21:17:55 -07:00
Linux Build Service Account
8463e7300c Merge "ARM: dts: msm: Add IMEM dload-type entry for MSM8996 and MSMCOBALT" 2016-10-09 21:17:53 -07:00
Linux Build Service Account
34b3dfc782 Merge "soc: qcom: handle wdsp glink state notifications" 2016-10-09 21:17:52 -07:00
Linux Build Service Account
7bc3eae82e Merge "regulator: correct name used in debug consumer regulator_get call" 2016-10-09 21:17:51 -07:00
Linux Build Service Account
31131180a1 Merge "genirq: Avoid race between cpu hot plug and irq_desc() allocation paths" 2016-10-09 21:17:51 -07:00
Linux Build Service Account
132aa7560b Merge "ARM: dts: msm: Add icnss node for msmtriton" 2016-10-09 21:17:50 -07:00
Linux Build Service Account
62575a58aa Merge "ARM: dts: msm: Add icnss node for msmfalcon" 2016-10-09 21:17:49 -07:00
Linux Build Service Account
cd3b78c8ff Merge "ARM: dts: msm: add ion heaps for msmtriton" 2016-10-09 21:17:49 -07:00
Linux Build Service Account
8e23ae41f3 Merge "qcom-charger: update qc charger detection for PMICv2" 2016-10-09 21:17:46 -07:00
Abhimanyu Kapur
ddc2bf61b5 ARM: dts: msm: Add IMEM dload-type entry for MSM8996 and MSMCOBALT
Add IMEM dload-entry to support emmc dload feature
for msm8996 and msmcobalt SOCs.

CRs-Fixed: 993510
Change-Id: I0d26049817ce8d8172ee364b5d7a31ebdcb64194
Signed-off-by: Abhimanyu Kapur <abhimany@codeaurora.org>
2016-10-09 20:22:00 -07:00
Walter Yang
3b29155a55 ASoC: msm: create backend dailink for wcd934x MAD
To support ADSP SVA on wcd934x, dedicated backend dailink needs
to be created. Add the dailink associating the specific cpu dai
and the MAD codec dai.

CRs-Fixed: 1070327
Change-Id: I4152d81e4e951216a8ecdd93562eb1740dbb962c
Signed-off-by: Walter Yang <yandongy@codeaurora.org>
2016-10-09 19:43:51 -07:00
Olav Haugan
2508d92091 defconfig: msmcortex: Enable early random driver
Stack canary relies on getting early random values. However, the
software random number generator is initialized relatively late in the
boot process making the stack canary very predictable.

Enable the hardware supported random number generator until
the software number generator is enabled later in boot.

Change-Id: I01dc0cc0d0fc734dbf1166d88d97bcc5102788bb
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
2016-10-09 14:30:01 -07:00
Laura Abbott
e710a23320 init: Move stack canary initialization after setup_arch
Stack canary initialization involves getting a random number.
Getting this random number may involve accessing caches or other
architectural specific features which are not available until
after the architecture is setup. Move the stack canary initialization
later to accommodate this.

Change-Id: I00b564a2c3172229a44339c061fa380c17fe7d8e
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
[ohaugan@codeaurora.org: Fix trivial merge conflict]
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
2016-10-09 14:29:49 -07:00
Deepak Katragadda
e8fcec43cb clk: msm: clock-osm: Update droop timers
Update the droop timer settings for OSM on MSMCOBALT.

Change-Id: I9398a81738a778dfae5282ef6809a8c2174bd589
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
2016-10-09 13:56:42 -07:00
Ajay Singh Parmar
a03fd4699a msm: mdss: edid: parse dtd and proper fps and pclk check
Parse the Detailed Timing Descriptors of both EDID blocks for
resolutions. Check if the resolution is already added in local
data base. Also, add tolerance to fps and pclk variations for
a give resolution so that EDID parser can capture all the
resolutions correctly as published by the sink's EDID.

Change-Id: I113988eb21f82eef022723c421b1c1c9d4dead9f
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
2016-10-08 23:12:30 -07:00
Linux Build Service Account
34b975e502 Merge "ARM: dts: msm: Update DCVS table for msmcobalt v2" 2016-10-08 18:29:38 -07:00
Linux Build Service Account
89fd48e0ae Merge "msm: vidc: Keep v4l2 plane count instance-specific" 2016-10-08 18:29:36 -07:00
Laura Abbott
621b81b8f3 qcom: Update early random APIs to scmv8
The scm APIs need an update for v8. Update accordingly.

Change-Id: Ia848af5bafe2337718fffdd87cd6436eb0133ece
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
2016-10-08 10:43:21 -07:00
Laura Abbott
ed1a203f6f soc: qcom: Add better support for early random numbers
The existing support for generating random numbers relied on
a hacked up version of CONFIG_ARCH_RANDOM and was prone to
scheduling while atomic bugs due to needing to take a mutex.
We don't actually need the additional randomness all the time,
the pool just needs to be initialized with some amount of random
data to avoid getting the same result each time. Switch to
this method for initializing the random pool.

Change-Id: I804ec7556cbd18ff2d9869a03069fda1dd519a79
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
[ohaugan@codeaurora.org: Fixed trivial merge conflicts]
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
2016-10-08 10:43:21 -07:00
Laura Abbott
fb25c8b683 msm: implement ARCH_RANDOM
Currently, the software random number generator is not initialized
until relatively late in the boot process. Software that relies on
random numbers early will not be reliable. Entropy sources are
available early but not early enough for some use cases which means
that moving the software random number generation earlier is not an
option. As an alternate solution, implement the functions associated
with CONFIG_ARCH_RANDOM. These functions currently make a call into
trustzone to get reliable random numbers. The functions are disabled
once the regular random number generator is sufficiently reliable.

Change-Id: If40cfcb96b091fa26a28047c10a902287b26f6c1
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
[ohaugan@codeaurora.org: Dropped Makefile from patch set]
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
2016-10-08 10:43:20 -07:00
Linux Build Service Account
5f659ecb42 Merge "icnss: Wait uninterruptible for unregister driver" 2016-10-08 06:35:54 -07:00
Linux Build Service Account
062b309db9 Merge "icnss: Prevent suspend while processing events" 2016-10-08 06:35:53 -07:00
Linux Build Service Account
3ffe336b5e Merge "msm: vidc: Selectively handle SYS_ERROR as FATAL" 2016-10-07 22:15:44 -07:00
Linux Build Service Account
dc9ba857fb Merge "msm: sde: Reject 0 size image for SDE rotator" 2016-10-07 22:15:43 -07:00
Linux Build Service Account
7685c7eae7 Merge "msm: kgsl: Get GPU snapshot if wait for global timestamp timeout" 2016-10-07 22:15:42 -07:00
Linux Build Service Account
49042f0e43 Merge "icnss: Provide API to check QMI support" 2016-10-07 22:15:42 -07:00
Linux Build Service Account
4eff38d585 Merge "msm: kgsl: Disable UCHE global filter" 2016-10-07 22:15:41 -07:00
Linux Build Service Account
5b3cec6473 Merge "usb: host: Flush hub workqueue before stopping controller" 2016-10-07 22:15:40 -07:00
Linux Build Service Account
eb3e44cc3f Merge "qpnp-smb2: smb-lib: add charge_done property" 2016-10-07 22:15:39 -07:00
Linux Build Service Account
8e2bd84fbe Merge "ARM: dts: msm: Add support to read FAB ID for PMICOBALT" 2016-10-07 22:15:37 -07:00
Linux Build Service Account
cd4a503c83 Merge "soc:qcom: common_log: change PMIC dump size from 4k to 64k" 2016-10-07 22:15:36 -07:00
Linux Build Service Account
c68dd38b5e Merge "power: reset: Skip emmc_dload sysfs entry creation" 2016-10-07 22:15:34 -07:00
Linux Build Service Account
b08e398913 Merge "msm: rpm-smd-debug: Remove unwanted pr_info" 2016-10-07 22:15:33 -07:00
Vidyakumar Athota
763a423ad5 soc: qcom: handle wdsp glink state notifications
When WDSP has crashed, G-link link state is updated with
GLINK_LINK_STATE_DOWN and remote side channels are closed.
Handle the link state down notification from G-link and
close the channels from local side when remote disconnect
channel event occurs.

Change-Id: Id956256fbb3ea6b18a3685a34dcd1f9b16e71e92
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2016-10-07 17:19:29 -07:00
Praneeth Paladugu
58ec831e44 msm: vidc: Don't print message queues in error cases
While flushing debug queues, avoid touching message queues.
Bleeding message queues here can discard FW responses and
forward threads may timeout by not receiving them. This can
cause confusion about timeouts. Hence don't touch message
queues unless you process and send them to forward thread.

CRs-Fixed: 1066658
Change-Id: I7a5a89c32dc4b1284895d01202dcfdd8a90ccda0
Signed-off-by: Praneeth Paladugu <ppaladug@codeaurora.org>
2016-10-07 15:19:03 -07:00
Ping Li
ceb0faf9e3 msm: mdss: Update memory retention and periph control setting
Previously memory retention and preiph control are only set when
device enters/exits idle power collapse mode. The memory retention
and periph setting will remain ON when device is actually in
suspend state, which will cause unnecessary power consumption.
This change updates those setting for both idle power collapse cases
and suspend/resume case. With this change, the memory retention and
periph will be set to OFF in suspend case to optimize power consumption.

Change-Id: I1598dbc97cb9d02b946de5c9803a49d923c7edc1
Signed-off-by: Ping Li <pingli@codeaurora.org>
2016-10-07 15:13:44 -07:00
Jing Zhou
9e660ab8bc msm: camera: AV timer support for HAL3
When VT is enabled, Propagate AV timer timestamp as part of SOF

CRs-fixed: 1039601
Change-Id: Ic6bed924911a6db27e84b10921f6c6b400f1c8fb
Signed-off-by: Nagesh Subba Reddy <nageshsreddy@codeaurora.org>
Signed-off-by: Harsh Shah <harshs@codeaurora.org>
Signed-off-by: Jing Zhou <jzhou70@codeaurora.org>
2016-10-07 15:11:25 -07:00
Oleg Perelet
7ef8974606 msm: kgsl: Remove GPU BCL and LMH support
a540 hardware does not support BCL and LMH after all.

CRs-Fixed: 1075694
Change-Id: I09808145d20ded63b5043cae6510429560cb599e
Signed-off-by: Oleg Perelet <operelet@codeaurora.org>
2016-10-07 14:45:26 -07:00
Sunil Paidimarri
38b227b0c2 msm: ipa: Add guard around nat entries read
Add mutext lock protection around nat read
functino in debugfs to avoid nat table delete
during read.

Change-Id: Id38737dad70853ccd83685841d0c2498ee722ff2
CRs-Fixed: 1075605
Signed-off-by: Sunil Paidimarri <hisunil@codeaurora.org>
2016-10-07 14:36:02 -07:00
Abhijit Kulkarni
1b7f1d14dc msm: mdss: lock mutex before setting backlight
Backlight set function call should be protected by mutex
as this call could be called from different threads.

CRs-Fixed: 1074738
Change-Id: Ie7f8cee59b90f16f8a844d618a6f903b3e3c2f27
Signed-off-by: Abhijit Kulkarni <kabhijit@codeaurora.org>
2016-10-07 14:02:48 -07:00
David Collins
7ff3a4cc82 regulator: correct name used in debug consumer regulator_get call
Call rdev_get_name() to obtain the name to use in the debug
consumer's regulator_get() call so that the debug consumer finds
the correct regulator when the name differs in the constraints
and desc structs.

Change-Id: Id6a47467cd118c89c8f58d1120381d4c64f8efee
CRs-Fixed: 1075693
Signed-off-by: David Collins <collinsd@codeaurora.org>
2016-10-07 13:59:18 -07:00
Siddartha Mohanadoss
0b3b8868b2 ARM: dts: msm: Add revid phandle to read FAB ID
Temperature compensation is needed for charger die
temperature. Offset and slope coefficients are applied
based on the FAB ID read from the REVID peripheral.

Change-Id: I8516a8109b8c9316dafbd547635d4c97bd50be0c
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
2016-10-07 13:36:33 -07:00