Commit graph

575194 commits

Author SHA1 Message Date
Linux Build Service Account
4ab368becd Merge "usb: gadget: gsi: Kick state machine with MESSAGE_PACKET_FILTER for RNDIS" 2016-09-15 22:51:48 -07:00
Linux Build Service Account
27332002f8 Merge "sound: usb: Send explicit device disconnect to clients" 2016-09-15 22:51:48 -07:00
Sudheer Papothi
865796aea8 ASoC: wcd9335: Add ANC support on speaker path
On msmcobalt reference platform, earpiece path is not connected
to receiver, instead speaker path is used as receiver. So handset
AANC(Adaptive Active Noise cancellation) needs to be supported
on speaker path. Change enables ANC support on speaker path.

Change-Id: I8104994adc30810085cce73662f5abd5e15106ad
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2016-09-15 22:20:30 -07:00
Vidyakumar Athota
fd2b9f1daf ASoC: wcd934x: add handset speaker gain mixer control
In msmcobalt platform, speaker path is used for handset mode also.
Add the mixer control to change gain in handset mode.

Change-Id: Ia291f7449cd04a855102a03324f7cdcb6f13dad0
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2016-09-15 22:09:15 -07:00
Meng Wang
35b034ff27 ASoC: audio-ext-clk: avoid multiple initialization of pinctrl_info
Dynamic detection between wcd9335 and wcd934x codecs is supported on
msmcobalt. Probe sequence of the two codec drivers can occur in any
order. MCLK initialization is common for the two codecs which gets
called twice. Avoid wcd934x codec's probe sequence from resetting
wcd9335 codec's native mclk pinctrl if the pinctrl is already
initialized.

CRs-Fixed: 1066167
Change-Id: Idf65e15e08bb856d65b992b996cffa6ef2e6f974
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2016-09-15 20:49:30 -07:00
Bingzhe Cai
45e3baf40b input: touchscreen: pull down reset and interrupt pin before GT9xx powerup
According to vendor's suggestion, reset pin and interrupt pin must be
pulled down before touchpanel controller power up. This is required
for all Goodix devices.

Change-Id: If16fab02967abbd0c2a6e4365fed76f9e8729bc2
Signed-off-by: Bingzhe Cai <bingzhec@codeaurora.org>
2016-09-15 20:49:04 -07:00
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
Chandan Uddaraju
9c6708d402 ARM: dts: msm: fix low FPS issue on Sharp FHD panel
For Sharp FHD panel, every alternate frame
is skipped since the vsync is exactly aligned to
the frame boundary and there is no additional
buffer time that is needed for configuration
and kickoff. To fix this, run the DSI pixel
clock at a higher rate to reduce the transfer time.

Change-Id: I8443f450b6b0c0b2b66592bbb55b167221d2f342
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
Signed-off-by: Ingrid Gallardo <ingridg@codeaurora.org>
2016-09-14 18:15:48 -07:00
Benjamin Chan
d3d91d38da msm: mdss: Correct DSC panel dimension when dest-scaler enabled
When destination scaler is enabled, DSC panel dimension should base on
the scaler destination dimension, and not using the mixer output
dimension. Also move DSC dimension validation after destination scaler
setting applied successfully.

CRs-Fixed: 1065274
Change-Id: Iee328c847ffc16154e78682515454be6a61b35b4
Signed-off-by: Benjamin Chan <bkchan@codeaurora.org>
2016-09-14 17:54:56 -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