Commit graph

592292 commits

Author SHA1 Message Date
Sujeev Dias
a828392297 diag: Convert diag bridge as a platform dev
In order to support DT on DIAG, convert diag
bridge driver to platform driver.

Change-Id: I0ddecc06d9b4845d822799f3cff942789d1441c6
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
2017-07-20 18:11:39 -07:00
Yue Ma
0c5297200a cnss2: Deinit MHI before device power on during SSR
This can make sure MHI driver can safely free the memory which
is used by WLAN firmware since device is powered off.

Change-Id: If9d891eaf1ca7c28869448b3a0a42be713e16c2e
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2017-07-20 17:40:59 -07:00
Badhri Jagan Sridharan
ba29279a5a ANDROID: android-verity: mark dev as rw for linear target
Mark as rw when adding as linear target to allow changes
to the underlying filesystem through adb disable verity
and adb remount.

(Cherry-picked from
https://partner-android-review.googlesource.com/#/c/613573/
79a3032bb62da65a5d724eb70c8bdc662945d475)

BUG: 28845874
Signed-off-by: Badhri Jagan Sridharan <Badhri@google.com>
Change-Id: If41e9cad8e0f054f4778c09a6e2f0cb8af6fddaf
Git-commit: 492a6047e7
Git-repo: https://android.googlesource.com/kernel/common/
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
2017-07-20 17:22:02 -07:00
Derek Chen
c429531427 ASoC: msm: Add FE dai for MultiMedia21 for ASM Loopback
Adding ASM Loopback FE Dai, MultiMedia21, for HFP call
downlink.

CRs-fixed: 2069348
Signed-off-by: Derek Chen <chenche@codeaurora.org>
Change-Id: I38f0c1ea71568eff2ba789cbe2d41b950c77f232
2017-07-20 14:11:18 -07:00
Derek Chen
778f131a01 ASoC: msm: qdsp6v2: Add MultiMedia21 capture and routing
Add MultiMedia21 capture and routing support for ASM
loopback from AUX PCM TX to QUAT TDM RX.

CRs-fixed: 2069348
Signed-off-by: Derek Chen <chenche@codeaurora.org>
Change-Id: I632392d98092ff31fa9bdb13c02eef8c2a0a54a3
2017-07-20 14:08:05 -07:00
John Zhao
4bd8dca550 ARM: dts: msm: Update bootargs with LPM disabled for msm8996pro
Update bootargs with configuration of lpm_levels.sleep_disabled.

CRs-Fixed: 2079671
Change-Id: Iced6d6fc8e571b342a77ce49b4fa54bf511d7dbc
Signed-off-by: John Zhao <yuankuiz@codeaurora.org>
2017-07-20 13:40:11 -07:00
Hardik Arya
eb54351e06 diag: Add NULL pointer checks
Currently, there is a possibility of NULL pointer dereference
while accessing diag master table. The patch adds proper check
for null pointer while iterating over the list.

CRs-Fixed: 2077525
Change-Id: I51075b7a7f3acce0cb27822ad1acd8a5894cdaa9
Signed-off-by: Hardik Arya <harya@codeaurora.org>
2017-07-20 16:41:54 +05:30
Rakesh Pillai
ae7bcf3abc ath10k: Add peer delete resp event processing
Peer delete response event is not parsed for the
params being sent by firmware.
Parse the tlv params and get the peer mac address
which was deleted.

CRs-Fixed: 2079551
Change-Id: I1f603d65784611d5f82babf2d9fa9dca5b1664b7
Signed-off-by: Rakesh Pillai <pillair@codeaurora.org>
2017-07-20 03:39:44 -07:00
Linux Build Service Account
7aa065cbc4 Merge "msm: vdec: Allocate max internal buffers" 2017-07-20 02:56:46 -07:00
Linux Build Service Account
8ac7aa1695 Merge "ASoc: msm: qdspv2: Fix latency calculation in pcm offload path" 2017-07-20 02:56:45 -07:00
Linux Build Service Account
68284fc997 Merge "ASoC: msm8998: modify quat mi2s clock id in slave mode" 2017-07-20 02:56:44 -07:00
Sarangdhar Joshi
62f99e7cea soc: qcom: watchdog_v2: update last_pet variable during resume
The last_pet variable is set in suspend callback and during
pet_watchdog() and is printed when watchdog bark handler gets
called. This variable does not represent exact last pet time in
cases where non secure bark occurs before system could pet the
watchdog upon wakeup event from low power mode. Reset the
watchdog during msm_watchdog_resume() and update last_pet
variable so that watchdog bark messages will represent latest
info.

This commit also adds memory barrier after resetting watchdog in
msm_watchdog_suspend(). This will make sure watchdog writes are
complete before proceeding further.

Change-Id: I44492a947bc3664b7d14cfae9e877ebe0dc32836
Signed-off-by: Sarangdhar Joshi <spjoshi@codeaurora.org>
Signed-off-by: Mohammed Khajapasha <mkhaja@codeaurora.org>
2017-07-20 13:10:04 +05:30
John Youn
17d959e46b usb: dwc3: gadget: don't send extra ZLP
If the request->length is zero, a ZLP should already be sent due to that
and another ZLP is not needed to terminate the transfer.

Fixes: 04c03d10e507 ("usb: dwc3: gadget: handle request->zero")
Signed-off-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Change-Id: I747a9fd710d90986c7befd3d5ee5a1a5fceeaaed
Git-commit: d9261898a4b2c143c28568dc686a1becfc637a99
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2017-07-20 12:28:40 +05:30
Felipe Balbi
7f2ea4fd0c usb: dwc3: gadget: handle request->zero
So far, dwc3 has always missed request->zero
handling for every endpoint. Let's implement
that so we can handle cases where transfer must
be finished with a ZLP.

Note that dwc3 is a little special. Even though
we're dealing with a ZLP, we still need a buffer
of wMaxPacketSize bytes; to hide that detail from
every gadget driver, we have a preallocated buffer
of 1024 bytes (biggest bulk size) to use (and
share) among all endpoints.

Reported-by: Ravi B <ravibabu@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Change-Id: Ib4cb734bdb90ea142ced0d3b5299ee37ffce0352
Git-commit: 04c03d10e507052cfce6910ddf34091196e79e1c
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
[vvreddy@codeaurora.org: resolved merge conflicts]
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2017-07-20 12:27:19 +05:30
Rahul Sharma
22ec4f5399 msm: ais: cpp changes to validate ioctl input
When the Camera application exercises the  V4L2  ioctl operations, CPP
driver would attempt to the copy  user space buffer  contents into the
internal kernel buffer.  If an invalid length of the user space buffer
is passed onto the driver, it could trigger buffer overflow condition.
Thus, fix this by copying user space buffer contents into kernel space
buffer of the  driver for further processing, only after checking for
proper length of user space buffer.

Change-Id: I0386d0f84a8d7015bfe6bbb1e9472fa8934df83a
CRs-Fixed: 2025367
Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
2017-07-19 23:22:51 -07:00
Srikanth Uyyala
3b0328c5a5 msm: isp: fix the invalid type conversion
stream_idx cannot take negative value and wrongly type casted to int.
Use uint32_t to fix this issue.

Change-Id: I7f306d3a24fc8f73aae91c0514b3747592466404
Signed-off-by: Srikanth Uyyala <suyyala@codeaurora.org>
2017-07-20 09:59:23 +05:30
Linux Build Service Account
347dbf7277 Merge "msm: ipa3: Add spinlock to avoid deleting already deleted list" 2017-07-19 17:20:49 -07:00
Surajit Podder
e7a609b031 msm: vidc: retain clock rate across power suspend/resume
Power collapse should be transparent to vidc layer, so
clock rate should be retained across suspend resume.

Add change to save clock rate during suspend, and restore
clock rate during resume.

Change-Id: I7e01ddcfc5b2f7d02f76512e1cbaf1a75bacdb03
Signed-off-by: Surajit Podder <spodder@codeaurora.org>
2017-07-19 16:17:14 -07:00
Abhinav Kumar
033b9198d0 drm/msm: add support for HDR playback control sequence
HDR playback needs metadata to be sent to the sink
while the playback is ongoing and needs a proper
teardown sequence when the playback has ended with respect
to the infoframe being sent to the sink.

This needs a state machine to synchronize start/stop of
the playback with sending the right metadata along with
resetting the infoframe HDMI registers.

Add support for this HDR playback control state machine.

Change-Id: I229183531f7ccb48579e74d02e0a1dea1cb945ff
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
2017-07-19 13:05:55 -07:00
Hemant Kumar
a6e27c659a usb: gadget: Disable USB2 LPM Support
USB device is failing to initiate L1 remote wakeup for following
scenarios:-

1) When USB host initiates L1 between control transfers
(Setup and Status Phase).
2)In case of BULK only composition when USB host initiates L1 after
PING retries on OUT endpoint. Device fails to initiate L1 remote
wakeup when SW issues start transfer.
3) When bus is suspended and Start transfer is issued on IN TRB

Hence disable high speed link power management support by advertising
bcdUSB as 2.0 in high speed mode.

Change-Id: I83124d5e3821ba979be4772bc04e41f05dc7492c
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2017-07-19 12:21:47 -07:00
Linux Build Service Account
8a9f65f16a Merge "msm: vdec: Updating DCVS buf count if thumbnail mode is enabled" 2017-07-19 09:10:37 -07:00
Linux Build Service Account
1882097f98 Merge "msm: vidc: Fix issue in cache operation range" 2017-07-19 09:10:36 -07:00
Linux Build Service Account
dce705e421 Merge "ARM: dts: msm: Add fixed regulator for WLAN_EN pin in MSM8996" 2017-07-19 09:10:35 -07:00
Linux Build Service Account
cfbf44c503 Merge "usb: dwc3-msm: Add sysfs node to enable SS host compliance" 2017-07-19 09:10:34 -07:00
Linux Build Service Account
56b24afda6 Merge "diag: Add protection while de-initializing clients" 2017-07-19 09:10:33 -07:00
Linux Build Service Account
cb08d85f02 Merge "usb: gadget: f_qdss: Add support for mdm qdss channel" 2017-07-19 09:10:32 -07:00
Linux Build Service Account
333b2311aa Merge "msm: mdss: Fix possible memory overwrite in pgc config" 2017-07-19 09:10:30 -07:00
Linux Build Service Account
e4fd571dd3 Merge "security: pfe: Synchronize the file key usage" 2017-07-19 09:10:29 -07:00
Linux Build Service Account
f40ff25a8f Merge "msm: ipa: fix to incorrect structure access" 2017-07-19 09:10:28 -07:00
Linux Build Service Account
8ee12d5cb2 Merge "msm: ADSPRPC: avoid sending new requests to dsp while device_release" 2017-07-19 09:10:27 -07:00
Linux Build Service Account
42029fbe8c Merge "msm: mdss: dp: fix watchdog reset with DP connected in AOD mode" 2017-07-19 09:10:27 -07:00
Manoj Prabhu B
6e6b233c47 diag: Synchronize msg mask read and write on a peripheral
The patch synchronizes msg mask read and write on a peripheral
by proper protection of mask_info and msg_mask_table_count.

CRs-Fixed: 2042362, 2055291
Change-Id: If136012855834b0b8cba91eb66bf711750e8f372
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
2017-07-19 20:51:10 +05:30
Animesh Kishore
330e834b2b msm: mdss: Remove check to cap requested mdp clock
Invalidate layers with requested mdp clock greater
than max supported.

Change-Id: Ic44787e6c0ad1cce105074533c1b6fd21c79da38
Signed-off-by: Animesh Kishore <animeshk@codeaurora.org>
2017-07-19 18:12:37 +05:30
Vijay kumar Tumati
daca2e77e5 ARM: dts: msm: Add support for TOF sensor on msm8998 QVR
Add device tree entries to support depth sensor.

Change-Id: I7b2219b95e69b44a4048a4f163b1b079a55050e1
Signed-off-by: Vijay kumar Tumati <vtumati@codeaurora.org>
2017-07-19 05:07:59 -07:00
Tharun Kumar Merugu
8048977b41 msm: ADSPRPC: Add exec permission for hyp_assign_phys
Add execute permission for hyp_assign_phys for adsp shared
memory region to allow for the memory to be reused by other user
space processes when this is not used by the remote processor.

Change-Id: I4f593584f332f8dc775afb68e6bfae1ea8f803fa
Acked-by: Viswanatham Paduchuri <vpaduchu@qti.qualcomm.com>
Signed-off-by: Tharun Kumar Merugu <mtharu@codeaurora.org>
2017-07-19 00:56:19 -07:00
Mohammed Javid
b10627f358 msm: ipa3: Add spinlock to avoid deleting already deleted list
There is a chance of deleting, already deleted list
in ipa_cleanup_wlan_rx_common_cache API.

Protect the wlan_comm_desc_list,
with the spinlock to avoid this deletion.

Change-Id: I10161f71b92d6d5fe06af62b65bf3d92d0d4512a
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
2017-07-19 00:53:47 -07:00
Manoj Prabhu B
36bc4d8a53 diag: Process glink buffers in workqueue context
The patch initializes the glink buffers only to peripherals
supporting it and moves the handling of processing the data
received on glink buffers to process context.

CRs-Fixed: 2042362
Change-Id: I24522489ec5e499ff4ef97be0fef356a1671ec62
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
2017-07-19 00:18:46 -07:00
Vijayavardhan Vennapusa
a5eddc1f77 USB: f_accessory: Check for length before updating accessory string
It is possible that host sends SEND_STRING control request with zero
length and in that case, driver ends up setting string as NULL. This
results in CTS failure for accessory test. Hence add check for length
and update string only if length is nonzero.

Change-Id: I4594a46f830f45fc49f80a74ec6042383edf007d
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2017-07-19 11:20:48 +05:30
Jayant Shekhar
04ef55a74c Revert "msm: sde: rotator: Enable traffic shaper for 4k@60fps layer"
This reverts commit 7d6f012ed1.
Traffic shaper is not required for 60fps 4k video. OT settings
will take care of this.

Change-Id: Id6e65da102c7fa43cf215129643c7a54e6a72085
Signed-off-by: Jayant Shekhar <jshekhar@codeaurora.org>
2017-07-19 10:38:22 +05:30
Yue Ma
33978c4cc4 ARM: dts: msm: Add fixed regulator for WLAN_EN pin in MSM8996
Since the PMIC GPIO runtime configuration is not feasible using
pinctrl framework, add it as fixed regulator for WLAN_EN pin.

Signed-off-by: Yue Ma <yuem@codeaurora.org>
CRs-fixed: 2071634
Change-Id: Ifd08bac34388389c6aced7e450cbf5c6ae37b36d
2017-07-18 12:44:34 -07:00
Linux Build Service Account
8069e32933 Merge "msm: sde: rotator: Enable traffic shaper for 4k@60fps layer" 2017-07-18 11:51:43 -07:00
Linux Build Service Account
d2783f3e57 Merge "msm: ais: Fix NULL pointer dereference in msm.c." 2017-07-18 11:51:42 -07:00
Linux Build Service Account
cd8e767d77 Merge "msm: ais: fix crash during dumping io register" 2017-07-18 11:51:41 -07:00
Linux Build Service Account
ae8ba0547c Merge "msm: camera: sensor:validating the flash initialization parameters" 2017-07-18 11:51:40 -07:00
Linux Build Service Account
95cc997128 Merge "msm: camera: sensor: Fix a bug in CCI with I2C write" 2017-07-18 11:51:39 -07:00
Linux Build Service Account
32c410413b Merge "msm: camera: isp: Store the user ahb vote" 2017-07-18 11:51:38 -07:00
Neeraj Soni
2b364203d6 security: pfe: Synchronize the file key usage
Reference count is maintained to track the usage
of file key. This is required to avoid invalidate
operation while a file key is in active usage.

Change-Id: I8f6f562ec9a006e585503413c2196685535a5098
Signed-off-by: Neeraj Soni <neersoni@codeaurora.org>
2017-07-18 16:33:31 +05:30
Linux Build Service Account
95dbfdb0a5 Merge "msm: sensor: actuator: add conditional check for ioctl" 2017-07-18 03:06:57 -07:00
Linux Build Service Account
1f14d5b785 Merge "usb: pd: policy_engine: Add support to handle floating charger" 2017-07-18 03:06:55 -07:00
Linux Build Service Account
b52f6435ab Merge "qseecom: update on smcinvoke-aware listeners operations" 2017-07-18 03:06:54 -07:00