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>
galbi: Modify functional mode of suspened GPIO

Apply change Ida766a16fb1e25ebedb7dcbf17dfc81f5dbb6f0b to all
g2/z devices

Change-Id: I3da3e03cd04e075dc665414c81915f953b1aeb65
msm: netfilter: NATTYPE Refresh Timer Changes

NATTYPE entry timeout will not be updated when packets
start flowing through IPA and eventually can timeout.
Make changes to refresh the NATTYPE entry timeout from
the connection tracking netlink module which is used by
IPANAT to update conntrack timeout. Also make the timeout
dynamic by taking the expiry timeout value from connection
tracking entry. Otherwise NATTYPE entry will not timeout
even when all the corresponding conntrack entries expire.

CRs-FIXED: 490813
Change-Id: Ibb225d7b91070ca9948c7a11f0b5925a8435915c
Signed-off-by: Tyler Wear <twear@codeaurora.org>
netfilter: Add of NATTYPE COOKIE Check

Add NATTYPE COOKIE to avoid invalid access of NATTYPE
entry from the conntrack module. This compensates for
possible garbage values in the conntrack entry, which
would cause potential errors.

Change-Id: I1a53fa0dc6961dd3e53d382642b413d4ee781ed6
Signed-off-by: Tyler Wear <twear@codeaurora.org>
Signed-off-by: Devendra Patel <cdevenp@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: Call nlmsg_parse() with correct header length

Change-Id: I85f2ac4161ed4a6f997be62e80ab96942d8e1894
Signed-off-by: Michael Riesch <michael.riesch@omicron.at>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Jiri Benc <jbenc@redhat.com>
Cc: "Theodore Ts'o" <tytso@mit.edu>
Cc: linux-kernel@vger.kernel.org
Acked-by: Mark Rustad <mark.d.rustad@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Git-commit: 88c5b5ce5cb57af6ca2a7cf4d5715fa320448ff9
Git-repo: https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
net: sock: validate data_len before allocating skb in sock_alloc_send_pskb()

We need to validate the number of pages consumed by data_len, otherwise frags
array could be overflowed by userspace. So this patch validate data_len and
return -EMSGSIZE when data_len may occupies more frags than MAX_SKB_FRAGS.

Change-Id: I2a7d6bb93e4fa04efc6f576d22277f43b11257d3
Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Git-commit: cc9b17ad29ecaa20bfe426a8d4dbfb94b13ff1cc
Git-repo: https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git
Signed-off-by: Subbaraman Narayanamurthy <subbaram@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>
net: change error print messages to generate warnings

Given the numerous clients of sockets, it is difficult to find the
offending client for the error that is being reported. Change the
kernel print messages to generate a warning instead so that we get
a complete call stack.

Change-Id: I4bfce3e0a5aecd88c6fa4a1f900482449a4b868d
Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>