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>
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>
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>
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>
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>
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>
msm: mdss: support enter/exit DCM for calibration

This change supports the enter/exit DCM for calibration tool.
It blocks the unblank operation if target is in DCM (Display
Calibration Mode).

Change-Id: If65449b9863bb1f9ca0346d736b6939261d1394e
Signed-off-by: Arpita Banerjee <cabane@codeaurora.org>
[SCSI] ufs: Remove redundant platform_set_drvdata()

Commit 0998d06310 (device-core: Ensure drvdata = NULL when no
driver is bound) removes the need to set driver data field to
NULL.

Change-Id: Ieba8247956c08cab78e250ca73b36e30795f219e
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Santosh Y <santoshsy@gmail.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Git-commit: 123f87758658285f5f844d7e8a8b974ce88d1ffc
Git-repo: https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git
Signed-off-by: Dolev Raviv <draviv@codeaurora.org>
[SCSI] ufs: SCSI_UFSHCD should depend on SCSI_DMA

If NO_DMA=y:

drivers/built-in.o: In function `ufshcd_transfer_req_compl':
drivers/scsi/ufs/ufshcd.c:1182: undefined reference to `scsi_dma_unmap'
drivers/built-in.o: In function `ufshcd_map_sg':
drivers/scsi/ufs/ufshcd.c:377: undefined reference to `scsi_dma_map'
drivers/built-in.o: In function `ufshcd_do_reset':
drivers/scsi/ufs/ufshcd.c:912: undefined reference to `scsi_dma_unmap'
drivers/built-in.o: In function `ufshcd_memory_alloc':
drivers/scsi/ufs/ufshcd.c:565: undefined reference to `dma_alloc_coherent'
drivers/built-in.o: In function `ufshcd_free_hba_memory':
drivers/scsi/ufs/ufshcd.c:185: undefined reference to `dma_free_coherent'
drivers/scsi/ufs/ufshcd.c:192: undefined reference to `dma_free_coherent'
drivers/scsi/ufs/ufshcd.c:199: undefined reference to `dma_free_coherent'
drivers/scsi/ufs/ufshcd.c:185: undefined reference to `dma_free_coherent'
drivers/scsi/ufs/ufshcd.c:192: undefined reference to `dma_free_coherent'
drivers/built-in.o:drivers/scsi/ufs/ufshcd.c:199: more undefined references to `dma_free_coherent' follow
drivers/built-in.o: In function `ufshcd_abort':
drivers/scsi/ufs/ufshcd.c:1498: undefined reference to `scsi_dma_unmap'
drivers/built-in.o: In function `ufshcd_device_reset':
drivers/scsi/ufs/ufshcd.c:1436: undefined reference to `scsi_dma_unmap'

Change-Id: If0ab86fa0679ab49ef419320ec3b2cb5d7d6f33e
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Santosh Y <santoshsy@gmail.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Git-commit: a4bfbcba691b2870d81218814267c6add885ac47
Git-repo: https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git
Signed-off-by: Dolev Raviv <draviv@codeaurora.org>
[SCSI] ufshcd-pltfrm: add missing empty slot in ufs_of_match[]

of_match_table member in struct device_driver must be terminated by
empty slot as a sentinel.

Change-Id: Icbabea0e645ba984e8afd44fc83ad2378434340d
Signed-off-by: Akinobu Mita <mita@fixstars.com>
Signed-off-by: Santosh Y <santoshsy@gmail.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Git-commit: 2e2930a3449f1fe3806e26c4391a71097cae43f3
Git-repo: https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git
Signed-off-by: Dolev Raviv <draviv@codeaurora.org>
[SCSI] ufs: fix register address in UIC error interrupt handling

In UIC error interrupt handling, it checks if UIC data link layer error
code indicates PA_INIT_ERROR in order to determine whether a fatal error
handling is needed or not.

But the code tries to read UIC data link layer error code from wrong
REG_UIC_ERROR_CODE_PHY_ADAPTER_LAYER, it should be
REG_UIC_ERROR_CODE_DATA_LINK_LAYER.

Change-Id: Ia3f019e8a33721699dabf557a9fbbea7dd3285c5
Signed-off-by: Akinobu Mita <mita@fixstars.com>
Signed-off-by: Santosh Y <santoshsy@gmail.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Git-commit: cf9f4b59c52bd12c850c20435eef9f196976f541
Git-repo: https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git
Signed-off-by: Dolev Raviv <draviv@codeaurora.org>
[SCSI] ufshcd-pltfrm: remove unnecessary dma_set_coherent_mask() call

Changing the device coherent dma mask to the value that currently set
has no effect.

Change-Id: I106c815cc0b8808fa108be6df5eff8cb64c25843
Signed-off-by: Akinobu Mita <mita@fixstars.com>
Signed-off-by: Santosh Y <santoshsy@gmail.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
[draviv@codeaurora.org: Fix conflict caused by patches
 reordering in ufshcd-pltfrm.c]
Git-commit: aca898f5d7ddcd0e7cc358a613338b009a88af80
Git-repo: https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git
Signed-off-by: Dolev Raviv <draviv@codeaurora.org>
mdss: display: add edp aux channel support toward link training

Edp aux channel is the communication channel between host and
client (panel). Host reads edid back from panel and issues dpcd
command to panel through aux channel. This patch adds aux channel
support so that edp link training can be done.

CRs-Fixed: 486135
Change-Id: If29dc8257ecc555296c043f2ebcc6dc5cb400d49
Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>