Commit graph

578456 commits

Author SHA1 Message Date
Linux Build Service Account
fdc9a3b7d5 Merge "ASoC: wcd9335: Add dapm ignore suspend for codec dai" 2016-11-25 17:47:03 -08:00
Linux Build Service Account
ef8f297dee Merge "ASoc: msm: qdsp6v2: Add support for compress capture" 2016-11-25 17:47:02 -08:00
Linux Build Service Account
308d5348fe Merge "include: clock: Add audio external clock of_index extries" 2016-11-25 17:47:01 -08:00
Linux Build Service Account
6392d4ee36 Merge "msm: mdss: fix to handle multi-rect configuration in error cases" 2016-11-25 17:46:59 -08:00
Linux Build Service Account
4df93480e8 Merge "msm: crypto: fix issues on digest buf and copy_from_user in qcedev.c" 2016-11-25 17:46:58 -08:00
Linux Build Service Account
2eeb169184 Merge "Revert "msm: kgsl: Enable limits management on A540v2"" 2016-11-25 17:46:57 -08:00
Linux Build Service Account
2d8b206407 Merge "smb-lib: fix null ptr access while handling src change interrupt" 2016-11-25 17:46:56 -08:00
Linux Build Service Account
c7690d6901 Merge "msm: mdss: refine the calculation of tmds clock rate" 2016-11-25 17:46:54 -08:00
Linux Build Service Account
86dffc4e82 Merge "msm: camera: Enable secure camera feature" 2016-11-25 17:46:53 -08:00
Linux Build Service Account
0ed6e29b91 Merge "soc: qcom: socinfo: Change offset of image OEM attribute" 2016-11-25 17:46:52 -08:00
Linux Build Service Account
1095ce72f4 Merge "qpnp-smb2: force UFP mode before shutdown" 2016-11-25 17:46:51 -08:00
Linux Build Service Account
24f3e90971 Merge "qpnp-smb2: add support to configure auto recharge" 2016-11-25 17:46:50 -08:00
Linux Build Service Account
2488b7eb05 Merge "qcom: scm: remove printing input arguments" 2016-11-25 08:32:36 -08:00
Linux Build Service Account
22f8318fcc Merge "audit: fix a double fetch in audit_log_single_execve_arg()" 2016-11-25 08:32:35 -08:00
Benjamin Chan
5ddbf6aedc msm: mdss: Fix disabling destination scalar using 4K panel
4K panel uses split control path setup, so there is no need to correct
the panel width when updating the mixer width resolution during
destination scalar disabling.

CRs-Fixed: 1093549
Change-Id: I064987534124e025abaccec05ab70acf93538bce
Signed-off-by: Benjamin Chan <bkchan@codeaurora.org>
2016-11-25 07:46:57 -08:00
Swetha Chikkaboraiah
394c5c6ca0 qcom: scm: remove printing input arguments
scm_call2 is printing the input arguments if TZ ret value is  < 0
leading to information leak. Remove printing input arguments.

Change-Id: I21dd6d83fa979aed2c79ebb2c9c8de63a247dded
CRs-Fixed: 1076407
Signed-off-by: Swetha Chikkaboraiah <schikk@codeaurora.org>
Signed-off-by: Paresh Purabhiya <ppurab@codeaurora.org>
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
2016-11-25 04:10:25 -08:00
Ray Zhang
a360fc2d1d clk: msm: hdmi: correct the precision when calculating HDMI PLL
In existing HDMI PLL driver the VCO frequency value is truncated
so following PLL calculation could be impacted. Use 64 bit value
instead to maintain the necessary precision.

CRs-Fixed: 1086894
Change-Id: Iec3f65942dd152b0b7aa32af1a90039fff06cb34
Signed-off-by: Ray Zhang <rayz@codeaurora.org>
2016-11-25 17:16:45 +08:00
King Li
642cb61f18 ARM: dts: msm: Add VADC_HC and BTM channels for QVR8998
Clients of VADC_HC and BTM include reading voltage phone
power, system thermistors for thermal mitigation such as
msm_therm, case_therm, XO therm. Add the supported VADC
and BTM channels for the msm8998-qrd-vr1 platforms.

CRs-Fixed: 1090542
Change-Id: I4cda24b1be20310f54ceba1297f424ede1c5d889
Signed-off-by: King Li <kjli@codeaurora.org>
2016-11-25 01:11:04 -08:00
King Li
9a0bc03c52 ARM: dts: msm: Add VADC_HC and BTM channels for QRD8998 SKUK
Clients of VADC_HC and BTM include reading voltage phone
power, system thermistors for thermal mitigation such as
msm_therm, case_therm, XO therm. Add the supported VADC
and BTM channels for the msm8998-qrd-skuk platforms.

CRs-Fixed: 1090579
Signed-off-by: King Li <kjli@codeaurora.org>
Change-Id: I7b7c0ec59e9a3ce8a3526bdc8eb7359a0c98ccd7
2016-11-25 01:08:14 -08:00
Ray Zhang
83c88144ae clk: msm: hdmi: add support for live programming of HDMI PLL
Clock recovery and dynamic resolution change require changing
HDMI clock rate while HDMI PLL is on. There are two paths while
clock is changed, one is atomic update which doesn't require
PLL tear down, the other is when clock rate change is too big
and a full PLL tear down is needed.

CRs-Fixed: 1086894
Change-Id: Ia202e0aee09f506a7bbe4e13702f30dee119ce8e
Signed-off-by: Ray Zhang <rayz@codeaurora.org>
2016-11-25 17:06:47 +08:00
Linux Build Service Account
9a20006c20 Merge "soc: qcom: fix uninitialized references in gladiator_erp_v2" 2016-11-25 00:10:26 -08:00
Linux Build Service Account
c03c511346 Merge "ARM: dts: msm: Add support of IPA for falcon" 2016-11-25 00:10:25 -08:00
Neeraj Upadhyay
263f60e245 procfs: Update order of Ngid in /proc/PID/status
Addition of Ngid breaks some third party applications, which
are dependent on a particular order of fields. This change
moves the field to the end, to fix this issue.

Change-Id: Ifdc781aca49dcb535d5fa5005b85dc87604560dc
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
2016-11-24 23:35:06 -08:00
Vijayavardhan Vennapusa
e0d9b5dae9 USB: dwc3-msm: Fix issue related to error recovery for ERRATIC ERROR
If ERRATIC event irq is triggered by USB controller, it requires to perform
block reset USB controller as recovery mechanism as per SNPS data book.
Error recovery happens through allowing USB entering low power mode and
exit low power mode. We might see recovery failing as check for P3 state is
true as part of suspend and results in USB not entering low power mode.
Fix this issue by allowing USB enter low power mode in case of recovery
flag mdwc->in_restart set.

CRs-Fixed: 1060831
Change-Id: I41f935da3d4af1dd04eb4b3299e36a0f528633da
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2016-11-25 11:42:01 +05:30
Azhar Shaikh
2a1e72fbbc usb: dwc3-msm: Fix restart usb work functionality
Commit 18cd808986ba101d ("usb: dwc3-msm: Make power collapse
and power-on-reset mandatory") removed the device tree properties
for power-collapse due to which the dwc3_restart_usb_work() which
was supposed to do a full POR sequence by simulating a cable
disconnection-reconnection sequence now only does a dbm reset.
Fix this, so that dwc3_restart_usb_work(), does a full POR.

CRs-Fixed: 975249
Change-Id: Iaabe9283ec80954a2e504a55f2b4cdf93ca8ae46
Signed-off-by: Azhar Shaikh <azhars@codeaurora.org>
2016-11-24 22:04:48 -08:00
Vijayavardhan Vennapusa
e0a3a8b537 USB: dwc3-msm: clear in_restart flag always in restart work
Currenlty driver is clearing mdwc->inrestart flag only if vbus_active
is high only after making sure USB entered low power mode. There is a
chance cable is disconnected during execution of restart work and endup
not clearing mdwc->in_restart flag if disconnect happens. Hence fix this
by clearing mdwc->in_restart flag always irrespective of vbus_active set
or cleared.

Change-Id: I15fa1893c798946c7514bf8cb23773b5784e671e
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2016-11-25 11:25:35 +05:30
Anil Kumar Mamidala
625eb19435 qos: wake up cores based on the qos updated cpu mask
If the qos value is increased only for a subset of cpu's
aggregated qos for those cpu's is still the previous value.
This is because the qos request list is maintained per
request and not per cpu. In this case as there is no change
in aggregated qos value, these cpu's are not wokenup to
take the new qos value into effect.

So wakeup cpu's even if the aggregated qos value does not change
but the cpumask changes.

Change-Id: If5a4a100108e85e04beb77e5249bd6c452672edf
Signed-off-by: Anil Kumar Mamidala <amami@codeaurora.org>
2016-11-24 21:42:52 -08:00
Vijayavardhan Vennapusa
7da888fb9f ARM: dts: msm: Make required changes for msm8998-interposer
Add required changes for LDOs for msm8998-interposer-msmfalcon
for USB functionality to be working.

Change-Id: I121651a49ef27ba02f1960ed5c95baf93b00d1f5
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2016-11-25 10:53:07 +05:30
Vijayavardhan Vennapusa
b1aeba6864 ARM: dts: msm: Add USBPD PHY device node for msmfalcon
Add required USBPD PHY device node for msmfalcon for USB PD
functionality to be working.

Change-Id: I8cd2981f176e08c1ea4f8a9b7ff42887b590d941
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2016-11-25 10:48:06 +05:30
Dilip Gudlur
f9569c05cd soc: qcom: Turn off MSM_PERFORMANCE_HOTPLUG_ON by default
Core-ctl module by default, manages cpus instead of msm_performance
module. Set this config to allow msm_performance manage(hot-plug) cores
in the absence of core-ctl.

Change-Id: I02a1007edfc63ad2c2dd99616cb1a64432b08d13
Signed-off-by: Dilip Gudlur <dgudlur@codeaurora.org>
2016-11-24 18:21:05 -08:00
Meng Wang
cd2519b7dc ASoC: audio-ext-clk: add new audio ext clock
In common clock framework, API for registering clk
provider for a node is changed to of_clk_add_provider.
Add new audio ext clock file to use new API to register
audio clk provider.

Crs-Fixed: 1090500
Change-Id: I1d7ecc6a3d4c48d0de9645043d5e5bfdfa1d1f5f
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2016-11-25 09:20:12 +08:00
Lior David
a43a092282 wil6210: support FTM/AOA while unassociated
Prepare driver for FTM/AOA while unassociated.
1. Added attributes allowing user space to specify the frequency
where FTM/AOA peer is listening. When specified it will override
the entry in the kernel scan results cache. If not specified,
the kernel scan results cache will be used like today.
This gives user space location framework more flexibility - it
can maintain its own cache of peers, or perform scans less
often (since entries in the kernel scan results cache expire
quickly)
2. Remove associated check when starting FTM session, so session
can start even when unassociated.

Change-Id: Ib0ba52c506e1d8d59ab8c12043acd792405d69a0
CRs-Fixed: 1094147
Signed-off-by: Lior David <liord@codeaurora.org>
2016-11-24 23:57:16 +02:00
Linux Build Service Account
bee274711e Merge "clk: qcom: Add snapshot of OSM CPU clock driver" 2016-11-24 13:46:42 -08:00
Linux Build Service Account
00bfc5fe15 Merge "ARM: dts: msm: Add RTB support for msmtriton" 2016-11-24 13:46:38 -08:00
Linux Build Service Account
97679b802a Merge "ARM: dts: msm: Add mpm2-sleep-counter device for msmtriton" 2016-11-24 13:46:37 -08:00
Linux Build Service Account
2488cd08b4 Merge "arm: qcom: correct description for MSMTRITON and MSMFALCON" 2016-11-24 13:46:36 -08:00
Subhash Jadavani
00e8c4542a ARM: dts: msm: add UFS_RESET pin ctrl data for msm8998
This change adds the UFS_RESET pin ctrl data for UFS controller node.
This will enable UFS driver to issue reset to UFS device.

Change-Id: I61561fb7e395671d2bc52c6a9c0c71e0351114ea
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
2016-11-24 07:59:56 -08:00
Subhash Jadavani
0c82737188 scsi: ufs: add UFS device reset support
Some platforms may have a SOC pin/gpio connected to UFS device's
RST_n to allow the UFS device reset. This change adds support to
trigger device reset on such platforms.

Change-Id: Ie4faa47fb76837dba909f9a3d0dfe11bc69659e1
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
2016-11-24 07:55:03 -08:00
Subhash Jadavani
1f92a7048e pinctrl: qcom: add UFS_RESET pin data for msm8998
UFS_RESET is a single purpose output only pin which can be used
to send reset to connected UFS device. This change adds the
UFS_RESET pin data.

Change-Id: Iec5e70e3f57a8dd06c0ceda3a6e67e47e043f2d1
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
2016-11-24 07:53:45 -08:00
Venkat Gopalakrishnan
c1f300eab8 scsi: ufs: perform full reset at initialization
The phy initialization sequence assumes a POR state but
the bootloaders can leave PHY at an already initialized
state, hence there could potentially be issues with the
initialization from ufs driver. Perform a full reset to
start from a power on reset state. Also a reset is
required by the UFS hardware programming guide.

Change-Id: I0118b0d3013166aeec0bb0bc0ef181e48998e758
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
2016-11-24 07:50:23 -08:00
Venkat Gopalakrishnan
6a714c1bf8 scsi: ufs-qcom: update delay between assert/deassert in full reset
The hardware requirement for delay between assert/deassert
is at least 3-4 sleep clock (32.7KHz) cycles, which comes to
~125us (4/32768). To be on the safe side add 200us delay.

Change-Id: Ib9d27fe7bbf6107b1249b3719f63efdbff4b3795
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
2016-11-24 07:49:32 -08:00
Arun Kumar Dasari
07c5d36ead misc: qcom: qdsp6v2: register ioctl calls for g711mlaw driver
Add support for ioctl calls registration in g711mlaw driver.

CRs-Fixed: 1094107
Change-Id: Ia5fddfce1f2eebaa08aad0f53cab9c0993b37695
Signed-off-by: Surendar karka <sukark@codeaurora.org>
2016-11-24 21:08:22 +05:30
Arun Kumar Dasari
35f5cc528f misc: qcom: qdsp6v2: modify amr decoder driver
Modify decoder driver for amrwb and amrnb.
Add compat ioctl to support 32-bit architecture.

CRs-Fixed: 1094107
Change-Id: I7d463e4e14c896be33ffb3be418b9f91f49107c5
Signed-off-by: Yamit Mehta <ymehta@codeaurora.org>
Signed-off-by: Surendar karka <sukark@codeaurora.org>
2016-11-24 21:08:09 +05:30
Arun Kumar Dasari
2ca2287f95 misc: qcom: qdsp6v2: add G711 decoder driver
add decoder driver for G711 and define a structure in a
new header which contains G711 specific configuration.
Pass this configuration parameters to the aDSP for
successful decode of G711 content.

CRs-Fixed: 1094107
Change-Id: I5296de4f525adec549c8d51fbf7fc76120b3b4f5
Signed-off-by: Yamit Mehta <ymehta@codeaurora.org>
Signed-off-by: Surendar karka <sukark@codeaurora.org>
2016-11-24 21:07:59 +05:30
Arun Kumar Dasari
a4e64cc296 msm: Add msm_audio_g711_dec header file to Kbuild
This change adds the msm_audio_g711_dec.h file to the Kbuild.
With this change header appear properly in userspace builds.

CRs-Fixed: 1094107
Change-Id: Iab3a45c43b38b4e004c9c297fb84dfe9e6f3e2be
Signed-off-by: Yamit Mehta <ymehta@codeaurora.org>
Signed-off-by: Surendar karka <sukark@codeaurora.org>
2016-11-24 21:07:50 +05:30
Arun Kumar Dasari
b23b342e6c ASoC: msm: qdsp6v2: support decode of g711 clips
Add support in audio stream manager to configure decode
of g711 related clips.

CRs-Fixed: 1094107
Change-Id: Ie90fd68e24e7e793aaac64290e3c1e41682d6d5a
Signed-off-by: Yamit Mehta <ymehta@codeaurora.org>
Signed-off-by: Surendar karka <sukark@codeaurora.org>
2016-11-24 21:07:42 +05:30
Preetam Singh Ranawat
823875c46e audio: add G711 audio encoding support
G711 PCM is a commonly used waveform speech codec.
Add native audio drivers for both G711 mlaw and G711
alaw encoding formats.

CRs-Fixed: 1094107
Change-Id: Ia187948fab9840447b1f5b1ede4e9a1ece0b85c5
Signed-off-by: Preetam Singh Ranawat <apranawat@codeaurora.org>
Signed-off-by: Surendar karka <sukark@codeaurora.org>
2016-11-24 21:07:31 +05:30
Surendar karka
c42df21480 msm: Add msm_audio_g711 header file to Kbuild
This change adds the msm_audio_g711.h file to the Kbuild.
With this change header appear properly in userspace builds.

CRs-Fixed: 1094107
Change-Id: I40a0e5b7635e8585b9fc4cb01cfdb213418619c5
Signed-off-by: Surendar karka <sukark@codeaurora.org>
2016-11-24 21:07:23 +05:30
Surendar karka
49af56584b ASoC: msm: qdsp6v2: support encode of g711 format
Add support in audio stream manager to configure encode
of g711 format

CRs-Fixed: 1094107
Change-Id: I496a975e427f68d7bb5cc2789bfc9bb949658233
Signed-off-by: Surendar karka <sukark@codeaurora.org>
2016-11-24 21:05:34 +05:30
Linux Build Service Account
a9a8ec4cae Merge "msm: vidc: parse 10-bit bus entries for msmfalcon" 2016-11-24 06:13:39 -08:00