Commit graph

590290 commits

Author SHA1 Message Date
Ray Zhang
dd943e28df drm/msm: add CEC notifier support for HDMI driver
Add CEC notifier support which allows HDMI driver to
inform CEC driver with the new physical address. With
this information the CEC adapter driver does not need
to manually set the physical address from userspace.

CRs-Fixed: 2041335
Change-Id: I5b5707ad40ee381b5cd67f1e89f0d2397a9a7bb2
Signed-off-by: Ray Zhang <rayz@codeaurora.org>
2017-06-05 05:46:30 -07:00
Hans Verkuil
6baa8d9364 [media] cec: integrate CEC notifier support
Support the CEC notifier framework, simplifying drivers that
depend on this.

Change-Id: I911181db4dc082befa625ce0acc3993ff6f3a1a3
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Tested-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Git-commit: e3a93adcc4f6c3b538f3d617fc48a87979d4548b
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Ray Zhang <rayz@codeaurora.org>
2017-06-05 05:46:11 -07:00
Hans Verkuil
e1dd2d127f [media] media: add CEC notifier support
Add support for CEC notifiers, which is used to convey CEC physical address
information from video drivers to their CEC counterpart driver(s).

Based on an earlier version from Russell King:

https://patchwork.kernel.org/patch/9277043/

The cec_notifier is a reference counted object containing the CEC physical address
state of a video device.

When a new notifier is registered the current state will be reported to
that notifier at registration time.

Change-Id: I00697db780b127a52512a6e55cabac745d8ebfa3
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Tested-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Git-commit: 6917a7b774133d60e0cfd8f9ac8bb62ae6ba10aa
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
[rayz@codeaurora.org: resolve merge conflicts by discarding the MAINTAINERS
 change.]
Signed-off-by: Ray Zhang <rayz@codeaurora.org>
2017-06-05 05:45:08 -07:00
Ray Zhang
4c217da22e defconfig: enable cec adapter driver in mediabox
Enable CEC adapter driver in mediabox config. This is required
to support HDMI CEC functionality.

CRs-Fixed: 2041335
Change-Id: I006ccd85a6467841c32343372d83771482d0efcd
Signed-off-by: Ray Zhang <rayz@codeaurora.org>
2017-06-05 20:39:31 +08:00
Ray Zhang
4de0a80827 ARM: dts: msm: add CEC device for msm8998
Add CEC device which provides HDMI CEC support for msm8998.
CEC is a protocol that provides high-level control functions
for the communication between various audiovisual devices.

CRs-Fixed: 2041335
Change-Id: If65798efa28e4b1eaeff5b6fa9b6f92318e7c91f
Signed-off-by: Ray Zhang <rayz@codeaurora.org>
2017-06-03 16:42:06 +08:00
Ray Zhang
1188a3afd2 msm: cec: Add CEC adapter driver for SDE hardware
This CEC adapter driver using CEC framework provides CEC
support for SDE hardware. CEC is a protocol that provides
high-level control functions between various audiovisual
products. This adapter is the hardware implementation of
CEC protocol, and its major functionality is to send and
to receive CEC messages.

CRs-Fixed: 2041335
Change-Id: I73bc9c63b78d61f5449a37cadcfeda976d5456b0
Signed-off-by: Ray Zhang <rayz@codeaurora.org>
2017-06-03 16:42:05 +08:00
Linux Build Service Account
8254bed4a9 Merge "ARM: dts: msm: Modify coresight replicator device for msm8996" 2017-06-02 14:30:17 -07:00
Linux Build Service Account
d65465f57c Merge "ARM: dts: msm: enable HDMI & DSI displays on 8996 auto CDP platform" 2017-06-02 14:30:16 -07:00
Linux Build Service Account
28bf2d8b6b Merge "msm: smmu: add re-route calling for specified iova." 2017-06-01 23:49:13 -07:00
Linux Build Service Account
defde44926 Merge "power: qcom: smb138x-charger: do not enable parallel thermal regulation" 2017-06-01 23:49:13 -07:00
Linux Build Service Account
985d03300d Merge "qpnp-fg-gen3: configure ESR timers dynamically based on charge termination" 2017-06-01 23:49:12 -07:00
Linux Build Service Account
99beece72f Merge "ARM: dts: msm: update PCIe PHY sigdet settings" 2017-06-01 23:49:11 -07:00
Linux Build Service Account
6093e6dfe7 Merge "usb: pd: policy_engine: Handle spec revision properly" 2017-06-01 23:49:10 -07:00
Linux Build Service Account
09f613d5b5 Merge "core_ctl: Add sysfs node to disable core_ctl" 2017-06-01 23:49:00 -07:00
Guchun Chen
ae94b477af msm: smmu: add re-route calling for specified iova.
When calling smmu mapping, if iova is specified directly by user, not
allocated dynamically in dma-mapping.c, smmu driver needs to provide
support for this. This is needed in early display case. In this scenario,
LK has set physical memory to display hardware for fetching, so if iova
is not explicitly specified in kernel, but instead dynamically produced
by "alloc_iova" in dma-mapping.c, display hardware has no chance to know
this new iova, then smmu fault will happen if enabling the iommu stage-1
translation.
To fix this smmu fault problem, add re-routing to the right path when
iova specified by user is not 0 in smmu map/unmap function.

Change-Id: I062b04d7eec65af1c106a5caa09ec787b5d26d0d
Signed-off-by: Guchun Chen <guchunc@codeaurora.org>
2017-06-02 09:50:41 +08:00
Linux Build Service Account
7b2906163b Merge "clk: msm: clock-local2: Remove checks for display RCG re-configuration" 2017-06-01 16:56:02 -07:00
Linux Build Service Account
e0b49f46ed Merge "msm: kgsl: Use per page cache operation instead of bulk cache operation" 2017-06-01 16:56:02 -07:00
Linux Build Service Account
d1cf82998e Merge "ARM: dts: msm: Enable support for audio on guest virtual platform" 2017-06-01 16:56:01 -07:00
Linux Build Service Account
8db82e3c1d Merge "iommu: iommu-debug: limit memory address exposure" 2017-06-01 16:56:00 -07:00
Linux Build Service Account
2ce111aca6 Merge "diag: Add support for mhi shutdown notification" 2017-06-01 16:55:59 -07:00
Nicholas Troast
0337983597 power: qcom: smb138x-charger: do not enable parallel thermal regulation
USB connector HW based thermal regulation is active which will throttle
the input current on USBIN-USBIN configurations. This was enabled for
MID-MID configurations to enable the comparator output for USB connector
temperature mitigation, but since the input is bypassed it does not
throttle the input current. The comparator output is no longer used
since the ADC values are used directly, so neither configuration needs
this HW feature to be enabled.

Remove the write to enable this HW feature.

Change-Id: Ia7f6b3812ae222fbd8233d07dd6daa67e65ce08b
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2017-06-01 15:20:08 -07:00
Hemant Kumar
6577867741 usb: pd: policy_engine: Handle spec revision properly
As per USB PD 3.0 specification the 2-bit Specification Revision field
of a GoodCRC Message does not carry any meaning and Shall be considered
as don't care by the recipient of the Message. Hence set spec revision
to USBPD_REV_20 for GoodCRC message. PD protocol message header defaults
to USBPD_REV_20 which gets updated USBPD_REV_30 if PD 3.0 source capabale
of programmable power supply.

Change-Id: I5209bb00c437f3c959d093a972f1ac75233cbcf9
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2017-06-01 13:51:13 -07:00
Tony Truong
d74538ee29 ARM: dts: msm: update PCIe PHY sigdet settings
Sigdet under low power (LP) mode will use a less accurate local reference
generation, which is expected to have a little more variation than a
precise reference (normal mode). Update PCIe PHY sigdet to use normal
mode instead of LP to increase accuracy and make sigdet more robust.

Change-Id: If9cad9ac9b5a6a736e3af653ac3b3b5e30cfefb4
Signed-off-by: Tony Truong <truong@codeaurora.org>
2017-06-01 11:28:03 -07:00
King Tam
5acecf5e08 ARM: dts: msm: Enable support for audio on guest virtual platform
Update device tree nodes to support audio on guest virtual machine.

Change-Id: Id2e12b466cff43d8ddcb5c01ecd7bb1a7f0ba04c
CRs-fixed: 2047317
Signed-off-by: King Tam <kingt@codeaurora.org>
2017-06-01 11:24:42 -07:00
Deepak Katragadda
055e78609c clk: msm: clock-local2: Remove checks for display RCG re-configuration
Allow re-configuring the DSI, DP and HDMI RCGs even if their
current configuration matches that of the requested frequency.
This is to work around the MM RCGs being latched to run off of
XO by default after an MM GDSC power collapse.

Change-Id: Idf5f1f25df6d6a8ef29eb8c15086deba1017584e
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
2017-06-01 09:38:25 -07:00
Linux Build Service Account
840d1a232c Merge "core_ctl: un-isolate BIG CPUs more aggressively" 2017-06-01 01:53:22 -07:00
Linux Build Service Account
f53ee91e04 Merge "sched: Improve short sleeping tasks detection" 2017-06-01 01:53:21 -07:00
Linux Build Service Account
64b788384b Merge "mm: process reclaim: skip locked vmas" 2017-06-01 01:53:21 -07:00
Linux Build Service Account
419619b95d Merge "ASoC: msm: qdsp6v2: extend validation of virtual address" 2017-06-01 01:53:20 -07:00
Linux Build Service Account
1d234ffe59 Merge "drivers: mfd: donot clear interrupt status" 2017-06-01 01:53:19 -07:00
Linux Build Service Account
62a1288929 Merge "ASoC: sdm660_cdc: Add writeable registers for Dig_cdc and sdw codec regmap" 2017-06-01 01:53:18 -07:00
Linux Build Service Account
4ac01e4d3f Merge "ARM: dts: msm: add noirq pcm platform driver on msm8996 auto" 2017-06-01 01:53:17 -07:00
Linux Build Service Account
6d91eba63e Merge "ASoC: msm: Enable use of noirq playback and capture" 2017-06-01 01:53:16 -07:00
Linux Build Service Account
8cbd998688 Merge "pinctrl: lpi: Avoid null pointer access in dbg_show" 2017-06-01 01:53:15 -07:00
Linux Build Service Account
36d10a3882 Merge "ASoC: audio_notifier : Change logic for initial boot" 2017-06-01 01:53:14 -07:00
Linux Build Service Account
4383ba69ae Merge "ASoC: wcd934x: Add support to restore IIR coefficients after power collapse" 2017-06-01 01:53:13 -07:00
Linux Build Service Account
d06a7d01d4 Merge "iommu: iommu-debug: cleanup iommu debug" 2017-06-01 01:53:11 -07:00
Linux Build Service Account
d4caef59c0 Merge "mhi: core: Only allow registration if channel is supported by endpoint." 2017-06-01 01:53:10 -07:00
Linux Build Service Account
b5c7db0743 Merge "mhi: core: Fix memory leak in MHI DE_INIT" 2017-06-01 01:53:09 -07:00
Linux Build Service Account
0934299196 Merge "mhi: core: Create dummy MHI APIs to fix compile errors" 2017-06-01 01:53:09 -07:00
Linux Build Service Account
e5e25bbebf Merge "drivers: firmware: psci: Set ARM32 cpuidle ops" 2017-06-01 01:53:08 -07:00
Linux Build Service Account
864fd17d93 Merge "diag: Synchronize command registration table access" 2017-06-01 01:53:07 -07:00
Linux Build Service Account
9037b7483c Merge "ASoC: msm: add support for RTIC events" 2017-06-01 01:53:05 -07:00
Linux Build Service Account
28192a79e3 Merge "ASoC: msm: Add support for 192KHz sampling rate" 2017-06-01 01:53:04 -07:00
Linux Build Service Account
bccca4c896 Merge "msm: camera: Align smmu mapping len to 128M." 2017-06-01 01:53:03 -07:00
Linux Build Service Account
d5430d098c Merge "msm: ais: Add regulator enable and disable independent of CSID" 2017-06-01 01:53:02 -07:00
Linux Build Service Account
c183209691 Merge "msm: camera: cpp: Issue CPP HALT on page fault" 2017-06-01 01:53:00 -07:00
Linux Build Service Account
15f0386b00 Merge "msm: camera: sensor: Change REFGEN for DPHY CLK/DATA to internal bias" 2017-06-01 01:52:59 -07:00
Linux Build Service Account
9d0b778206 Merge "ARM: dts: msm: change gpio mode on msm8998" 2017-06-01 01:52:58 -07:00
Linux Build Service Account
d7c721d345 Merge "qcdev: Check the digest length during the SHA operations" 2017-06-01 01:52:57 -07:00