Commit graph

590199 commits

Author SHA1 Message Date
Linux Build Service Account
4bb39679c0 Merge "diag: Add PD buffering mode configuration support" 2017-06-01 01:52:55 -07:00
Linux Build Service Account
bc9a6a81f4 Merge "usb: pd: policy_engine: Handle Get_Source_Cap properly from PE_SRC_Ready" 2017-05-31 17:58:04 -07:00
Linux Build Service Account
b467a68d13 Merge "usb: pd: Rerun usbpd_sm if RX queue is not empty" 2017-05-31 17:58:03 -07:00
Linux Build Service Account
abaf8c7a85 Merge "defconfig: msm: Enable CONFIG_CORESIGHT_SINK_TPIU for msmauto" 2017-05-31 17:58:02 -07:00
Linux Build Service Account
cc45aeb579 Merge "ARM: dts: msm: Modify coresight device node for msm8996" 2017-05-31 17:58:01 -07:00
Linux Build Service Account
aab7f04733 Merge "power: supply: qcom: use typec mode instead of debounce done" 2017-05-31 17:58:01 -07:00
Linux Build Service Account
1c8f9586b1 Merge "ais: enable ais build for automotive" 2017-05-31 17:58:00 -07:00
Linux Build Service Account
f691be0486 Merge "clk: mdss: fix bugs when parsing mdss regulators" 2017-05-31 17:57:59 -07:00
Linux Build Service Account
13e35bf17d Merge "msm: mdss: declare function used only within the file as static" 2017-05-31 17:57:58 -07:00
Linux Build Service Account
1d64abeedd Merge "drm/msm: Fix potential buffer overflow issue" 2017-05-31 17:57:57 -07:00
Linux Build Service Account
31069443cb Merge "msm: sde: Reset the iommu_attached flag after detach" 2017-05-31 17:57:56 -07:00
Linux Build Service Account
92526da423 Merge "msm: ais: cpp fix to check zero length ioctl" 2017-05-31 17:57:55 -07:00
Linux Build Service Account
35ca83d6a7 Merge "msm: camera: clean up buffers before detach" 2017-05-31 17:57:55 -07:00
Nicholas Troast
841a455179 power: supply: qcom: use typec mode instead of debounce done
When the CC state change IRQ fires on USB removal the debounce done
status may still be high, and the removal cleanup will not be called.
Use the UFP/DFP status bits to determine whether the CC lines are
present or not instead.

While at it cache the CC state so it doesn't have to be derived
everywhere it is needed. The status bits are already cached, so there
should be no functional difference.

Change-Id: Ifb89c78a032ae9d38fbc8c281518698941e131c2
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2017-05-31 10:43:22 -07:00
Jack Pham
ae024ed4f7 usb: pd: Rerun usbpd_sm if RX queue is not empty
Upon receiving a PD message the state machine is queued to
act on it. However, if another message is received quickly
before usbpd_sm is scheduled, it will only process the first
message. Add a check if the RX queue is not empty in order
to drain the messages properly.

Change-Id: Ie9e079a51a5740024c9a1be5ba27b3edacf9b2df
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2017-05-31 10:42:56 -07:00
Ray Zhang
05d7bcef3f clk: mdss: fix bugs when parsing mdss regulators
There are two definitions of struct dss_vreg in mdss driver.
One is used during parsing regulators from device tree file,
the other is used when operating regulators. This introduces
different understanding of dss_vreg data in these two places.
Future plan is to have only one definition for these shared
data structure. Currently only make dss_vreg in sync to fix
this issue.

CRs-Fixed: 2054371
Change-Id: I4f16e1409c832432fa1df73b0ae030176b664e58
Signed-off-by: Ray Zhang <rayz@codeaurora.org>
2017-05-31 17:57:54 +08:00
Wei Li
8e38b06eb0 defconfig: msm: Enable CONFIG_CORESIGHT_SINK_TPIU for msmauto
Enable CONFIG_CORESIGHT_SINK_TPIU for msm-auto defconfig

Change-Id: I719071391df7871ce37d8d262f9dfa363c368027
Signed-off-by: Wei Li <weili@codeaurora.org>
2017-05-31 01:35:17 -07:00
Wei Li
704a40cab4 ARM: dts: msm: Modify coresight device node for msm8996
Modify coresight device node in dts to comply with the
new implementation of coresight driver for msm8996.

Change-Id: I10b236208a1f9e76b4d27a623c024b1f9f6a50ca
Signed-off-by: Wei Li <weili@codeaurora.org>
2017-05-31 16:28:11 +08:00
Linux Build Service Account
a5706c4fda Merge "usb: pd: Re-check for disconnect after PR swap" 2017-05-30 23:09:25 -07:00
Linux Build Service Account
7961b23656 Merge "sched: Remove debug WARN_ONCE messages" 2017-05-30 23:09:24 -07:00
Linux Build Service Account
ff3536c439 Merge "msm: ais: Fix kernel overwrite GET_BUF_BY_IDX ioctl" 2017-05-30 23:09:23 -07:00
Linux Build Service Account
472776516b Merge "ARM: dts: msm : Add neutrino DDR bandwidth voting on 8996 auto platforms" 2017-05-30 23:09:22 -07:00
Linux Build Service Account
467586f025 Merge "soc: qcom: sleepstate: Increase notifier priority" 2017-05-30 23:09:21 -07:00
Terence Ho
76e56268ee msm: ais: cpp fix to check zero length ioctl
Port of ioctl validation for zero length ioctl
from camera_v2.

Change-Id: I635522f331d1e18641196ee3101c64ccc285636a
CRs-fixed: 2025367
Signed-off-by: Terence Ho <terenceh@codeaurora.org>
2017-05-31 11:34:34 +08:00
Kasin Li
a61bcfad32 drm/msm: Fix potential buffer overflow issue
In function submit_create, if nr_cmds or nr_bos is assigned with
negative value, the allocated buffer may be small than intended.
Using this buffer will lead to buffer overflow issue.

Change-Id: I0b61cccffd836e2dd3c859446470af4b6451b9ed
Signed-off-by: Kasin Li <donglil@codeaurora.org>
2017-05-31 10:58:19 +08:00
Linux Build Service Account
6cec3ff5eb Merge "ais: always do clock set_rate after get_rate" 2017-05-30 16:04:33 -07:00
Linux Build Service Account
1ad752ad89 Merge "Perf: ARM: Support 32bit armv8-pmuv3 driver" 2017-05-30 16:04:32 -07:00
Linux Build Service Account
0b63aa5007 Merge "spcom: open channel return EBUSY when channel in use" 2017-05-30 16:04:31 -07:00
Linux Build Service Account
008dfbc55c Merge "f_audio_source: Use f_audiosource as first device name" 2017-05-30 16:04:31 -07:00
Linux Build Service Account
5f638a12ab Merge "diag: dci: Add validity check for dci client's process descriptor" 2017-05-30 16:04:30 -07:00
Linux Build Service Account
28ca6375c7 Merge "adreno_tz: Remove unnecessary devfreq NULL check in tz_handler()" 2017-05-30 16:04:29 -07:00
Linux Build Service Account
a7f31ff804 Merge "wil6210: fix wil->platform_ops.suspend failure handling" 2017-05-30 16:04:28 -07:00
Linux Build Service Account
3903a9f28c Merge "ARM: dts: msm: enable 11AD keep-radio-on-during-sleep on MSM8998" 2017-05-30 16:04:27 -07:00
Linux Build Service Account
103e31feaa Merge "battery: don't wait for aicl rerun" 2017-05-30 16:04:26 -07:00
Linux Build Service Account
6d0b4d37a3 Merge "smb-lib: ignore disconnects during power role swap" 2017-05-30 16:04:25 -07:00
Linux Build Service Account
4cc716041e Merge "iommu/arm-smmu: Optimized IOMMUS property parsing" 2017-05-30 16:04:24 -07:00
Linux Build Service Account
22d89182ea Merge "ARM: dts: msm: Add support for MSM8996pro UFS based board" 2017-05-30 16:04:24 -07:00
Hemant Kumar
f26a5ca364 usb: pd: policy_engine: Handle Get_Source_Cap properly from PE_SRC_Ready
Get_Source_Cap message is responded by sending source capability message
without running sender response timer after GoodCRC is received. As a
result if sender response is timed out driver is not issuing hard reset.
Fix the issue by moving policy engine state from PE_SRC_READY to
PE_SRC_SEND_CAPABILITIES which starts sender response timer and handles
timeout.

Change-Id: Id47a4c8f989db19d28ef9c8b2c069d0b7797e17f
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2017-05-30 15:09:08 -07:00
Subash Abhinov Kasiviswanathan
ac90ad6d75 sched: Remove debug WARN_ONCE messages
If flow control functionality is not enabled in traffic controller
userspace modules, WARN_ONCE messages are triggered. Note that qdisc
will still be setup even if these debug messages are logged.
Remove these messages to reduce log spam.

CRs-Fixed: 2053221
Change-Id: I62a2fcb30d19579180b3df16f33953546f94511a
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
2017-05-30 10:48:12 -07:00
Linux Build Service Account
350f6ac817 Merge "msm: ipa: Fix to use GFP_DMA flag" 2017-05-30 09:01:09 -07:00
Amir Samuelov
d23cacb3ac spcom: open channel return EBUSY when channel in use
The char device /dev/sp_kernel is used for loading SP application and
creating new channel char device, therefore might be temporary busy.
Return EBUSY error to user system call open() so it can retry.

Change-Id: I230577fe6b03ac7afd7175f72f9a3fa80db5a524
Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
2017-05-30 02:54:46 -07:00
Abir Ghosh
25865f691b qbt1000: Fix for incorrect buffer size check and integer overflow
Fix an incorrect buffer size check which might have caused integer
overflow.

CRs-Fixed: 2045285
Change-Id: I3b5b996c7405f51b488d6cbda31c81a9a9905f23
Signed-off-by: Abir Ghosh <abirg@codeaurora.org>
2017-05-29 23:57:06 -07:00
Gopikrishna Mogasati
2b1e32ab83 diag: dci: Add validity check for dci client's process descriptor
This fix checks the validity of dci client's process descriptor
before issuing a signal to it when subsystem restart is performed.
This fix avoids accessing cleaned-up process descriptor's fields.

CRs-Fixed: 2047235
Change-Id: Ic26977dc22c68f0a7007dd963c9273bba2a5dbfe
Signed-off-by: Gopikrishna Mogasati <gmogas@codeaurora.org>
2017-05-30 12:18:34 +05:30
Ashish Garg
3b14e4b252 msm: mdss: declare function used only within the file as static
Fix sparse tool error which mandates that functions used only
within the file to be declared as static to allow compiler
optimizations.

Change-Id: Iba14c50730bb7ce402e4b45bc9b2c8d1fec6f3eb
Signed-off-by: Ashish Garg <ashigarg@codeaurora.org>
2017-05-30 10:38:29 +05:30
Linux Build Service Account
ace73576d2 Merge "msm: mdss: Fix potential dereferencing of null pointer" 2017-05-29 10:17:24 -07:00
Linux Build Service Account
539f0433bb Merge "Asoc: msm: sdm660: Move mbhc_hs_detect to late_probe" 2017-05-29 01:01:33 -07:00
Linux Build Service Account
b7d425e951 Merge "ASoC: msm: Add IEC_61937_FMT_UPDATE event" 2017-05-28 05:12:00 -07:00
Maya Erez
60c1eb0d65 wil6210: fix wil->platform_ops.suspend failure handling
Current handling of wil->platform_ops.suspend can lead to
bad cases, as wil_status_suspending was cleared before
wil_status_resuming was set and bus request voting was restored
too late.
In addition, bus voting in suspend should be done only at the end
of he suspend flow.

Change-Id: I8856d393c1796a2bd8fd5e07b233a5d61efc80c0
Signed-off-by: Maya Erez <merez@codeaurora.org>
2017-05-28 10:45:19 +03:00
Maya Erez
d07260bed5 wil6210: restore bus voting before resuming the device
Move the bus request restore to be done prior to
sending wmi_resume to the device, as the device can restore
the data path upon receiving this command.

Change-Id: Ib2442fcfea055a855bb6be65f9013bb7ad754767
Signed-off-by: Maya Erez <merez@codeaurora.org>
2017-05-28 10:45:04 +03:00
Linux Build Service Account
19827f9f2e Merge "msm: mdss: Call regulator enable/disable for both DSI controllers" 2017-05-27 18:12:14 -07:00