msm: adsp: qdsp5v2: Increase retry duration to 5msecs.
When DSP is not ready to accept a command, ADSP driver retries
for 40 times with 50 usecs delay each time which amounts to
2 msec in total. But when DSP is busy processing commands it may
take more than 2 msec to respond to requests from application
processor.

Hence updating the number of trials to 100 with 50 usecs delay each
time thus increasing the maximum delay to 5 msecs.

CRs-fixed:242965
Change-Id: I80eafe06d8b2188214e3cc81d144e2a51d470eb7
Signed-off-by: Suresh Vankadara <svankada@qualcomm.com>
 headers: exports headers for userspace application
This provides the needed headers for graphics and mm applications:
msm_kgsl.h
msm_mdp.h
msm_q6venc.h
msm_q6vdec.h
msm_audio.h
msm_audio_aac.h
android_pmem.h

Change-Id: I19b272114b4afc76a0434b2f6503fdd77c9ed5b1
Signed-off-by: Jin Hong <jinh@codeaurora.org>
.
arm: mm: vcm: Alignment attributes
Add support for power-of-two alignment attributes for
VCM reservations.

Change-Id: I27c707b93dcfbc7f1aa8636ddccb3fe4ccec8bb2
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
.
remove uneeded files
PM: Provide generic subsystem-level callbacks

There are subsystems whose power management callbacks only need to
invoke the callbacks provided by device drivers.  Still, their system
sleep PM callbacks should play well with the runtime PM callbacks,
so that devices suspended at run time can be left in that state for
a system sleep transition.

Provide a set of generic PM callbacks for such subsystems and
define convenience macros for populating dev_pm_ops structures.

Change-Id: If7f7a063918db76c5c14adb4c1e393cce675c747
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
[dkulinsk@codeaurora.org: added KConfig change and resolved conflicts]
Signed-off-by: Derek Kulinski <dkulinsk@codeaurora.org>
PM / platform_bus: Allow runtime PM by default

Currently the default runtime PM callbacks for platform devices return
-ENOSYS, preventing the use of runtime PM platforms until they have
provided at least a default implementation. This hinders the use of
runtime PM by devices which work with many platforms such as memory
mapped devices, MFDs and on chip IPs shared by multiple architectures.

Change the default implementation to the standard pm_generic_runtime
one, allowing drivers to use runtime PM without per-architecture
changes.

Change-Id: I8b985a20bac055b512e94594694b98500a8249ce
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Derek Kulinski <dkulinsk@codeaurora.org>
msm: alsa: fix for routing to external codec devices

Problem
The current implementation does not handle external codec
routing properly.The driver attempts to route to icodec device
ignoring all routing.

Impact
audio playback failure on all devices except icodec

Solution
modified to handle runtime switching and cache all routing
done before playback and record starts.

CRs-fixed: 246640
Change-Id: Ie5fbd424fc09a741a9842118cb5ebdab34122bfe
Signed-off-by: Asish Bhattacharya <asishb@codeaurora.org>
msm: mm: Fix errors when turning on SPARSEMEM

Carry forward the fix from 2.6.29b kernel to handle the
NR_SECTION_ROOTS == 0 case when turning on SPARSEMEM on MSM.
Also fix the linux coding style typos by replacing
"foo* bar" with "foo *bar".

Change-Id: I77f259f3d62980a37f4ae7c4680a3617c9b4f563
Signed-off-by: Naveen Ramaraj <nramaraj@codeaurora.org>
i2c-msm: Switch write-ready udelay to usleep_range

This is simply a poll to see if the bus is available, no
need for a specific polling frequency; let the kernel
schedule this at it's leisure

(sqashed)
i2c-msm: i2c_poll_notbusy udelay --> usleep_range

Switch another timer

(squashed)
i2c-msm: bus-busy udelay --> usleep (20us)

Changed only one delay to sleep, estimating ~10us / context switch,
thus not switching delays < ~20 us.

Estimate comes from:
--(2007)-----------------------------------------------------------
http://www.cs.rochester.edu/u/cli/research/switch.pdf
IBM eServer, dual 2.0GHz Pentium Xeon; 512 KB L2, cache line 128B
Linux 2.6.17, RHEL 9, gcc 3.2.2 (-O0)

3.8 us / context switch
--(2007)-----------------------------------------------------------
http://delivery.acm.org/10.1145/1290000/1281703/a3-david.pdf
ARMv5, ARM926EJ-S on an OMAP1610 (set to 120MHz clock)
Linux 2.6.20-rc5-omap1

48 us / context switch
-------------------------------------------------------------------

Change-Id: I89935fcb404b502b4cad1875eaf2d4912c33771b
Signed-off-by: Patrick Pannuto <ppannuto@codeaurora.org>
msm_fb: Write proper FPGA value to avoid conflict with UART

Write proper FPGA value into SIGNAL_EXPANDER registers in HDMI
driver to avoid conflict with UART GPIO's selection.

CR's fixed: 241467

Change-Id: I5880b287454870e2c1fae82691b9584a3ae27027
Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org>