USB: phy-msm-usb: Enable USB Interrupt only if ASYNC IRQ is not present

Some USB controllers have different IRQ line to exit from
LPM. This is ASYNC IRQ. If this IRQ is present, we dont
need to enable or disable the USB interrupt during otg
suspend and resume respectively.

There is a new requirement for XO shutdown during idle.
To allow XO in idle CPU states. When CPU is idle, if an
irq is enabled and is not capable of waking up from xo,
the xo shutdown is aborted. Hence non-wakeup capable irq
must be disabled.

Change-Id: I3197a1b413a1bf849db3572442cc8dbc5f264b53
CRs-Fixed: 520531
Signed-off-by: Sujeet Kumar <ksujeet@codeaurora.org>
ASoC: msm: qdsp6v2: Add voice stub mixer commands

Add voice call related mixer controls for APQ8084 based target

Change-Id: I3e82e6512e1a064050f0f812d03facd665dd954e
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
arm: dts: msm8610: Add pinctrl device for TLMM

Add the tlmm node into 8610 pinctrl device.

Change-Id: Ia16d8785dce49dbfcaded3c252f054184b723e9b
Signed-off-by: Pan Fang <fangpan@codeaurora.org>
gpu: ion: Fix bug in ion shrinker

The high variable was sometimes used uninitialized

Change-Id: I2f51413fd2d063fdff325047e824dc8c749d9e0a
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
Git-commit: 3ccc212f998895c3b46547504d1fefbe6080c7bf
Git-repo: https://android.googlesource.com/kernel/common
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
ARM: dts: msm: config default disp intf for msmsamarium

Configure dsi controller as the primary panel interface
on msmsamarium.

Change-Id: Icca7db2d6a483c4a33c33a7840cbad8d4919f8b5
Signed-off-by: Manoj Rao <manojraj@codeaurora.org>
msm: mdss: expose mdss tearing check parameters

Tearing may happen for command mode panels when data transfer from mdp
to panel is not synced with panel's own update. These panel dependent
mdp parameters are used by mdp h/w logic to avoid tearing, so they can
be tuned through device tree settings for different panels.

CRs-fixed: 514910
Change-Id: Ibe9e27233692f8e50f36ce3b8be521a4d0097146
Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org>
msm: kgsl: Detach context when context creation fails in create function

If context creation fails in the creation function then we need to detach
the context and destroy it and not just destroy it to properly clean
up the resources allocated for the context.

Change-Id: I686b2f3090deae2fc9211acce12234daf063d913
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
ARM: dts: msm: add ssd2080m driver for skug

skug uses ssd2080m as panel driver IC, add dts file for it,
which includes initialization code, dsi timing, gpio and
power definitions

Change-Id: I0563c9f106b9d9b393632679517f77ec78583955
Signed-off-by: Ray Zhang <rayzhang@codeaurora.org>
ARM: dts: msm: tune Himax 8379a configuration

Update Himax panel`s mipi clock to 209.7MHZ
as RF`s requirement and modify panel flip
mode.

Change-Id: I26ebfd2a61843e6f04529713cb17d7dcee69b5d4
Signed-off-by: Shuo Yan <shuoy@codeaurora.org>
msm: mdss: MISR based CRC validation

MISR allows a CRC to be generated from contents of a
particular hw block which can be used for validation.
Enable setup of misr and APIs to obtain CRC from hw blocks.

Change-Id: Ib07e31cba45d242922bd28b6b306220efece7b8d
Acked-by: Sachin Bhayare <sbhayare@qti.qualcomm.com>
Signed-off-by: Mayank Chopra <makchopra@codeaurora.org>
msm: camera2: Enhance cpp driver to support native buffers

The cpp driver can be used in pure offline mode. In this case
the input and output buffers are native buffer and not from
vb2 queue. This change enhances cpp driver to be configured
to use native buffers for input and output.

Change-Id: I835296b56a406be73c2b3a0f71c75e748ff04473
Signed-off-by: Rajakumar Govindaram <rajakuma@codeaurora.org>
USB: dwc3-msm: Add recovery mechanism for erratic error event

DWC3 controller will generate Erratic event if PHY doesn't respond to
PHY command sent by core within stipulated time. In normal case, this
should not happen. Due to this, USB functionality will break if not
added recovery mechanism for handling this erratic error event. Hence
add recovery mechanism by doing block reset whenever Erratic error
event is triggered by contoller.

CRs-Fixed: 535976
Change-Id: I5c8cc0c822a26c7fe4b8ac58b651d9a3267626ce
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
USB: gadget: mtp: Fix bug in freeing memory on allocation failure

Current code doesn't handle the memory allocation failure
correctly and ends up leaking memory and trying to free
unallocated one.

CRs-fixed: 540226
Change-Id: I7e3527b7e08ccfe566d85e3009d8a015d8daa707
Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
msm: Enable SCM support for mpq8092

mpq8092 is a trustzone enabled target, So enable
SCM.

Change-Id: Ic4bc1613974c9441c4e21f21cd9340577196fb18
Signed-off-by: Srinivas Ramana <sramana@codeaurora.org>
ARM: dts: msm: Add sdcc and emmc for fsm9900 CDP and MTP

Add necessary devices to enable sdcc and emmc.

Change-Id: Iaa4ab3733ce940db5f5058a2bbf0d63703f4cc49
Acked-by: Kaushik Sikdar <ksikdar@qti.qualcomm.com>
Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org>
msm: emac: EMAC Gigabit Ethernet Controller driver

The MSM EMAC Ethernet Controller driver enables the
ethernet operation in the MSM chipsets with EMAC ethernet core.

Change-Id: If09d854da993a2cc7a04b16b0c6ebef2491111aa
Signed-off-by: Niranjana Vishwanathapura <nvishwan@codeaurora.org>
USB: dwc3: Set gadget max speed as per core's max speed of operation

On custom hardwares of 8974 platform, superspeed mode support is
disabled in hardware by having Highspeed port instead of superspeed
port. WHCK tests might fail if the tests are executed on this platform
due to wrong value of bcdUSB of device descriptor sent to host. This
is due to wrong value set for gadget's max speed. Hence set gadget
maximum speed based on maximum speed at which USB3 core is configured
to operate.

CRs-Fixed: 539890
Change-Id: Ic7d18aa889ebba508c556266dd7f815092b951f6
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
defconfig: msm8610: enable eeprom driver

Enable eeprom driver compile on 8x10 platform

Change-Id: Ic3a042a31fc35d920bcff45b01d762ba269a3c9e
Signed-off-by: Wei Ding <weiding@codeaurora.org>
ARM: dts: msm:  Add OTP support for ov8825

Add OTP support for ov8825 on 8x10 MTP

Change-Id: I490d367bf31362eb235869df07a0078cebc895ea
Signed-off-by: Wei Ding <weiding@codeaurora.org>
msm: camera: Add clock setting for ov8825 eeprom

Add clock config for ov8825 OTP on 8x10 MTP

Change-Id: I70e45028f61b9819915f47c36cf1a288edd2cd0f
Signed-off-by: Wei Ding <weiding@codeaurora.org>