OSDN Git Service

sagit-ice-cold/kernel_xiaomi_msm8998.git
6 years agoMerge "power: smb138x-charger: set buck freq to 700kHz in slave mode"
Linux Build Service Account [Tue, 25 Jul 2017 07:35:38 +0000 (00:35 -0700)]
Merge "power: smb138x-charger: set buck freq to 700kHz in slave mode"

6 years agoMerge "vfs: Add support to debug umount failures"
Linux Build Service Account [Tue, 25 Jul 2017 07:35:37 +0000 (00:35 -0700)]
Merge "vfs: Add support to debug umount failures"

6 years agoMerge "power: smb-lib: Move to SW based step-charging"
Linux Build Service Account [Mon, 24 Jul 2017 14:28:57 +0000 (07:28 -0700)]
Merge "power: smb-lib: Move to SW based step-charging"

6 years agoMerge "ath10k: Add peer delete resp event processing"
Linux Build Service Account [Mon, 24 Jul 2017 14:28:56 +0000 (07:28 -0700)]
Merge "ath10k: Add peer delete resp event processing"

6 years agoMerge "msm: isp: fix the invalid type conversion"
Linux Build Service Account [Mon, 24 Jul 2017 00:32:53 +0000 (17:32 -0700)]
Merge "msm: isp: fix the invalid type conversion"

6 years agoMerge "ARM: dts: msm: Add support for TOF sensor on msm8998 QVR"
Linux Build Service Account [Mon, 24 Jul 2017 00:32:52 +0000 (17:32 -0700)]
Merge "ARM: dts: msm: Add support for TOF sensor on msm8998 QVR"

6 years agoMerge "diag: Synchronize msg mask read and write on a peripheral"
Linux Build Service Account [Sun, 23 Jul 2017 17:48:40 +0000 (10:48 -0700)]
Merge "diag: Synchronize msg mask read and write on a peripheral"

6 years agoMerge "diag: Process glink buffers in workqueue context"
Linux Build Service Account [Sun, 23 Jul 2017 17:48:39 +0000 (10:48 -0700)]
Merge "diag: Process glink buffers in workqueue context"

6 years agopower: smb-lib: Move to SW based step-charging
Anirudh Ghayal [Sun, 23 Jul 2017 17:32:48 +0000 (23:02 +0530)]
power: smb-lib: Move to SW based step-charging

Remove the HW SOC-based step-charging logic and enable
SW based step-charging.

The SW based step-charging uses the periodic WD bark
IRQ to notify the battery properties. The bark-time
can be changes using the property 'qcom,wd-bark-time-secs'

'qcom,step-charging-enable' enables the feature.

Change-Id: Ib162f3eb3f98a4e7f144bedc8c8cea40fbf6137a
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
6 years agoMerge "power: qcom-step-chg: Add a new file for step-charging"
Linux Build Service Account [Sun, 23 Jul 2017 03:09:42 +0000 (20:09 -0700)]
Merge "power: qcom-step-chg: Add a new file for step-charging"

6 years agoMerge "ANDROID: android-verity: mark dev as rw for linear target"
Linux Build Service Account [Sat, 22 Jul 2017 11:08:04 +0000 (04:08 -0700)]
Merge "ANDROID: android-verity: mark dev as rw for linear target"

6 years agoMerge "crypto: ice: Remove redundant checks"
Linux Build Service Account [Sat, 22 Jul 2017 11:08:03 +0000 (04:08 -0700)]
Merge "crypto: ice: Remove redundant checks"

6 years agoMerge "ath10k: wait for peer delete resp after every peer delete"
Linux Build Service Account [Sat, 22 Jul 2017 03:15:28 +0000 (20:15 -0700)]
Merge "ath10k: wait for peer delete resp after every peer delete"

6 years agoMerge "ath10k: skip vdev down command before vdev restart for wcn3990"
Linux Build Service Account [Sat, 22 Jul 2017 03:15:27 +0000 (20:15 -0700)]
Merge "ath10k: skip vdev down command before vdev restart for wcn3990"

6 years agoMerge "msm: thermal: fix return value check for scm_is_secure_device() API"
Linux Build Service Account [Sat, 22 Jul 2017 03:15:26 +0000 (20:15 -0700)]
Merge "msm: thermal: fix return value check for scm_is_secure_device() API"

6 years agoMerge "mmc: sdhci: Enable CDR for cmdq mode"
Linux Build Service Account [Sat, 22 Jul 2017 03:15:24 +0000 (20:15 -0700)]
Merge "mmc: sdhci: Enable CDR for cmdq mode"

6 years agoMerge "ARM: dts: msm: Add remote debugger device configuration for cdsp"
Linux Build Service Account [Sat, 22 Jul 2017 03:15:23 +0000 (20:15 -0700)]
Merge "ARM: dts: msm: Add remote debugger device configuration for cdsp"

6 years agoMerge "diag: Add NULL pointer checks"
Linux Build Service Account [Sat, 22 Jul 2017 03:15:22 +0000 (20:15 -0700)]
Merge "diag: Add NULL pointer checks"

6 years agoMerge "coresight-remote-etm: Removes lock in remote_etm_rcv_msg()"
Linux Build Service Account [Sat, 22 Jul 2017 03:15:21 +0000 (20:15 -0700)]
Merge "coresight-remote-etm: Removes lock in remote_etm_rcv_msg()"

6 years agoMerge "msm: ais: sensor: actuator: add conditional check for ioctl"
Linux Build Service Account [Sat, 22 Jul 2017 03:15:20 +0000 (20:15 -0700)]
Merge "msm: ais: sensor: actuator: add conditional check for ioctl"

6 years agoMerge "msm: ADSPRPC: Add exec permission for hyp_assign_phys"
Linux Build Service Account [Sat, 22 Jul 2017 03:15:19 +0000 (20:15 -0700)]
Merge "msm: ADSPRPC: Add exec permission for hyp_assign_phys"

6 years agoMerge "ARM: dts: msm: Update bootargs with LPM disabled for msm8996pro"
Linux Build Service Account [Fri, 21 Jul 2017 18:08:30 +0000 (11:08 -0700)]
Merge "ARM: dts: msm: Update bootargs with LPM disabled for msm8996pro"

6 years agoMerge "ARM: dts: msm: Add support for MSM8996pro UFS based board"
Linux Build Service Account [Fri, 21 Jul 2017 18:08:29 +0000 (11:08 -0700)]
Merge "ARM: dts: msm: Add support for MSM8996pro UFS based board"

6 years agoMerge "power: smb-lib: Restart charging from soft JEITA"
Linux Build Service Account [Fri, 21 Jul 2017 18:08:28 +0000 (11:08 -0700)]
Merge "power: smb-lib: Restart charging from soft JEITA"

6 years agoMerge "net/packet: fix overflow in check for tp_reserve"
Linux Build Service Account [Fri, 21 Jul 2017 18:08:27 +0000 (11:08 -0700)]
Merge "net/packet: fix overflow in check for tp_reserve"

6 years agoMerge "msm: camera: Proper use of snprintf to avoid information leak"
Linux Build Service Account [Fri, 21 Jul 2017 18:08:25 +0000 (11:08 -0700)]
Merge "msm: camera: Proper use of snprintf to avoid information leak"

6 years agoMerge "diag: mhi: Fix error handling for DCI channel failure"
Linux Build Service Account [Fri, 21 Jul 2017 18:08:23 +0000 (11:08 -0700)]
Merge "diag: mhi: Fix error handling for DCI channel failure"

6 years agoMerge "cnss2: Deinit MHI before device power on during SSR"
Linux Build Service Account [Fri, 21 Jul 2017 18:08:23 +0000 (11:08 -0700)]
Merge "cnss2: Deinit MHI before device power on during SSR"

6 years agoMerge "USB: f_accessory: Check for length before updating accessory string"
Linux Build Service Account [Fri, 21 Jul 2017 18:08:22 +0000 (11:08 -0700)]
Merge "USB: f_accessory: Check for length before updating accessory string"

6 years agoMerge "drm/msm: add support for HDR playback control sequence"
Linux Build Service Account [Fri, 21 Jul 2017 18:08:21 +0000 (11:08 -0700)]
Merge "drm/msm: add support for HDR playback control sequence"

6 years agocrypto: ice: Remove redundant checks
Neeraj Soni [Fri, 21 Jul 2017 13:49:53 +0000 (19:19 +0530)]
crypto: ice: Remove redundant checks

Check is implemented in required function as part of
new implementation.

Change-Id: I346cd27cb254abe7d9706f01a9b463750614245e
Signed-off-by: Neeraj Soni <neersoni@codeaurora.org>
6 years agoath10k: skip vdev down command before vdev restart for wcn3990
Ashutosh Kumar [Wed, 12 Jul 2017 11:33:04 +0000 (17:03 +0530)]
ath10k: skip vdev down command before vdev restart for wcn3990

Vdev restart command triggers a vdev down and vdev stop in the
firmware. We do not need to send vdev down before sending vdev
restart to the firmware.

Skip vdev down command before we send the vdev restart command
for wcn3990 in the case of change in the channel context.

CRs-Fixed: 2079703
Change-Id: Idb611ec9ae8d40c7f7c3fe6efe853bf4c60d3123
Signed-off-by: Ashutosh Kumar <askuma@codeaurora.org>
6 years agomsm: thermal: fix return value check for scm_is_secure_device() API
Manaf Meethalavalappu Pallikunhi [Wed, 19 Jul 2017 11:14:19 +0000 (16:44 +0530)]
msm: thermal: fix return value check for scm_is_secure_device() API

KTM ignores software secure watchdog bite if it is a secure device
since this call support is not there in secure device. But API
scm_is_secure_device() returns false if it is secure device,
true otherwise. But KTM return value check is wrong and leads to
no secure watchdog bite call from KTM for all targets.
Fix return value check properly in KTM to resolve this issue.

Change-Id: I1612fee3f57f6c2d27c4329abc2c563b7b1d8102
Signed-off-by: Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
6 years agomsm: ais: sensor: actuator: add conditional check for ioctl
Rahul Sharma [Fri, 14 Jul 2017 08:36:37 +0000 (14:06 +0530)]
msm: ais: sensor: actuator: add conditional check for ioctl

Add conditional check when sending VIDIOC_MSM_ACTUATOR_CFG32.

Change-Id: I8f47823a9f932fe9f3fa96560f16d7da755a781f
CRs-Fixed: 2060371
Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
6 years agocoresight-remote-etm: Removes lock in remote_etm_rcv_msg()
Mukesh Ojha [Thu, 20 Jul 2017 10:41:30 +0000 (16:11 +0530)]
coresight-remote-etm: Removes lock in remote_etm_rcv_msg()

'commit 9021973bacc9 ("coresight-remote-etm: Adds missing lock to avoid
race condition")' adds lock inside remote_etm_rcv_msg() which is not
needed as we are waiting inside it for a response of request made
remote_etm_enable => qmi_send_req_wait() which already holds lock
'drvdata->mutex'.

So, adding 'drvdata->mutex' inside remote_etm_rcv_msg() adds wait for
the lock and due to which not able to ack the response got which results
in timeout error qmi_send_req_wait().

This patch fixes the above mentioned issue by removing the lock added in
above mentioned commit.

Change-Id: Ie47607722ff170e012d598a2347b1c0ec6913cdf
Signed-off-by: Mukesh Ojha <mojha@codeaurora.org>
6 years agoARM: dts: msm: Add remote debugger device configuration for cdsp
Tharun Kumar Merugu [Wed, 19 Jul 2017 10:34:36 +0000 (16:04 +0530)]
ARM: dts: msm: Add remote debugger device configuration for cdsp

Adding remote debugger device configuration. The Remote Debugger driver
allows a debugger running on a host PC to communicate with a remote
stub running on peripheral subsystems.

Change-Id: I4aa40846efbf11739d81a9fbe22df811903d8eee
Acked-by: Chenna Kesava Raju <chennak@qti.qualcomm.com>
Signed-off-by: Tharun Kumar Merugu <mtharu@codeaurora.org>
6 years agoath10k: wait for peer delete resp after every peer delete
Rakesh Pillai [Thu, 20 Jul 2017 06:17:47 +0000 (11:47 +0530)]
ath10k: wait for peer delete resp after every peer delete

Peer create fails if the same peer has not been
properly deleted earlier.

Peer delete response indicates the successful deletion
of a peer. Wait for peer delete resp after every peer
delete cmd.

CRs-Fixed: 2079668
Change-Id: I48d6787a42f79d3ce1225c885ca9fa159ef6df77
Signed-off-by: Rakesh Pillai <pillair@codeaurora.org>
6 years agopower: smb-lib: Restart charging from soft JEITA
Anirudh Ghayal [Wed, 19 Jul 2017 10:34:44 +0000 (16:04 +0530)]
power: smb-lib: Restart charging from soft JEITA

In the scenario where the charging is terminated in the
JEITA soft condition, the HW is expected to restart
charging when battery temperature returns back to normal.

However, this does not work as expected and the charging
stays terminated. Fix this by disabling and re-enabling
charging CMD bit to restart charging.

CRs-Fixed: 2071261
Change-Id: I81d2a89c72ede840cc561b736ce1366c65da8c42
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
6 years agoARM: dts: msm: Add support for MSM8996pro UFS based board
Lei wang [Thu, 20 Jul 2017 10:19:07 +0000 (18:19 +0800)]
ARM: dts: msm: Add support for MSM8996pro UFS based board

Add board-id for UFS board which has a different board sub type.

Change-Id: Ic231784c46d4439944e403e26410515856fdc5fb
Signed-off-by: Lei wang <leiwan@codeaurora.org>
6 years agonet/packet: fix overflow in check for tp_reserve
Andrey Konovalov [Wed, 29 Mar 2017 14:11:22 +0000 (16:11 +0200)]
net/packet: fix overflow in check for tp_reserve

When calculating po->tp_hdrlen + po->tp_reserve the result can overflow.

Fix by checking that tp_reserve <= INT_MAX on assign.

Change-Id: If3b5fd73bd440de2a1050644b71ef7430f09810f
Signed-off-by: Andrey Konovalov <andreyknvl@google.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Git-commit: bcc5364bdcfe131e6379363f089e7b4108d35b70
Signed-off-by: Dennis Cagle <dcagle@codeaurora.org>
6 years agonet/packet: fix overflow in check for tp_frame_nr
Andrey Konovalov [Wed, 29 Mar 2017 14:11:21 +0000 (16:11 +0200)]
net/packet: fix overflow in check for tp_frame_nr

When calculating rb->frames_per_block * req->tp_block_nr the result
can overflow.

Add a check that tp_block_size * tp_block_nr <= UINT_MAX.

Since frames_per_block <= tp_block_size, the expression would
never overflow.

Change-Id: I183d9adb8b90010f408b5e1d0785aa06814f4348
Signed-off-by: Andrey Konovalov <andreyknvl@google.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Git-commit: 8f8d28e4d6d815a391285e121c3a53a0b6cb9e7b
Signed-off-by: Dennis Cagle <dcagle@codeaurora.org>
6 years agodiag: mhi: Fix error handling for DCI channel failure
Chris Lew [Tue, 23 May 2017 01:39:55 +0000 (18:39 -0700)]
diag: mhi: Fix error handling for DCI channel failure

Not all targets support the DCI channel over MHI. Fix
error handling to only cleanup the failing device if
MHI registration fails.

Change-Id: I5ba23d69bc1fa3c08468d930f5f50151bfcd5bc0
Signed-off-by: Chris Lew <clew@codeaurora.org>
6 years agodiag: mhi: Remove unnecessary sanity check
Chris Lew [Mon, 22 May 2017 23:47:43 +0000 (16:47 -0700)]
diag: mhi: Remove unnecessary sanity check

On an MHI down notification, the enabled state is set to 0 before
flushing the workqueue and buffers. This sanity check conflicts
with the down notification. Remove unneeded sanity check.

Change-Id: I6bedc353187bee907775347009e0d4157b0e35e2
Signed-off-by: Chris Lew <clew@codeaurora.org>
6 years agodiag: Convert diag bridge as a platform dev
Sujeev Dias [Tue, 17 Jan 2017 00:57:40 +0000 (16:57 -0800)]
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>
6 years agocnss2: Deinit MHI before device power on during SSR
Yue Ma [Thu, 8 Jun 2017 22:24:20 +0000 (15:24 -0700)]
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>
6 years agoANDROID: android-verity: mark dev as rw for linear target
Badhri Jagan Sridharan [Fri, 3 Jun 2016 20:16:59 +0000 (13:16 -0700)]
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: 492a6047e7b5a1383627189e8bff99ff181ef4a4
Git-repo: https://android.googlesource.com/kernel/common/
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
6 years agoARM: dts: msm: Update bootargs with LPM disabled for msm8996pro
John Zhao [Thu, 20 Jul 2017 20:34:23 +0000 (04:34 +0800)]
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>
6 years agodiag: Add NULL pointer checks
Hardik Arya [Tue, 18 Jul 2017 08:08:26 +0000 (13:38 +0530)]
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>
6 years agoath10k: Add peer delete resp event processing
Rakesh Pillai [Wed, 19 Jul 2017 17:32:41 +0000 (23:02 +0530)]
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>
6 years agoMerge "msm: vdec: Allocate max internal buffers"
Linux Build Service Account [Thu, 20 Jul 2017 09:56:46 +0000 (02:56 -0700)]
Merge "msm: vdec: Allocate max internal buffers"

6 years agoMerge "ASoc: msm: qdspv2: Fix latency calculation in pcm offload path"
Linux Build Service Account [Thu, 20 Jul 2017 09:56:45 +0000 (02:56 -0700)]
Merge "ASoc: msm: qdspv2: Fix latency calculation in pcm offload path"

6 years agoMerge "ASoC: msm8998: modify quat mi2s clock id in slave mode"
Linux Build Service Account [Thu, 20 Jul 2017 09:56:44 +0000 (02:56 -0700)]
Merge "ASoC: msm8998: modify quat mi2s clock id in slave mode"

6 years agomsm: isp: fix the invalid type conversion
Srikanth Uyyala [Wed, 19 Jul 2017 09:58:54 +0000 (15:28 +0530)]
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>
6 years agoMerge "msm: ipa3: Add spinlock to avoid deleting already deleted list"
Linux Build Service Account [Thu, 20 Jul 2017 00:20:49 +0000 (17:20 -0700)]
Merge "msm: ipa3: Add spinlock to avoid deleting already deleted list"

6 years agodrm/msm: add support for HDR playback control sequence
Abhinav Kumar [Sat, 15 Jul 2017 00:42:54 +0000 (17:42 -0700)]
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>
6 years agoMerge "msm: vdec: Updating DCVS buf count if thumbnail mode is enabled"
Linux Build Service Account [Wed, 19 Jul 2017 16:10:37 +0000 (09:10 -0700)]
Merge "msm: vdec: Updating DCVS buf count if thumbnail mode is enabled"

6 years agoMerge "msm: vidc: Fix issue in cache operation range"
Linux Build Service Account [Wed, 19 Jul 2017 16:10:36 +0000 (09:10 -0700)]
Merge "msm: vidc: Fix issue in cache operation range"

6 years agoMerge "ARM: dts: msm: Add fixed regulator for WLAN_EN pin in MSM8996"
Linux Build Service Account [Wed, 19 Jul 2017 16:10:35 +0000 (09:10 -0700)]
Merge "ARM: dts: msm: Add fixed regulator for WLAN_EN pin in MSM8996"

6 years agoMerge "usb: dwc3-msm: Add sysfs node to enable SS host compliance"
Linux Build Service Account [Wed, 19 Jul 2017 16:10:34 +0000 (09:10 -0700)]
Merge "usb: dwc3-msm: Add sysfs node to enable SS host compliance"

6 years agoMerge "diag: Add protection while de-initializing clients"
Linux Build Service Account [Wed, 19 Jul 2017 16:10:33 +0000 (09:10 -0700)]
Merge "diag: Add protection while de-initializing clients"

6 years agoMerge "usb: gadget: f_qdss: Add support for mdm qdss channel"
Linux Build Service Account [Wed, 19 Jul 2017 16:10:33 +0000 (09:10 -0700)]
Merge "usb: gadget: f_qdss: Add support for mdm qdss channel"

6 years agoMerge "msm: mdss: Fix possible memory overwrite in pgc config"
Linux Build Service Account [Wed, 19 Jul 2017 16:10:31 +0000 (09:10 -0700)]
Merge "msm: mdss: Fix possible memory overwrite in pgc config"

6 years agoMerge "security: pfe: Synchronize the file key usage"
Linux Build Service Account [Wed, 19 Jul 2017 16:10:30 +0000 (09:10 -0700)]
Merge "security: pfe: Synchronize the file key usage"

6 years agoMerge "msm: ipa: fix to incorrect structure access"
Linux Build Service Account [Wed, 19 Jul 2017 16:10:29 +0000 (09:10 -0700)]
Merge "msm: ipa: fix to incorrect structure access"

6 years agoMerge "msm: ADSPRPC: avoid sending new requests to dsp while device_release"
Linux Build Service Account [Wed, 19 Jul 2017 16:10:28 +0000 (09:10 -0700)]
Merge "msm: ADSPRPC: avoid sending new requests to dsp while device_release"

6 years agoMerge "msm: mdss: dp: fix watchdog reset with DP connected in AOD mode"
Linux Build Service Account [Wed, 19 Jul 2017 16:10:27 +0000 (09:10 -0700)]
Merge "msm: mdss: dp: fix watchdog reset with DP connected in AOD mode"

6 years agodiag: Synchronize msg mask read and write on a peripheral
Manoj Prabhu B [Fri, 14 Jul 2017 11:22:45 +0000 (16:52 +0530)]
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: 20423622055291
Change-Id: If136012855834b0b8cba91eb66bf711750e8f372
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
6 years agoARM: dts: msm: Add support for TOF sensor on msm8998 QVR
Vijay kumar Tumati [Tue, 11 Jul 2017 06:37:18 +0000 (12:07 +0530)]
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>
6 years agomsm: ADSPRPC: Add exec permission for hyp_assign_phys
Tharun Kumar Merugu [Mon, 17 Jul 2017 09:02:59 +0000 (14:32 +0530)]
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>
6 years agomsm: ipa3: Add spinlock to avoid deleting already deleted list
Mohammed Javid [Mon, 17 Jul 2017 06:33:41 +0000 (12:03 +0530)]
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>
6 years agodiag: Process glink buffers in workqueue context
Manoj Prabhu B [Fri, 14 Jul 2017 09:04:26 +0000 (14:34 +0530)]
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>
6 years agoUSB: f_accessory: Check for length before updating accessory string
Vijayavardhan Vennapusa [Fri, 14 Jul 2017 11:17:10 +0000 (16:47 +0530)]
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>
6 years agoARM: dts: msm: Add fixed regulator for WLAN_EN pin in MSM8996
Yue Ma [Tue, 18 Jul 2017 19:38:15 +0000 (12:38 -0700)]
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

6 years agoMerge "msm: sde: rotator: Enable traffic shaper for 4k@60fps layer"
Linux Build Service Account [Tue, 18 Jul 2017 18:51:44 +0000 (11:51 -0700)]
Merge "msm: sde: rotator: Enable traffic shaper for 4k@60fps layer"

6 years agoMerge "msm: ais: Fix NULL pointer dereference in msm.c."
Linux Build Service Account [Tue, 18 Jul 2017 18:51:42 +0000 (11:51 -0700)]
Merge "msm: ais: Fix NULL pointer dereference in msm.c."

6 years agoMerge "msm: ais: fix crash during dumping io register"
Linux Build Service Account [Tue, 18 Jul 2017 18:51:42 +0000 (11:51 -0700)]
Merge "msm: ais: fix crash during dumping io register"

6 years agoMerge "msm: camera: sensor:validating the flash initialization parameters"
Linux Build Service Account [Tue, 18 Jul 2017 18:51:41 +0000 (11:51 -0700)]
Merge "msm: camera: sensor:validating the flash initialization parameters"

6 years agoMerge "msm: camera: sensor: Fix a bug in CCI with I2C write"
Linux Build Service Account [Tue, 18 Jul 2017 18:51:40 +0000 (11:51 -0700)]
Merge "msm: camera: sensor: Fix a bug in CCI with I2C write"

6 years agoMerge "msm: camera: isp: Store the user ahb vote"
Linux Build Service Account [Tue, 18 Jul 2017 18:51:39 +0000 (11:51 -0700)]
Merge "msm: camera: isp: Store the user ahb vote"

6 years agosecurity: pfe: Synchronize the file key usage
Neeraj Soni [Tue, 18 Jul 2017 11:03:31 +0000 (16:33 +0530)]
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>
6 years agoMerge "msm: sensor: actuator: add conditional check for ioctl"
Linux Build Service Account [Tue, 18 Jul 2017 10:06:57 +0000 (03:06 -0700)]
Merge "msm: sensor: actuator: add conditional check for ioctl"

6 years agoMerge "usb: pd: policy_engine: Add support to handle floating charger"
Linux Build Service Account [Tue, 18 Jul 2017 10:06:55 +0000 (03:06 -0700)]
Merge "usb: pd: policy_engine: Add support to handle floating charger"

6 years agoMerge "qseecom: update on smcinvoke-aware listeners operations"
Linux Build Service Account [Tue, 18 Jul 2017 10:06:55 +0000 (03:06 -0700)]
Merge "qseecom: update on smcinvoke-aware listeners operations"

6 years agomsm: ADSPRPC: avoid sending new requests to dsp while device_release
tharun kumar [Mon, 3 Jul 2017 11:37:03 +0000 (17:07 +0530)]
msm: ADSPRPC: avoid sending new requests to dsp while device_release

When fastrpc_device_release is in progress, don't send any new
requets to DSP

Change-Id: I4d9e2f06485cde6dbd3d7aef402e3e853e0be998
Acked-by: Chenna Kesava Raju <chennak@qti.qualcomm.com>
Signed-off-by: Tharun Kumar Merugu <mtharu@codeaurora.org>
6 years agomsm: ipa: fix to incorrect structure access
Mohammed Javid [Mon, 17 Jul 2017 10:56:06 +0000 (16:26 +0530)]
msm: ipa: fix to incorrect structure access

Accessing of incorrect structure pointer is causing
memory out of bound access, fixed issue by accessing
the correct structure pointer.Missed changes in previous
commit I3c2f5f7a97ca ("msm:ipa: Fix to incorrect structure access")
for proc header table cookie variable.Added missing changes.

Change-Id: I9260b8a4d4db0e76eb3849f64174e33e075d3736
Acked-by: Ashok Vuyyuru <avuyyuru@qti.qualcomm.com>
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
6 years agomsm: camera: sensor:validating the flash initialization parameters
kaiwang [Thu, 29 Jun 2017 08:12:59 +0000 (16:12 +0800)]
msm: camera: sensor:validating the flash initialization parameters

Copying the flash initialization parameters from userspace memory to
kernel memory and in turn checking for the validity of the flash
initialization parameters pointer sent from userspace

CRs-Fixed: 2059812
Change-Id: I957c10959108eb08b263d439a9a449b90338b6db
Signed-off-by: kaiwang <kaiwang@codeaurora.org>
Signed-off-by: Haibin Liu <haibinl@codeaurora.org>
6 years agopower: qcom-step-chg: Add a new file for step-charging
Anirudh Ghayal [Tue, 11 Jul 2017 03:47:50 +0000 (09:17 +0530)]
power: qcom-step-chg: Add a new file for step-charging

Add a new file which manages the step charging solution.
It supports 2 sources for step-charging - VBATT and SOC.
The solution samples the VBATT/SOC periodically and
applies the FCC from a static look-up table.

Change-Id: I82f560df5a6a8ad0cd46e989f9944d93cb5529d7
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
6 years agoMerge "Revert "sched: Remove synchronize rcu/sched calls from _cpu_down""
Linux Build Service Account [Tue, 18 Jul 2017 01:40:09 +0000 (18:40 -0700)]
Merge "Revert "sched: Remove synchronize rcu/sched calls from _cpu_down""

6 years agoMerge "drm/msm: fix Y420CMDB EDID block parsing"
Linux Build Service Account [Tue, 18 Jul 2017 01:40:08 +0000 (18:40 -0700)]
Merge "drm/msm: fix Y420CMDB EDID block parsing"

6 years agoMerge "msm: rdbg: remote debugger support on CDSP"
Linux Build Service Account [Tue, 18 Jul 2017 01:40:07 +0000 (18:40 -0700)]
Merge "msm: rdbg: remote debugger support on CDSP"

6 years agoMerge "cnss2: Send WAKE MSI base data to firmware"
Linux Build Service Account [Tue, 18 Jul 2017 01:40:05 +0000 (18:40 -0700)]
Merge "cnss2: Send WAKE MSI base data to firmware"

6 years agoMerge "Perf: arm64: avoid use of uninitialized variable"
Linux Build Service Account [Tue, 18 Jul 2017 01:40:04 +0000 (18:40 -0700)]
Merge "Perf: arm64: avoid use of uninitialized variable"

6 years agousb: gadget: f_qdss: Add support for mdm qdss channel
Hemant Kumar [Thu, 2 Mar 2017 23:30:08 +0000 (15:30 -0800)]
usb: gadget: f_qdss: Add support for mdm qdss channel

Driver needs to pass qdss data received from mdm qdss
bridge driver to host PC. This requires a software data
path using IN endpoint. Bridge driver needs to open
qdss_mdm channel and use exported write() API to pass
the qdss data received from mdm. Driver calls the notify
call back upon write completion.

Change-Id: I4d8ceaed0bf9c85aa17d3f49503cd690917cc117
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
6 years agoqseecom: update on smcinvoke-aware listeners operations
Zhen Kong [Thu, 29 Jun 2017 22:22:14 +0000 (15:22 -0700)]
qseecom: update on smcinvoke-aware listeners operations

With the introduction of MinkIPC for TA-to-TA communication,
if a request for blocking a TA (on a busy listener) is received
by qseecom, it may not be originated from the last TA to which
a command (or unblock response) was sent to. So, make change
to use a session_id instead of app_id to uniquely identify this
blocked request and a new cmd ID to support this smcinvoke-aware
listener operation.

Change-Id: I362e9acfa52c055b5759c210bb881da40f4e0776
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
6 years agousb: pd: policy_engine: Add support to handle floating charger
Hemant Kumar [Thu, 13 Jul 2017 19:08:49 +0000 (12:08 -0700)]
usb: pd: policy_engine: Add support to handle floating charger

There is a possibility of PMI detecting SDP as a floating charger
when connected to a PC. Workaround this issue by starting peripheral
stack for floating charger as well. Stop peripheral stack after 10 sec
in absence of USB device enumeration.

Change-Id: I6effee71affbe0baeb28c54ce799ade79ec4b42a
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
6 years agousb: dwc3-msm: Add support to handle floating D+/D- lines
Hemant Kumar [Thu, 13 Jul 2017 01:11:25 +0000 (18:11 -0700)]
usb: dwc3-msm: Add support to handle floating D+/D- lines

There is a possibility of PMI detecting SDP as a floating charger
when connected to a PC. Workaround this issue by starting peripheral
stack for floating charger as well. After 10 sec check for USB device
enumeration using gadget USB state. If device is indeed connected to
SDP gadget usb state will be USB_STATE_DEFAULT or higher. This change
also helps to start peripheral stack in super speed usb compliance mode
when D+ and D- lines are floating.

Change-Id: Ia6dc668c549dca35e3273ece9a43be52c25d40ad
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
6 years agocnss2: Send WAKE MSI base data to firmware
Yue Ma [Fri, 14 Jul 2017 19:09:19 +0000 (12:09 -0700)]
cnss2: Send WAKE MSI base data to firmware

Add the support to send WAKE MSI base data to firmware through
HOST_CAP_REQ QMI message so that firmware can use it to wake up
WLAN host driver.

Change-Id: Ief8bfb6c3746bc0bfd833aa3bded09212773244d
Signed-off-by: Yue Ma <yuem@codeaurora.org>
6 years agocnss2: Update QMI WLFW header files
Yue Ma [Fri, 14 Jul 2017 18:23:44 +0000 (11:23 -0700)]
cnss2: Update QMI WLFW header files

Add changes for PMIC XO calibration data support. Also Add one
optional field of HOST_CAP_REQ message to indicate the WAKE MSI
base data that driver can support.

Change-Id: I6cdfa3d5e485fd1a772f1a5c465cfba3e28048a7
Signed-off-by: Yue Ma <yuem@codeaurora.org>
6 years agocnss2: Support runtime power on/off WLAN device
Yue Ma [Wed, 12 Jul 2017 22:08:30 +0000 (15:08 -0700)]
cnss2: Support runtime power on/off WLAN device

WLAN host driver may do runtime mode switch which requires platform
driver to reset device and re-download firmware. Add the changes for
runtime power on/off WLAN device to support runtime mode switch.

Change-Id: I08d3635afbaafb73691fbdf5d25877fb433bae18
CRs-fixed: 2059087
Signed-off-by: Yue Ma <yuem@codeaurora.org>
6 years agoMerge "msm: vidc: Free pixel plane handle when map extradata fails"
Linux Build Service Account [Mon, 17 Jul 2017 12:28:29 +0000 (05:28 -0700)]
Merge "msm: vidc: Free pixel plane handle when map extradata fails"