Commit graph

590503 commits

Author SHA1 Message Date
Shiju Mathew
6d0ae50f6e msm: ba: Fix issue with multiple BA profiles
Fix NULL pointer dereferencing on enabling multiple
BA profiles. It was due to improper pointer assignment.

CRs-Fixed: 1029211
Change-Id: Ibab903d8aaf4c74d0c35386778a84d9280dbb221
Signed-off-by: Shiju Mathew <shijum@codeaurora.org>
2017-06-08 22:11:12 -07:00
Shiju Mathew
d751061941 msm: ba: Remove default disable of BA driver
Enable/Disable of bridge abstraction driver will be done
from kernel defconfig file.

CRs-Fixed: 1021381
Change-Id: Ie674de7c9c4a667a1eaeb6dd907341fef0cc34d1
Signed-off-by: Shiju Mathew <shijum@codeaurora.org>
2017-06-08 22:11:06 -07:00
Shiju Mathew
47cee382fc msm: ba: Add DT support for BA driver
Move BA platform specific data into DT and minor cleanups.

CRs-Fixed: 998927
Change-Id: Ib68a7b16986b92a46a98beab0c35591274c334ba
Signed-off-by: Shiju Mathew <shijum@codeaurora.org>
2017-06-08 22:10:59 -07:00
Shiju Mathew
751f9ac72e msm: ba: Merge relevant changes from A family
Merge relevant bridge abstraction changes from 8064
to MSM8996.

CRs-Fixed: 998927
Change-Id: I4baaa5a8b93cade64b0064acdc63b3b4ab7765e7
Signed-off-by: Shiju Mathew <shijum@codeaurora.org>
2017-06-08 22:10:53 -07:00
Domi Papoi
481c212aa7 msm: BA: Save platform driver in device context
Probe function rework to have the drive capability
of reading from dts.

Change-Id: I5cc05d4e4ffd3d0f5546c1177516a2d0805be481
Signed-off-by: Domi Papoi <dpapoi@codeaurora.org>
2017-06-08 22:10:47 -07:00
Domi Papoi
bcfb8150a0 msm: BA: Fix race condition with v4l2 event handler
The v4l2 event handler struct should be initialized
before added to the dev_ctxt->instances list.
The v4l2 event handler struct should be de-initialized
after we remove inst from the core->instances list.

Change-Id: I1faf6bab4232bbcd2ca567a9a11b0c8faa2f45ce
Signed-off-by: Domi Papoi <dpapoi@codeaurora.org>
2017-06-08 22:10:41 -07:00
Domi Papoi
96befb971f msm: BA: Fix a race condition in BA event handling
Add proper locking in event handling so that invocation
of multiple events will not corrupt the event list.

Change-Id: I4499b3c0a106cbada54bbc122bb03ad5c30ed2c3
Signed-off-by: Domi Papoi <dpapoi@codeaurora.org>
2017-06-08 22:10:35 -07:00
Domi Papoi
841681b801 msm: BA: Avoid null pointer dereferencing
Add null pointer checking to avoid null pointer dereferencing
for ba input.

Change-Id: Ic54bbf8748a78c7f33540cab2ec32b753969fa06
Signed-off-by: Domi Papoi <dpapoi@codeaurora.org>
2017-06-08 22:10:29 -07:00
Domi Papoi
2fcbbaa101 msm: BA: Create Bridge Abstraction (BA)
Create bridge abstraction driver to provide a framework that can be
used to abstract different types of bridge chips under a common API.
The framework also allows multiple drivers to control different
functional aspects of a bridge chip.
The bridge abstraction driver is limited to bridge chips that deal
with converting audio/video data from one protocol to a different one.

Change-Id: Ib42365fb41afda8029f4f6e9b1ec27549d885659
Signed-off-by: Domi Papoi <dpapoi@codeaurora.org>
2017-06-08 22:00:06 -07:00
Linux Build Service Account
9725c4d90b Merge "ARM: dts: msm: Add new property to DSPS IPC router node for MSM8998" 2017-06-08 05:13:57 -07:00
Linux Build Service Account
cffda533d1 Merge "Revert "ARM: dts: msm: Remove TCSR_QUSB2_PHY_CLAMP_DIG_N_1P8 for SDM660"" 2017-06-08 05:13:55 -07:00
Linux Build Service Account
8df469526a Merge "scsi: ufs: Avoid dead lock during error recovery" 2017-06-08 05:13:54 -07:00
Linux Build Service Account
c6e845ffe7 Merge "netfilter:Notify user space on creating sysfs file" 2017-06-08 05:13:54 -07:00
Linux Build Service Account
3aa4e5e7c3 Merge "dm: md: Replace scheduling of request with direct call" 2017-06-08 05:13:52 -07:00
Linux Build Service Account
3dad7f3687 Merge "mmc: core: Fix the issue with clock scaling in resume-scaling" 2017-06-08 05:13:51 -07:00
Linux Build Service Account
9736b785cf Merge "mmc: core: Initialize the devfreq table with default frequencies" 2017-06-08 05:13:50 -07:00
Linux Build Service Account
02631fccd7 Merge "diag: Enable masks for user pd memory device session" 2017-06-08 05:13:49 -07:00
Linux Build Service Account
019955f7cd Merge "regulator: spm: check min/max voltages against HW configuration" 2017-06-08 05:13:48 -07:00
Linux Build Service Account
2bf7a89b5a Merge "drm/msm: Fix drm_mm bottom_up search" 2017-06-08 05:13:44 -07:00
Linux Build Service Account
2ae6690a56 Merge "drm/msm: Use mmu notifiers to track SVM range invalidations" 2017-06-08 05:13:43 -07:00
Linux Build Service Account
f81a3ca6b3 Merge "adv7481: Update adv7481 because of v4l2 changes" 2017-06-08 05:13:36 -07:00
Linux Build Service Account
9c9b154350 Merge "soc: qcom: glink_smem_native_xprt: recovery from SSR in tasklet only" 2017-06-08 05:13:35 -07:00
Linux Build Service Account
6c90c8860c Merge "drm/msm : fix hdmi controller register programming" 2017-06-07 20:58:00 -07:00
Linux Build Service Account
0899f88b10 Merge "net: ipc_router: Add dynamic enable/disable wakeup source feature" 2017-06-07 20:57:59 -07:00
Linux Build Service Account
3f35f049e7 Merge "usb: pd: Increment MessageID only on successful TX" 2017-06-07 20:57:54 -07:00
Linux Build Service Account
9b5ee09c39 Merge "mhi: core: Add support for host triggered device ram dump" 2017-06-07 20:57:53 -07:00
Linux Build Service Account
04587e2ca3 Merge "usb: xhci: Free leaked command in case xhci_queue_stop_endpoint fails" 2017-06-07 20:57:51 -07:00
Linux Build Service Account
de6917af67 Merge "msm: mdss: Update msm8998 HDMI PHY sequence for bridge chip" 2017-06-07 20:57:50 -07:00
Linux Build Service Account
f10af35ab9 Merge "msm: mdss: update polarity based on HDMI resolution" 2017-06-07 20:57:49 -07:00
Linux Build Service Account
eaeca093b4 Merge "power: qpnp-fg-gen3: Fix possible integer overflow" 2017-06-07 20:57:48 -07:00
Linux Build Service Account
b420cddf1f Merge "soc: qcom: subsys-pil-tz: Initialize subsys_dev pointer" 2017-06-07 20:57:46 -07:00
Linux Build Service Account
edc5117530 Merge "policy_engine: Add module parameter to start USB stack" 2017-06-07 20:57:45 -07:00
Jack Pham
c8735c7530 usb: pd: Increment MessageID only on successful TX
According to the PD 2.0 Spec, Section 6.2.1.3, the MessageID
field shall only be incremented upon successful transmission
(meaning GoodCRC was received). Thus, increment the counter
only when pd_phy_write() succeeds.

Change-Id: I73dce5736c473a1f79db9be868442c7941d13c44
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2017-06-07 15:39:31 -07:00
Linux Build Service Account
8efb4552d1 Merge "msm: mdss: do not print error in case sync_trigger is enabled" 2017-06-07 13:13:41 -07:00
Linux Build Service Account
590ba42a33 Merge "ARM: dts: msm: Enable dynamic fps for msm8998" 2017-06-07 13:13:40 -07:00
Linux Build Service Account
3ba7511de8 Merge "msm: mdss: disable AVR for msm8998" 2017-06-07 13:13:39 -07:00
Linux Build Service Account
b13c09c779 Merge "msm: mdss: Check if secure display is enabled during non-secure validate" 2017-06-07 13:13:38 -07:00
Linux Build Service Account
bed622b809 Merge "msm: mdss: Avoid NULL mixer during partial update ROI setup" 2017-06-07 13:13:37 -07:00
Linux Build Service Account
2a70296f1a Merge "ARM: dts: msm: enable null packet on msm8998" 2017-06-07 13:13:36 -07:00
Linux Build Service Account
b8639a8f8c Merge "msm: mdss: Fix QSEED3 MDP clock calculation for cmd mode panel" 2017-06-07 13:13:35 -07:00
Linux Build Service Account
19bce2b047 Merge "ARM: dts: msm: specify a PWM mode threshold for PMI8998 BoB on MSM8998" 2017-06-07 13:13:33 -07:00
Linux Build Service Account
39ce0d62ff Merge "regulator: rpm-smd-regulator: add support for load based mode control" 2017-06-07 13:13:33 -07:00
Linux Build Service Account
e3954e1572 Merge "drivers: Warning fixes to disable CC_OPTIMIZE_FOR_SIZE" 2017-06-07 13:13:31 -07:00
Linux Build Service Account
9dc0febd05 Merge "ARM: dts: msm: control avdd enable gpio for msm8998 QVR/SKUK HDK" 2017-06-07 13:13:29 -07:00
Linux Build Service Account
4c6e5c55cd Merge "msm: mdss: control avdd enable gpio when doing panel reset" 2017-06-07 13:13:29 -07:00
Abhinav Kumar
d9bdeba0e1 drm/msm : fix hdmi controller register programming
Currently, there is an incorrect programming of the
hdmi controller register where default value of the
datapath mode bit is being toggled along with the
scrambler enable/disable.

This bit should be untouched as per the hardware
programming sequence and kept at the default state.

Fix the register programming to avoid toggling this
bit.

Change-Id: I2e8f74c0abaddd27b5d8a2136afc4e1b82f96e7d
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
2017-06-07 02:45:08 -07:00
Vijayavardhan Vennapusa
cd75223d5d Revert "ARM: dts: msm: Remove TCSR_QUSB2_PHY_CLAMP_DIG_N_1P8 for SDM660"
Commit c20c74d49c ("ARM: dts: msm: Remove TCSR_QUSB2_PHY_CLAMP_DIG_N_1P8
for SDM660") is added to remove enabling/disabling clamp during
disconnect/connect. But it is required to enable clamp input to QUSB2PHY,
whenever 0.9V LDO is collapsed. Hence revert the change to add dtsi
property for enable/disable clamp.

Change-Id: I12009bd56d214499a73f7ea3e73d1c979c107ac9
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2017-06-07 15:05:57 +05:30
Arun Kumar Neelakantam
db93e4263c ARM: dts: msm: Add new property to DSPS IPC router node for MSM8998
Add the dynamic wakeup source property to IPC router dsps xprt.

CRs-Fixed: 2057391
Change-Id: I5003ff5c5f43ee5c1d4da8e19168be1a112f23d0
Signed-off-by: Arun Kumar Neelakantam <aneela@codeaurora.org>
2017-06-07 11:38:34 +05:30
Arun Kumar Neelakantam
10ed66867a net: ipc_router: Add dynamic enable/disable wakeup source feature
By default IPC Router core uses edge and port specific wakeup sources
which are blocking system suspend in special use cases like streaming
non wakeup sensors data at high speed.

Add dynamic wakeup source enable/disable functionality to acquire the
wakeup source only during the APPS suspend stage.

CRs-Fixed: 2057391
Change-Id: I2a5ea4e2c31432a9dd195c702ef7001b26eed33d
Signed-off-by: Arun Kumar Neelakantam <aneela@codeaurora.org>
2017-06-07 11:34:08 +05:30
Jack Pham
71c2e3fc4f usb: pdphy: Prevent sending when message is just received
Prevent pd_phy_write() from sending a TX message if an RX
message IRQ is being handled, or if the RX_TOKEN is set
(indicating a message has just arrived) by returning -EBUSY
to let the upper layer gracefully abort. This helps in cases
(such as compliance testing) in which VDM messages are
received very quickly after one another and the protocol
layer needs to first handle the incoming message.

Change-Id: I3e26d7ff062ff7f51b6c66ab8d078b05749f808a
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2017-06-06 22:50:28 -07:00