Commit graph

590827 commits

Author SHA1 Message Date
Udaya Bhaskara Reddy Mallavarapu
3bf3c6154d media: dvb-core: Fix possible buffer overflow error
Added check to avoid buffer overflow error.

CR's-Fixed: 2043689
Change-Id: I38dd770e0b469dd3ccce3339d7c46957c012cbdd
Signed-off-by: Udaya Bhaskara Reddy Mallavarapu <udaym@codeaurora.org>
2017-05-26 15:53:15 +05:30
Utkarsh Saxena
431fad8778 msm: ipa3: Fix to add check for dma_map_single return values
Add a error check for return of dma_map_single
using dma_mapping_error API.Added code
changes to free correct tx_pkt pointer in fail_dma_map condition.

Change-Id: Ib1f9164eef4bfbe4cda26fd1eced1f581fdf1e66
Acked-by: Ashok Vuyyuru <avuyyuru@qti.qualcomm.com>
Signed-off-by: Utkarsh Saxena <usaxena@codeaurora.org>
2017-05-26 15:03:39 +05:30
Jingtao Chen
20bfc10510 adv7481: Update adv7481 because of v4l2 changes
Make use of the new media_bus_format definitions;
Replace video op g_mbus_fmt/s_mbus_fmt by pad op get_fmt/set_fmt

Change-Id: I2e52c81d2672c4773ea4adccd3cc50d5926bd65f
Signed-off-by: Jingtao Chen <jingtaoc@codeaurora.org>
2017-05-26 01:40:42 -07:00
Jaiju Yesudasan
54dbacb5eb adv7481: Fix interrupt handling
ADV7481 raises back-to-back interrupts on cable connect and
disconnect. The IRQ bottom half has to check the interrupt status
register in a loop and service all events that have been raised,
rather than relying on the top half getting scheduled for each event.

Signed-off-by: Jaiju Yesudasan <cjaijuy@codeaurora.org>
Change-Id: I388d951fa5ed8ac22db9358e86de74d0b83c5a50
2017-05-26 01:40:33 -07:00
Jaiju Yesudasan
25af46edc5 adv7481: Add support for block write
Add support for block i2c write to adv7481 to reduce
write latency and hence improve boot KPI.

Signed-off-by: Jaiju Yesudasan <cjaijuy@codeaurora.org>
Change-Id: I98de976793f47a4a65cf818ee1d919fe3d6200a3
2017-05-26 01:40:26 -07:00
Shiju Mathew
ba7970cfcb adv7481: Release CCI clocks and vreg during a probe failure
When driver probe fails, release CCI clocks and voltage
regulators so that the target can go to low power state.

CRs-Fixed: 1084079
Change-Id: Ic0581f3b8ebaed84d22f627d5ddd3dcb32dafb21
Signed-off-by: Shiju Mathew <shijum@codeaurora.org>
2017-05-26 01:40:14 -07:00
Terence Ho
c16c42a403 adv7481: Add suspend and resume handler functions
Add suspend and resume handler to be called from power management
framework for driver to release clock votes prior to device goes
into sleep state. Driver requests for the necessary resources in
resume handler

CRs-Fixed: 1062576
Change-Id: Iff9e7ed7b7918f9a371453a020086f22e844d7e4
Signed-off-by: Terence Ho <terenceh@codeaurora.org>
2017-05-26 01:40:05 -07:00
Shiju Mathew
402e3c1d4e adv7481: Increase video input signal lock retry
Sometime signal locking for video inputs takes a bit
more time on MSM8996 automotive targets.

CRs-Fixed: 1047744
Change-Id: I38b1d21f367f5004bdbfb2e2820d83a1ee3f81ee
Signed-off-by: Shiju Mathew <shijum@codeaurora.org>
2017-05-26 01:39:55 -07:00
Shiju Mathew
3577e3c771 adv7481: Add support for CVBS interrupts
Add signal lock/unlock interrupts for CVBS input. This
enables to detect when input stream is stop/start due
to reasons such as cable plug out/plugin. Also update
driver code with the new macro added with this patch
and clean up header to move tab to space for consistent
editing/viewing across editors.

CRs-Fixed: 1033059
Change-Id: I8d28182de6f36c1301a2a04abd602cfbe5516be8
Signed-off-by: Shiju Mathew <shijum@codeaurora.org>
2017-05-26 01:39:39 -07:00
Shiju Mathew
cbfef60b3f adv7481: Add support for CVBS input on MSM8996 Auto
Enable adv7481 CVBS input on MSM8996 automotive.

CRs-Fixed: 1029211
Change-Id: I06ba481be4f5f899df248615b2458ec81a3a17df
Signed-off-by: Shiju Mathew <shijum@codeaurora.org>
2017-05-26 01:39:32 -07:00
Shiju Mathew
8ff7c3b809 adv7481: Add voltage regulator configurations for adv7481
Configure voltage regulator for adv7481 CCI interface.

CRs-Fixed: 1021381
Change-Id: I6a9f023a84450d56ba313af2bcee2216a1008213
Signed-off-by: Shiju Mathew <shijum@codeaurora.org>
2017-05-26 01:39:27 -07:00
Shiju Mathew
626fd0016f adv7481: Enable irq after adv7481 register with BA
This will enable BA not to ignore any adv7481 interrupts
from v4l2 framework.

CRs-Fixed: 998927
Change-Id: If06dd201637c43e3314083ddc3adad101bcb3e60
Signed-off-by: Shiju Mathew <shijum@codeaurora.org>
2017-05-26 01:39:19 -07:00
Shiju Mathew
11f3d4d0e8 adv7481: Fix issues with adv7481 driver functionality
Fix memory allocation and probing crashes in adv7481
driver. Add support for DT and GPIO configurations.

CRs-Fixed: 998927
Change-Id: I056dbecbd2b3c7c2c0bc0314b9c68e992452d84f
Signed-off-by: Shiju Mathew <shijum@codeaurora.org>
2017-05-26 01:39:08 -07:00
Shiju Mathew
10ce2a7380 adv7481: Update adv7481 driver on MSM8996
Add support for adv7481 to use CCI i2c interface and to
changes to make it upto date with the A family.

CRs-Fixed: 998927
Change-Id: If1c9104e3e28a78a886ba184a302e8a4085c0bfd
Signed-off-by: Shiju Mathew <shijum@codeaurora.org>
2017-05-26 16:36:18 +08:00
Aditya Bavanari
6e4097cd62 ASoC: wcd934x: Add support to restore IIR coefficients after power collapse
Reduce the latency of device switch during voice call by caching
IIR Band registers at bootup and restore them in
tavil_dig_core_remove_power_collapse instead of updating
through mixer controls from userspace.

Change-Id: I87b41801d5f174f5fb11917a359635e91c04d05d
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2017-05-26 13:14:31 +05:30
Deepak Kumar
7490d55401 msm: kgsl: Use per page cache operation instead of bulk cache operation
For any cache operation, the current code tries to map all pages to the
kernel using vmap in case sg table is not available and then performs
the requested cache operation. If vmap fails because of memory crunch
ioctl just returns failure.

This change avoids using vmap and performs per page cache operation
even when sg table is not available. This is done to avoid failures
because of vmap especially on 32 bit systems.

Change-Id: I123b46e6a55a62cbf934ab6a2a49dcd1f0d4c7d4
Signed-off-by: Deepak Kumar <dkumar@codeaurora.org>
2017-05-26 12:55:07 +05:30
Linux Build Service Account
a2ab165607 Merge "genirq: Use irq_set_affinity_locked to change irq affinity" 2017-05-26 00:10:43 -07:00
Linux Build Service Account
18c1ad4d51 Merge "mmc: core: retune after un-gating the clocks" 2017-05-26 00:10:42 -07:00
Linux Build Service Account
22412a0523 Merge "icnss: Free regread buffer before allocating new one" 2017-05-26 00:10:41 -07:00
Linux Build Service Account
4fae1bf22a Merge "ARM: dts: msm: Change version bit to match TP 800S used for HDK660/630" 2017-05-26 00:10:40 -07:00
Linux Build Service Account
88d0f2244b Merge "ARM: dts: msm: add proxy voter for QRD SDM660" 2017-05-26 00:10:39 -07:00
Linux Build Service Account
c78cb70a36 Merge "ARM: dts: msm: configure interrupt types for charger for pm660" 2017-05-26 00:10:38 -07:00
Linux Build Service Account
12896a6fc6 Merge "mmc: core: extend SDR104 workaround for other paths" 2017-05-26 00:10:37 -07:00
Linux Build Service Account
f5b9a7e270 Merge "icnss: create debugfs entries when CONFIG_ICNSS_DEBUG is enabled" 2017-05-26 00:10:35 -07:00
Linux Build Service Account
66a27a3a8f Merge "mhi: core: fix potential buffer overflow" 2017-05-26 00:10:34 -07:00
Linux Build Service Account
aa6325414f Merge "usb: pd: policy_engine: Disable vconn first upon disconnect" 2017-05-26 00:10:34 -07:00
Linux Build Service Account
761009ddd7 Merge "defconfig: msmcortex: Enable hardened user copy" 2017-05-26 00:10:33 -07:00
Linux Build Service Account
bd5238c5e7 Merge "cnss: save the cc source to platform driver" 2017-05-26 00:10:30 -07:00
Linux Build Service Account
c5a3a7fe46 Merge "Revert "arm: cpu: read all address cells in dt for cpuid"" 2017-05-26 00:10:29 -07:00
Linux Build Service Account
7d371c9315 Merge "soc: qcom: glink: Add new APIs to toggle RX thread priority" 2017-05-26 00:10:29 -07:00
Linux Build Service Account
5c161901b2 Merge "ASoC: msm: qdsp6v2: set voc type according to stream type" 2017-05-26 00:10:28 -07:00
Linux Build Service Account
cf2d68fe6a Merge "msm: pcie: add IOMMU_DEVICE for MMIO mapping" 2017-05-26 00:10:27 -07:00
Linux Build Service Account
a24cba4428 Merge "drm/msm: add irq mapping for cec in hdmi driver" 2017-05-26 00:09:47 -07:00
Linux Build Service Account
03da53eca2 Merge "msm_11ad: define ops_keep_radio_on_during_sleep as static" 2017-05-26 00:09:47 -07:00
Linux Build Service Account
34672d4fb7 Merge "ARM: dts: msm: add audio support for HDK660/630 boards" 2017-05-26 00:09:46 -07:00
Linux Build Service Account
187608370f Merge "soc: qcom: msm_bus: add rt mutex lock for cllist data" 2017-05-26 00:09:45 -07:00
Linux Build Service Account
7e32d73762 Merge "ARM: dts: msm: Specify SC interrupts for LAB/IBB in pmi8998" 2017-05-26 00:09:43 -07:00
Linux Build Service Account
b56ec29b40 Merge "qpnp: smb2: fix ICL recovery mechanism" 2017-05-26 00:09:37 -07:00
Linux Build Service Account
21dd810c7c Merge "qpnp-smb2: update AICL rerun logic for PM660" 2017-05-26 00:09:36 -07:00
Linux Build Service Account
b7e32b139c Merge "soc: qcom: pil: Use subsys_set_error to indicate firmware errors" 2017-05-26 00:09:35 -07:00
Linux Build Service Account
b4f36ef221 Merge "leds: qpnp-flash-v2: Add support for LPG strobe" 2017-05-26 00:09:34 -07:00
Linux Build Service Account
a5a24462df Merge "ARM: dts: msm: Enable the quat mi2s in slave mode on apq8098 mediabox" 2017-05-26 00:09:33 -07:00
Linux Build Service Account
972dd643bf Merge "ARM: dts: msm: update tuning parameters for QMP PHY for SDM660" 2017-05-26 00:09:32 -07:00
Patrick Fay
1255505e97 Perf: ARM: Support 32bit armv8-pmuv3 driver
Currently perf_event.c is 64bit specific due to
inline assembly.  Driver needs to support 32bit as well.
Move the assembly code to asm/perf_event.h so that
perf_event.c is 32/64 bit agnostic and move perf_event.c
to drivers/perf from 64bit-specific arch dir.

Change-Id: Ic5cd188700938e7a37120065a2d781e03bf99017
Signed-off-by: Patrick Fay <pfay@codeaurora.org>
2017-05-25 16:48:16 -07:00
Skylar Chang
917cd579ac msm: ipa: fix security issues in ipa wan driver
Fix the security issue in handling add mux channel event
in ipa wan driver.

Change-Id: Ic2ffeafddad4954ec3ecba0d675646d0790eede7
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
Acked-by: Shihuan Liu <shihuanl@qti.qualcomm.com>
2017-05-25 16:36:49 -07:00
Linux Build Service Account
c5685ec0f3 Merge "msm: kgsl: Return mementry only if pending_free is not set" 2017-05-25 15:52:15 -07:00
Linux Build Service Account
b8b329161d Merge "leds: leds-qpnp: Fix uninitialized variable use" 2017-05-25 15:52:14 -07:00
Linux Build Service Account
06666778bf Merge "btfm: Don't program multi channel registers in wcn3990 for SCO" 2017-05-25 15:52:07 -07:00
Linux Build Service Account
8a1c7fb05a Merge "power: qpnp-fg-gen3: update default empty voltage to 2.85 V" 2017-05-25 15:52:06 -07:00
Linux Build Service Account
93f01bb760 Merge "msm: kgsl: Don't delete uninitialized preemption timer" 2017-05-25 15:52:05 -07:00