msm: mdss: update pipe params on first update after suspend

Whenever panel is turned off, need to ensure that pipe is reprogrammed
fully when turned back on in case the pipes are not properly unset.

Change-Id: I6242b8f90695dd713c87924eb15306767b62803e
Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org>
netfilter: Enable TOS matching in the kernel

This patch enabled kernel config CONFIG_NETFILTER_XT_MATCH_DSCP.
This adds a netfilter kernel configuration for matching TOS
packets for IPV4 packets. This will be required in certain QOS
filtering scenarios when the filter match is based on TOS.

CRs-Fixed: 542806
Change-Id: I59f311709daba8859db317cc152f96bc09f345b1
Acked-by: Sudharsan Coimbatore Premkumar <supremku@qti.qualcomm.com>
Signed-off-by: Harout Hedeshian <harouth@codeaurora.org>
usb: misc: diag_bridge: use platform_device_register_simple

Simplify platform_device allocation in probe() function by
calling platform_device_register_simple(). This does the job
of both allocation as well as calling platform_device_add(),
which will reduce the number of error checks needed by one.

CRs-fixed: 534397
Change-Id: I02815b67a36dd7da0bf872ca5bd7464e290267c8
Signed-off-by: Jack Pham <jackp@codeaurora.org>
msm: smp2p: convert to secured smem feature

The shared memory (smem) driver provides a feature where point-to-point
smem items shared between Linux apps and one other remote processor are
protected against a number of attacks by security hardware, provided system
support exists.  Clients of the smem driver must elect to use this feature
if applicable.

SMP2P is a point-to-point communication protocol to which the security
feature applies.  Update SMP2P to make use of the security feature.

Change-Id: Ief920a2074d43507f727bfcb02ad1997f3f78c28
Signed-off-by: Jeffrey Hugo <jhugo@codeaurora.org>
ARM: 7809/1: perf: fix event validation for software group leaders

It is possible to construct an event group with a software event as a
group leader and then subsequently add a hardware event to the group.
This results in the event group being validated by adding all members
of the group to a fake PMU and attempting to allocate each event on
their respective PMU.

Unfortunately, for software events wthout a corresponding arm_pmu, this
results in a kernel crash attempting to dereference the ->get_event_idx
function pointer.

This patch fixes the problem by checking explicitly for software events
and ignoring those in event validation (since they can always be
scheduled). We will probably want to revisit this for 3.12, since the
validation checks don't appear to work correctly when dealing with
multiple hardware PMUs anyway.

Change-Id: Ic1722ba7463c9836f1ff595d7e8da1d0fc0e32b0
Cc: <stable@vger.kernel.org>
Reported-by: Vince Weaver <vincent.weaver@maine.edu>
Tested-by: Vince Weaver <vincent.weaver@maine.edu>
Tested-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Git-commit: c95eb3184ea1a3a2551df57190c81da695e2144b
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
CRs-fixed: 529735
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
ARM: dts: msm: Add bus voting to USB on APQ8084

Add entries specifying bus performance voting for the
USB device.

Change-Id: I6281b74403f06f8ed0c2e7d4d4d2055bc56965d1
Signed-off-by: Jack Pham <jackp@codeaurora.org>
bif: bif-core: use static inline for all exported BIF stub functions

Mark all stub functions in the BIF consumer.h header file with
'static inline' in order to avoid compilation errors in files
that include consumer.h when CONFIG_BIF=n.

Change-Id: I3a5c7dc58f8eed93b1f30d0e021b65ab200b4271
Signed-off-by: David Collins <collinsd@codeaurora.org>
defconfig: 8974: disable RTB logging in perf defconfig

RTB logging adds latency for the register access. This is causing
hindrance to the performance measurement. Hence disable RTB logging
in perf defconfig.

Change-Id: I8e3eb552a667e7958621c91b6b779b9fce24b350
Signed-off-by: Ping Li <quicpingli@codeaurora.org>
wlan: cld: Add CLD driver configuration to Kconfig for APQ8084

The WLAN CLD driver depends on WEXT, NL80211 TESTMODE and PCI
support in the kernel. So add a CLD driver configuration
CONFIG_CLD_LL_CORE for qca6714 that selects WEXT and NL80211
Testmode support and sets the dependencies on PCI, MSI and PCIE.
Also add the CLD config to APQ8084 default kernel config.

CRs-Fixed: 550681
Change-Id: I99d88ba3d3f6029fa9a39631683828d949c719d6
Signed-off-by: Rajesh Chauhan <rajeshc@codeaurora.org>
Acked-by: Sundar Subramaniyan <subrams@qti.qualcomm.com>
ARM: dts: msm8226: Update MPM mapping for GIC interrupts

Add three more interrupts to the existing MPM mapping bypass list.

Change-Id: I0c1c4ba1598a02dffeadfc9112d50a6fee4daae0
Signed-off-by: Harry Yang <harryy@codeaurora.org>
avtimer: Update avtimer driver to parse driver tree data

LPASS exposes registers from which timestamp can be
read by clients for audio & video synchronization.
Change adds to retrieve the register address of AV
timer in LPASS passing from driver tree data.

Change-Id: Id7cf3455e22ddc27f5350a7a37c3b40d44eb0873
Signed-off-by: Gopikrishnaiah Anandan <agopik@codeaurora.org>
avtimer: Update avtimer driver to support Qdsp6v2

AVtimer in Qdsp6 provides the timer ticks for synchronization
of audio and video streams for capture and playback use cases.
Qdsp6 AVtimer interface has been updated for v2 version.
Update avtimer driver to support Qdsp6v2.

Change-Id: Ia68b04421edf13a96685654761bb71b866a5327b
Signed-off-by: Kuirong Wang <kuirongw@codeaurora.org>
defconfig: 8974: Enable AV timer

Change enables AV timer driver which provides audio
and video synchronization clock support

Change-Id: I318de660e6f52d0c62bafc5cb2c9907fe007c997
Signed-off-by: Gopikrishnaiah Anandan <agopik@codeaurora.org>
ARM: dts: msm: Override KTM hotplug sensors for msm8926

For msm8926, core 2- 3 tsens is mapped to tsens_tz_sensor1. Override
hotplug properties: qcom, cpu-sensors in msm8926 device tree accordingly
when KTM hotplug is enabled in msm8226 device tree.

Change-Id: I746254f4175e2498555c64a42285a5738fc2d823
Signed-off-by: Jennifer Liu <chihning@codeaurora.org>
msm: mdss: Reset right mixer flush bits in split-display use-case

Split-display uses left and right mixers in a single control path. In
such scenarios, flush bits variable holding right mixer updates needs
to be reset in along with left mixer.

Change-Id: I66060b7be5a38e2c08e0f1d3d82a18062e2bd8c8
Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org>
defconfig: 8226: Enable CC_STACKPROTECTOR

Enable the stack canary feature in an effort to detect
potential buffer overflows within the kernel.

Change-Id: I20c5d363e77e58809e6b3241b104a4ac6a4fb9d8
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
ARM: dts: msm: Reduce drive strength on SDC1 clk for MSM8974Pro AB MTP

The current clock drive strength of 16mA is causing data corruptions on
some MTP's, hence reduce the clock drive strength to 10mA.

Change-Id: Ic56a56f5ca2ca90063151adeecc2dea3834aaf8b
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
msm: clock-samarium: Add lookup entries for the scm-pas driver

The scm-pas driver needs to setup crypto clocks for the
secure world. Add these clocks to the lookup table and
setup a voter for the CE1 RCG.

Change-Id: I4de2c49cd0ab53b52959536919656064d9625601
Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
msm: cpr-regulator: add debug support using debugfs

Add support to print out cpr register content in shell.

Change-Id: I2b80816e0b4fa09289be6d04a6e6a3f3de313652
Signed-off-by: Ke Liu <keliu@codeaurora.org>
usb_bam: Fix producer request on resume

In certain scenario, where no consumer request the variable
'pipes_resumed' remain != 0, therefore on next suspend and resume
iteration, the producer request will be skipped.

CRs-Fixed: 548971
Change-Id: Ia2ec567f152153321c538e93899012c59ad28197
Signed-off-by: Lena Salman <esalman@codeaurora.org>
Signed-off-by: Ido Shayevitz <idos@codeaurora.org>