msm: Add nodes in socinfo, to store APPS image version in SMEM

- Nodes for image_version, image_crm_version and image_variant updated in
order to store APPS image version.
- We get this info from userspace and pass it to SMEM.
- UGO write access added to select_image node, in order DIAG daemon
to be able to change it from userspace.

Change-Id: I9792aed3a74c4ba156b1b387d3ff38a1c5a13088
Signed-off-by: Yulian Shandorov <jshandorov@codeaurora.org>
ARM: dts: msm: Enable flash for imx135 on mtp and fluid

Flash is enabled for camera sensor imx135 on 8974 mtp and fluid
devices.

Change-Id: Ic8bc74e8a76d156cb7c6f1bc6ff502b76d010e0b
Signed-off-by: Xu Han <hanxu@codeaurora.org>
ARM: dts: msm: Added torch-source for 8974 mtp

Torce mode support was missing on 8974 mtp.
Added torch-source to led-flash in the dtsi file.

Change-Id: Idaa07d1e722b8a77dacee0b629e95f2a76eb2bc8
Signed-off-by: Xu Han <hanxu@codeaurora.org>
msm: camera: Remove unused code used to map userspace buffers.

Remove MSM_CAM_IOCTL_SET_MEM_MAP_INFO IOCTL support, since the usage
of this IOCTL is now depreciated.

Change-Id: I2ca8477fc804a80587bf40dba38904347e9b25aa
Signed-off-by: Kiran Kumar H N <hurlisal@codeaurora.org>
ARM: dts: apq: enable dsi device node for dragonboard8074

Enable dsi panel device nodes by default so
they are available for the respective controllers
to initialize when required. This allows to implement
the ability to override the choice of default primary
display panel which can be used for panel characterization
purposes.

Change-Id: I32bbf28f77761ca9d62cf3e3ce31f99033e1fb3c
Signed-off-by: Asaf Penso <apenso@codeaurora.org>
msm: camera2: cpp: Reset MICRO block before clock enable

The MICRO can be triggered to enter in bad state when the
corresponding clock is enabled. This patch resets MICRO block and
then enables clock.

Change-Id: I08128211e561026eed76041e73fa971ba369576a
Signed-off-by: Rajakumar Govindaram <rajakuma@codeaurora.org>
leds: leds-qpnp: Avoid OVP spike when disabling wled

Implement software workaround to avoid OVP spike
when wled module is disabled.

Change-Id: I336de47e43dd187da421c7c780ab861147c84c71
Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
msm: audio: qdsp6v2: Change acdb_mmap size variable to unsigned

The acdb_mmap fuction does a size calculation but
stores the result in an int which makes negitive
numbers possible. Changing the variable to unsigned
ensures that the size used is never out of bounds.

Change-Id: Iffd9c1440d2f28b703a77993fdbb3ccd18f30694
CRs-fixed: 548145
Signed-off-by: Ben Romberger <bromberg@codeaurora.org>
ASoC: msm: Change acdb_mmap size variable to unsigned

The acdb_mmap fuction does a size calculation but
stores the result in an int which makes negitive
numbers possible. Changing the variable to unsigned
ensures that the size used is never out of bounds.

Change-Id: Ie3cf4c0a1037e7f5fef29b8301becc6c19200ed6
CRs-fixed: 548145
Signed-off-by: Ben Romberger <bromberg@codeaurora.org>
ARM: dts: msm: Support touch with 1080p display on 8974

Enable Synaptics S3408 touchscreen on 8974 1080p display panel.

Change-Id: I9e953370edc0c3aef7d7493fa75b23715609f894
Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
ARM: dts: msm: Add entry for relocatable pil heaps

Add device tree entry for relocatable pil heaps to
be loaded using the ion framework, and update the
device tree to with latest address of the memory
hole.

Change-Id: I7160159dce4897040610dfeece405cd41e5db415
Signed-off-by: Neeti Desai <neetid@codeaurora.org>
ARM: dts: msm: add HDMI GPIO regulator device for APQ8084 CDP

The HDMI chip found on APQ8084 CDP boards is powered via an
external regulator controlled by PMA8084 MPP 03. This external
regulator outputs a constant 5 V.

Change-Id: I97bd316c419f30887dc0a1d40337cb8ed2349fb3
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
Revert "ARM: gic: save/restore distributor ISR register values"

This reverts commit d0cbdfddce40c7c398a3786fbf3d7139e2b687fe.
Dropping support for MSM8625.

Change-Id: I2bd4decb5c4386311e9b265efa08c3305da226bc
Signed-off-by: Abhimanyu Kapur <abhimany@codeaurora.org>
Revert "ARM: gic: Remove parameters from msm_gic_save"

This reverts commit 7c2c583f9356cfd1563ed6b907f479483bb9a643.
Dropping support for MSM8625.

Change-Id: I814f5ded6e8f59e87ddb9f716e821e99fa5d4bed
Signed-off-by: Abhimanyu Kapur <abhimany@codeaurora.org>
Revert "ARM: gic: Add flag to select 8625 QGIC2 back to back read/write workaround"

This reverts commit cfe3e2b6de1c270e6c3f37cf406855c4396812b0.
Dropping support for MSM8625.

Change-Id: Ic2a5f5ec8d1a4e96d58f36e08f974752db6173c5
Signed-off-by: Abhimanyu Kapur <abhimany@codeaurora.org>
Revert "ARM: gic: Remove ARCH_MSM8625 around the gic_save APIs"

This reverts commit 991d7099f512653500ea000b0116b5b3307a6d33.
Dropping support for MSM8625.

Change-Id: I4f0042d94109c0ec1f0fc26335e5a47e324878dc
Signed-off-by: Abhimanyu Kapur <abhimany@codeaurora.org>
Revert "ARM: gic: Patches for 8625 hardware workaround"

This reverts commit a539ac31ba92b84c984a639f1394fd90ff7680b7.
Dropping support for MSM8625 to clean up for arm64.

Conflicts:
	include/linux/irqchip/arm-gic.h
	drivers/irqchip/irq-gic.c

Change-Id: I9c54bde5b080da36930cf1286c17896e2bd5966b
Signed-off-by: Abhimanyu Kapur <abhimany@codeaurora.org>
USB: dwc3_otg: Retry if vbus regulator get fail with -EPROBE_DEFER

As part of ID clear, OTG driver tries to start host mode. This might
fail if regulator driver is not ready and returns -EPROBE_DEFER for
VBUS regulator_get. Hence schedule sm_work for one second delay in
case of -EPROBEDEFER so that it can retry start_host again.

CRs-Fixed: 546709
Change-Id: Iab443e7984619d474b15b695fbf5b7639a41ddd0
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
ARM: dts: msm: Fix number of GPIOs for msm8926

msm8926 has gpios 0-120. ngpio should be 121 not 120. Fix it.

Change-Id: Ifa6e3b8dd7dbbe572febd52d6e1d8e154e99c335
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
input: touchscreen: Add dynamic detection support to Goodix driver

Add dynamic detection support to goodix driver, where
the driver tries to read the chip id and make sure
it is communicating with the right chip.

gtp_read_version is modified to gtp_read_fw_version
which reads the firmware version from the controller
and will be used during fw update process.

CRs-fixed: 538818
Change-Id: I2dc51b84f817413da6bf9b266e2fe7e0bb09c4bc
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>