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>
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>
mmc: cd-gpio: Add sanity checks in mmc_cd_gpio_free()

Add necessary sanity checks in mmc_cd_gpio_free() to fix
below warning:

[    5.856209] WARNING: at
local/mnt/workspace/builds/jb2/kernel/kernel/irq/manage.c:1219
__free_irq+0x88/0x1a8()
[    5.856215] Trying to free already-free IRQ 0
[    5.856219] Modules linked in:
[    5.856239] [<c010be94>] (unwind_backtrace+0x0/0x11c) from [<c0190f38>]
(warn_slowpath_common+0x4c/0x64)

CRs-fixed: 564084
Change-Id: Ia9ea0e82453e645ce44046a762cd78aeb544e8b1
Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>

Conflicts:
	drivers/mmc/core/cd-gpio.c
mmc: card: CORRECTLY_PRG_SECTORS_NUM parsing fix

According to eMMC specification (4.5 onwards), CORRECTLY_PRG_SECTORS_NUM
field will reflect the accumulated packed sectors that were transferred
plus header. The header (1 sector size) is not actually written to NAND.

The fix will decrement correctly programmed sectors byte count by 1 sector
size.

CRs-fixed: 518341
Change-Id: I94a79903469c011308fcaf195fce5af5f0525026
Signed-off-by: Konstantin Dorfman <kdorfman@codeaurora.org>
mmc: Get rid of CONFIG_MACH_MSM8974_EMMC_HW_RESET

Change-Id: Ibeb4d8c4c0e8188a48d468907dc42adce40be136
mmc: sdhci-msm: set core in proper mode before reset

During probe disable the HC mode since the reset is done in
SDCC mode. HC mode will get set after the reset is complete
before the rest of the initialization is done.

CRs-Fixed: 538028
Change-Id: I1fdc633c218447c15c8caad24e2805e7510088f2
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
msm: kgsl: Fix several possible problem spots in the dispatcher

Fix a few spots that the compiler warnings missed. Avoid
dereferencing a pointer that may have returned ERR_PTR() without
first checking to see that if it did return ERR_PTR() and correct
an egregious signed / unsigned mixup. Not sure why the compiler
didn't yell at me for that one.

Change-Id: Ic0dedbadf075b34e51a89ce625d2308c5171a58d
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>