diag: Add DIAG support for SGLTE

For Fusion2.2(SGLTE), 8960 and QSC will interact over SMUX
interface. This change adds support for this new interface.

Change-Id: I50f537f52422803559cb8083d1ac9c19d22dd889
Signed-off-by: Shalabh Jain <shalabhj@codeaurora.org>
msm: gss-8064: Print GSS error fatal string in the kernel log

When the GSS encounters a fatal error, it logs an
error string in shared memory. Use the smem_get_entry API
and print this string out to the kernel log when
the GSS signals that it has crashed.

Change-Id: I7a02b4858147868f7015a90eb30a91813926cf92
Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org>
Bluetooth: Initiate dedicated bonding if pin/key missing on remote device

In case of 2.1 capable devices, when remote device had unpaired,
successive connect from the DUT was resulting in general bonding with
automatic accept allowed for numeric comparison
(i.e. authentication_requirements = 0x04). This lead to bad user
experience as user confirmation pop up wasn't notified on the DUT. Now
its ensured that if remote device has unpaired then DUT would trigger
dedicated bonding as part of the DUT intiated connect.

CRs-fixed: 362572
Change-Id: Id55f6cf3cc70621c29f583aa913fc08180e2d8f0
Signed-off-by: Royston Rodrigues <roystonr@codeaurora.org>
mtd: msm_nand: Fix wrong uncorrectable error bit check

For the Nand controller on 7x30 and 7x27a, the
uncorrectable error bit in the NANDC_BUFFER_STATUS
register is changed to BIT(8) from BIT(3) (in legacy
targets) due to change in the ECC requirements. Currently,
this is handled only in dual nandc mode (default for 7x30
and 7x27a). In case, if only single nandc is used, the
uncorrectable bit check is broken and the driver wouldn't
detect any ECC errors.

Add software version info in platform data to differentiate
between the targets that have different register interface.

CRs-Fixed: 365433
Change-Id: I3c33ccb0e936e262116dd20798d56530dbae900f
Signed-off-by: Sujit Reddy Thumma <sthumma@codeaurora.org>
msm: 8064: reducing the mdp clock for static screen case

reducing the mdp clock for static screen case to save the power

Change-Id: I09c0a2655d21bf6c9651d66c1f19ecd65107502c
Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org>
fs: fat: rate limit the kernel messages

If FAT formatted SD card gets removed without unmounting,
FAT file system may throw many kernel error messages which
could too much traffic for console driver and can sometimes
even cause the system to trigger watchdog timeout.

This patch converts the printk to printk_ratelimited to rate
limit the error messages from FAT fs.

Change-Id: I58b942f6714a8d3353478eb21139b8046ee3f875
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
msm: acpuclock-8960: Increase L2 speed to 1.35GHz

Testing has shown that the L2 is stable at 1.35GHz. Use the
increased speed for the top end of the frequency tables.

Change-Id: I6d859d9ae343ecb2fb0a2cb5b49b1d58206b321b
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
marimba-tsadc: Move to new clk_prepare/unprepare API.

The MSM clock driver is moving to the upstream prepare/unprepare
APIs. Use these new set of APIs instead of the current
enable/disable APIs.

Change-Id: Ib3ca1050d9002d92a4d719984cc61a0ea29f8930
Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
 msm: gestures: Fix invalid error check

Current code does NULL check  when gesture payload is
received. Since v4l2_event userdata is an byte array,
NULL check is not required.

Change-Id: Ia2542e4567a694587358c21e863d2c7a7857ea85
Signed-off-by: Sunid Wilson <sunidw@codeaurora.org>
mmc: block: Add MMC write packing statistics

The write packing statistics are used for the packed commands unit tests
in order to determine test success or failure

Change-Id: I1b330033e59a775c64fb915038d58615aff0dbdd
Signed-off-by: Maya Erez <merez@codeaurora.org>
msm_fb: display: Disable LVDS phy & pll during panel off

LVDS phy pll power rail is consuming power in suspend state.
Hence phy & pll are disabled during panel off cases on suspend
and device release cases.

Change-Id: I390a1d774587a108edc2e5f7319e431c14132cb8
Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org>
msm-fb: display: lm2 writeback support on mpq platfroms

lm2 writeback has broken on mpq platfroms as lm1 and lm2 are
selecting the same axi writeback path. It adds the support
to select the right axi writeback path based the availability
of the write master

Change-Id: Ia6b868ff13de5edc641e4795794286893c063e66
Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org>
mmc: msm_sdcc: enable the sanitize capability

the sanitize capability will be enabled, for the cards that support it

Change-Id: I9c92a4d340458787c486ec7f9482db78beffdc48
Signed-off-by: Yaniv Gardi <ygardi@codeaurora.org>
Merge "mmc: msm_sdcc: enable the sanitize capability" into msm-3.0
media: dvb: dvb-core: Support getting decoder's buffer status

Existing DMX_GET_BUFFER_STATUS ioctl provides information on
a filter's buffer, however, for filters configured to
send the data internally to decoders, the demux device has no
information on the actual interface to the decoders and this
information must be taken from the underlying implementation
that hooks to demux device.

Change-Id: I841a54cd0ecae197b85c0b3263bd3dfe9e221ca2
Signed-off-by: Hamad Kadmany <hkadmany@codeaurora.org>
msm_fb: display: Remove chicken bit config during video playback

Remove the chicket bit configuration and overlay status check
for MDP 4.0 v2.1 hardware version

CRs-Fixed: 313524
Change-Id: I0fd2db72a25a628398c9f794676d2178cdca78df
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
Signed-off-by: Mayank Chopra <makchopra@codeaurora.org>
board-8064-gpio: Update FUNC for EPM SPI CS

EPM CS is set to active low before initiating SPI transaction
to the ADS ADC device. The Function setting for EPM CS GPIO
configuration is set as FUNC 6. This fixes SPI transaction
timeouts.

Change-Id: I6dc4978881f156605f5081eb24a81dee825ed05e
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
msm: msm-batt: Add the fail-safe voltage.

Failsafe voltage is the minimum operating voltage for msm battery.
This change adds code to handle this voltage in battery driver, to
fecilitate graceful shutdown when this level is reached.

CRs-Fixed: 366506
Change-Id: Iedc2ed603b0c7448e6da31b169ee1746c723d69d
Signed-off-by: Krishna Vanka <kvanka@codeaurora.org>
ASoC: msm: Add SLIMBUS_2_RX CPU DAI

Add support for a playback CPU DAI on SLIMBUS_2_RX AFE port.

Change-Id: Ib79e648cfab09e738d4953a20d895a5bb53ffca2
Signed-off-by: Kiran Kandi <kkandi@codeaurora.org>
ASoC: msm8930: Add support for AUX PCM Interface

Auxiliary PCM interface is used to connect a external codec
to MSM. Add support to enable AUX PCM interface

Change-Id: I9ea1e868e549a07e79e813f49c18c592500740ee
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>