Commit graph

575134 commits

Author SHA1 Message Date
Shantanu Jain
b3ba6ab788 input: touchscreen: Add devm_kzalloc calls to goodix driver
Change the kzalloc calls to devm_kzalloc calls to
avoid explicit kfree calls. Remove redundant kfree calls
to avoid double free. Fix error check path on devm_kzalloc
return values. Also remove redundant goto labels.

Change-Id: I62f0ff800318882067bc0f16b021cb344e340ecf
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
Signed-off-by: Sudhakar Manapati <smanap@codeaurora.org>
2016-09-15 20:48:52 -07:00
Shantanu Jain
452a316d0b input: touchscreen: Clean initialising linux kernel code
Use designated initializer code in gt9xx_update.c and
goodix_tool.c Goodix drivers.

Change-Id: Idc5b45c09813486c926ce52b2d41e81df526219b
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2016-09-15 20:48:36 -07:00
Shantanu Jain
65d8af3092 input: touchscreen: Use macros for magic numbers in Goodix drivers
Use macros instead of  magic numbers for maximum i2c retries in
Goodix driver.

Change-Id: I9f7da9f43418cd1d423aaf331f41d37d13f248d4
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2016-09-15 20:48:28 -07:00
Meng Wang
26b1f0d337 ASoc: wcd934x: correct High-Z mode for dmic pins
Update the DMIC CLK and DATA registers to use the correct
settings required for DMIC High-Z on wcd934x. Registers
should be set to 0x6 for Slimbus mode and 0xD for I2C mode.

CRs-Fixed: 1059712
Change-Id: Ibe8ca2e40ee56708e8c84c174d12ce5841e6b1ce
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2016-09-15 18:22:11 -07:00
Mayank Rana
427369cd5f Revert "usb: gsi: Queue control notification on gsi_resume"
This reverts commit <fae741edccb> ("usb: gsi: Queue control
notification on gsi_resume") as expected notification is not
queued resulting into mismatch of QMI transaction packet.

CRs-Fixed: 1067006
Change-Id: I4abdd79699d47054e268978aae9199f1d5d1ddcb
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2016-09-15 17:54:44 -07:00
Shashank Mittal
4a76273947 coresight-tmc: save TMC registers during abort
TMC abort needs to save TMC registers so that TMC data can be extracted
from device crash dumps.

Change-Id: I4339e84dc62e589e0f4d341e8143b1cd94a9cbe2
Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
2016-09-15 16:45:02 -07:00
Sunil Paidimarri
7bd2a476f7 msm: ipa: Allocate memory on send message
On client pushing message, allocate memory for event
data and copy before pushing to clients. This is to
avoid crash if client goes away before freeing the
memory.

Change-Id: Icff40d68d9b60617e8e3eb006eb697194b4e61f6
CRs-Fixed: 1065499
Signed-off-by: Sunil Paidimarri <hisunil@codeaurora.org>
2016-09-15 16:38:56 -07:00
Vidyakumar Athota
b1c1140108 drivers: mfd: set IIR and ANC registers as volatile
IIR and ANC registers are not cacheable so add them to
volatile register list.

Change-Id: I99e45021ca90138b73aebe1f13a6af0f42c58227
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2016-09-15 14:05:29 -07:00
Vidyakumar Athota
37e939f466 ASoC: wcd934x: add adaptive ANC support
WCD934X codec supports adaptive ANC(Active noise cancellation)
on ear and speaker path. Add the required changes to support
this feature.

Change-Id: I2a069fc208b080c1251f7aa473ae75ad02e883c8
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2016-09-15 14:04:13 -07:00
Zhen Kong
028ed55749 defconfig: arm64: msmcortex: enable MSM_TZ_LOG for msmcobalt
Enable TZlog driver in msmcortex-perf_defconfig to
collect TZ log for msmcobalt

Change-Id: I9cebd73d2165af47fb15a5916753365b4b7562bc
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
2016-09-15 13:10:22 -07:00
Zhen Kong
12f9041489 qseecom: Change whitelist_support flag to false if TZ failed to check
The whitelist status is set default as true though TZ failed to check,
which in turn causing the send_command fail by passing whitelist commnd id.
So updating the support status flag to false when TZ fails to check.

Change-Id: I78a7600506b4d2457bb1c38f8a39888a9cf9467c
Signed-off-by: Mallikarjuna Reddy Amireddy <mamire@codeaurora.org>
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
2016-09-15 10:49:14 -07:00
Yeleswarapu Nagaradhesh
d2fa003e12 ASoC: wcd934x: update TX modes
Update codec TX modes for Analog microphone.

CRs-Fixed: 1066331
Change-Id: I19d38a63805e69d53ebd6fda48b094315133a6aa
Signed-off-by: Yeleswarapu Nagaradhesh <nagaradh@codeaurora.org>
2016-09-15 09:10:52 -07:00
Yeleswarapu Nagaradhesh
ea965ee6e8 ASoC: wcd934x: add support for HPH modes
Headphones support classH and classAB. Add support for
hifi, lowhifi, low power and ultra low power modes for classH.
Support hifi and lowhifi power modes for classAB.

CRs-Fixed: 1066331
Change-Id: I846f9704a5bf800583682f8dc2ec385a0ec64c61
Signed-off-by: Yeleswarapu Nagaradhesh <nagaradh@codeaurora.org>
2016-09-15 09:10:24 -07:00
Yeleswarapu Nagaradhesh
971aeb6add ASoC: wcd: modify tasha version check macros
TASHA_IS_1_1 macro checks only for version number.
This macro returns true for tavil codec. So modify
tasha macros to check for codec and version.

CRs-Fixed: 1066331
Change-Id: I5240e0ee888187a8185974ea288ce2cad62bd776
Signed-off-by: Yeleswarapu Nagaradhesh <nagaradh@codeaurora.org>
2016-09-15 09:10:08 -07:00
Mayank Rana
b23d321b0a usb: gadget: gsi: Kick state machine with MESSAGE_PACKET_FILTER for RNDIS
commit <5b42bd749e8c> ("usb: gadget: gsi: Optimize TRB's buffer
allocation functionality") is kicking ipa_work_handler state
machine as part of set_alt() for RNDIS function which results
into giving max_xfer_size_bytes_to_host value as zero as
RNDIS_INIT_MSG from host may not have received here. This results
into low throughput due to device is sending more than accepted
aggregated bytes as part of one USB transfer to host. Fix this
issue by delaying RNDIS IPA initialization till MESSAGE_PACKET_FILTER
is received from host which makes sure that proper aggregation
parameters are passed to IPA driver to configure hardware
accerlerated path.

For non-rndis tethered interface, ipa_usb_notify_cb() posts EVT_CONNECTED
to enable IPA GSI data path (i.e. calling ipa_data_path_enable() API).

CRs-Fixed: 1065003
Change-Id: I4ce62745c82b4488cb1370248ab64951497493cd
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2016-09-15 08:55:40 -07:00
Linux Build Service Account
d2afad6a90 Merge "ext4 crypto: enable HW based encryption with ICE" 2016-09-15 07:33:11 -07:00
Linux Build Service Account
893e744eac Merge "ARM: dts: msm: Update the GDSCs for MSMfalcon" 2016-09-15 07:33:10 -07:00
Linux Build Service Account
5c84417703 Merge "ASoC: msm: Create the codec entry for wcd934x codec" 2016-09-15 07:33:09 -07:00
Linux Build Service Account
ab41a65b08 Merge "ASoC: msm: qdsp6v2: Enable support for multichannel tunnel USB" 2016-09-15 07:33:08 -07:00
Linux Build Service Account
444860e890 Merge "ASoC: wcd934x: Add API to enable standalone micbias" 2016-09-15 07:33:07 -07:00
Linux Build Service Account
b3253a1a3a Merge "msm: kgsl: Use A540 zap shader for msmcobalt" 2016-09-15 07:33:05 -07:00
Linux Build Service Account
e643ee5a1b Merge "regulator: core: Fix nested locking of supplies" 2016-09-15 07:33:05 -07:00
Linux Build Service Account
d2477562f0 Merge "qcom-charger: smb2: Only change wipower watts if defined in dtsi" 2016-09-15 07:33:04 -07:00
Linux Build Service Account
51cabc942b Merge "soc: qcom: glink: Fix list corruption for tx_info" 2016-09-15 07:33:03 -07:00
Linux Build Service Account
91aec55a16 Merge "msm: kgsl: Add WQ_SYSFS to the worker threads" 2016-09-15 07:33:02 -07:00
Linux Build Service Account
7ad50395d8 Merge "defconfig: enable spss-utils driver for msmcobalt" 2016-09-15 07:33:00 -07:00
Linux Build Service Account
5aa936716e Merge "ASoC: wcd934x: Add support for HPH idle detection" 2016-09-15 07:32:59 -07:00
Linux Build Service Account
f575e16488 Merge "msm: sps: Avoid pipe disconnect while IRQ is in progress and viceversa" 2016-09-15 07:32:59 -07:00
Linux Build Service Account
1da961163d Merge "scsi: ufs: Add support for reset controller framework" 2016-09-15 07:32:58 -07:00
Linux Build Service Account
01915cb32a Merge "input: it7258_ts_i2c: rename regulator_set_optimum_mode function" 2016-09-15 07:32:57 -07:00
Linux Build Service Account
975309a2a9 Merge "ARM: dts: msm: Add SPS node for msmtriton" 2016-09-15 07:32:56 -07:00
Linux Build Service Account
08725d1775 Merge "input: touchscreen: Correct return value check in Goodix driver" 2016-09-15 07:32:53 -07:00
Linux Build Service Account
0912959250 Merge "input: touchscreen: Clean code for i2c_read and i2c_write" 2016-09-15 07:32:52 -07:00
Linux Build Service Account
0df70d17dd Merge "input: touchscreen: Use proper conventional functions for debug" 2016-09-15 07:32:51 -07:00
David Keitel
17c9994611 ARM: dts: msm: enable bwmon4 for cpubw monitor for msmcobalt
Add the qcom,hw-timer-hz property and enable qcom,bimc-bwmon4
device for msmcobalt to be able to use the BWMON2 hardware
instead of the legacy BWMON hardware.

Change-Id: I1d1c2e5d2fcf705d8ffd527ec7434d90cc004834
Signed-off-by: David Keitel <dkeitel@codeaurora.org>
2016-09-15 06:58:10 -07:00
Laxminath Kasam
e99fdc1340 ASoC: wcd9335: reduce speaker teardown latency
In tasha codec, speaker teardown latency is high.
Acquire clock gear for complete teardown sequence
to improve latency.

CRs-Fixed: 1065561
Change-Id: I7db756e363cb66d22eb5d516e6e512e89e26e6a3
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2016-09-15 13:17:25 +05:30
Andrey Markovytch
a8059e6d39 ext4 crypto: enable HW based encryption with ICE
Numerous changes were introduced to various layers:
Block: removed dependency on selinux module for decision on bio merge
EXT4: Added feature controlled support for HW encryption
PFK: Major re-factoring, separation to eCryptfs and EXT4 sub-layers

Change-Id: I9256c8736e1c16175fe3f94733dda430ccc57980
Signed-off-by: Andrey Markovytch <andreym@codeaurora.org>
2016-09-15 00:36:43 -07:00
Bingzhe Cai
04d9861b14 input: touchscreen: add multiple config data support for GT9xx
Goodix GT9xx touchscreen driver supports up to six groups of config
data and uses hardware GPIO configuration to select which one will
be used. This change allows these six config groups to be loaded
from devicetree.

Change-Id: I9dfd698e7084164688dd964ed914d5eecc75ecd3
Signed-off-by: Bingzhe Cai <bingzhec@codeaurora.org>
Signed-off-by: Sudhakar Manapati <smanap@codeaurora.org>
2016-09-15 12:19:17 +05:30
Taniya Das
32a3f7a216 ARM: dts: msm: Update the GDSCs for MSMfalcon
Remove the GDSC not present in msmfalcon and also remove few clocks which
are not required to be controlled from GDSC driver.

Change-Id: I284197693722912919c59ec26cfae5e382da787b
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-09-15 11:10:31 +05:30
Subbaraman Narayanamurthy
1837b2b41c power: fg-memif: Clear retry_once flag in IMA read
If the beat counts doesn't match during a SRAM read over IMA,
a retry is attempted using retry_once flag. This flag is not
cleared causing a continuous loop even if the beat counts match
again. Fix it.

CRs-Fixed: 1067180
Change-Id: Ie140740ce0374808a630a37d29888b646baa576f
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-09-14 19:35:27 -07:00
Harshdeep Dhatt
85c1f18f8b msm: kgsl: Use A540 zap shader for msmcobalt
Update adreno-gpulist so that msmcobalt GPU uses A540 zap shader.

Change-Id: Ieac8951840f3313bca927f92207318d29c3f8161
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
2016-09-14 16:17:24 -07:00
Lokesh Batra
e613a60ace ARM: dts: msm: Use a540_zap for msmcobalt
Update the zap shader name in msmcobalt GPU DTSI. msmcobalt
uses a540_zap.

CRs-Fixed: 1065444
Change-Id: I4093ccb753da45d04620e2af032034518da2d83b
Signed-off-by: Lokesh Batra <lbatra@codeaurora.org>
2016-09-14 16:16:52 -07:00
Rohit Gupta
e549f7bdb0 PM / devfreq: bimc-bwmon: Add support for version 4
The version 4 of the BIMC BWMON hardware now has provisions for
counting bytes transferred at a high sampling rate.

Modify the existing driver and governor algorithm to
take advantage of that.

Change-Id: I5080297aef7e310d5c1a19098c177ddecb729c25
Signed-off-by: Rohit Gupta <rohgup@codeaurora.org>
Signed-off-by: David Keitel <dkeitel@codeaurora.org>
2016-09-14 15:46:48 -07:00
Karthikeyan Ramasubramanian
2dfd041679 soc: qcom: ipc_router_glink_xprt: Add larger size receive intents
Currently IPC Router does not queue larger size intents by default. It
also does not re-use larger size intents once queued. This causes some
performance impact for larger size message exchange.

Add limited number of larger size receive intents on demand and
re-use them.

CRs-Fixed: 1066173
Change-Id: I8b1ff2af7db2ca13671e31a9bce05329346bda10
Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
2016-09-14 15:00:13 -06:00
Shashank Mittal
17721d5a95 Revert "defconfig: msm: enable common log for msmcobalt"
This reverts commit 49fcea4ca0b6 ("defconfig: msm: enable common log for
msmcobalt")

Scam dump allocation is moved to watchdog driver so common log driver is
not required for perf defconfig.

Change-Id: I7c189e3e4182348c05b5e9573c9039a04c70bf62
Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
2016-09-14 13:31:01 -07:00
Liam Mark
b8bfe5bcc1 iommu: msm: use list_for_each_entry_safe for deletion
Use list_for_each_entry_safe to safely delete mappings while
iterating over the mappings list.

CRs-Fixed: 1067012
Change-Id: I5326ee8e58d291b1d9b07649b87632d7e9102e0d
Signed-off-by: Liam Mark <lmark@codeaurora.org>
2016-09-14 13:13:27 -07:00
Shashank Mittal
5804a1f6b6 ARM: dts: msm: enable scan dump for msmcobalt
Add support to allocate memory for scan dumps for msmcobalt.
This memory can be used to save CPU scan dumps at the time of
a crash.

Change-Id: I325bc1cb97b5a1ef2c00374b00d967e258a90a48
Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
2016-09-14 11:10:51 -07:00
Shashank Mittal
0c6d3141a3 soc: qcom: move scan dump memory allocation
Allocate memory for scan dump collection along with CPU context
allocation.
This will help in debugging crashes very early during boot up.

Change-Id: Icbb2a60683ecca303cbd48576d80d0a765610c8f
Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
2016-09-14 11:07:00 -07:00
Sivanesan Rajapupathi
61ef7e42ca crypto: msm: qce50: DMA-API buffers limitations
Not all memory are DMA'able. See DMA-API-HOWTO.txt. The dummy hash
request input buffer is changed to be acquired from coherent memory
to kzalloc().

Change-Id: If6961217df08bcf0506eedacb07874dfafd7c1ca
CRs-Fixed: 1064055
Acked-by: Che-Min Hsieh <cheminh@qti.qualcomm.com>
Signed-off-by: Sivanesan Rajapupathi <srajap@codeaurora.org>
2016-09-14 10:50:12 -07:00
Dhoat Harpal
9026b491f3 soc: qcom: glink: Fix list corruption for tx_info
Inside glink_scheduler_tx tx_info is not validated after tx operation
and taking spin lock, since there are two functions which can release
the reference for tx_info while glink_scheduler_tx thread is preempted.
These functions are ch_purge_intent_lists and
ch_remove_tx_pending_remote_done.

Validate tx_info from tx_active list after tx operation and taking
spin lock.

CRs-Fixed: 1061565
Change-Id: I80c64d66625b9fe9205e8ffaa7cfc851e06fcb94
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
2016-09-14 17:02:45 +05:30