Commit graph

578539 commits

Author SHA1 Message Date
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
Linux Build Service Account
baccd73792 Merge "ARM: dts: msm: Add venus device nodes for starlord" 2016-11-24 06:13:38 -08:00
Linux Build Service Account
c17ad2a8a7 Merge "msm: vidc: Update mbs per second calculation" 2016-11-24 06:13:36 -08:00
Linux Build Service Account
4edc6e2899 Merge "msm: vidc: fix mutex lock issue" 2016-11-24 06:13:35 -08:00
Linux Build Service Account
8c41e4e6b1 Merge "msm: vidc: fix the interrupt miss issue from video hardware" 2016-11-24 06:13:34 -08:00
Linux Build Service Account
383d1c1542 Merge "msm: kgsl: Add support for A512 GPU" 2016-11-24 06:13:33 -08:00
Linux Build Service Account
8a70f4e5d7 Merge "ASoC: msm: Update supported sample rates for USB Backend" 2016-11-24 06:13:32 -08:00
Linux Build Service Account
d2f94a9a44 Merge "netfilter: nfnetlink: correctly validate length of batch messages" 2016-11-24 06:13:31 -08:00
Linux Build Service Account
e49d49a3ec Merge "USB: gagget: f_fs: Return error if TX req is queued during device offline" 2016-11-24 06:13:30 -08:00
Linux Build Service Account
e9ccaa5b66 Merge "clk: qcom: Add support for rf clk1 for msmfalcon" 2016-11-24 06:13:29 -08:00
Linux Build Service Account
11c49a900c Merge "ARM: dts: msm: Update clock gfx node for MSMfalcon/Triton" 2016-11-24 06:13:27 -08:00
Linux Build Service Account
57f5019a62 Merge "clk: qcom: Add support for MMCC clock for MSMFalcon" 2016-11-24 06:13:26 -08:00
Linux Build Service Account
0e7a3bb0e4 Merge "cgroup: prefer %pK to %p" 2016-11-24 06:13:25 -08:00
Linux Build Service Account
a2f553518d Merge "HID: core: prevent out-of-bound readings" 2016-11-24 06:13:24 -08:00
Linux Build Service Account
f3e00aadcd Merge "[media] xc2028: avoid use after free" 2016-11-24 06:13:22 -08:00
Linux Build Service Account
065421c6fa Merge "tcp: fix use after free in tcp_xmit_retransmit_queue()" 2016-11-24 06:13:22 -08:00
Linux Build Service Account
091685a6a4 Merge "block: fix use-after-free in sys_ioprio_get()" 2016-11-24 06:13:20 -08:00
Linux Build Service Account
aff86d3b4f Merge "cfg80211: validate beacon int as part of iface combinations" 2016-11-24 06:13:18 -08:00
Linux Build Service Account
2fb4ab87aa Merge "cfg80211: fix beacon interval in interface combination iteration" 2016-11-24 06:13:18 -08:00
Linux Build Service Account
7193fef2dc Merge "cfg80211: identically validate beacon interval for AP/MESH/IBSS" 2016-11-24 06:13:17 -08:00