ARM: 7125/1: Add unwinding annotations for 64bit division functions

The 64bit division functions never had unwinding annotations
added. This prevents a backtrace from being printed within
the function and if a division by 0 occurs. Add the annotations.

Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
Acked-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
msm: kgsl: Cleanup header file macros

Remove macro logic for macros that are always defined.

Change-Id: Iecbc8418102205559aa551af96b79579d1b3aa4d
Signed-off-by: Carter Cooper <ccooper@codeaurora.org>
msm: audio: qdsp6v2: PCM Encoder is configured to native channel count

Impact:
When the content switches from 5.1 channels to mono. Noise is heard
in one of the channels.

Problem:
At the start of the playback, number of output channels of PCM
Encoder is configured to 2 when the number of channels in the input
stream are greater than 2. This is done to confine maximum output
channels from PCM encoder to 2.

Change:
Modify output channel configuration of PCM encoder to native
channel count as Q6 decoder takes care for converting channel count
to 2 for the clips with channel count greater than 2.

Change-Id: I305e7c6d0e19977ae56503a8cdb0495231d51468
CRs-Fixed: 344426
Signed-off-by: Preetam Singh Ranawat <apranawat@codeaurora.org>
usb: gadget: fix USBCV - Chapter 9 test failure

Failed test "Halt Endpoint". The reasons for failure were
reconnecting the bam2bam at set_alt and fauilre to halt
endless transfer.No reconnecting of bam2bam will take
place on set_alt or set_halt.

CRs-Fixed: 344801
Change-Id: I027676bb8d98d20cf0b6c82c688ac9e36dcbfe64
Signed-off-by: Bar Weiner <bweiner@codeaurora.org>
Input: atmel_mxt_ts: Update config to newer version only

Add version checking so that config update only occurs when the config
data supplied in the platform data is of newer version. If the
controller is previously programmed with wrong version of config data,
based on controller type and firmware version, the driver will program
the latest config data present in the platform data to the controller.

Change-Id: I286852533aef920accb254ab7259edc144357dd3
Signed-off-by: Jing Lin <jinglin@codeaurora.org>
input: atmel_mxt_ts: Move the logic to save objects locally to a function

The Atmel touch driver reads information about a few objects at
initialization and saves them locally. Move this logic to its
own function.

Change-Id: I0f584ff5dcba6b713b3ac6b950ed64f3ad46faf1
Signed-off-by: Jing Lin <jinglin@codeaurora.org>
input: atmel_mxt_ts: Zero out config version after firmware upgrade

When the touch controller firmware is upgraded, the config data on
the controller might require an update too to match the firmware.
Since the driver performs config version checking before updating
config data and only updates to a newer version, we need to zero
out the config version after a firmware upgrade to make sure proper
config data will be programmed to the touch controller.

Change-Id: If3e22948b1f8eea3ccbfcaa979ec6b42f1ac078a
Signed-off-by: Jing Lin <jinglin@codeaurora.org>
msm: camera: Fix for ZSL vfe configuration

1. Select output1 buffer for ZSL vfe configuration
2. Set correct vt_pixel_clk for frame rate calculation

Change-Id: I99f188ae9b0314d84763f9282fb39ddeef8b177c
Signed-off-by: Raju P.L.S.S.S.N <rplsssn@codeaurora.org>
msm: camera: Sensor sequence change in Makefile

Fix for bringing up back sensor (ov5647) first
instead of front sensor (ov7692) by default

Change-Id: I3d888453dd4df2bfd983fc7008a622a2baefe108
Signed-off-by: Raju P.L.S.S.S.N <rplsssn@codeaurora.org>
msm: cpufreq: Move cpufreq table checking earlier

During cpufreq driver init we check whether cpufreq table
is initialize or not. Let's move this check even before
setting any cpufreq policy. Since if table itself is
not initialized then there is no need for further action,
we will just return from that point.

Change-Id: I06eed5c4aad9bbaeac351305392b7247b0220f2f
Signed-off-by: Pankaj Kumar <pakuma@codeaurora.org>
radio: iris: Implement new radio IOCTLs.

Implement IOCTLs for Tx power level control

CRs-fixed: 349247
Change-Id: Ie188b08fdf0aa697b6e1eada5c597813f0dc678f
Signed-off-by: Venkateshwarlu Domakonda <Venkateshwarlu@codeaurora.org>
msm: kgsl: Use highest perf level on wake-up from sleep

Allowing gpu to operate on highest perf level on
wake-up for better performance.

Change-Id: I0fd678359bd29a27fb218a506d1b307544ec5aae
Signed-off-by: Nilesh Shah <nsshah@codeaurora.org>
msm: kgsl: Do not dereference pointer before checking against NULL

The pagetable pointer was checked against NULL after being used.
Check against NULL first and then dereference it.

Change-Id: I714de9e3b153f212cb92502a21c7d720dd4e1e37
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
power: pm8921-bms: adjust the pon ocv

The power on open circuit voltage (pon ocv) is always reported higher.
Reduce 15mV from the pon ocv.

Also on chips trimmed with revision lower than 9 - there is an additional
error on all the battery voltage readings. Use the trim program version
and the trim register to nullify this error.

CRs-Fixed: 347207
Change-Id: I873045b9832ec33d044f7cd4aae71254d7be774f
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
ASoC: msm: Add volume support for compressed and pcm driver

Add support for controlling pcm and compressed audio
volume from DSP. Add TLV mixer control to set the pcm
and compressed audio stream volume. Enable soft volume
and soft pause features in pcm and compressed driver.

Change-Id: Ifea8faca39a92127fa91e880b904c0e60c92f9d0
Signed-off-by: Krishnankutty Kolathappilly <kkolat@codeaurora.org>
[media] V4L: add two new ioctl()s for multi-size videobuffer management

A possibility to preallocate and initialise buffers of different sizes
in V4L2 is required for an efficient implementation of a snapshot
mode. This patch adds two new ioctl()s: VIDIOC_CREATE_BUFS and
VIDIOC_PREPARE_BUF and defines respective data structures.

Change-Id: Idb6c1e11f1665201f77c73168bb5a8de84b538eb
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Ashray Kulkarni <ashrayk@codeaurora.org>
ARM: 7090/1: CACHE-L2X0: filter start address can be 0 and is often 0

this patch fixes the error in Rob Herring's
ARM: 7009/1: l2x0: Add OF based initialization
http://www.spinics.net/lists/arm-kernel/msg131123.html
it has been in rmk/for-next with commit 41c86ff5b

Change-Id: Ide165d9909b64c3802aecf42d6503e93f3a391f3
Cc: Shawn Guo <shawn.guo@linaro.org>
Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Barry Song <Baohua.Song@csr.com>
Acked-by: Rob Herring <robherring2@gmail.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Taniya Das <tdas@codeaurora.org>
Signed-off-by: Trilok Soni <tsoni@codeaurora.org>
msm: ultrasound: control events from devices, conflicting with the USF.

In some UI frameworks there is no way to support
simultaneous digital pen and TSC input devices.
The acceptable solution is to disable the TSC
when the pen is close or touches the screen.
The USF can filter input events (e.g. TSC), produced by any driver.
This filtering is controlled by userland based events calculators.

Change-Id: If73adc8cb6039b037cb6a4aea148ac3326889f3c
Signed-off-by: Baruch Eruchimovitch <baruche@codeaurora.org>
ASoC: msm7x27a: Add boundary check for ear/mic mute

The variables go out of boundary and results in crash
if no parameter supplied by user space.

Change-Id: If8963633a03f163bc17b747412f5fa53c1846023
Signed-off-by: Phani Kumar Allada <pallad@codeaurora.org>
Bluetooth: Enforce MEDIUM_SECURITY for 2.0 pairing.

The Security levels have been decided based on
remote_features or remote_extended_features for 2.0
and 2.1 devices. In case of security mode - 3 pairing,
this data is not available since pairing happens before
ACL connection complete. This patch fixes this problem.

Change-Id: I0397d090fb1eecaf7b8cf385c3bf47c75fa5a8fb
CRs-fixed: 350377
Signed-off-by: Prabhakaran Mc <prabhakaranmc@codeaurora.org>