Revert "msm: iommu: remove tlb_invalidate from the map calls"

This might cause TLB invalidate to hang on unmap calls.

Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
selinux: add a ugly workaround to bail early when selinux tries to free a socket that is still in use and it ends in a Kernel panic. These lines are from opensource.samsung.com. While this will most likely put a bandaid over this Kernel panic it does not fix the bug so it might occur somewhere else if the same conditions are met but since I have only seen panics from this hook then we may as well sleep in peace.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
msm: ipc: Set unsupported protocol operations to default operations

Some of the socket system calls do not check the validity of the
operations supported by the protocol. This in turn leads to NULL
pointer dereference.

Set the operations that are not supported by IPC Router to default
operations.

Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
Power: Add guard condition for maximum wakeup reasons

Ensure the array for the wakeup reason IRQs does not overflow.

Change-Id: Iddc57a3aeb1888f39d4e7b004164611803a4d37c
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
iommu: msm: Make regulators optional

Do not error out if regulators aren't specified in the device tree
node for an IOMMU. This allows IOMMU drivers to be used in simulation
environment and for early bringup of hardware.

Change-Id: I9bb6c3faa7ba5aed482bdad6612197497f7a849d
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
Linux 3.4.83

Signed-off-by: houst0nn <houstonn@gmail.com>
msm: acpuclock-8974: fix CPU voltage limits to support additional parts

The following CPU frequency tables contain voltages higher than
than the previous limit of 1.1V:
	pro_rev1_2p5g_pvs0
	pro_rev1_2p5g_pvs1

Increase the limits to support the parts that use these tables.

Change-Id: Ife39497265ee5301de31ba91dcf0ff0ec2aeef61
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
gpiomux-8974: Add platform based MSM GPIO 81 configuration

MSM GPIO 81 is configured for AUXPCM on CDP platform
and for EPM on all non-CDP based platforms. Configure
the GPIO based on the platform.

Change-Id: I335516f9698a2a711a4d4075699c0b1ed94502b9
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
arm/dt:apq8074-Dragon board: Add PCM GPIO lines

The audio connection between apq8074 and BT on Dragon Board is through
AUX PCM lines. Add support for MSM GPIOs used for PCM ports on
Dragon Board.

Change-Id: If1a9737f6b25af5bc27542b9b512064b2e17f16b
Signed-off-by: Tanya Finkel <tfinkel@codeaurora.org>
board: 8974: Sensor GPIO config for Dragonboard APQ8074

The Dragonboard APQ8074 uses GPIO 94 as camera sensor GPIO.
The Dragonboard APQ8074 doesn't use GPIO 92 as camera GPIO.
The change implements run time GPIO 92 and 94 configuration
differentiation.

Change-Id: Ia99f810ed8528cc78e81d51e99bd61849b215342
Signed-off-by: Ilia Lin <ilialin@codeaurora.org>
gpiomux-8974: Add EPM GPIO markers

EPM GPIO markers can be used by clients to set
start/stop events to measure current consumption.

Change-Id: Ie14b8d8292892b8650c96e42a3d6ed30b7055d90
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
gpiomux-8974: Update EPM gpio configuration

Specify the EPM GPIO direction which is an output and
update the GPIO pullup.

Change-Id: Ia24008db0ef5af4d85ba2eb87c7ecc7f6b9c1943
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
gpiomux-8974: Update EPM marker gpio configuration

Specify the EPM marker GPIO direction as an output,
update the drive strength and the GPIO pullup.

Change-Id: Ica47c00390fb9d6b9121bd15bdfac6fd501e4f66
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
gpiomux-8974: Configure EPM GPIO based on platform

Add EPM GPIO for Fluid, Liquid and MTP platforms only.

Change-Id: I5e81bc2a6b303501c87a778ce3b21209d4e8c3eb
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
arm/dt: msm8610: spi_qsd: enable SPI on QUP4 for Ethernet

Ethernet is connected to QUP4 and communicates over SPI.
This patch configures SPI on QUP4 for that purpose.

Change-Id: I3ac6dcfad75670300cc9ef5af8b48067042150e3
Signed-off-by: Gilad Avidov <gavidov@codeaurora.org>
msm: board-8610-gpio-mux: Add mux configuration for 8610 touch controller

Add suspend and resume gpio mux configurations for interrupt and
reset gpios used by qrd8610 touch controller

Change-Id: I7d94ec83a4b45846a422430c9166790b58c95f8e
Signed-off-by: Figo Wang <figow@codeaurora.org>
msm: Modify functional mode of suspened GPIO

Modify functional mode of suspended
GPIO configuration of SPI to GPIO mode
instead of FUNC2 mode. Observed leakage
current issue during boot up when the
functional mode of the GPIO is FUNC2.
Hence,it is changed to GPIO mode in
this patch.

CRs-Fixed: 545555
Change-Id: Ida766a16fb1e25ebedb7dcbf17dfc81f5dbb6f0b
Signed-off-by: Sana Venkat Raju <c_vsana@codeaurora.org>
net: fix compile error of leaking kmemleak.h header

net/core/sysctl_net_core.c: In function sysctl_core_init
net/core/sysctl_net_core.c:259: error: implicit declaration of function
memleak_not_leak

with same error in net/ipv4/route.c

Change-Id: I75c3150f8cdce606efc8a472af32e4e933ac4e0d
Signed-off-by: Shan Wei <davidshan@tencent.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Git-commit: 7426a5645f3d18daec1f7d6a24b529ec7286b800
Git-repo: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/
Signed-off-by: Chintan Pandya <cpandya@codeaurora.org>
net/core:Remove memleak reports by kmemleak_not_leak.

These allocation's life cycle is through out the system is alive. So,
ignore false positives.

Change-Id: Id33e27f4a993e66ec5a6373862fc06bfcd57f664
Signed-off-by: majianpeng <majianpeng@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Git-commit: 798ec84d45754403571d6387396236e877965c5a
Git-repo: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/
Signed-off-by: Chintan Pandya <cpandya@codeaurora.org>
rtnetlink: fix error return code in rtnl_link_fill()

Fix to return a negative error code from the error handling case
instead of 0(possible overwrite to 0 by ops->fill_xstats call),
as returned elsewhere in this function.

Change-Id: Ia985101d5b14755297c8fb62d0133e3da20c66e3
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
Git-commit: fcca143d696092110ae1e361866576804fe887f3
Git-repo: https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>