msm: mdss: Avoid variable overloading

A particular variable is overloaded and used in 2 different
contexts. This causes overwriting of original value and leads
to incorrect error handling. This code adds a new variable to
avoid such condition.

Change-Id: Ibd040e6b4ce95759cc0011304940365c70e6c12a
Signed-off-by: Shalabh Jain <shalabhj@codeaurora.org>
Merge "radio: iris: Avoid NULL pointer dereferencing"
Merge "radio: iris: Removed reference to user provided pointer."
pwm: qpnp: modify to use pwm_config_us() for some qcom drivers

Kernel 3.10 defines pwm_config() to use nanosecond parameters, but
now some qcom drivers still use pwm_config() to pass microsecond
parameters. pwm-qpnp driver has already provided a new API called
pwm_config_us() to support microsecond parameters, so we should
modify to use pwm_config_us() instead of pwm_config() for these
drivers.

CRs-Fixed: 545809
Change-Id: I222440bb7636972b9ae35eba175ddffc58095ce8
Signed-off-by: Xu Kai <kaixu@codeaurora.org>
Merge "Revert "mm: make is_vmalloc_addr work properly.""
Merge "lib: spinlock_debug: increase spin dump timeout to one second"
msm: bam_dmux: tune downlink polling parameters

This change disables the BAM DMUX adaptive timer - this is to address
concerns about drops in TCP throughput for some use cases with the timer
enabled.  It also sets the aggregation to 3ms to save power while not
compromising performance. Power tests show a savings of 3-4% (compared to
having the timer poll the BAM pipe every 1 ms) for LTE (40Mbps downlink and
25Mbps uplink) and HSPA (7Mbps downlink and 384Kbps uplink) with no
degradation in performance.

Change-Id: Ia51eae773723e60d8b051766ad80bfb0a16f5f6d
Signed-off-by: Anurag Singh <anursing@codeaurora.org>
msm: bam_dmux: add loopback support

Bam dmux is currently very difficult to isolate and provide measurements
for common metrics, such as throughput and latency.

Add hooks into bam_dmux to allow for a seperate dynamically
loadable loopback module. This allows bam dmux to be isolated, and to
provide more accurate measurements of the above metrics.

Change-Id: I174d900dea73cca27d32a54a908f43728059be30
Signed-off-by: Brent Hronik <bhronik@codeaurora.org>
msm: bam_dmux: Fix race condition during SSR

BAM DMUX drivers set the global flags to identify the SSR during
SUBSYS_BEFORE_SHUTDOWN notification, but the flags change is not reflected
in some code paths like msm_bam_dmux_write().

Add the SSR flag check and SRCU locking to complete all pending bam dmux
writes before returning the control in SSR call back function for
SUBSYS_BEFORE_SHUTDOWN notification.

CRs-Fixed: 584805
Change-Id: I26647b485977943f272c44f7450ed6c4a4aa62f3
Signed-off-by: Arun Kumar Neelakantam <aneela@codeaurora.org>
ARM: dts: msm: change turbo floor voltage for msm8x10

Set CPR turbo floor voltage as CPR turbo ceiling voltage for stability
issues.

CRs-Fixed: 587085
Change-Id: I755fcc6fcdc3757e73bb81335bccfeb0feeb5769
Signed-off-by: Ke Liu <keliu@codeaurora.org>
Merge "msm: mdss: Handle null panel name configuration"
Merge "msm: mdss: Sanitize read of panel properties"
input: sensor: cm36283: Remove earlysuspend code

Earlysuspend is gone, remove it from this driver.

Change-Id: Ie7e3006b907c965928dfb50575379cce25f36c3f
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
[mengmeng: cherry-picked from kernel/msm-3.10.git 6006e74]
Signed-off-by: Oliver Wang <mengmeng@codeaurora.org>
Merge "csdio: Remove the driver"
Merge "thermal: qpnp-adc-thermal: Add checks for low/high notification"
Merge "input: sensor: remove the input open/close interface for mpu3050"
Merge "input: sensor: fix mpu3050 not connected due to power logic error"
Merge "pwm: qpnp: provide both nsec/usec-supported pwm config() functions"
Merge "pwm: qpnp: modify to use pwm_config_us() for some qcom drivers"
radio: iris: Allow task to be interrupted

Not allowing task to be interrupted can cause
delay in response to upper layer. Allow task pending
to be interrupted when corresponding command's status
is received.

Change-Id: Ibb84673dfa92458c1ef45da12e63dd041abd0c39
CRs-Fixed: 569318
Signed-off-by: Ayaz Ahmad <aahmad@codeaurora.org>