msm: pcie: fix PCIe packet corruption issue on APQ8064

The PCIe packet corruption observed on APQ8064v1 was found on v2
as well. Thus, apply this software workaround to v2 as well.

Change-Id: I7fc1c614c1e8ca4b273cb03d8079ec2d60b043b4
Signed-off-by: Yan He <yanhe@codeaurora.org>
msm: fsm9900: Add tlmm config data for the fsm9900_cdp

Add default configuration of the tlmm in the FSM9900
CDP target

Change-Id: I6c7e59ba6a0354c745dfe851bf93fd5bce9be99f
Acked-by: Kaushik Sikdar <ksikdar@qti.qualcomm.com>
Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org>
defconfig: apq8084: Enable PIL Venus

Turn on the PIL Venus config to support loading and booting
Venus.

Change-Id: I8602d57a998296680961df781ae82d739d46be34
Signed-off-by: Tianyi Gou <tgou@codeaurora.org>
ARM: dts: msm: Correct ngpios DT entry for MSMSAMARIUM

Fixed MSMSAMARIUM msmgpio DT node, which had an incorrect value
of 145 in its ngpios field

Change-Id: I8e06208c1d2482a02b1644e5c253917455fbcf62
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
mdss: hdmi: sysfs node for hdcp status

The change provides the sysfs node to query hdcp authentication
status. "status" node under hdcp folder will be:
not available: if target doesn't support HDCP
0: inactive
1: authenticating
2: authentication pass
3: authentication fail

Change-Id: I685a25566cfee9cbc89b14263e30a4af3a410f7d
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
mmc: core: disable runtime PM for sdio cards

This patch disables runtime PM for sdio cards because
the runtime PM is managed by the respective SDIO function
drivers.
The card device (if sdio card) is set as runtime active
however, the runtime PM is not enabled for the same.
The runtime PM framework ensures that a device's
parents' cannot be suspended till all of its children
are suspended.

Change-Id: Ie0778d96f91738fc14a0dc05a3430c1f382ef13c
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
msm: kgsl: Add a check to free the kgsl_timeline object.

Add a check to free the kgsl_timeline object only after
destroy flag is set. This is to avoid further references to timeline
from kgsl if it is already freed and also to catch any unbalanced
kref count.

Change-Id: I8017b9a928a26b703eb92b17ab6a361e4b479e5a
Signed-off-by: Rajesh Kemisetti <rajeshk@codeaurora.org>
msm: kgsl: Provide a sysfs interface to force GPU power rail on

Provide a debugging interface to keep power rail permanently
enabled. Setting the force_rail_on sysfs entry will leave the
power rail always on.

Change-Id: I10a69dbf5b8cf2e2673b0fcc5e5fb5500a388904
Signed-off-by: Suman Tatiraju <sumant@codeaurora.org>
msm: smcmod: Added ioctl to decrypt PIL segment images

The new proposed ioctl will be used to decrypt images during
Google OTA update from recovery mode. It makes a request to
secure world and receives a response with status. The
decryption is executed by secure world code.

Change-Id: I667ec5f7918f271f82c1942c21f09bf3e932e874
Signed-off-by: Stanimir Varbanov <svarba@codeaurora.org>
msm: smcmod: Remove the driver dependancy to FSM9xxx

The smcmod driver will be used on MSM targets to communicate with
secure world. To make possible building of the driver on MSM targets
remove the depends on FSM9xxx from Kconfig.

Change-Id: I721d791f64d1dd48bc7264b9af545afb8818ef56
Signed-off-by: Stanimir Varbanov <svarba@codeaurora.org>
usb: gadget: u_bam: Lock access to port_usb in start/stop transfers

Add protection to access to port_usb fields in start/stop transfers.
Otherwise the functions might compete with disconnect sequence
and null dereference might occur.

Change-Id: I7e62ddd98adc414cadf426daae900c5db04939ee
Signed-off-by: Lena Salman <esalman@codeaurora.org>
ion: iommu: Add support for 2MB chunk allocation in IOMMU

For LPAE, 2 MB allocation will serve as 2nd level page tables.
Instead of falling back to 3rd level page tables with mapping
4KB chunks, map 2MB chunks.

Change-Id: Ib637ecd6d904870ed4116a99ff222bd573f0a6fb
Signed-off-by: Chintan Pandya <cpandya@codeaurora.org>
ASoC: mdm: Add In-call recording and playback support

Incall recording and playback support is not present
in machine drivers.  Add backend DAIs for incall
recording and playback to the machine driver.

Change-Id: Ibab864d609438120821c451d24ecc781df06c018
Signed-off-by: Prashanth Reddy <pgreddy@codeaurora.org>
arm/dt: msm9625: Add incall recording and playback support

Incall recording and playback support is not present in
device tree. Add incall recording and playback support
to the msm9625 device tree.

Change-Id: If6f5c49d9e1d9f36dbc28a6f3c798809e79558ba
Signed-off-by: Prashanth Reddy <pgreddy@codeaurora.org>
mmc: sdhci-msm: add MMC_PM_KEEP_POWER flag

This flag ensures that the power to the sdio card is not
cut-off. That way this can wake-up the device when required
using asynchronous interrupt mechanism.

Change-Id: Ic91bfdc93e117c5e627360a4d0ef80f661aa1b60
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
cache_erp: Use seq_printf and modernize procfs code

In future kernels create_proc_entry() is going to be removed.
Let's modernize this code and use regular file operations and
seq_printf() to avoid experiencing compilation problems in future
kernels.

Change-Id: Ifc11287a8aefa8b2af3fb7d68fd96c1db8f2f098
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
ARM: vfpmodule: Move bounce stats file to seq_file and friends

In future kernels create_proc_entry() is going to be removed.
Let's modernize this code and use regular file operations and
seq_printf() to avoid experiencing compilation problems in future
kernels.

Change-Id: Ie53663e099ff72a3eec84df7c3f77e15c0e539be
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
scripts: only set CROSS_COMPILE when unset to begin with

Don't mess with CROSS_COMPILE if it's already set up in the user's
environment. This allows the user to specify the cross compiler that
they wish to use.

Change-Id: I15873f79a30e1da91ee34eb31c713e5cd767c372
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
mmc: sdhci-msm: configure regulators only if defined in dts

This patch adds support to configure regulators only if
it is defined in dts files. However, it doesn't return an
error otherwise.

Change-Id: Iac2284b2df3b3d8af623da0f17697694994b34b8
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
msm: vidc: Set buffer types properly in prepare_buf for encoder

Due to how HAL buffer types are tied into the secure hints, switch up
the HAL buffer types if the current session is of type encoder.

Change-Id: Idb74340ffad25278dd926c869745e235b4821ae3
Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org>