Commit graph

589937 commits

Author SHA1 Message Date
Jaiju Yesudasan
54dbacb5eb adv7481: Fix interrupt handling
ADV7481 raises back-to-back interrupts on cable connect and
disconnect. The IRQ bottom half has to check the interrupt status
register in a loop and service all events that have been raised,
rather than relying on the top half getting scheduled for each event.

Signed-off-by: Jaiju Yesudasan <cjaijuy@codeaurora.org>
Change-Id: I388d951fa5ed8ac22db9358e86de74d0b83c5a50
2017-05-26 01:40:33 -07:00
Jaiju Yesudasan
25af46edc5 adv7481: Add support for block write
Add support for block i2c write to adv7481 to reduce
write latency and hence improve boot KPI.

Signed-off-by: Jaiju Yesudasan <cjaijuy@codeaurora.org>
Change-Id: I98de976793f47a4a65cf818ee1d919fe3d6200a3
2017-05-26 01:40:26 -07:00
Shiju Mathew
ba7970cfcb adv7481: Release CCI clocks and vreg during a probe failure
When driver probe fails, release CCI clocks and voltage
regulators so that the target can go to low power state.

CRs-Fixed: 1084079
Change-Id: Ic0581f3b8ebaed84d22f627d5ddd3dcb32dafb21
Signed-off-by: Shiju Mathew <shijum@codeaurora.org>
2017-05-26 01:40:14 -07:00
Terence Ho
c16c42a403 adv7481: Add suspend and resume handler functions
Add suspend and resume handler to be called from power management
framework for driver to release clock votes prior to device goes
into sleep state. Driver requests for the necessary resources in
resume handler

CRs-Fixed: 1062576
Change-Id: Iff9e7ed7b7918f9a371453a020086f22e844d7e4
Signed-off-by: Terence Ho <terenceh@codeaurora.org>
2017-05-26 01:40:05 -07:00
Shiju Mathew
402e3c1d4e adv7481: Increase video input signal lock retry
Sometime signal locking for video inputs takes a bit
more time on MSM8996 automotive targets.

CRs-Fixed: 1047744
Change-Id: I38b1d21f367f5004bdbfb2e2820d83a1ee3f81ee
Signed-off-by: Shiju Mathew <shijum@codeaurora.org>
2017-05-26 01:39:55 -07:00
Shiju Mathew
3577e3c771 adv7481: Add support for CVBS interrupts
Add signal lock/unlock interrupts for CVBS input. This
enables to detect when input stream is stop/start due
to reasons such as cable plug out/plugin. Also update
driver code with the new macro added with this patch
and clean up header to move tab to space for consistent
editing/viewing across editors.

CRs-Fixed: 1033059
Change-Id: I8d28182de6f36c1301a2a04abd602cfbe5516be8
Signed-off-by: Shiju Mathew <shijum@codeaurora.org>
2017-05-26 01:39:39 -07:00
Shiju Mathew
cbfef60b3f adv7481: Add support for CVBS input on MSM8996 Auto
Enable adv7481 CVBS input on MSM8996 automotive.

CRs-Fixed: 1029211
Change-Id: I06ba481be4f5f899df248615b2458ec81a3a17df
Signed-off-by: Shiju Mathew <shijum@codeaurora.org>
2017-05-26 01:39:32 -07:00
Shiju Mathew
8ff7c3b809 adv7481: Add voltage regulator configurations for adv7481
Configure voltage regulator for adv7481 CCI interface.

CRs-Fixed: 1021381
Change-Id: I6a9f023a84450d56ba313af2bcee2216a1008213
Signed-off-by: Shiju Mathew <shijum@codeaurora.org>
2017-05-26 01:39:27 -07:00
Shiju Mathew
626fd0016f adv7481: Enable irq after adv7481 register with BA
This will enable BA not to ignore any adv7481 interrupts
from v4l2 framework.

CRs-Fixed: 998927
Change-Id: If06dd201637c43e3314083ddc3adad101bcb3e60
Signed-off-by: Shiju Mathew <shijum@codeaurora.org>
2017-05-26 01:39:19 -07:00
Shiju Mathew
11f3d4d0e8 adv7481: Fix issues with adv7481 driver functionality
Fix memory allocation and probing crashes in adv7481
driver. Add support for DT and GPIO configurations.

CRs-Fixed: 998927
Change-Id: I056dbecbd2b3c7c2c0bc0314b9c68e992452d84f
Signed-off-by: Shiju Mathew <shijum@codeaurora.org>
2017-05-26 01:39:08 -07:00
Shiju Mathew
10ce2a7380 adv7481: Update adv7481 driver on MSM8996
Add support for adv7481 to use CCI i2c interface and to
changes to make it upto date with the A family.

CRs-Fixed: 998927
Change-Id: If1c9104e3e28a78a886ba184a302e8a4085c0bfd
Signed-off-by: Shiju Mathew <shijum@codeaurora.org>
2017-05-26 16:36:18 +08:00
Linux Build Service Account
c5685ec0f3 Merge "msm: kgsl: Return mementry only if pending_free is not set" 2017-05-25 15:52:15 -07:00
Linux Build Service Account
b8b329161d Merge "leds: leds-qpnp: Fix uninitialized variable use" 2017-05-25 15:52:14 -07:00
Linux Build Service Account
06666778bf Merge "btfm: Don't program multi channel registers in wcn3990 for SCO" 2017-05-25 15:52:07 -07:00
Linux Build Service Account
8a1c7fb05a Merge "power: qpnp-fg-gen3: update default empty voltage to 2.85 V" 2017-05-25 15:52:06 -07:00
Linux Build Service Account
93f01bb760 Merge "msm: kgsl: Don't delete uninitialized preemption timer" 2017-05-25 15:52:05 -07:00
Linux Build Service Account
2371551ec1 Merge "msm_11ad: fix device-tree property name" 2017-05-25 15:52:04 -07:00
Linux Build Service Account
f485573f5a Merge "net: rmnet_data: Unset logical end points in bridge mode" 2017-05-25 15:52:04 -07:00
Linux Build Service Account
17f988f036 Merge "soc: qcom: smp2p: Fix simultaneous access of global loopback data" 2017-05-25 15:52:03 -07:00
Linux Build Service Account
20dfa6c9f7 Merge "qcom: common_log: make dump registration as async" 2017-05-25 15:52:02 -07:00
Linux Build Service Account
73f6909d54 Merge "spmi-pmic-arb: add support to dispatch interrupt based on IRQ status" 2017-05-25 15:52:01 -07:00
Linux Build Service Account
e2a2179d4e Merge "spcom: check error from ion_import_dma_buf()" 2017-05-25 15:52:00 -07:00
Linux Build Service Account
09173073cf Merge "spcom: silent error messages until spss link is up" 2017-05-25 15:51:59 -07:00
Linux Build Service Account
97b8c1c0f8 Merge "usb: pdphy: Widen voltage range setting for VDD regulator" 2017-05-25 15:51:58 -07:00
Linux Build Service Account
fafa9a46eb Merge "usb : dwc3: Initialize kernel stack variables properly" 2017-05-25 15:51:57 -07:00
Linux Build Service Account
f95c3de80f Merge "ASoC: msm: qdsp6v2: Add IEC61937 compressed HDMI pass-though" 2017-05-25 15:51:57 -07:00
Linux Build Service Account
bed872f1a6 Merge "ASoC: msm: qdsp6v2: Extend pass through mode per stream" 2017-05-25 15:51:56 -07:00
Linux Build Service Account
2c0e368fdc Merge "msm: ipa: Fix post init in workqueue context" 2017-05-25 15:51:55 -07:00
Linux Build Service Account
88e1c449dc Merge "spcom: increment channel reference count after successful glink_open()" 2017-05-25 15:51:54 -07:00
Linux Build Service Account
eadd4e3181 Merge "USB: f_qc_rndis: Prevent use-after-free for _rndis_qc" 2017-05-25 15:51:53 -07:00
Linux Build Service Account
7217c5a9c1 Merge "ARM: dts: msm: Add iris support on sdm630" 2017-05-25 15:51:52 -07:00
Linux Build Service Account
b133f848d1 Merge "mmc: block: Disable clock scaling during shutdown" 2017-05-25 15:51:51 -07:00
Linux Build Service Account
8a4a2650e0 Merge "drm/sde: only set split registers for DSI interfaces" 2017-05-25 15:51:50 -07:00
Linux Build Service Account
0c3a4a97b1 Merge "SDM660: ADSPRPC: Fix for NULL pointer dereference" 2017-05-25 15:51:49 -07:00
Linux Build Service Account
599b4011d6 Merge "drm/msm: wait fence complete before flip" 2017-05-25 15:51:48 -07:00
Linux Build Service Account
768b5c4389 Merge "soc: qcom: Fix failure prints in rpm stats and log" 2017-05-25 15:51:47 -07:00
Linux Build Service Account
207cc877c1 Merge "policy_engine: Don't allow MODE change if no active connection" 2017-05-25 15:51:46 -07:00
Linux Build Service Account
136473547f Merge "power: qpnp-smb2: remove workaround for USBIN supplied VCONN" 2017-05-25 15:51:45 -07:00
Linux Build Service Account
8d140659e0 Merge "msm: ais: Security fixes for ispif and cpp" 2017-05-25 15:51:44 -07:00
Linux Build Service Account
3b0f0430c6 Merge "ARM: dts: msm: Add USB2 device node for SDM660" 2017-05-25 15:51:41 -07:00
Linux Build Service Account
c1a961ce2f Merge "coresight-remote-etm: Adds missing lock to avoid race condition" 2017-05-25 15:51:40 -07:00
Linux Build Service Account
3964778c1a Merge "Merge remote-tracking branch 'origin/tmp-285c137' into msm-4.4" 2017-05-25 15:51:39 -07:00
Linux Build Service Account
e1cafe626d Merge "USB: composite: Advertise USB version as 0x200 if max speed is HS" 2017-05-25 15:51:38 -07:00
Linux Build Service Account
bb0e94e12d Merge "ARM: dts: msm: Update ref-clk node for sdm660" 2017-05-25 15:51:37 -07:00
Linux Build Service Account
e40889b85d Merge "usb: phy-msm-qusb-v2: Add support for reference counting of regulators" 2017-05-25 15:51:35 -07:00
Linux Build Service Account
23dec079ae Merge "ASoC: msm-cpe: Fix range checking in function fw_name_store" 2017-05-25 15:51:34 -07:00
Linux Build Service Account
61bb06dc05 Merge "input: synaptics_dsx: fix mutex init" 2017-05-25 15:51:33 -07:00
Linux Build Service Account
03144dd756 Merge "soc: qcom: msm_perf: Initialize Array elements" 2017-05-25 15:51:32 -07:00
Linux Build Service Account
4b9efedb4a Merge "ARM: dts: msm: Add flash handle to camera1 device on SDM660" 2017-05-25 15:51:32 -07:00
Linux Build Service Account
c63ad80553 Merge "drm/msm: deal with arbitrary # of cmd buffers" 2017-05-25 15:51:31 -07:00