Commit graph

585403 commits

Author SHA1 Message Date
Linux Build Service Account
6d1f13e7dd Merge "diag: Update msg, log and event information" 2017-03-21 05:00:23 -07:00
Linux Build Service Account
fda3bc12e7 Merge "iommu/io-pgtable-arm: fix multibit shareability comparison" 2017-03-21 05:00:21 -07:00
Linux Build Service Account
52429e5532 Merge "soc: qcom: secure_buffer: add export symbol hyp_assign_phys" 2017-03-21 05:00:20 -07:00
Linux Build Service Account
6ce9cfcc4e Merge "ath10k: remove the unused code from ath10k snoc driver" 2017-03-21 05:00:19 -07:00
Linux Build Service Account
3892c7568b Merge "msm: gsi: Remove duplicate registers defines" 2017-03-21 05:00:18 -07:00
Linux Build Service Account
a25f36717b Merge "ARM: dts: msm: increase the common cma region on sdm660" 2017-03-21 05:00:17 -07:00
Linux Build Service Account
b465fd1627 Merge "msm: camera: Rate limit debug logs" 2017-03-21 05:00:10 -07:00
Linux Build Service Account
687a4eb82b Merge "ASoC: sdm660_cdc: Add null check in msm_dig_suspend" 2017-03-19 20:46:21 -07:00
Linux Build Service Account
e3cfe4f4b3 Merge "msm: camera: isp: Initialize or validate variables before use" 2017-03-19 20:46:20 -07:00
Linux Build Service Account
de5618cae1 Merge "clk: qcom: Register gcc debug mux with clock_debug functionality" 2017-03-19 20:46:19 -07:00
Linux Build Service Account
49159cb40c Merge "clk: Move the measure functionality from common clock framework" 2017-03-19 20:46:18 -07:00
Linux Build Service Account
f9cf02e447 Merge "clk: qcom: Move clock debug measure support from common code" 2017-03-19 20:46:17 -07:00
Linux Build Service Account
4ffdf3c600 Merge "deconfig: arm64: enable the laser sensor on msm8998" 2017-03-19 20:46:16 -07:00
Linux Build Service Account
41ad85e5be Merge "input: vl53l0: Enable laser sensor Kconfig and Makefile entries" 2017-03-19 20:46:16 -07:00
Linux Build Service Account
3daf91ef36 Merge "ARM: dts: msm: Add support TOF sensor on msm8998" 2017-03-19 20:46:15 -07:00
Linux Build Service Account
f39a5999e2 Merge "ARM: dts: msm: enable ESD for command mode panel on sdm660" 2017-03-19 12:40:31 -07:00
Linux Build Service Account
f81cdebca6 Merge "mhi: core: process incoming data based on event ring type" 2017-03-19 12:40:29 -07:00
Linux Build Service Account
a81b8bead5 Merge "msm: mdss: dp: Fix DP display issue during device boot time" 2017-03-19 12:40:28 -07:00
Linux Build Service Account
2eb0277a50 Merge "msm: mdss: disable programmable fetch when not in use" 2017-03-19 12:40:28 -07:00
Linux Build Service Account
93be26b574 Merge "firmware: tz_log: Enable asynchronous driver probing" 2017-03-19 12:40:27 -07:00
Sujeev Dias
0ee8cf4de3 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>
2017-03-17 14:16:52 -07:00
Sujeev Dias
839bf852e2 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>
2017-03-17 14:06:32 -07:00
Liam Mark
3286fac3d9 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>
2017-03-17 10:26:49 -07:00
Sarada Prasanna Garnayak
3e0f2da3ea 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>
2017-03-17 09:34:51 -07:00
Sarada Prasanna Garnayak
e9634dbd28 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>
2017-03-17 09:34:36 -07:00
Ghanim Fodi
3faf80e81b 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>
2017-03-17 08:10:16 -07:00
Charan Teja Reddy
fe0c4e567f 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>
2017-03-17 18:31:30 +05:30
Venu Yeshala
5159d3ed94 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>
2017-03-17 00:54:38 -07:00
Taniya Das
5b586c72e2 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>
2017-03-17 09:12:11 +05:30
Taniya Das
947428e547 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>
2017-03-17 09:12:10 +05:30
Taniya Das
76ddd7e95c 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>
2017-03-17 09:12:05 +05:30
Linux Build Service Account
3f942f9f96 Merge "misc: qpnp-misc: change the initcall level for qpnp-misc driver" 2017-03-16 20:03:03 -07:00
Linux Build Service Account
ddd0566475 Merge "power: smb-lib: always assume legacy cable and limit ICL" 2017-03-16 20:03:00 -07:00
Linux Build Service Account
d53dae0046 Merge "power: smb-lib: always assume legacy cable to prevent CC OV" 2017-03-16 20:03:00 -07:00
Linux Build Service Account
b5809c9045 Merge "ASoC: wcd934x: Fix mbhc errors upon removing SND_SOC_WCD934X_MBHC" 2017-03-16 20:02:58 -07:00
Linux Build Service Account
d2932199db Merge "arch: arm64: Fix APPENDED_DTB for arm64" 2017-03-16 20:02:57 -07:00
Linux Build Service Account
ca5b7b47a0 Merge "ARM: dts: msm: increase strength for mclk0 on msm8998 HDK" 2017-03-16 20:02:56 -07:00
Linux Build Service Account
c2d9ad7019 Merge "ARM: dts: msm: enable HDMI and DP functionality for HDK835" 2017-03-16 20:02:56 -07:00
Linux Build Service Account
1debce8dc0 Merge "mhi: mhi_core: move mhi from module_Init to subsys_init" 2017-03-16 20:02:53 -07:00
Linux Build Service Account
1e266f61af Merge "mhi: core: add support for priority based event processing" 2017-03-16 20:02:53 -07:00
Chris Lew
a7ee55b234 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>
2017-03-16 17:40:34 -07:00
Subbaraman Narayanamurthy
122836477b 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>
2017-03-16 11:56:59 -07:00
Nicholas Troast
437db3081b 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>
2017-03-16 10:00:40 -07:00
Nicholas Troast
11a54fcfa4 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>
2017-03-16 10:00:40 -07:00
Nicholas Troast
fa12cb53c0 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>
2017-03-16 10:00:39 -07:00
Nicholas Troast
13bdd014a7 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>
2017-03-16 10:00:39 -07:00
Nicholas Troast
e7f294565f 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>
2017-03-16 10:00:38 -07:00
Nicholas Troast
c3e73c5a50 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>
2017-03-16 10:00:37 -07:00
Wei Ding
a03ae92180 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>
2017-03-16 01:56:29 -07:00
Bikas Gurung
abf70e5c9d 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>
2017-03-16 16:38:12 +08:00