Commit graph

586936 commits

Author SHA1 Message Date
Linux Build Service Account
04561686f4 Merge "soc: qcom: Separate out qmi handle destruction and PD notification" 2017-03-29 06:49:30 -07:00
Lior David
00fc56f5f0 wil6210: do not start regular scan on stopped p2p device
The driver should not allow starting any type of scan on a stopped
P2P device. Current implementation only checked social scan.

Change-Id: I67d92b0bdb4549681e3d08a256b1798fdaeb0939
Signed-off-by: Lior David <qca_liord@qca.qualcomm.com>
Signed-off-by: Maya Erez <qca_merez@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Git-commit: 4a0e45a78328957b012f554fb2ffcd5c69fe418a
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git
Signed-off-by: Maya Erez <merez@codeaurora.org>
2017-03-28 23:48:51 -07:00
Harry Yang
cfe86e482b qcom: smb2: Disable parallel charging on qnovo charging below 2A
Add qnovo as pl charging voter and disable parallel charging  when
qnovo is enabled with fcc below 2A.

Change-Id: Ic03a18318a89344f2bd5c8a72445abe22cd3d142
Signed-off-by: Harry Yang <harryy@codeaurora.org>
2017-03-28 22:57:00 -07:00
Harry Yang
9ac55848ca qcom: qnovo: Add property to report charge errors
Report status that indicates individual charger errors,
including JEITA, battery, charing disabled, etc.

Change-Id: I5a02d9f86237ae1a05b71e78f17db8c39f35594f
Signed-off-by: Harry Yang <harryy@codeaurora.org>
2017-03-28 22:57:00 -07:00
Harry Yang
8ae4a028b6 qcom: qnovo: Add support to enable qnovo charging
Add property qnovo_enable to enable qnovo charging. Also add
property pt_enable to enable pulse train.

Extend QNOVO algorithm's control of voltage and current after
pulse train stops and as long as qnovo_enable = 1.

The interrupt ptrain_done is configured wakeup capable.

CRs-Fixed: 2013069
Change-Id: Icb61e0e0169283f5f52a4994431489dde0af1c73
Signed-off-by: Harry Yang <harryy@codeaurora.org>
2017-03-28 22:56:59 -07:00
Prashanth Bhatta
bbdda72e6d icnss: Separate debug and verbose log
Right now all the logs are dumped to IPC log buffer but there
are some logs which are logged most often and they overwrite log
buffer where in important logs required for debugging may be
lost. Create debug and verbose log level such that logs which are
logged most often and not as important as debug logs are moved to
verbose log level.

Change-Id: Iccab3e5485700efe71ffc85dc7c5f39b0872dfb4
CRs-fixed: 2025867
Signed-off-by: Prashanth Bhatta <bhattap@codeaurora.org>
2017-03-28 14:31:54 -07:00
Dhoat Harpal
95f2d746fd soc: qcom: glink_ssr: Add kref for cb_data
The variable cb_data is accessed from parallel threads where one thread
can free it anytime, this creates use after free scenerio.

To avoid use after free cases cb_data is freed only when kref count
goes to zero.

CRs-Fixed: 2023620
Change-Id: I74225fc61f8ede03a40ff35d2b963d90c0d4689f
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
2017-03-28 23:28:00 +05:30
Gopikrishna Mogasati
898a25d9ad diag: Fix race condition while accessing mdlog session info
This fix allows to avoid possible race condition while
accessing mdlog session info. Without this check there
is a possibility of poison overwritten occurrence.
Also this fix allows mdlog client to check the validity
of process descriptor. Without this fix there is
possibility of crash.

CRs-Fixed: 2022664
Change-Id: Ia10e83c7376de5cab92dd2ec4ec4aa8074223ff3
Signed-off-by: Gopikrishna Mogasati <gmogas@codeaurora.org>
2017-03-28 23:17:16 +05:30
Subbaraman Narayanamurthy
6a6090a522 qpnp-fg-gen3: use IMA single mode for pm660 fuel gauge
Because of HW issues, burst mode access cannot be done with
pm660 parts. Use IMA in single mode for it.

Change-Id: I4e86601d713140e559ba8a6f92715f2075c7b8ee
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-03-28 09:56:53 -07:00
Subbaraman Narayanamurthy
34a8e148af qcom: fg-memif: add support for using IMA single mode
Currently, based on the number of bytes read/written, IMA is
configured for single or burst mode. Add an option to override
to single mode whenever required.

While at it, change pr_err() statements to print some more debug
information which might be useful.

Change-Id: If19e135ed4014732a0efe56250f56f0760a1fb93
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-03-28 09:56:45 -07:00
Laxminath Kasam
54ed63847a pinctrl: lpi: Avoid initial SSR notifications at bootup
In pinctrl LPI driver, avoid initial bootup SSR
notifications after registration of SSR notifier.

CRs-Fixed: 2017639
Change-Id: Ib634ae0efe903b6628dcb6a385f823b11a355973
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2017-03-28 09:41:09 -07:00
Alok Kediya
bd486ee8b7 msm: camera: isp: Use single tasklet for dual vfe
Use a single tasklet for dual vfe. With different tasklets
if one of them is not scheduled early enough with respect to
the other tasklet then irq composition fails. By using a single
tasklet irq from both vfe will be handled in the order in which
the hardware generated them.

CRs-Fixed: 2009877
Change-Id: I033cb45afd3162773a181fa4a2dfc912b1bdb109
Signed-off-by: Alok Kediya <kediya@codeaurora.org>
2017-03-28 15:03:01 +05:30
Ritesh Harjani
57dd904196 mmc: sdhci-msm: Change pm_qos cpu groups latency to PM_QOS_DEFAULT_VALUE
In current pm_qos implementation - when the new pm_qos vote request
comes, the previous cpu group where pm_qos vote was put
is determined and removed if the current cpu group is different
than previous.

If the pm_qos vote of performance mode latency is put during
initialization, there can be a case where this vote will never be
released - since during init phase we can't cache the prev pm_qos cpu
group (pm_qos_prev_cpu = -1). Thus during the actual I/O sdhci_request
the pm_qos_prev_cpu will be -1 and unless the request comes once onto
each of those cpu group, the pm_qos voting can never be released.

Hence change this pm_qos vote for all cpu groups to PM_QOS_DEFAULT_VALUE
during init phase.

Change-Id: I71249b58f41850a8a84e6165d6df936eba13b218
Signed-off-by: Ritesh Harjani <riteshh@codeaurora.org>
2017-03-28 13:38:37 +05:30
Srinivas Dasari
1d3ad3e187 msm-4.4: driver to create cld80211 nl family at bootup time
Create cnss_genl driver to create a netlink family cld80211
and make it available to cld driver and applications when
they query for it.
This driver creates multicast groups to facilitate communication
from cld driver to userspace and allows cld driver to register
for different commands from user space.

Change-Id: I0795dd08b6429fad60187fee724b3fd3ccfa5603
Signed-off-by: Srinivas Dasari <dasaris@codeaurora.org>
CRs-Fixed: 1100401
2017-03-28 11:14:46 +05:30
Govind Singh
47a157657e ath10k: Use atomic read for fw_crashed state
fw_crashed is atomic state variable, use atomic
read operation for reading the value

Change-Id: Ieaad558cad684a0eb7daaad9d220b44c032d69ca
Signed-off-by: Govind Singh <govinds@codeaurora.org>
2017-03-28 11:14:40 +05:30
Revathi Uddaraju
494fafb255 ASoC: msm-lsm-client: cleanup ioctl functions
Fix the issue where copy_from_user interface is not used properly.
Cleanup the ioctl function so that there is no illegal memory access.

Change-Id: Iffe2bbc0d33f365a852bb0974ee5c45ab724214b
Signed-off-by: Revathi Uddaraju <revathiu@codeaurora.org>
2017-03-27 21:17:09 -07:00
Linux Build Service Account
fec225ae45 Merge "qpnp-fg-gen3: prime CC_SOC_SW when capacity learning begins" 2017-03-27 20:43:42 -07:00
Linux Build Service Account
df700e072e Merge "esoc: add support for additonal physical link info" 2017-03-27 20:43:41 -07:00
Linux Build Service Account
df9d7dccc8 Merge "defconfig: msm: enable EDAC_CORTEX_ARM64_DBE_IRQ_ONLY for SDM660" 2017-03-27 20:43:41 -07:00
Linux Build Service Account
4e44621207 Merge "BACKPORT: f2fs: add a max block check for get_data_block_bmap" 2017-03-27 20:43:38 -07:00
Linux Build Service Account
24cabe3eb3 Merge "qcom: smblib: Only enable hdc and icl irqs on QC/PD chargers" 2017-03-27 20:43:37 -07:00
Subbaraman Narayanamurthy
cc909e5a78 qpnp-revid: add pm660 1.0 and 1.1 definitions
Add revision definitions for pm660 v1.0 and v1.1.

Change-Id: I7aefdbe07d6c01562f9ffb17616419880cea1831
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-03-27 18:44:17 -07:00
Subbaraman Narayanamurthy
a3a05e28fa qpnp-revid: move pmi8998 and pm660 FAB_ID definitions to qpnp-revid.h
FAB_ID can be used across multiple drivers that gets revid
information from qpnp-revid driver. Move the FAB_ID definitions
in RR_ADC driver for pmi8998 and pm660 so that they can be
reused by other clients.

Change-Id: Ia61af56244161c948b0f458a77e699c1cac871b1
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-03-27 18:44:17 -07:00
Ankit Sharma
c820f7b26b msm: qpnp-haptic: Enable HW auto-resonance for PM660
Enable Hardware based auto resonance calibration for LRA
mode for PM660.

Change-Id: Ic7902ba4b8665eda2623286dd0b1c3fdeb3895e5
Signed-off-by: Ankit Sharma <ansharma@codeaurora.org>
2017-03-27 16:51:21 +05:30
Abdulla Anam
a864fa47c4 msm: vidc: Prioritize debugfs timeout control over dtsi entry
Debugfs timeout control is read only during probe, which makes
it useless as control to allow/disallow crash during sys error
Prioritize this control over the dtsi entry.

Change-Id: I3925653948b81e44d6540c28aa98881418e29f6e
Signed-off-by: Abdulla Anam <abdullahanam@codeaurora.org>
2017-03-27 02:00:12 -07:00
Gaurav Kohli
c59edf21d4 soc: qcom: pil: Explicitly clear the subsystem loading address
Explicitly clear the subsystem loading address in case of any
memory failure. It will help to avoid any platform dependency.

Change-Id: I3be8f6318d68f02c02e637fc34f4a868e9fafa45
Signed-off-by: Gaurav Kohli <gkohli@codeaurora.org>
2017-03-27 01:00:44 -07:00
Xu Yang
91939509bc msm: mdss: Add support to read BL level for userspace
Add parameter to indicate backlight level set from
userspace. And get the value by sysfs read function.

Change-Id: Iaecb0076e1f664fe87f3351edeecce40935cbae4
Signed-off-by: Xu Yang <yangxu@codeaurora.org>
2017-03-27 15:27:11 +08:00
Linux Build Service Account
f4a611a3af Merge "ARM: dts: msm: Update LPM parameter values for sdm630" 2017-03-27 00:00:24 -07:00
Linux Build Service Account
dfbbbe04e1 Merge "usb: gadget: f_ncm: allocate/free net device upon driver bind/unbind" 2017-03-27 00:00:23 -07:00
Linux Build Service Account
184c749ea2 Merge "ath10k: msm: enable ATH10k DEBUG config for APQ8098" 2017-03-27 00:00:23 -07:00
Linux Build Service Account
3cf406dcbb Merge "ath10k: Fix ATH10K_DBG_SNOC debug mask" 2017-03-27 00:00:22 -07:00
Linux Build Service Account
f475cb50b0 Merge "msm: isp: initialize pd stats buffer index" 2017-03-27 00:00:21 -07:00
Linux Build Service Account
664fd922ef Merge "msm: isp: Fix unbalanced hvx clk disable" 2017-03-27 00:00:20 -07:00
Linux Build Service Account
3f772904a9 Merge "msm: camera: isp: Set max address for stats write master" 2017-03-27 00:00:19 -07:00
Maya Erez
b30b481b14 msm_11ad: 11AD SMMU changes to allow enabling of SMMU stage1
Add the following changes to support enabling of SMMU stage1:
- Enable DMA coherency and PAGE_TABLE_FORCE_COHERENT attr
to allow cache coherency when SMMU stage1 is enabled
- Add the option to define SMMU base address and size in DT
- Add DT node flag to determine if stage1 is enabled

Change-Id: I38b0ee3d5c4bf533f91077ee69bd464dfdd358c8
Signed-off-by: Maya Erez <merez@codeaurora.org>
2017-03-27 09:31:39 +03:00
Avaneesh Kumar Dwivedi
24998aa8a6 soc: qcom: Separate out qmi handle destruction and PD notification
This patch move qmi handle destruction in a new function which is
executed in a worker thread and PD notification is issued in
blocking call. This  avoid issue of late PD notification due to
delay in qmi handle destruction.

Change-Id: I0c7efa336f7849ffde95143e3a0134ebb9e33022
Signed-off-by: Avaneesh Kumar Dwivedi <akdwived@codeaurora.org>
2017-03-26 23:24:05 -07:00
Ashish Garg
adf3b9b07e msm: mdss: configure gpio to enable backlight
Fix an issue in the configuration of the gpio that controls
the backlight. Toggle the gpio properly during reset.

Change-Id: Ic177b7bbb69211449be386188e1c3154a95708ec
Signed-off-by: Ashish Garg <ashigarg@codeaurora.org>
2017-03-27 10:17:03 +05:30
Amir Samuelov
618dde7de1 soc: qcom: spcom: lock ion buf, decrement ref count if no free entry
spcom_handle_lock_ion_buf_command() should decrement ref count,
that is incremented by ion_import_dma_buf().

Change-Id: Ic7f814bd2791b4dbcf6356f64ad32ee85c6cb103
Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
2017-03-26 01:56:04 -07:00
Linux Build Service Account
ba53c4518c Merge "Merge tag v4.4.55 into branch 'msm-4.4'" 2017-03-25 13:54:57 -07:00
Linux Build Service Account
63e553c0c5 Merge "qcom: smb138x-charger: add vbus regulator" 2017-03-25 13:54:56 -07:00
Linux Build Service Account
53741d950a Merge "qcom: smb138x-charger: Add support for setting parallel mode" 2017-03-25 13:54:55 -07:00
Manoj Prabhu B
db3fd8b4be diag: Add support for header untagging
This patch provides the support for segregate different PD data onto
separate buffers and then onto its own data stream based on received
diag private id header from the peripheral data packets.
This patch adds a new feature mask supporting the feature and
a new IOCTL querying the support of the feature.

CRs-Fixed: 1112307
Change-Id: Id76e718f83e09defc221f9ee169d4676d8e57d8a
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
2017-03-25 22:02:40 +05:30
Linux Build Service Account
a95f0c7623 Merge "ARM: dts: msm: add gpio irq for laser sensor on msm8998" 2017-03-25 06:51:46 -07:00
Neeraj Upadhyay
45960e0dd3 defconfig: msm: enable EDAC_CORTEX_ARM64_DBE_IRQ_ONLY for SDM660
Disable handling of single bit errors for SDM660, as they are
correctable.

Change-Id: I14618e5f2685c08c57a6375e7a80d1090bbf0eaa
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
2017-03-25 19:10:09 +05:30
Mark Salyzyn
63ba8a3d1d BACKPORT: f2fs: add a max block check for get_data_block_bmap
(cherry pick from commit 179448bfe4cd201e98e728391c6b01b25c849fe8)

This patch adds a max block check for get_data_block_bmap.

Trinity test program will send a block number as parameter into
ioctl_fibmap, which will be used in get_node_path(), when the block
number large than f2fs max blocks, it will trigger kernel bug.

Signed-off-by: Yunlei He <heyunlei@huawei.com>
Signed-off-by: Xue Liu <liuxueliu.liu@huawei.com>
[Jaegeuk Kim: fix missing condition, pointed by Chao Yu]
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Bug: 28271368
Git-repo: https://android.googlesource.com/kernel/tegra.git
Git-commit: 3c714201e02ec08652be4b9544a5267e79bde3a9
Change-Id: Ia5acae04522993d5b60a0bcb5ccc184c66532be8
[d-cagle@codeaurora.org Resolve trivial merge conflicts]
Signed-off-by: Dennis Cagle <d-cagle@codeaurora.org>
2017-03-24 17:25:23 -07:00
Abhijit Kulkarni
c02e7ebded msm: mdss: fix validation checks for qseed3 params
Overfetch params passed by the libscaler are signed 8 bit values.
While calulcating the total fetch pixels decimation calculation should be
applied after adding the fetch values to the src rect. This change corrects
this calculation and typecasts fetch values to signed 8 bit integer.
There is no need to consider repeat values since repeat values are
set to 0 by libscaler.

CRs-Fixed: 2015444
Change-Id: Ia7b9c54385956444e1a88fd0746d8b90f15e5caf
Signed-off-by: Abhijit Kulkarni <kabhijit@codeaurora.org>
2017-03-24 15:27:01 -07:00
Harry Yang
1a62ba595f qcom: smb138x-charger: add vbus regulator
Add vbus regulator in USBIN-USBIN parallel mode.

Change-Id: I57d5cc54aa789a942d5b1a5bc33677ba263d3284
Signed-off-by: Harry Yang <harryy@codeaurora.org>
2017-03-24 13:29:40 -07:00
Harry Yang
71aeac7a9c qcom: smb138x-charger: Add support for setting parallel mode
More than one parallel configurations between PMI8998 and SMB138x are
supported. Update the parallel mode from DT.

Change-Id: I07c30e8d4d860acaf24dd5d0608dca6ba3e65559
Signed-off-by: Harry Yang <harryy@codeaurora.org>
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
2017-03-24 13:29:40 -07:00
Satya Durga Srinivasu Prabhala
090a6c0e90 esoc: add support for additonal physical link info
Some of the device configurations support multiple external SOCs.
To differentiate physical links, add support for additonal info
about the physical link.

CRs-Fixed: 2024578
Change-Id: If71bf23d798f8bf0b6594a686415fe9b806e4226
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
2017-03-24 13:22:26 -07:00
Linux Build Service Account
c8026470c5 Merge "ath10k: Add rx rate histogram for data packet" 2017-03-24 12:13:08 -07:00