Commit graph

589788 commits

Author SHA1 Message Date
Linux Build Service Account
bb0e94e12d Merge "ARM: dts: msm: Update ref-clk node for sdm660" 2017-05-25 15:51:37 -07:00
Linux Build Service Account
e40889b85d Merge "usb: phy-msm-qusb-v2: Add support for reference counting of regulators" 2017-05-25 15:51:35 -07:00
Linux Build Service Account
23dec079ae Merge "ASoC: msm-cpe: Fix range checking in function fw_name_store" 2017-05-25 15:51:34 -07:00
Linux Build Service Account
61bb06dc05 Merge "input: synaptics_dsx: fix mutex init" 2017-05-25 15:51:33 -07:00
Linux Build Service Account
03144dd756 Merge "soc: qcom: msm_perf: Initialize Array elements" 2017-05-25 15:51:32 -07:00
Linux Build Service Account
4b9efedb4a Merge "ARM: dts: msm: Add flash handle to camera1 device on SDM660" 2017-05-25 15:51:32 -07:00
Linux Build Service Account
c63ad80553 Merge "drm/msm: deal with arbitrary # of cmd buffers" 2017-05-25 15:51:31 -07:00
Linux Build Service Account
8d009ce8ad Merge "msm: camera: isp : Fix race condition in close sequence" 2017-05-25 15:51:30 -07:00
Linux Build Service Account
09db61a0c0 Merge "ARM: dts: msm: Add entry for video throttle clock on sdm660 and sdm630" 2017-05-25 15:51:29 -07:00
Linux Build Service Account
89e9361ac2 Merge "firmware_class: Avoid pending list corruption" 2017-05-25 15:51:28 -07:00
Linux Build Service Account
12d9944bfa Merge "ASoC: msm: qdsp6v2: Fix voice call and record SSR test" 2017-05-25 15:51:27 -07:00
Linux Build Service Account
8a0aed96a2 Merge "usb: policy_engine: Close pd phy after exceeding SINK hard reset count" 2017-05-25 15:51:26 -07:00
Linux Build Service Account
60be71604a Merge "qpnp-smb2: fix FV and FCC reporting" 2017-05-20 01:37:19 -07:00
Linux Build Service Account
474a2a48ad Merge "msm: vidc: Cancel userptr validation during secure decode" 2017-05-20 01:37:18 -07:00
Linux Build Service Account
9ec1caea12 Merge "ASoC: msm: qdspv2: Rename HDMI drift mixer controls" 2017-05-20 01:37:17 -07:00
Linux Build Service Account
2bb69ccc76 Merge "ion: fix logical-not comparison warning" 2017-05-20 01:37:16 -07:00
Linux Build Service Account
bb49ae3282 Merge "coresight-tmc: Adds lock to avoid race condition" 2017-05-20 01:37:15 -07:00
Linux Build Service Account
df39bd34da Merge "msm: wlan: Update regulatory database" 2017-05-20 01:37:14 -07:00
Linux Build Service Account
d4f03a30ac Merge "msm_11ad: clear affinity hint upon low bus request" 2017-05-20 01:37:13 -07:00
Linux Build Service Account
49ccf3da5b Merge "ARM: dts: msm: Add support for multiple neutrino on msm8996" 2017-05-20 01:37:12 -07:00
Linux Build Service Account
bd4d7e0de5 Merge "drm/msm: Don't allow zero sized buffer objects" 2017-05-20 01:37:11 -07:00
Linux Build Service Account
e650018e4a Merge "msm: camera: sensor: Validate sensor related name length" 2017-05-20 01:37:10 -07:00
Linux Build Service Account
63a4b33cb4 Merge "msm: camera: sensor: Validate sensor name during probe" 2017-05-20 01:37:09 -07:00
Abhijeet Dharmapurikar
db1755be6c qpnp-smb2: fix FV and FCC reporting
Currently the read of battery's voltage_max property (FV) and battery's
current_max property (FCC) returns the value of DEFAULT_VOTER voter.

But such a voter doesn't exist on battery's voltage_max property. Fix it
by returning the value voted by BATT_PROFILE_VOTER.

Change-Id: I2dac98f2ce9a423d5045788dbe120591f10c5a9e
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
2017-05-19 14:11:30 -07:00
Abhijeet Dharmapurikar
b186b398d9 smb-lib: do not disable parallel based only on main's settled current
Currently main charger ends up voting to disable parallel(USBIN_I_VOTER)
if the settled current is less than 1.4Amps. It could be that the
parallel path is drawing some current and the draw is higher than
1.4Amps.

Move this disabling to battery, where the parallel charger's input current
is taken in to consideration.

Also while voting to disable, make sure that the main's input is limited.
If there is more room for ICL to increase that means more power could be
drawn from the charger and so we must keep the parallel charging enabled.
If the ICL ceiling itself if 1.4Amps then disable parallel charging,
because even if ICL has room to increase it wont cross 1.4Amps.

The main's input limited state is set while AICL steps up - this
ensures that we keep parallel disabled while AICL is running and settled
is less than 1.4Amps.

When the charger is removed, the main's input limited status is unset,
however we want to keep the parallel charger disabled. In such situations
the main's settled current is 0mA - use this to vote for disabling
parallel charging.

For any ICL change vote request:
Disable parallel using USBIN_I_VOTER if requested current is less than
1.4Amps and to un-vote (i.e. when ICL vote is higher than 1.4Amps) rely
on event from AICL done or status_change delayed work.

Note that USBIN_I_VOTER is effective only for non-QC chargers. For QC
chargers USBIN_V_VOTER continues to keep charging enabled since parallel
need not be disabled is a lower current is requested with a QC charger.

Change-Id: I61d7cd161a87de2904470b2d870058a0fe199116
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
2017-05-19 14:11:08 -07:00
Prabhakar Reddy Krishnappa
c3f5cca88f msm: vidc: Cancel userptr validation during secure decode
Secure decode doesn't need userptr and uses ion fd instead. We were
conducting userptr validation regardless of the decode mode (secure/
unsecure). This forced user to populate userptr with a dummy value
during QBUF in secure mode decode on both output and capture ports
to avoid a userptr validation fail.

CRs-Fixed: 2049213
Change-Id: I0060efb52792201a2634072f648a537ebb02d17c
Signed-off-by: Prabhakar Reddy Krishnappa <prkrishn@codeaurora.org>
2017-05-18 17:43:17 -07:00
Mukesh Ojha
81f3b9aab8 coresight-tmc: Adds lock to avoid race condition
There can be a case of race in the call to tmc_etr_bam_disable(). The call
from usb_notifier() to tmc_etr_bam_disable() is within a lock
'drvdata->mem_lock' but the call from tmc_disable is not under any lock
which can lead to race.

This patch adds the missing lock.

CRs-Fixed: 2047196
Change-Id: I3986b498ae8e2b2ddfe8f5b3315fdefab197d11c
Signed-off-by: Mukesh Ojha <mojha@codeaurora.org>
2017-05-18 17:52:26 +05:30
Sudarshan Rajagopalan
11926cbd03 ion: fix logical-not comparison warning
Fixes compiler warning when a logical-not on a variable
is applied while comparing it with value zero.

Change-Id: I92aa16bd0d57a0d59ecd26eef1ac92220332998d
Signed-off-by: Sudarshan Rajagopalan <sudaraja@codeaurora.org>
2017-05-17 05:48:18 -07:00
Dedy Lansky
9e94fb237b msm_11ad: clear affinity hint upon low bus request
When driver calls ops_bus_request with high bandwidth requirement,
affinity of wil6210 interrupt is set to first big core. However this
setting is not cleared when driver lowers bandwidth requirement.
This causes WARN_ON_ONCE(desc->affinity_hint) upon wil6210 rmmod.

Fix this by clearing affinity hint upon low bandwidth request.

Change-Id: I87b6b7ec9b369b84a9d3724d92a821a1302d1f83
Signed-off-by: Dedy Lansky <dlansky@codeaurora.org>
2017-05-17 03:09:10 -07:00
Manish Dewangan
08d60a044e ASoC: msm: qdspv2: Rename HDMI drift mixer controls
Update HDMI drift mixer controls name to be aligned with
drift mixer controls for other devices(speaker, BT).

CRs-Fixed: 2036899
Change-Id: If7aa29ea9511b65de71ff12143a1c34d977de2b8
Signed-off-by: Manish Dewangan <manish@codeaurora.org>
2017-05-17 02:28:15 -07:00
Sayali Lokhande
37228adc27 ARM: dts: msm: Update ref-clk node for sdm660
As a part of 'commit 64db44d65e ("ARM: dts: msm:
move ref-clk from phy to ufs node in sdm660")',
ref-clk node is moved from phy to ufs and ref-clk
related property should be prefixed with "qcom,".
This change updates the same for sdm660 mtp so as
to turn-off the ref-clk supply when link is off.

Change-Id: Iee0fcaaaa34108c35d836d6136f8c1a0964f0fa4
Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>
2017-05-17 12:12:31 +05:30
Mohan Pallaka
9f117985b6 input: synaptics_dsx: fix mutex init
Initialize mutex before using in irq handler.

CRs-fixed: 2047720
Change-Id: I5ebfbc22f2a64dde239fcbb13eb26be50543b484
Signed-off-by: Mohan Pallaka <mpallaka@codeaurora.org>
2017-05-16 19:57:28 -07:00
Linux Build Service Account
5404e35069 Merge "msm: ADSPRPC: Copy process name buffer to kernel space" 2017-05-16 16:08:16 -07:00
Linux Build Service Account
d573c819ea Merge "usb: gadget: f_cdev: Fix NULL pointer dereference in cser_free_inst" 2017-05-16 16:08:15 -07:00
Linux Build Service Account
40b99c3fae Merge "msm: mink: Avoid handling output params if TZ op returns an err" 2017-05-16 16:08:14 -07:00
Linux Build Service Account
b80accca68 Merge "defconfig: msm: Remove CONFIG_TIMER_STATS" 2017-05-16 16:08:13 -07:00
Linux Build Service Account
c9c69ae5d8 Merge "usb: phy: qusb: Support specifying vdda33 levels from device tree" 2017-05-16 16:08:12 -07:00
Linux Build Service Account
d4d28cb0ef Merge "ARM: dts: msm: Enable support for guest virtual platform" 2017-05-16 16:08:11 -07:00
Linux Build Service Account
0d8007824b Merge "ARM: dts: msm: always enable mdss_mdp node for msm8998 based MOB3 platform" 2017-05-16 16:08:08 -07:00
Linux Build Service Account
60b854cbaa Merge "msm: msm_bus: Add mutex to protect node_list" 2017-05-16 16:08:07 -07:00
Linux Build Service Account
05a7ad9638 Merge "msm_11ad: add support to PCIe D3hot in system suspend" 2017-05-16 16:08:05 -07:00
Hemant Kumar
29e527349b usb: phy-msm-qusb-v2: Add support for reference counting of regulators
Upon cable disconnect PMI calls qusb_phy_update_dpdm() to turn off phy
regulators before notifying vbus off to usb. As a result phy power down
sequence is executed with phy regulators turned off. This may result into
improper phy line state.  Fix this issue by adding a reference counter to
keep track of all regulator enable and disable requests and only disable
regulator when ref count becomes zero. Also add a mutex in
qusb_phy_enable_power() API to prevent any race condition in enabling and
disabling phy regulators between the callers i.e. PMI and phy driver.

Change-Id: I620f2b8cbf4f9271db81d5a517f1ee2a13c57f27
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2017-05-16 15:40:09 -07:00
Hemant Kumar
1fb7012ac6 USB: phy: qusb: Turn on vdd along with 1p8/3p3 LDOs when PMI requests
QUSB PHY requires VDD, 1p8 and 3p1 regulators to remove any unwanted
pull downs on DP/DM lines. These pull downs may result in incorrect charger
detection by PMI. Avoid incorrect charger detection by turning on VDD,
1p8 and 3p1 whenever PMI requests DP/DM to be floating.

Change-Id: I27e68d5ebf2f49fb6571ad777318483f9c123407
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2017-05-16 15:40:08 -07:00
Jack Pham
65620a280f ARM: dts: msm: Specify vdda33 voltages for QUSB PHY on msm8998
Specify LDO24 voltage as 2.4V for charger detection and 3.088V
for USB data.

Change-Id: I9f365caf89226f1ce0e28b07306906c5d83541fe
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2017-05-16 15:39:31 -07:00
Olav Haugan
4d5aee4dae defconfig: msm: Remove CONFIG_TIMER_STATS
CONFIG_TIMER_STATS is no longer needed and the kconfig option
will be removed in subsequent commits.

Change-Id: I380f9f925332c594c9d500312a06713170e48505
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
2017-05-16 14:16:43 -07:00
Jack Pham
1974aed829 usb: phy: qusb: Support specifying vdda33 levels from device tree
The specific voltage levels for the vdda33 regulator may vary
depending on the target. Add an optional device tree property to
allow specifying a 3-tuple of voltages for minimum, operating
and maximum voltage levels. The minimum level is used when simply
powering on, whereas the operating level is used when initializing
the PHY.

Change-Id: Ia5d301efdb6964434a01264e7aa19421a41e98ca
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2017-05-16 14:04:05 -07:00
Vijay Ganti
e3b9125270 soc: qcom: msm_perf: Initialize Array elements
This change initializes the tmp array elements to
ensure no use of uninitialized variable. This was caught
through Static Analysis

Change-Id: Ibc01493e9f0ce1a492579b568fa7362cb3c3b1d7
Signed-off-by: Vijay Ganti <viganti@codeaurora.org>
2017-05-16 11:48:34 -07:00
Xiaoyu Ye
0c53b526c0 ASoC: msm-cpe: Fix range checking in function fw_name_store
The range checking between "WCD_CPE_IMAGE_FNAME_MAX" and
"copy_count" is off-by-one due to the size of array
"core->dyn_fname" is "WCD_CPE_IMAGE_FNAME_MAX". Subtract
one from the range checking to fix this issue.

Change-Id: I87fd55206f79ad7b13c3878f6642bf5579303b17
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2017-05-16 11:30:43 -07:00
Atul Raut
232eb2beda ARM: dts: msm: Enable support for guest virtual platform
Add device tree to support guest virtual machine on
msm kernel.

CRs-Fixed: 2000645
Change-Id: I4ca06c28c349dd533057b24fe6794a7c11a84cc6
Signed-off-by: Atul Raut <araut@codeaurora.org>
2017-05-16 11:26:20 -07:00
Hemant Kumar
d4d30d3827 usb: policy_engine: Close pd phy after exceeding SINK hard reset count
Exceeding sink hard reset count means no PD session active. Hence vote
to turn off PD phy regulator by closing the PD phy.

Change-Id: I2aaa3c9c7b651aec77e67139e3cdcbbf9437f091
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2017-05-16 11:23:21 -07:00