msm: 8960: Enable vibrator for 8960 ab

Add platform device for isa1200 to provide haptic
support

Change-Id: Ieb91a561f8b6ca6475332df461e0918d34e1d226
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
(cherry picked from commit ae54a6227f0e999fa93822c341d9605b2d007b9a)
msm: vidc: Modify the MPEG-2 aspect ratio calculation

MPEG-2 display aspect ratio calculation was done similar
to MPEG-4 standard. Correct it as per the MPEG-2 standard
and video core interface specification.

Change-Id: I1aa98ca238c7b38e35c78905b29457cfa59edd45
Signed-off-by: Shobhit Pandey <cshopan@codeaurora.org>
(cherry picked from commit ce5f973881c11491c3fa35ceb8c945a6c8ee2b8f)

Signed-off-by: Manish Kumar <manishku@codeaurora.org>
msm: vidc: Add support for Mpeg-2 open-gop handling

ISDB-T client requires flags indicating the correctness
of output YUV data from MPEG-2 decoder. With this commit,
DATA_CORRUPT flag is sent from the driver if the output
YUV is either INCORRECT or APPROX_CORRECT.

Change-Id: I72e8ba81f45200715a195497d4eae140cbe86616
Signed-off-by: Rajeshwar Kurapaty <rkurapat@codeaurora.org>
(cherry picked from commit d68ca84da4a5c68eb2caf1f9e4dbb665bba5a05c)

Conflicts:

	drivers/video/msm/vidc/1080p/ddl/vcd_ddl_interrupt_handler.c

Signed-off-by: Sudhir Sharma <sudsha@codeaurora.org>
Signed-off-by: Manish Kumar <manishku@codeaurora.org>
msm: vidc: Amend the check to reset data corrupt flag

We should reset the data corrupt flag only for codecs
other than H264 and MPEG-2 in line with the video firmware
support. Hence, modify the conditional check.

Change-Id: I7c4d5557a3f9b1d1762fe7cfcd5693a6760188f0
Signed-off-by: Rajeshwar Kurapaty <rkurapat@codeaurora.org>
(cherry picked from commit c165675bf03feb182bfd46d2ac5ceebcf4987f74)

Signed-off-by: Manish Kumar <manishku@codeaurora.org>
msm: display: sync point clean up

Remove unused fence input in mdp_display_commit
structure
Use different timeline name for different fb

Change-Id: I4edd335b36dce057ff3e54302af6088a9cc470ec
Signed-off-by: Ken Zhang <kenz@codeaurora.org>
EHCI: HSIC: Add support to vote for SVS digital voltage

HSIC HW can operate at SVS digital voltage when it is active.
Currently HSIC is voting for 120Mhz SFAB and 64Mhz DFAB clock
frequencies. Clock frequencies are directly proportional to SVS
voltage. If DFAB is running at 64Mhz or SFAB is running at 120Mhz
or higher SVS is not possible even though HSIC votes for it. Hence
do not vote for SFAB clock frequency and only vote for 32Mhz for
DFAB in order to allow SVS to happen. Voting for SVS voltage reduces
current consumption by 3mA in HSDPA network.

Change-Id: I8a6844efbbe90a8ea118be8450f8210717c2641b
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
(cherry picked from commit cdf7fd212e2761525c07b842eb630677777cb3e5)
(cherry picked from commit f7f368826935049e7ffdb482865c47a3badcd147)
msm: 8960ab: Add gfx3d axi clock and port to footswitch data

On 8960ab we need to assert and deassert the resets to the gfx3d
axi clock in addition to the core and interface clocks. Add the
clock to the list so that we reset the gfx core appropriately.

We also need to halt both bus ports, therefore add the second bus
port id.

Change-Id: I05943906ed124658ab643d9bbce2bbca3f526a78
CRs-Fixed: 428846
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
(cherry picked from commit 9071e51f27a02139a7ea56d839a1d00ca22fa345)
msm: acpuclock-8064: Enable 25mV boost on A-family

Apply the 25mV boost on 8930ab, 8064v2, and 8960ab.

Change-Id: Ie3ad6b4043629ac13fb6dc2d77762cc3e9e15015
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
(cherry picked from commit dec4587a32579056ac8ef385cee98da965bfe0b4)
msm: acpuclock-8064: PVS Data for 1512 GHZ 8064v2 parts

Add data for seven PVS bins.
Support 25mV boost voltage.

Change-Id: I2d8560b92a40ece21b28f7276eb640dd0b4d7d80
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
(cherry picked from commit 05f613c90ee45192148f39dd4726ce31237cf786)
ASoC: msm: Decrease the playback period size of PCM driver

To support the deep buffer output, the playback buffer size is
increased to 4k from 2k. Reverting the change as the support for
deep buffer output is no longer valid.

Change-Id: I5034245bde4b55a5816506fbdfeac970a8e7804b
CRs-Fixed: 438177
Signed-off-by: Subhash Chandra Bose Naripeddy <snariped@codeaurora.org>
msm: board-8930: Remove force mode configurations for PM8917 S3 and S4

Change the active and sleep set force mode configurations for
SMPS 3 and 4 on MSM8930+PM8917 targets to "none".  This ensures
that crashes to not occur due to instability caused by using
"auto" mode.

Change-Id: I1522f334dbf3e6b7050beb943e8cbd4e661a18d0
CRs-Fixed: 432618
Signed-off-by: David Collins <collinsd@codeaurora.org>
(cherry picked from commit 1c9d4124676c5c9b5d68e83909bc0763e4880e81)

Signed-off-by: Dhivya Subramanian <dthiru@codeaurora.org>
(cherry picked from commit e4e7e37ebf7a8a27b0a243cda9c8008c20fd3a6f)

Signed-off-by: Sudhir Sharma <sudsha@codeaurora.org>
board: 8064: improve touch accuracy

Touch accuracy is offset on MTP devices.  When the user
touches, the point is recorded as down and to the left
of where it should be.  This can be corrected by
modifying boardfile offsets.

CRs-fixed: 423833

Change-Id: If722f8abe7f7cc67cd4370b47d5824386a688a9c
Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
Signed-off-by: Neha Pandey <nehap@codeaurora.org>
msm: kgsl: Process all idle checks

Rather than ignore some categories of idle events,
bin the events with small timelines and process all
events with the GPU DCVS algorithm.

CRs-Fixed: 427559
Signed-off-by: Lucille Sylvester <lsylvest@codeaurora.org>
Change-Id: I1a5e8d8af6020a08cf95a9daa934e825bc5f2854
ASoC: compr: change sequence of softvol

As the ASM session is opened in hw_param the soft volume does
not take effect. Hence move it to hw_param so its applied after
asm open.

CRs-Fixed: 434323
Change-Id: I1ce24d74382bd2c1926df2d63ff2eb40b0652f95
Signed-off-by: Asish Bhattacharya <asishb@codeaurora.org>
msm: kgsl: Ensure context pointer exists before dereferencing

When trying to add commands to the ringbuffer command stream, ensure
that the context point is not NULL before dereferencing it.

Change-Id: I6d8217ed4b180454eb43f2db161c10e86bc207da
Signed-off-by: Carter Cooper <ccooper@codeaurora.org>
msm: Enable raw tables in iptable.

Enable ip tables raw table for v4,v6.
This is used by BandwidthController in netd to collect
active network statistics.

CRs-Fixed: 426698
Change-Id: I9138771b6898a90bb8b069bf186cc036b24f4e70
Signed-off-by: Alex Yakavenka <ayakav@codeaurora.org>
msm_fb: display: fix iommu leak during base layer swap

Retain RGB1 iommu information during  base layer swap
so that iommu used by RGB1 can be freed back to pool later.

Change-Id: Ibed85179284743dc8a9d1434f0c81626b0567e16
Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>
(cherry picked from commit be46f9f596c5172438a74759d48ca7db600cd737)
USB: msm_otg: Always update state machine inputs during bus suspend/resume

UDC and HCD call usb_phy_set_suspend() to enter/exit LPM during bus
suspend/resume.  The current code simply return if the hardware is
already in the requested state.  OTG driver resume the hardware upon
receiving remote wakeup from the attached peripheral.  The OTG state
and state machine inputs are not updated later when HCD requests resume.
This OTG state is stuck in A_SUSPEND after bus resume and next suspend
requests are ignored.

CRs-fixed: 425108
Change-Id: Icc276337166a09c81188f71279a1276013bebc4f
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
mmc: msm_sdcc: Reset SDCC controller if check for Tx/Rx active fails

Reset SDCC controller if the check for TX/RX ACTIVE bit fails while
carrying out DPSM reset after the end of current transaction
instead of taking the entire system down by doing BUG().

CRs-Fixed: 423356
Change-Id: I9e2e945eb9a31d12e0a435df29a8215ae634724b
Signed-off-by: Sujit Reddy Thumma <sthumma@codeaurora.org>
Revert "Bluetooth: Disable BlueZ driver/stack"

This reverts commit 181fc587a179363624b9a3b47bcd0c04c05a8553
Reverting as Bluez stack need to be supported

Change-Id: Iea6169f19bc47786879845d1318ec47538ec1b1d
Signed-off-by: Bhasker Neti <bneti@codeaurora.org>