msm_fb: display: HPD rework for cleaner approach

Currently HPD is turned on and off with HDMI turn on and off
and turned on again after HDMI off so as to detect the cable
plugin.
With this change, HPD will be turned on when HDMI drvier is
initialized and turned off and on with suspend - resume. The
HPD handling during HDMI turn on and off has been removed.

CRs-Fixed: 368865
Change-Id: I1fb42b4587e58086d643b87a1600ecf09754423d
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
msm_fb: HDMI: Start HDCP authentication only on device open

Currently HDCP authentication is started for a default resolution
upon HPD connection event. With this change, HDCP authentication
is only triggered after the HDMI interface has been configured for
an appropriate resolution following the call to open the HDMI device.

CRs-Fixed: 368865
Change-Id: I7b9ce85aed989b78b448bff6a545a194dfed5b1d
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
msm_fb: HDMI: Do not add HPD state timer during probe

Currently all HDMI timers are initialized in the driver's
probe function with a maximum possible expiration value. However,
the 32-bit jiffies value is initialized in the kernel so as to
wrap 5 minutes after boot. This results in the HPD timer being
fired 5 minutes after boot even though cable  is not
connected. This change fixes this issue by not starting the HPD
timer during probe.

Change-Id: I9eeb8b892be2476e8debdd4ec5897a103cc34665
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org>
Signed-off-by: Manoj Rao <manojraj@codeaurora.org>
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
msm: vidc: Perform cache flush only for non-secured
mode.

The cache flush for secure mode is not needed as
no memset is performed. Pass the correct parameter to
cache flush to avoid kernel panic.

Change-Id: I4308c184e42aeb32bf6cfd99c04d0d14f558b503
CRs-Fixed: 374719
Signed-off-by: Arun Menon <menon@codeaurora.org>
msm: audio: qdsp6v2: Resolve panic for voip call scenario

- While in a voip call, when receive another voip call
observe kernel panic in voice cal API.
- In this second call, even though first voip call
deregister memory but acdb block cal sizes are not
reset leading to overflow in size and panic at memcpy
in voice calibration API.
- While deregister memory in ACDB, reset the ACDB cal
sizes of all blocks to zero.

CRs-fixed: 373614
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
(cherry picked from commit a27992bc5c50d83d905c11058628d9153505f4bf)

Conflicts:

	arch/arm/mach-msm/qdsp6v2/audio_acdb.c

Change-Id: I1b762da92960804ec684c4c8cac748513fff71fc
Signed-off-by: Ramakrishna Prasad N <crpn@codeaurora.org>
wcnss: invoke subsystem restart from interrupt context

when subsystem restart is invoked from a workqueue context, there is
a small window of failure where in the APPS can go to suspend before
invoking subsystem restart.  So invoke subystem restart from the
interrupt context itself.

CRs-Fixed: 371744
Signed-off-by: Sameer Thalappil <sameert@codeaurora.org>
(cherry picked from commit 50d6290a009ba1adadd6fb9d584af612a35aba13)

Conflicts:

	arch/arm/mach-msm/wcnss-ssr-8960.c

Change-Id: If0f99c48a7af8ec58ec781f880d797c9d70c2b63
Signed-off-by: Srivalli Oguri <oguri@codeaurora.org>
msm: socinfo: Add new MSM IDs for 7127AA and 7125AB.

Move MSM IDs incorrectly added for 7127A and 7125A
to 7127AA and 7125AB respectively.

Signed-off-by: Kaushal Kumar <kaushalk@codeaurora.org>
(cherry picked from commit dc0beb9ff3faeb2ec2a0d9ed6a428f3a4964803a)

Change-Id: I2de01bc6922ad549871080d0ee1f33e35af6cbc2
Signed-off-by: Srivalli Oguri <oguri@codeaurora.org>
msm_fb: display: use fs_mdp instead of vdd

Because of a merge issue, fs_mdp was wrongly replaced with vdd.
This change reinstalls fs_mdp.

Change-Id: Id27577a5f95ed3cc211e2bf78157d77e23453f90
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
Bluetooth: Fix ATT Indicate/Confirm handling

If due to timing issues out of our control, an outbound ATT Indicate
is delayed to the point that user space code does not receive
confirmation within it time-out period, both Client and Server
sockets must be torn down. We also must always respond to incoming
ATT Indicate pkt with a Confirmation, as the Error Response is an
illegal response for Indicate.

CRs-Fixed: 363355
Signed-off-by: Brian Gix <bgix@codeaurora.org>
(cherry picked from commit bcdb7e7ed7c6bd659f172d3c19d340947aa84a4b)

Change-Id: If47daa4556cc0f3aa7bda425aa8853d6c73bb4a5
Signed-off-by: Srivalli Oguri <oguri@codeaurora.org>
radio: tavarua: Add IOCTL to enable the FM TX Tone generator

Implement IOCTL to set the Internal FM TX Tone
generator values

CRs-Fixed: 356789
Signed-off-by: Ayaz Ahmad <aahmad@codeaurora.org>
(cherry picked from commit a0d56b574b8d217b5aecde623da475596db35918)

Change-Id: I92296f6cd867be952b1a0cef2edaa47ae2c10516
Signed-off-by: Srivalli Oguri <oguri@codeaurora.org>
msm: dsps: Revise handling of PPSS_PAUSE register.

Only modify the PPSS_PAUSE register if the apps processor controls
the DSPS power state. The Linux kernel shouldn't modify the register
if the DSPS is in control of its own power state.

Also move the definition of the PPSS_PAUSE_REG address to the devices
file, since it may be different on different platforms.

CRs-Fixed: 370236
Signed-off-by: Karthik Karuppasamy <kkaruppa@codeaurora.org>
(cherry picked from commit 9dac549aa64d2d86a156a075de1656cfd38fc60a)

Conflicts:

	arch/arm/mach-msm/devices-msm8x60.c
	arch/arm/mach-msm/include/mach/msm_dsps.h
	arch/arm/mach-msm/msm_dsps.c

Change-Id: I6141df35639d77103d94c13e437161b0afe573d6
Signed-off-by: Srivalli Oguri <oguri@codeaurora.org>
camera: Correct parameter of wait_event_interruptible_timeout.

wait_event_interruptible_timeout takes timeout value in jiffies.

Change-Id: Idbf25653233b34d6105e544a411b49ca81a04a9f
CRs-Fixed: 373576
Signed-off-by: Shuzhen Wang <shuzhenw@codeaurora.org>
msm: pm-8x60: Check for SPM status in msm_pm_verify_cpu_pc

Verify that SPM is in sleep mode in msm_pm_verify_cpu_pc. If not, it is
possible that msm_pm_wait_cpu_shutdown could fail but acpuclock would
turn off the clocks based on the the return value of
msm_pm_verify_cpu_pc.

CRs-fixed: 376791
Change-Id: Id55019508ea9bc27106eb298e19988aecc055cac
Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>