Commit graph

593380 commits

Author SHA1 Message Date
Subbaraman Narayanamurthy
d3aa081876 power: qcom-step-chg: Fix the error return path
Fix the error return path in qcom_step_chg_init() to free up the
allocated memory and registered wake source.

Change-Id: I8f93246d27f79a7c759b3afc4a4544d9ffca7a80
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-08-22 15:04:53 -07:00
Haibin Liu
22c9c625bd msm: sensor: Fix crash when ioctl VIDIOC_MSM_SENSOR_INIT_CFG
the invalid data of sensor_init_cfg_data, is used by
msm_sensor_driver_probe. This cause crash when ioctl
VIDIOC_MSM_SENSOR_INIT_CFG repeatedly and aggressively.

Change-Id: Idffcd3b82b9590dbfdcaf14b80668cc894178f54
Signed-off-by: Haibin Liu <haibinl@codeaurora.org>
2017-08-22 06:46:50 -07:00
Linux Build Service Account
232b0f15cc Merge "ASoC: core: Fix possible NULL pointer dereference" 2017-08-22 04:11:35 -07:00
Linux Build Service Account
af6102c60e Merge "msm: sensor: Add mutex lock during ois power down operations" 2017-08-22 04:11:35 -07:00
Linux Build Service Account
a39227b922 Merge "tracing: Revert commits improving handling of saved_tgids" 2017-08-22 04:11:33 -07:00
Linux Build Service Account
9e200511bc Merge "ARM: dts: msm: Enable laser sensor on sdm630 MTP" 2017-08-22 04:11:32 -07:00
Linux Build Service Account
c0ee484da1 Merge "ion: Convert allocation counters to long" 2017-08-22 04:11:31 -07:00
Linux Build Service Account
0d782ac54b Merge "dwc3: Add required support to get lfps_rxterm interrupt from SS_PHY" 2017-08-22 04:11:24 -07:00
yidongh
76870985af ASoC: msm: qdspv2: initialize struct member before being used
Initialize member value of struct audio_aio_write_param after declaration.

CRs-Fixed: 2091953
Change-Id: Iaf3ff1232e85ae8d26e9d97ce4c2aa3408da7a80
Signed-off-by: Yidong Huang <yidongh@codeaurora.org>
2017-08-22 02:15:34 -07:00
yidongh
4c78ad9740 ASoC: APR: initialize struct member before being used
Initialize member value of struct apr_client_data after declaration.

CRs-Fixed: 2091948
Change-Id: I8a185ebd4126f7d064de90bf652bc96c2ab7b408
Signed-off-by: Yidong Huang <yidongh@codeaurora.org>
2017-08-22 01:36:18 -07:00
Meng Wang
214496cb3d ASoC: core: Fix possible NULL pointer dereference
When SSR is triggered when the system does not have a sound card
registered, but has codecs. The pointer card sent from codec driver
to snd_soc_card_change_online_state is NULL. Add null check for soc_card
before dereferencing.

Change-Id: I23342a6cbd9d53e62b2ea11dfe79aad3759df6f0
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2017-08-21 23:05:03 -07:00
Sachin Bhayare
1f1075f312 drm/msm/sde: count null character for blob length
Return value of snprintf doesn't account for the terminating
null character it appends to the end of every string.
So this change adds one extra character length to the blob size
to avoid over reading from the client end.

Change-Id: I8919f0b01dcbcad9300c28e070e9b9ca64368db2
Signed-off-by: Narendra Muppalla <NarendraM@codeaurora.org>
Signed-off-by: Sachin Bhayare <sachin.bhayare@codeaurora.org>
2017-08-21 22:30:13 -07:00
Linux Build Service Account
47b13c41e7 Merge "usb: pd: simplify pd_phy_write() and pd_phy_signal() usage" 2017-08-21 20:01:19 -07:00
Linux Build Service Account
5f76ac9d86 Merge "msm: ADSPRPC: validate user buffers after copying from user" 2017-08-21 20:01:11 -07:00
Linux Build Service Account
fc59d81f3e Merge "leds: leds-qpnp: Set PWM channel operational mode explicitly" 2017-08-21 20:01:10 -07:00
Linux Build Service Account
a11dada42d Merge "usb: pd: force disconnect upon unexpected SRC->SNK transition" 2017-08-21 20:01:08 -07:00
Adrian Salido
761ef1a0a0 tracing: fix race condition reading saved tgids
Commit 939c7a4f04 ("tracing: Introduce saved_cmdlines_size file")
introduced ability to change saved cmdlines size. This resized saved
command lines but missed resizing tgid mapping as well.

Another issue is that when the resize happens, it removes saved command
lines and reallocates new memory for it. This introduced a race
condition when reading the global savecmd as this can be freed in the
middle of accessing it causing a use after free access. Fix this by
implementing locking.

Signed-off-by: Adrian Salido <salidoa@google.com>
Bug: 36007735
Change-Id: I334791ac35f8bcbd34362ed112aa624275a46947
Git-repo: https://android.googlesource.com/kernel/common
Git-commit: 7116d306da66de0de21e982024b4d3a3056f4461
Signed-off-by: Dennis Cagle <dcagle@codeaurora.org>
2017-08-21 16:02:39 -07:00
Dennis Cagle
3fe1011f7e tracing: Revert commits improving handling of saved_tgids
This reverts commit 7005c6eec7 ("tracing: Free saved_tgids memory
in free_saved_cmdlines_buffer") and commit be0b454d52 ("tracing:
Modify saved_tgids size for change in saved_cmdline_size")

An upstream patch is now available that does the same thing and
handles additional cases as well.

Change-Id: I05cf2dc566a6425e58076ae2e9698335b6d738cc
Signed-off-by: Dennis Cagle <dcagle@codeaurora.org>
2017-08-21 16:00:52 -07:00
Gidon Studinski
15cc634bd2 wil6210: move vring_idle_trsh definition to wil6210_priv
vring_idle_trsh is used in the operational driver, hence
should not be defined as a debugfs variable.

Change-Id: I302fbcb7bbf0237ed989828e83c447a8b5c78996
Signed-off-by: Gidon Studinski <qca_gidons@qca.qualcomm.com>
Signed-off-by: Maya Erez <qca_merez@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Git-commit: 38d16ab2b2132beeb9777de1508ce2150b2dcd35
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git
Signed-off-by: Maya Erez <merez@codeaurora.org>
2017-08-21 22:59:31 +03:00
Dedy Lansky
64406ee9da wil6210: store FW RF calibration result
Store initial FW RF calibration result in driver. Set this calibration
result back to FW after each FW reset in order to avoid future calibration
procedures.

Change-Id: Id7dec17d6306e3234285874bd83b71ba4009afef
Signed-off-by: Dedy Lansky <qca_dlansky@qca.qualcomm.com>
Signed-off-by: Maya Erez <qca_merez@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Git-commit: eb4c02155881696ee6abb090d554b765e41d46ed
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git
Signed-off-by: Maya Erez <merez@codeaurora.org>
2017-08-21 22:59:30 +03:00
Hamad Kadmany
66865bb58c wil6210: fix interface-up check
While wil_open is executed, any call to netif_running
would return a success. In case there are failures
within wil_open, should not treat the device as if it
is already opened in relevant functions (like FW recovery
and runtime suspend check).

Fix that by checking the device up flag instead.

Change-Id: I12c4167a49690f93febec3e8ffaec8a5d2cde91d
Signed-off-by: Hamad Kadmany <qca_hkadmany@qca.qualcomm.com>
Signed-off-by: Maya Erez <qca_merez@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Git-commit: 9b2a4c2d534ca45c74488bace32323b26633ff66
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git
Signed-off-by: Maya Erez <merez@codeaurora.org>
2017-08-21 22:59:29 +03:00
Maya Erez
1b4b1c3694 wil6210: notify wiphy on wowlan support
Set wowlan to indicate that 11ad device can wake-up
on any trigger and disconnect.

Change-Id: I12f226921f854a354404d16e592447a98859b205
Signed-off-by: Maya Erez <qca_merez@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Git-commit: d1fbf07540b7d35df693e2e1d7528d8ca9bdb2c2
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git
Signed-off-by: Maya Erez <merez@codeaurora.org>
2017-08-21 22:59:29 +03:00
Maya Erez
6380f8869e wil6210: add statistics for suspend time
Add statistics for total, min and max suspend time, that
calculates the time the 11ad device was in suspend.
Those statistics will help to estimate the power impact
of d3hot feature.

Change-Id: I14dfa206b141a4d2b5585d637fe94b2eed91d2b7
Signed-off-by: Maya Erez <qca_merez@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Git-commit: 262345265e599fe5ccc75ba435147d17df04bfd6
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git
Signed-off-by: Maya Erez <merez@codeaurora.org>
2017-08-21 22:59:28 +03:00
Maya Erez
c3ab954ff5 wil6210: check no_fw_recovery in resume failure recovery
Reset 11ad device on resume failure only if no_fw_recovery
is not set.

Change-Id: Id90cc9973c2e06f3e9eeae32d3c9065e49f90212
Signed-off-by: Maya Erez <qca_merez@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Git-commit: c6622116c5ae56aec47dd3d63be49cabf591162a
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git
Signed-off-by: Maya Erez <merez@codeaurora.org>
2017-08-21 22:59:27 +03:00
Dedy Lansky
ba2101fc30 wil6210: support FW RSSI reporting
New FW supports reporting RSSI signal in dBm.
Report RSSI to kernel in case FW has this capability.

Change-Id: I85fdae2e92a38cfb7ab9a5f97dcf363add51b959
Signed-off-by: Dedy Lansky <qca_dlansky@qca.qualcomm.com>
Signed-off-by: Maya Erez <qca_merez@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Git-commit: 30868f5d4413759ba82c0703290f2483402fea39
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git
Signed-off-by: Maya Erez <merez@codeaurora.org>
2017-08-21 22:59:19 +03:00
Linux Build Service Account
cb1c821645 Merge "ARM: dts: msm: Remove configuration of the 2nd ADV7533 chip on ADP Lite" 2017-08-21 12:16:36 -07:00
Linux Build Service Account
afd2fd3441 Merge "ASoC: msm: qdsp6v2: Do not reset backend pass-through mode" 2017-08-21 12:16:35 -07:00
Linux Build Service Account
da4c2cf3b3 Merge "qcom: smb138x: supsend USBIN and disable OTG before shutdown" 2017-08-21 12:16:28 -07:00
Linux Build Service Account
22b849b8f3 Merge "clk: osm: Check for valid acd offset for input from debugfs" 2017-08-21 12:16:27 -07:00
Vidyakumar Athota
e4faef1e35 ASoC: msm: qdspv2: add an API to destroy ion client
Currently ion fd is used to extract ion handle to free ion client.
ION FD is not valid if user-space application is crashed so ion handle
is returned to the client during msm_audio_ion_phys_assign() API which
is used to destroy ion client in msm_audio_ion_phys_free() API.

Change-Id: Idcc4ca838741aac26662a679117af9d9c935e630
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2017-08-21 10:56:56 -07:00
Jin Qian
e4f6002702 f2fs: sanity check segment count
F2FS uses 4 bytes to represent block address. As a result, supported
size of disk is 16 TB and it equals to 16 * 1024 * 1024 / 2 segments.

Change-Id: I64d9be6dcc4ab5d8a45359c69d6163ed0209e8fe
Signed-off-by: Jin Qian <jinqian@google.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
Git-commit: b9dd46188edc2f0d1f37328637860bb65a771124
Signed-off-by: Dennis Cagle <dcagle@codeaurora.org>
2017-08-21 10:43:51 -07:00
Tharun Kumar Merugu
d78cfa2316 msm: ADSPRPC: Queue one more intent to avoid race condition
Queue 2 intents for adsprpc glink channel to avoid remote
processor failure for glink.
One intent for threads responding back of size 16,
another intent for IST failure responding without intent
request of size 64.

Change-Id: I85444cb0283c57ddf15cf7d1d50b827fe5339d4c
Acked-by: Viswanatham Paduchuri <vpaduchu@qti.qualcomm.com>
Signed-off-by: Tharun Kumar Merugu <mtharu@codeaurora.org>
2017-08-21 10:00:02 -07:00
Dhoat Harpal
e8574a4350 soc: qcom: glink: Initialize dummy xprt with dummy functions
Few function pointers are left uninitialized in dummy transport.
System can crash if these function pointer get dereferenced.

Initialize all the function pointers which can get called, with
dummy functions.

CRs-Fixed: 2067859
Change-Id: I9172776d9ffa0af5deb9898125fc6403fdcdee0f
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
2017-08-21 21:05:29 +05:30
Rahul Sharma
d16420b459 msm: sensor: Add mutex lock during ois power down operations
Protecting operations performed during ois powerdown
from race condition by adding mutex locks.

CRs-Fixed: 2081806
Change-Id: I8a918dc306e639d50a896c8d77f8eb7a72fcb195
Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
2017-08-21 07:06:15 -07:00
Yujun Zhang
71348bdb76 ARM: dts: msm: Remove configuration of the 2nd ADV7533 chip on ADP Lite
On APQ8096 ADP Lite board, the secondary ADV7533 bridge chip is
removed and its instance is already disabled in current DTS hence
related sde_kms should also remove it. Otherwise, component master
could not find the component for the display instance and causes
drm driver probe failure.

Change-Id: I0fd694cf33eaf8b29ca86efd2ea105ac565bdba1
CRs-Fixed: 2091671
Signed-off-by: Yujun Zhang <yujunzhang@codeaurora.org>
2017-08-21 18:16:09 +08:00
Linux Build Service Account
468ba7b8f9 Merge "Merge android-4.4@9f764bb (v4.4.80) into msm-4.4" 2017-08-21 00:20:14 -07:00
Linux Build Service Account
5883338fd9 Merge "wcnss: modularize wcnss power up sequence and debug logs" 2017-08-21 00:20:13 -07:00
Linux Build Service Account
d3b34dae57 Merge "wcnss: update MAC address generate logic from the serial number" 2017-08-21 00:20:12 -07:00
Linux Build Service Account
e235763c9f Merge "icnss: Add support to validate the result and error code" 2017-08-21 00:20:11 -07:00
Linux Build Service Account
50203f7fec Merge "msm: ipa3: Fix to avoid accessing of uninitialized structure" 2017-08-21 00:20:10 -07:00
Linux Build Service Account
2a003c6ab4 Merge "soc: qcom: glink_smem_native_xprt: Fix memory leak during qos init" 2017-08-21 00:20:09 -07:00
Linux Build Service Account
b9b46f3610 Merge "drm/msm: Disable clocks when GPU is inactive" 2017-08-21 00:20:08 -07:00
Linux Build Service Account
1067bf088e Merge "ASoC: wcd-dsp-mgr: fix race during subsystem restart" 2017-08-21 00:20:00 -07:00
Linux Build Service Account
6afe3a8c3b Merge "ASoc: wcd934x-dsp-cntl: notify online event after clocks are disabled" 2017-08-21 00:19:59 -07:00
Linux Build Service Account
ba41092462 Merge "ARM: dts: msm: Add Primary TDM Node for msm8996 Hypervisor" 2017-08-21 00:19:57 -07:00
Linux Build Service Account
b897137030 Merge "msm: sensor: Add mutex lock during ois power down operations" 2017-08-21 00:19:56 -07:00
Linux Build Service Account
025604fd4e Merge "ARM: dts: msm: Update boot option for PCIe on APQ8098" 2017-08-21 00:19:56 -07:00
Linux Build Service Account
dd5490df50 Merge "msm: vidc: Fix possible out of bound array access" 2017-08-21 00:19:55 -07:00
Linux Build Service Account
95b505dfc6 Merge "power: pmic-voter: make debug status more parsable" 2017-08-21 00:19:53 -07:00
Linux Build Service Account
3d4a252808 Merge "msm: adsprpc: Avoid leak info of pointers addresses to dmesg" 2017-08-21 00:19:52 -07:00