OSDN Git Service

sagit-ice-cold/kernel_xiaomi_msm8998.git
7 years agoMerge "ath10k: Get WCN3990 mem base from dt node"
Linux Build Service Account [Tue, 21 Mar 2017 12:00:34 +0000 (05:00 -0700)]
Merge "ath10k: Get WCN3990 mem base from dt node"

7 years agoMerge "core_ctl: remove "cpus" sysfs file that prints CPU online status"
Linux Build Service Account [Tue, 21 Mar 2017 12:00:31 +0000 (05:00 -0700)]
Merge "core_ctl: remove "cpus" sysfs file that prints CPU online status"

7 years agoMerge "ion: blacklist %p kptr_restrict"
Linux Build Service Account [Tue, 21 Mar 2017 12:00:31 +0000 (05:00 -0700)]
Merge "ion: blacklist %p kptr_restrict"

7 years agoMerge "icnss: Map memory regions passed by firmware"
Linux Build Service Account [Tue, 21 Mar 2017 12:00:30 +0000 (05:00 -0700)]
Merge "icnss: Map memory regions passed by firmware"

7 years agoMerge "android: fiq_debugger: restrict access to critical commands."
Linux Build Service Account [Tue, 21 Mar 2017 12:00:29 +0000 (05:00 -0700)]
Merge "android: fiq_debugger: restrict access to critical commands."

7 years agoMerge "msm vidc: Initialise array elements"
Linux Build Service Account [Tue, 21 Mar 2017 12:00:28 +0000 (05:00 -0700)]
Merge "msm vidc: Initialise array elements"

7 years agoMerge "msm vidc: Update flags for secure scaling control"
Linux Build Service Account [Tue, 21 Mar 2017 12:00:27 +0000 (05:00 -0700)]
Merge "msm vidc: Update flags for secure scaling control"

7 years agoMerge "ARM: dts: msm: Update JPEG bandwidth voting for sdm630 and sdm660"
Linux Build Service Account [Tue, 21 Mar 2017 12:00:26 +0000 (05:00 -0700)]
Merge "ARM: dts: msm: Update JPEG bandwidth voting for sdm630 and sdm660"

7 years agoMerge "usb: dwc3: Increase polling interval for set transfer resource ep cmd"
Linux Build Service Account [Tue, 21 Mar 2017 12:00:25 +0000 (05:00 -0700)]
Merge "usb: dwc3: Increase polling interval for set transfer resource ep cmd"

7 years agoMerge "msm: camera: isp: use NOMINAL clock for CX iPeak"
Linux Build Service Account [Tue, 21 Mar 2017 12:00:25 +0000 (05:00 -0700)]
Merge "msm: camera: isp: use NOMINAL clock for CX iPeak"

7 years agoMerge "diag: Update msg, log and event information"
Linux Build Service Account [Tue, 21 Mar 2017 12:00:24 +0000 (05:00 -0700)]
Merge "diag: Update msg, log and event information"

7 years agoMerge "iommu/io-pgtable-arm: fix multibit shareability comparison"
Linux Build Service Account [Tue, 21 Mar 2017 12:00:22 +0000 (05:00 -0700)]
Merge "iommu/io-pgtable-arm: fix multibit shareability comparison"

7 years agoMerge "soc: qcom: secure_buffer: add export symbol hyp_assign_phys"
Linux Build Service Account [Tue, 21 Mar 2017 12:00:20 +0000 (05:00 -0700)]
Merge "soc: qcom: secure_buffer: add export symbol hyp_assign_phys"

7 years agoMerge "ath10k: remove the unused code from ath10k snoc driver"
Linux Build Service Account [Tue, 21 Mar 2017 12:00:19 +0000 (05:00 -0700)]
Merge "ath10k: remove the unused code from ath10k snoc driver"

7 years agoMerge "msm: gsi: Remove duplicate registers defines"
Linux Build Service Account [Tue, 21 Mar 2017 12:00:18 +0000 (05:00 -0700)]
Merge "msm: gsi: Remove duplicate registers defines"

7 years agoMerge "ARM: dts: msm: increase the common cma region on sdm660"
Linux Build Service Account [Tue, 21 Mar 2017 12:00:17 +0000 (05:00 -0700)]
Merge "ARM: dts: msm: increase the common cma region on sdm660"

7 years agoMerge "msm: camera: Rate limit debug logs"
Linux Build Service Account [Tue, 21 Mar 2017 12:00:15 +0000 (05:00 -0700)]
Merge "msm: camera: Rate limit debug logs"

7 years agoion: blacklist %p kptr_restrict
Nick Desaulniers [Fri, 7 Oct 2016 18:51:15 +0000 (11:51 -0700)]
ion: blacklist %p kptr_restrict

Bug: 31494725
Change-Id: I10a0c2aae883dfaa6c235c38689a704064557008
Git-repo: https://android.googlesource.com/kernel/msm.git
Git-commit: b57e736e9991b3d0f85c0870b1eff6310a4baa64
[d-cagle@codeaurora.org: Automatic resolve of merge conflicts]
Signed-off-by: Dennis Cagle <d-cagle@codeaurora.org>
7 years agoandroid: fiq_debugger: restrict access to critical commands.
Mark Salyzyn [Tue, 20 Dec 2016 23:59:19 +0000 (15:59 -0800)]
android: fiq_debugger: restrict access to critical commands.

Sysrq must be enabled via /proc/sys/kernel/sysrq as a security
measure to enable various critical fiq debugger commands that
either leak information or can be used as a system attack.

Default disabled, this will leave the reboot, reset, irqs, sleep,
nosleep, console and ps commands.  Reboot and reset commands
will be restricted from taking any parameters.  We will also
switch to showing the limited command set in this mode.

Signed-off-by: Mark Salyzyn <salyzyn@google.com>
Bug: 32402555
Change-Id: I3f74b1ff5e4971d619bcb37a911fed68fbb538d5
[d-cagle@codeaurora.org: Resolve merge conflict]
Git-repo: https://android.googlesource.com/kernel/msm
Git-commit: 1031836c0895f1f5a05c25efec83bfa11aa08ca9
Signed-off-by: Dennis Cagle <d-cagle@codeaurora.org>
7 years agomsm vidc: Initialise array elements
Deepak Kushwah [Tue, 7 Mar 2017 05:18:45 +0000 (10:48 +0530)]
msm vidc: Initialise array elements

Array elements needs to be initialised as the
elements are not initialised by default and may
contain junk data which will lead to unexpected
behaviour.

Change-Id: Ifecb8065b09afcbf11a9dcfbf230403afcdb225d
CRs-Fixed: 2015789
Signed-off-by: Deepak Kushwah <dkushwah@codeaurora.org>
7 years agomsm vidc: Update flags for secure scaling control
Deepak Kushwah [Fri, 3 Mar 2017 12:55:41 +0000 (18:25 +0530)]
msm vidc: Update flags for secure scaling control

Secure scaling control is flagged as volatile which
should not be beacause as per the documentation a volatile
control changes continuously but this control value
is updated from capabilities we got from the firmware
which is not going to change later. Also as this control
is volatile, when we try to get control on this, driver
will try to get control for all the controls which are
flagged as volatile. This might lead to generate session
error as there are some controls which are specific to
codec type but as they are flagged volatile driver will
try to get control for them too and this will trigger
session error from firmware.

Change-Id: I42602eb8e20a6ae5ce90f9dbe938b0503c6a731e
CRs-Fixed: 2015147
Signed-off-by: Deepak Kushwah <dkushwah@codeaurora.org>
7 years agoath10k: Get WCN3990 mem base from dt node
Govind Singh [Wed, 22 Feb 2017 09:01:48 +0000 (14:31 +0530)]
ath10k: Get WCN3990 mem base from dt node

Add support to get WCN3990 mem base from
device tree node.

Change-Id: I1561dc18577a075bda123429b3e9b89e92a9bfb5
Signed-off-by: Govind Singh <govinds@codeaurora.org>
7 years agoARM: dts: msm: update wcn3990 wlan device node for APQ8998
Govind Singh [Wed, 15 Mar 2017 14:06:38 +0000 (19:36 +0530)]
ARM: dts: msm: update wcn3990 wlan device node for APQ8998

Add memory regions defined as starting address and size in
wlan module device node for APQ8998.

Change-Id: I76b790f2186d133984997acff5b3faed621f2116
Signed-off-by: Govind Singh <govinds@codeaurora.org>
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
7 years agoMerge "ASoC: sdm660_cdc: Add null check in msm_dig_suspend"
Linux Build Service Account [Mon, 20 Mar 2017 03:46:21 +0000 (20:46 -0700)]
Merge "ASoC: sdm660_cdc: Add null check in msm_dig_suspend"

7 years agoMerge "msm: camera: isp: Initialize or validate variables before use"
Linux Build Service Account [Mon, 20 Mar 2017 03:46:20 +0000 (20:46 -0700)]
Merge "msm: camera: isp: Initialize or validate variables before use"

7 years agoMerge "clk: qcom: Register gcc debug mux with clock_debug functionality"
Linux Build Service Account [Mon, 20 Mar 2017 03:46:19 +0000 (20:46 -0700)]
Merge "clk: qcom: Register gcc debug mux with clock_debug functionality"

7 years agoMerge "clk: Move the measure functionality from common clock framework"
Linux Build Service Account [Mon, 20 Mar 2017 03:46:19 +0000 (20:46 -0700)]
Merge "clk: Move the measure functionality from common clock framework"

7 years agoMerge "clk: qcom: Move clock debug measure support from common code"
Linux Build Service Account [Mon, 20 Mar 2017 03:46:17 +0000 (20:46 -0700)]
Merge "clk: qcom: Move clock debug measure support from common code"

7 years agoMerge "deconfig: arm64: enable the laser sensor on msm8998"
Linux Build Service Account [Mon, 20 Mar 2017 03:46:16 +0000 (20:46 -0700)]
Merge "deconfig: arm64: enable the laser sensor on msm8998"

7 years agoMerge "input: vl53l0: Enable laser sensor Kconfig and Makefile entries"
Linux Build Service Account [Mon, 20 Mar 2017 03:46:16 +0000 (20:46 -0700)]
Merge "input: vl53l0: Enable laser sensor Kconfig and Makefile entries"

7 years agoMerge "ARM: dts: msm: Add support TOF sensor on msm8998"
Linux Build Service Account [Mon, 20 Mar 2017 03:46:15 +0000 (20:46 -0700)]
Merge "ARM: dts: msm: Add support TOF sensor on msm8998"

7 years agoMerge "ARM: dts: msm: enable ESD for command mode panel on sdm660"
Linux Build Service Account [Sun, 19 Mar 2017 19:40:31 +0000 (12:40 -0700)]
Merge "ARM: dts: msm: enable ESD for command mode panel on sdm660"

7 years agoMerge "mhi: core: process incoming data based on event ring type"
Linux Build Service Account [Sun, 19 Mar 2017 19:40:30 +0000 (12:40 -0700)]
Merge "mhi: core: process incoming data based on event ring type"

7 years agoMerge "msm: mdss: dp: Fix DP display issue during device boot time"
Linux Build Service Account [Sun, 19 Mar 2017 19:40:29 +0000 (12:40 -0700)]
Merge "msm: mdss: dp: Fix DP display issue during device boot time"

7 years agoMerge "msm: mdss: disable programmable fetch when not in use"
Linux Build Service Account [Sun, 19 Mar 2017 19:40:28 +0000 (12:40 -0700)]
Merge "msm: mdss: disable programmable fetch when not in use"

7 years agoMerge "firmware: tz_log: Enable asynchronous driver probing"
Linux Build Service Account [Sun, 19 Mar 2017 19:40:27 +0000 (12:40 -0700)]
Merge "firmware: tz_log: Enable asynchronous driver probing"

7 years agoARM: dts: msm: Update JPEG bandwidth voting for sdm630 and sdm660
Krupal Divvela [Fri, 10 Mar 2017 13:23:00 +0000 (18:53 +0530)]
ARM: dts: msm: Update JPEG bandwidth voting for sdm630 and sdm660

Update correct bandwidth voting for JPEG and JPEGDMA modules,
based on JPEG clock(JPEG clock * 2.5).

CRs-Fixed: 2017755
Change-Id: Iae98f74fa885dc15f4d41c3e69639dd9cad99563
Signed-off-by: Krupal Divvela <kdivvela@codeaurora.org>
7 years agomsm: camera: isp: use NOMINAL clock for CX iPeak
Srikanth Uyyala [Mon, 13 Mar 2017 06:47:39 +0000 (12:17 +0530)]
msm: camera: isp: use NOMINAL clock for CX iPeak

Recommendation is to use NOMINAL in stead of TURBO
clock as threshold for voting with CX iPeak.

Change-Id: Idcdc9ee86118a34a031b80dc86f7cc6dad71a05f
Signed-off-by: Srikanth Uyyala <suyyala@codeaurora.org>
7 years agoicnss: Map memory regions passed by firmware
Prashanth Bhatta [Wed, 15 Mar 2017 22:57:30 +0000 (15:57 -0700)]
icnss: Map memory regions passed by firmware

WLAN firmware responds with number of memory regions and starting
address of each as part of MSA info response. These memory
regions needs to be assigned with different hypervisor permission
based on secure_flag. Current code assumes that there will always
be 2 regions passed by WLAN FW but WLAN FW may pass only one
region to be mapped. Map the memory region based on number of
memory region passed by WLAN FW.

Change-Id: Ib62570a0851adb858b0f11959265ea9c0b42429e
CRs-fixed: 2021566
Signed-off-by: Prashanth Bhatta <bhattap@codeaurora.org>
7 years agousb: dwc3: Increase polling interval for set transfer resource ep cmd
Hemant Kumar [Fri, 17 Mar 2017 00:38:49 +0000 (17:38 -0700)]
usb: dwc3: Increase polling interval for set transfer resource ep cmd

Endpoint command to request resources on ep0 is take upto ~800us and
this delay is observed for every new/re enumeration. As the api polls
(reads the register and it happens over cnoc) for every 1us to check
for completion it could result in congestion on cnoc. Hence increase
polling interval from 1us to 20us for this endpoint command.

Change-Id: I6d738b46a47b00105289e8f07b8fe0883a3fda44
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
7 years agomhi: core: process incoming data based on event ring type
Sujeev Dias [Tue, 28 Feb 2017 22:03:04 +0000 (14:03 -0800)]
mhi: core: process incoming data based on event ring type

mhi clients can manage both hardware and software event rings.
Process incoming data based on event ring type instead of
channel type.

CRs-Fixed: 2018326
Change-Id: Ifa2de76034224c19a846f7be153400888f8c66de
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
7 years agomhi: core: only accumulate transfer complete events as processed events
Sujeev Dias [Sun, 12 Mar 2017 01:53:03 +0000 (17:53 -0800)]
mhi: core: only accumulate transfer complete events as processed events

When a client ask MHI host to processed X number of events, only count
transfer events as part of processed events. All other events are internal
events.

CRs-Fixed: 2018324
Change-Id: I4cfcae0ba187348442c3fc45b76d7c4b01f687bd
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
7 years agoiommu/io-pgtable-arm: fix multibit shareability comparison
Liam Mark [Fri, 17 Mar 2017 17:26:49 +0000 (10:26 -0700)]
iommu/io-pgtable-arm: fix multibit shareability comparison

Since the PTE shareability values can be multibit fix so that they
are properly checked.

Change-Id: I36791921b0189b50cbbcb79efdb2f1a36ad9d726
Signed-off-by: Liam Mark <lmark@codeaurora.org>
7 years agosoc: qcom: secure_buffer: add export symbol hyp_assign_phys
Sarada Prasanna Garnayak [Tue, 14 Mar 2017 13:44:05 +0000 (19:14 +0530)]
soc: qcom: secure_buffer: add export symbol hyp_assign_phys

Fix the symbol linking error for loadable kernel modules
which is using secure buffer hypervisor api for smmu configuration.

CRs-Fixed: 2019262
Change-Id: I3d83fd4b1854298c1283e03f220de8c673195492
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
7 years agoath10k: remove the unused code from ath10k snoc driver
Sarada Prasanna Garnayak [Tue, 14 Mar 2017 15:17:38 +0000 (20:47 +0530)]
ath10k: remove the unused code from ath10k snoc driver

Remove the unused copy engine temp variable from the wlan
enable method.

Change-Id: I8572464705298eeb32f7752a4803094a72344a36
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
7 years agomsm: gsi: Remove duplicate registers defines
Ghanim Fodi [Mon, 13 Mar 2017 18:26:50 +0000 (20:26 +0200)]
msm: gsi: Remove duplicate registers defines

gsi_reg.h file includes the definitions of GSI registers.
The GSI Instruction RAM registers are defined twice.
This change removes the duplication.

Change-Id: Iccd256711c28a5f4698555079a7f73ce0357a92d
Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
7 years agoARM: dts: msm: increase the common cma region on sdm660
Charan Teja Reddy [Fri, 17 Mar 2017 12:01:13 +0000 (17:31 +0530)]
ARM: dts: msm: increase the common cma region on sdm660

Increase the common CMA region size to 44MB to accommodate modem diag
buffer region.

Change-Id: Iad83f749d8ca5635ead9c637dbc2f927191414fe
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
7 years agocore_ctl: remove "cpus" sysfs file that prints CPU online status
Pavankumar Kondeti [Fri, 17 Mar 2017 10:22:30 +0000 (15:52 +0530)]
core_ctl: remove "cpus" sysfs file that prints CPU online status

core_ctl module no longer hotplug the CPUs. Hence remove the
/sys/devices/system/cpu/cpuX/core_ctl/cpus file interface which
pints the online/offline state of all CPUs in the cluster.

The global_state file interface can still be used to know all
the state information about all CPUs. Replace "Active" with
"Isolated" string in this file output. Otherwise we see that
an offline CPU as active.

Change-Id: Id6ffb1c3ddfe85cf34ab670ceea8b53e5b2f60e2
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
7 years agocore_ctl: use pr_fmt
Pavankumar Kondeti [Fri, 17 Mar 2017 09:36:47 +0000 (15:06 +0530)]
core_ctl: use pr_fmt

We use pr_* to print info/warn/error messages. Use pr_fmt so
that the messages are prefixed by "core_ctl:" string.

Change-Id: Icc84db30ebf0855599431366d090a2b1c94da6d0
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
7 years agocore_ctl: kill maintenance of online state
Pavankumar Kondeti [Fri, 17 Mar 2017 09:59:13 +0000 (15:29 +0530)]
core_ctl: kill maintenance of online state

The online state is cached in CPU hotplug callbacks. This is
used in determining the potential candidates for isolation or
unisolation. The current code has checks in hotplug notifier
callback to correct the online state if it is out of sync
with the actualy CPU state. All this maintenance can be
avoided by directly using cpu_online().

This patch fixes an incorrect warning message emitted from
CPU_UP_CANCELED event callback.

Change-Id: I9681ce6c5bc701507427d60db397ca4966fbdb58
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
7 years agomsm: camera: isp: Initialize or validate variables before use
Venu Yeshala [Fri, 10 Mar 2017 09:45:10 +0000 (15:15 +0530)]
msm: camera: isp: Initialize or validate variables before use

Check the validity of pointer before dereference and initialize
uninitialized variables.

Change-Id: Ifad4dd9668db91a18b493e0c7276bf6c193fb680
Signed-off-by: Venu Yeshala <vyeshala@codeaurora.org>
7 years agoclk: qcom: Register gcc debug mux with clock_debug functionality
Taniya Das [Tue, 28 Feb 2017 05:21:28 +0000 (10:51 +0530)]
clk: qcom: Register gcc debug mux with clock_debug functionality

clock_debug_mux is required for the 'measure' functionality of the clock,
register using the clk_register_debug for the same.

Change-Id: I95b64ddd3ef3d869cf3b8ad2b4210ea78ba8f5fa
Signed-off-by: Taniya Das <tdas@codeaurora.org>
7 years agoclk: Move the measure functionality from common clock framework
Taniya Das [Tue, 28 Feb 2017 05:18:38 +0000 (10:48 +0530)]
clk: Move the measure functionality from common clock framework

Common Clock Framework(CCF) already has a clock ops hook `debug_init` which
could be used for the debugfs clock measure functionality. Remove the APIs
from the CCF and update the 'debug_init' clock ops to the clock types which
require the measure functionality.

Change-Id: I0c01f72a9d1d1caa1b1ab73a800401c2cbc3216c
Signed-off-by: Taniya Das <tdas@codeaurora.org>
7 years agoclk: qcom: Move clock debug measure support from common code
Taniya Das [Tue, 28 Feb 2017 04:57:57 +0000 (10:27 +0530)]
clk: qcom: Move clock debug measure support from common code

The 'measure' functionality is a debug feature which allows the user of
clocks to allow measuring the frequency of a given clock using the ring
oscillator.
Move 'measure' code to a new clk-debug file to support the functionality.

Change-Id: I229721f17d232a4ff69b5cf416b43d22fee5b72e
Signed-off-by: Taniya Das <tdas@codeaurora.org>
7 years agoMerge "misc: qpnp-misc: change the initcall level for qpnp-misc driver"
Linux Build Service Account [Fri, 17 Mar 2017 03:03:04 +0000 (20:03 -0700)]
Merge "misc: qpnp-misc: change the initcall level for qpnp-misc driver"

7 years agoMerge "power: smb-lib: always assume legacy cable and limit ICL"
Linux Build Service Account [Fri, 17 Mar 2017 03:03:01 +0000 (20:03 -0700)]
Merge "power: smb-lib: always assume legacy cable and limit ICL"

7 years agoMerge "power: smb-lib: always assume legacy cable to prevent CC OV"
Linux Build Service Account [Fri, 17 Mar 2017 03:03:00 +0000 (20:03 -0700)]
Merge "power: smb-lib: always assume legacy cable to prevent CC OV"

7 years agoMerge "ASoC: wcd934x: Fix mbhc errors upon removing SND_SOC_WCD934X_MBHC"
Linux Build Service Account [Fri, 17 Mar 2017 03:02:58 +0000 (20:02 -0700)]
Merge "ASoC: wcd934x: Fix mbhc errors upon removing SND_SOC_WCD934X_MBHC"

7 years agoMerge "arch: arm64: Fix APPENDED_DTB for arm64"
Linux Build Service Account [Fri, 17 Mar 2017 03:02:57 +0000 (20:02 -0700)]
Merge "arch: arm64: Fix APPENDED_DTB for arm64"

7 years agoMerge "ARM: dts: msm: increase strength for mclk0 on msm8998 HDK"
Linux Build Service Account [Fri, 17 Mar 2017 03:02:57 +0000 (20:02 -0700)]
Merge "ARM: dts: msm: increase strength for mclk0 on msm8998 HDK"

7 years agoMerge "ARM: dts: msm: enable HDMI and DP functionality for HDK835"
Linux Build Service Account [Fri, 17 Mar 2017 03:02:56 +0000 (20:02 -0700)]
Merge "ARM: dts: msm: enable HDMI and DP functionality for HDK835"

7 years agoMerge "mhi: mhi_core: move mhi from module_Init to subsys_init"
Linux Build Service Account [Fri, 17 Mar 2017 03:02:54 +0000 (20:02 -0700)]
Merge "mhi: mhi_core: move mhi from module_Init to subsys_init"

7 years agoMerge "mhi: core: add support for priority based event processing"
Linux Build Service Account [Fri, 17 Mar 2017 03:02:53 +0000 (20:02 -0700)]
Merge "mhi: core: add support for priority based event processing"

7 years agodiag: Update msg, log and event information
Chris Lew [Fri, 17 Mar 2017 00:20:45 +0000 (17:20 -0700)]
diag: Update msg, log and event information

Update the diag header with latest log, message
and event information to match the list maintained
by the peripherals.

CRs-Fixed: 2020864
Change-Id: Icbed01bb4f90fb7d72fe7517ee6964d799f1d48e
Signed-off-by: Chris Lew <clew@codeaurora.org>
7 years agomisc: qpnp-misc: change the initcall level for qpnp-misc driver
Subbaraman Narayanamurthy [Wed, 15 Mar 2017 01:18:38 +0000 (18:18 -0700)]
misc: qpnp-misc: change the initcall level for qpnp-misc driver

Change the initcall level of qpnp-misc driver from module_init()
to subsys_initcall() so that the misc devices can be available
earlier. This helps the clients to access the registers under
misc peripheral sooner without a probe deferral.

Change-Id: Ie5df2cb9cf6842c59ec6f00ac9123994111f207b
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
7 years agopower: smb-lib: always assume legacy cable and limit ICL
Nicholas Troast [Tue, 14 Mar 2017 16:06:56 +0000 (09:06 -0700)]
power: smb-lib: always assume legacy cable and limit ICL

While in DRP the legacy cable detection may fail. When a legacy cable is
detected the legacy input current limits are enforced by hardware.

Always assume a legacy cable since the legacy cable detection will
fail in some cases. Manually enforce the legacy input current limits to
ensure USB stability and compliance. As a side effect, non-legacy 22k
ohm and 10k ohm Rp adapters will be current limited to legacy standards.

To realize this:
- Set a limit of 100mA as soon as type-c is connected and remove that
  limit once PD is confirmed.
- If PD is not confirmed:
  - SDP:   Use 100mA vote until USB PHY updates it to 500/900mA
  - CDP:   Use 1.5A vote
  - DCP:   Use 1.5A vote
  - HVDCP: Use 3A vote

Change-Id: I049a7ee2099acd9e58df1b9417847daec4854af5
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
7 years agopower: smb-lib: always assume legacy cable to prevent CC OV
Nicholas Troast [Tue, 14 Mar 2017 15:20:31 +0000 (08:20 -0700)]
power: smb-lib: always assume legacy cable to prevent CC OV

While in DRP the legacy cable detection may fail. Legacy cable
detection is essential to preventing CC OV damage.

Always assume a legacy cable since the legacy cable detection will fail
in some cases. As a side effect, non-legacy HVDCP adapters will stay at
5V if they have a 10k ohm Rp.

To realize this:
- Remove disallowing PD based on the legacy bit being set. That bit set
  or unset is not reliable and it is safe to try PD.
- Remove the workaround which tries to fix legacy cable being set
  incorrectly at boot. That bit set or unset is not reliable.

Change-Id: I37879866592f63906a7c688f51c309b4e2fee48d
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
7 years agopower: smb-lib: use updated ICL override bit
Nicholas Troast [Wed, 15 Mar 2017 17:45:28 +0000 (10:45 -0700)]
power: smb-lib: use updated ICL override bit

Currently to override the ICL the self-clearing ICL override bit is
used. The problem with this bit is that it is self-clearing and a
separate register needs to be read to get the override status.
Furthermore, the hardware will automatically clear this bit on USB
removal.

A new ICL override bit was added in PMI hardware revision 2.0. This bit
is not self-clearing, and can be set prior to USB insertion. Use this
new bit.

Change-Id: I30a601b6aacba3c404ebdfb82e529504a694a048
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
7 years agopower: smb-lib: let userspace rerun AICL for PD and PPS
Nicholas Troast [Tue, 14 Mar 2017 16:50:28 +0000 (09:50 -0700)]
power: smb-lib: let userspace rerun AICL for PD and PPS

Currently AICL will be rerun whenever PD requests a voltage increase.
While this works in most cases it can become problematic if PD requests
the same voltage twice, and the ICL may fall to ICL_MIN.

Since the voltage requests originate in the userspace it would be less
error prone to allow the userspace to rerun AICL instead. Do it.

Change-Id: Id190564e28bcffd72a1de70fa1327fce3e40299e
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
7 years agopower: smb-lib: prevent unnecessary APSD re-runs
Nicholas Troast [Tue, 14 Mar 2017 16:20:55 +0000 (09:20 -0700)]
power: smb-lib: prevent unnecessary APSD re-runs

When APSD_START_ON_CC_BIT is set both VBUS and CC must be attached
before APSD runs. This eliminates all issues related to slow plugin.

Unfortunately this means that if CC is re-asserted anytime after APSD
finishes, then it will rerun again.

Fix this by disabling APSD_START_ON_CC_BIT right after CC is asserted,
and enable it after USB removal.

Change-Id: I27d3727647635b78392b925f0881dc3a4ef41623
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
7 years agopower: pmic-voter: add is_client_vote_enabled API
Nicholas Troast [Wed, 15 Mar 2017 17:05:51 +0000 (10:05 -0700)]
power: pmic-voter: add is_client_vote_enabled API

A client vote can be enabled or disabled. Add an API which allows
consumers to check the enable/disable status of a client vote.

Change-Id: Ic4e9224c19e63fb88216da0cb775994e3e87c1f7
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
7 years agodeconfig: arm64: enable the laser sensor on msm8998
Wei Ding [Wed, 15 Mar 2017 07:34:07 +0000 (15:34 +0800)]
deconfig: arm64: enable the laser sensor on msm8998

Enable the laser sensor on the msm8998.

CRs-fixed: 1051771
Change-Id: Ie929092504ceb40bff283817e98b6cb0c4c05714
Signed-off-by: Wei Ding <weiding@codeaurora.org>
7 years agoinput: vl53l0: Enable laser sensor Kconfig and Makefile entries
Bikas Gurung [Wed, 15 Feb 2017 06:20:38 +0000 (22:20 -0800)]
input: vl53l0: Enable laser sensor Kconfig and Makefile entries

Laser sensor is connected using CCI interface.
Add support to configure and enable laser
sensor driver.

CRs-fixed: 1051771
Change-Id: Ia9eab96862b1c2a657d40272867f015a0a91e0ed
Signed-off-by: Bikas Gurung <bgurung@codeaurora.org>
7 years agoARM: dts: msm: enable ESD for command mode panel on sdm660
Ashish Garg [Wed, 15 Mar 2017 09:40:19 +0000 (15:10 +0530)]
ARM: dts: msm: enable ESD for command mode panel on sdm660

ESD feature is enabled on the nt35597 truly panel on sdm660 to
check the panel status periodically.

Change-Id: Id354c900a784b1bf239595fd31a244c064066987
Signed-off-by: Ashish Garg <ashigarg@codeaurora.org>
7 years agoARM: dts: msm: update the panel escape clock for truly panel
Ashish Garg [Wed, 15 Mar 2017 09:12:55 +0000 (14:42 +0530)]
ARM: dts: msm: update the panel escape clock for truly panel

For some panels, escape clock needs to be updated for checking
the panel status periodically. Update the panel init sequence
to increase the escape clock.

Change-Id: I4a154d30e829c80587b3207ddc754aace927ab1c
Signed-off-by: Ashish Garg <ashigarg@codeaurora.org>
7 years agoARM: dts: msm: increase strength for mclk0 on msm8998 HDK
Wei Ding [Wed, 8 Mar 2017 05:30:12 +0000 (13:30 +0800)]
ARM: dts: msm: increase strength for mclk0 on msm8998 HDK

Increase the strength of camera mclk0 on msm8998 HDK.

Change-Id: I9804d26265f074e1696f9b324ac8973100bb0a0e
Signed-off-by: Wei Ding <weiding@codeaurora.org>
7 years agofirmware: tz_log: Enable asynchronous driver probing
Zhen Kong [Fri, 24 Feb 2017 10:02:29 +0000 (15:32 +0530)]
firmware: tz_log: Enable asynchronous driver probing

Do asynchronous driver probing of TZ log driver to improve
the device boot-up time.

Change-Id: Ic972be12f820787db1a5bc957b109461354875fb
Signed-off-by: AnilKumar Chimata <anilc@codeaurora.org>
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
7 years agoMerge "USB: f_qc_rndis: Change descriptors to support wireless RNDIS"
Linux Build Service Account [Wed, 15 Mar 2017 17:25:38 +0000 (10:25 -0700)]
Merge "USB: f_qc_rndis: Change descriptors to support wireless RNDIS"

7 years agoMerge "ARM: dts: msm: Move improve touch device node for SDM660 QRD"
Linux Build Service Account [Wed, 15 Mar 2017 17:25:37 +0000 (10:25 -0700)]
Merge "ARM: dts: msm: Move improve touch device node for SDM660 QRD"

7 years agoMerge "msm: mdss: Fix hist sum sanity check issue"
Linux Build Service Account [Wed, 15 Mar 2017 17:25:36 +0000 (10:25 -0700)]
Merge "msm: mdss: Fix hist sum sanity check issue"

7 years agoMerge "msm: mdss: Fix source split validation"
Linux Build Service Account [Wed, 15 Mar 2017 17:25:35 +0000 (10:25 -0700)]
Merge "msm: mdss: Fix source split validation"

7 years agoMerge "msm: mdss: Add check to fix null pointer dereference during pipe reset"
Linux Build Service Account [Wed, 15 Mar 2017 17:25:35 +0000 (10:25 -0700)]
Merge "msm: mdss: Add check to fix null pointer dereference during pipe reset"

7 years agoMerge "ARM: dts: qcom: Update DDIC timing for JDI panel"
Linux Build Service Account [Wed, 15 Mar 2017 17:25:34 +0000 (10:25 -0700)]
Merge "ARM: dts: qcom: Update DDIC timing for JDI panel"

7 years agoMerge "msm: mdss: fix secure buffer ref counting"
Linux Build Service Account [Wed, 15 Mar 2017 17:25:33 +0000 (10:25 -0700)]
Merge "msm: mdss: fix secure buffer ref counting"

7 years agoMerge "icnss: QMI timeout, do not ASSERT when PD down"
Linux Build Service Account [Wed, 15 Mar 2017 17:25:32 +0000 (10:25 -0700)]
Merge "icnss: QMI timeout, do not ASSERT when PD down"

7 years agoMerge "qpnp-fg-gen3: Fix adjusting recharge_soc after charge termination"
Linux Build Service Account [Wed, 15 Mar 2017 17:25:31 +0000 (10:25 -0700)]
Merge "qpnp-fg-gen3: Fix adjusting recharge_soc after charge termination"

7 years agoMerge "mhi: core: add support for MHI to operate on slave mode"
Linux Build Service Account [Wed, 15 Mar 2017 17:25:29 +0000 (10:25 -0700)]
Merge "mhi: core: add support for MHI to operate on slave mode"

7 years agoMerge "mhi: core: add support for MHI host managing firmware upload"
Linux Build Service Account [Wed, 15 Mar 2017 17:25:29 +0000 (10:25 -0700)]
Merge "mhi: core: add support for MHI host managing firmware upload"

7 years agoMerge "mhi: mhi_rmnet: pass maximum payload size to mhi during registration"
Linux Build Service Account [Wed, 15 Mar 2017 17:25:27 +0000 (10:25 -0700)]
Merge "mhi: mhi_rmnet: pass maximum payload size to mhi during registration"

7 years agoARM: dts: msm: Move improve touch device node for SDM660 QRD
zhaoyuan [Fri, 10 Mar 2017 03:03:07 +0000 (11:03 +0800)]
ARM: dts: msm: Move improve touch device node for SDM660 QRD

Improve touch device setting is needed by QTC800H only. So move
the node to qrd dts from common file.

Change-Id: I1c04e2b2540a4db9dff839ebe3dfe45efe552c9a
Signed-off-by: zhaoyuan <yzhao@codeaurora.org>
7 years agoARM: dts: msm: enable HDMI and DP functionality for HDK835
Ray Zhang [Thu, 9 Mar 2017 04:32:27 +0000 (12:32 +0800)]
ARM: dts: msm: enable HDMI and DP functionality for HDK835

HDK835 has HDMI and DP hardware blocks, so enable them in the
device tree.

CRs-Fixed: 2012660
Change-Id: I04a58527875bd6c62d7d31e20bc4ade3824d7e03
Signed-off-by: Ray Zhang <rayz@codeaurora.org>
7 years agoMerge "soc: qcom: qmi: add export symbol qmi_response_type_v01_ei"
Linux Build Service Account [Wed, 15 Mar 2017 06:45:56 +0000 (23:45 -0700)]
Merge "soc: qcom: qmi: add export symbol qmi_response_type_v01_ei"

7 years agoMerge "ARM: dts: msm: Update more thermal-mitigation levels for PM660"
Linux Build Service Account [Wed, 15 Mar 2017 06:45:55 +0000 (23:45 -0700)]
Merge "ARM: dts: msm: Update more thermal-mitigation levels for PM660"

7 years agoMerge "epoll: Drop struct epoll_event definition"
Linux Build Service Account [Wed, 15 Mar 2017 06:45:54 +0000 (23:45 -0700)]
Merge "epoll: Drop struct epoll_event definition"

7 years agoMerge "msm: ipa: Add spinlock to avoid deleting already deleted list"
Linux Build Service Account [Wed, 15 Mar 2017 06:45:53 +0000 (23:45 -0700)]
Merge "msm: ipa: Add spinlock to avoid deleting already deleted list"

7 years agoMerge "msm: ipa: Hold wakelock on Neutrino offload enable"
Linux Build Service Account [Wed, 15 Mar 2017 06:45:52 +0000 (23:45 -0700)]
Merge "msm: ipa: Hold wakelock on Neutrino offload enable"

7 years agoMerge "clk: qcom: Update ops for esc clock source"
Linux Build Service Account [Wed, 15 Mar 2017 06:45:50 +0000 (23:45 -0700)]
Merge "clk: qcom: Update ops for esc clock source"

7 years agoMerge "wil6210: protect against sporadic interrupt during suspend flow"
Linux Build Service Account [Wed, 15 Mar 2017 06:45:50 +0000 (23:45 -0700)]
Merge "wil6210: protect against sporadic interrupt during suspend flow"

7 years agoMerge "ARM: dts: msm: Modify pm660 gpio3 to 10uA pulldown"
Linux Build Service Account [Wed, 15 Mar 2017 06:45:49 +0000 (23:45 -0700)]
Merge "ARM: dts: msm: Modify pm660 gpio3 to 10uA pulldown"

7 years agoMerge "ARM: dts: msm: Add routing controls for sdm660 qrd"
Linux Build Service Account [Wed, 15 Mar 2017 06:45:47 +0000 (23:45 -0700)]
Merge "ARM: dts: msm: Add routing controls for sdm660 qrd"