Commit graph

582965 commits

Author SHA1 Message Date
Prashanth Bhatta
24e08ffdd7 icnss: Remove unused IPC logging mechanism
IPC logging long mechanism was added to capture reset logic
register access log to be captured into a separate buffer so that
those logs wont obscure with main driver logs. Now that reset
sequence is moved to WLAN FW so there is no need for the IPC
logging mechanism.

CRs-fixed: 2005481
Change-Id: I1d983a5f5aa0293598303bda23f9adbc04303458
Signed-off-by: Prashanth Bhatta <bhattap@codeaurora.org>
2017-02-10 16:42:45 -08:00
Harry Yang
8a3c043c63 qcom: qnovo: Update fcc and fv through batt psy
To force qnovo FCC and FV through parallel framework
more conveniently, batt psy is bridged to replace votable
in qnovo driver. The two properties are -
POWER_SUPPLY_PROP_CURRENT_QNOVO and
POWER_SUPPLY_PROP_VOLTAGE_QNOVO.

CRs-Fixed: 2004173
Change-Id: I40b179fe5535e0209fcdbc1cb7e64cbfdf45a14b
Signed-off-by: Harry Yang <harryy@codeaurora.org>
2017-02-10 16:36:51 -08:00
Harry Yang
491c847cd2 qpnp-smb2: expose forcing fcc/fv values via battery psy
CURRENT_QNOVO and VOLTAGE_QNOVO allow "forcing" fast charge
current and float voltage value, implemented around votable
such that one can have previlige in FCC and FV voting.

CRs-Fixed: 2004173
Change-Id: I2df30220aa89e15c4bace9980990f227218a5bdd
Signed-off-by: Harry Yang <harryy@codeaurora.org>
2017-02-10 16:36:50 -08:00
Nicholas Troast
580b03cf01 smb-lib: add ICL settled value to IRQ debug print
Print the ICL settled value within the icl-changed IRQ handler.

Change-Id: I5553abecfc5e32b24bef3525f532f4b3505c0757
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2017-02-10 16:16:49 -08:00
Fenglin Wu
13c4202dde smb-lib: fix slave BCL for HVDCP3
Currently, fixed 5V adapter voltage is used for calculating slave FCC.
When HVDCP 3.0 is used it skews the desired FCC distribution. Fix this
by using the HVDCP3 pulse count to determine the actual adapter voltage
when limiting the slave battery current.

Change-Id: Ib4735ffe7b6287a3e57e0f74eb24c13c6a2b7a5a
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2017-02-10 16:16:48 -08:00
Nicholas Troast
d86ba09f57 power_supply: add INPUT_VOLTAGE_SETTLED property
INPUT_VOLTAGE_SETTLED is the negotiated adapter voltage setting.

Change-Id: I2ac529a77e8ed007c908c4f37eea718a80bc11d3
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2017-02-10 16:16:47 -08:00
Nicholas Troast
c9329b856e ARM: dts: msm: enable the chg-state-change IRQ for SMB138X
The chg-state-change IRQ will be used to notify when the parallel slave
charger changes its charge state. Enable it.

Change-Id: Ia57db8ec5f2263b62217c235725ee9caa07f86e4
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2017-02-10 16:16:47 -08:00
Nicholas Troast
e9fc341735 smb138x-charger: add handler for slave chg state change
Add an IRQ handler function that notifies when the slave charge state
changes.

Change-Id: I359ed08c5ad289ceeabd6fa8720a959c74b6bb5e
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2017-02-10 16:16:46 -08:00
Linux Build Service Account
d42f45ccce Merge "net: support __netdev_alloc_frag to always use GFP_DMA" 2017-02-10 15:47:10 -08:00
Linux Build Service Account
aa5e93343f Merge "msm: kgsl: Fix Integer overflow in sparse_bind related functions" 2017-02-10 15:47:09 -08:00
Harry Yang
5e55ca1847 power_supply: Add CURRENT_QNOVO and VOLTAGE_QNOVO properties
CURRENT_QNOVO - force fast charge current value
VOLTAGE_QNOVO - force float voltage value

CRs-Fixed: 2004173
Change-Id: I7569052fd2cb6d1ce9a3a8e69e79b950a6c62d57
Signed-off-by: Harry Yang <harryy@codeaurora.org>
2017-02-10 15:31:19 -08:00
Harry Yang
d6e0cf48db qcom: smb-lib: remove FCC_MAX votable
FCC_MAX votable was introduced as an intermediate votable used by
Qnovo driver for fast charge current vote, but does not fit in
the new requirement that Qnovo force its vote value.

Remove it.

CRs-Fixed: 2004173
Change-Id: Iff8b74113550f808546d61ef864f3935fc5d61fa
Signed-off-by: Harry Yang <harryy@codeaurora.org>
2017-02-10 15:30:37 -08:00
Ashay Jaiswal
97b2a779b2 qpnp-smb2: Add DT option for enabling input suspend on fake battery
Input suspend on fake battery feature is by default enabled in the
software, add a DT property to enable/disable the feature.

Change-Id: I06bda6c72010699f4be24ff6044fe3bb248b06fb
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
Signed-off-by: Harry Yang <harryy@codeaurora.org>
2017-02-10 15:14:18 -08:00
Subbaraman Narayanamurthy
5c458cc2f8 leds: qpnp-flash-v2: add delay between LMH mitigation and LED strobe
As per the hardware recommendation, a delay of 500 us is needed
after LMH mitigation is enabled by software and before the flash
LED is strobed. Add it.

Change-Id: Ib70efbb7267510ffb9d95c4aba8566bf6e777c0f
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-02-10 12:54:40 -08:00
Tony Truong
146047ddb0 msm: mhi: fix latent issues in MHI drivers
Incorrect checks in MHI drivers may crash the system.
Fix these checks so that MHI drivers will handle the
errors gracefully.

Change-Id: I462263799c2e76573300ed43b51e39ecba42914b
Signed-off-by: Tony Truong <truong@codeaurora.org>
2017-02-10 12:04:51 -08:00
Runmin Wang
82b6e4d903 arm64: process: Update the kernel offset
Kernel address is relocated to the VMALLOC region. Update the check
to use KIMAGE_VADDR.

Change-Id: Ie2539a78a8180a3dbc2c8075a891e99892d809f2
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
2017-02-10 11:59:33 -08:00
Skylar Chang
038d0bef5f msm: ipa3: fix race condition in SSR
On pipe setup, enable data path should happen for after
all pipe resources are allocated.
This change prevents a race condition where the pipe is enabled
before RX buffers are submitted to IPA.
Then, when buffers are submitted to IPA there is a race between
submitting the buffers and getting RX packets.

CRs-Fixed: 1096357
Change-Id: Ic32924b6893bb8c7813b1b8e68e03b5e09560b69
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2017-02-10 11:40:30 -08:00
Runmin Wang
ac69bcf1f0 defconfig: msm: Enable EL2 tlb handler
Enable QCOM_EL2_TLB_HANDLER so that tlb conflict is handled
by EL2.

Change-Id: I8af8be929293e5419d58712d742cb62fb82f8897
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
2017-02-10 10:34:55 -08:00
Prasad Sodagudi
0b8561aff0 arm64: raise exception to EL2 for sync aborts
Raise exception to EL2 for every EL1 sync data aborts,
so that EL2 handles the TLB conflicts.

Change-Id: Ib140599e23c399b23c12ddbeb59979d6caf5d38e
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
2017-02-10 10:34:40 -08:00
Suresh Reddy Yellala
b1d18ea6ed config: Add new file msmcortex_mediabox_defconfig
APQ8098 Display driver is moving away from Framebuffer (CONFIG_FB)
configuration to DRM  (CONFIG_DRM) configuration.

Change-Id: Ibe19318682fcd127b5f32096ae4445ec7d2d42dd
Signed-off-by: Suresh Reddy Yellala <suresh@codeaurora.org>
2017-02-10 10:09:57 -08:00
Abhinav Kumar
ed55c7a2a3 defconfig: disable drm/kms driver in msm defconfig
Disable drm/kms driver in msm and
perf defconfigs

Change-Id: I538fc73bd8b0c4217db10281e20462488a3e746d
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
2017-02-10 09:37:26 -08:00
Linux Build Service Account
45ad5727c9 Merge "ASoC: msm: qdsp6v2: Add INT3 Tx port for LSM" 2017-02-10 06:46:05 -08:00
Linux Build Service Account
1f2a86994e Merge "drivers: soc: add mutex to prevent response being processed twice" 2017-02-10 06:46:05 -08:00
Linux Build Service Account
af6d354a11 Merge "ARM: dts: msm: add SMB1351 charger node for SDM660 MTP" 2017-02-10 06:46:04 -08:00
Linux Build Service Account
564ead6a58 Merge "qpnp-smb2: support POWER_SUPPLY_PROP_CTM_CURRENT_MAX" 2017-02-10 06:46:02 -08:00
Linux Build Service Account
1a78d46209 Merge "power_supply: add DIE_HEALTH and CONNECTOR_HEALTH properties" 2017-02-10 06:46:01 -08:00
Linux Build Service Account
2283a0e090 Merge "defconfig: arm64: msm-perf: Enable MSM_TZ_LOG" 2017-02-10 06:46:00 -08:00
Linux Build Service Account
9cfe21ae68 Merge "soc: qcom: Add support for Cx iPeak limit driver" 2017-02-10 06:45:59 -08:00
Linux Build Service Account
00b3ef62c0 Merge "USB: qc_rndis: Fix aggregation parameters settings issue" 2017-02-10 06:45:58 -08:00
Linux Build Service Account
9be7e2fad6 Merge "ARM: dts: msm: Add APC0/1 CPR instances for sdm630" 2017-02-10 06:45:56 -08:00
Linux Build Service Account
1603ea92b1 Merge "defconfig: msm: Enable CONFIG_MMC_RING_BUFFER for sdm660" 2017-02-10 06:45:56 -08:00
Linux Build Service Account
c8fbebb199 Merge "driver-core: cpu: Make isolate node read-only" 2017-02-10 06:45:55 -08:00
Linux Build Service Account
d01d82d616 Merge "qpnp-smb2: Make CURRENT_MAX property writeable for usb_psy" 2017-02-10 06:45:54 -08:00
Linux Build Service Account
f85e7d3750 Merge "ASoC: msm: qdsp6v2: Add endianness control for USB devices" 2017-02-10 06:45:53 -08:00
Linux Build Service Account
ddb5ca1fc6 Merge "msm: rndis_ipa: Fix to incorrect state transition" 2017-02-10 06:45:52 -08:00
Linux Build Service Account
1dc780eb62 Merge "clk: qcom: Add qpnp clock divider support" 2017-02-10 06:45:46 -08:00
Govind Singh
9133dafdff ath10k: converge TLV and HL1.0 params and API
HL1.0 wmi type configuration is overlapped with wmi
TLV type configuration.

converge TLV and HL1.0 params and API to remove
redundant code.

Change-Id: Ia41b300ca810495acfdab9f014f59d8cfa839ae3
Signed-off-by: Govind Singh <govinds@codeaurora.org>
2017-02-10 06:15:17 -08:00
Amit Nischal
ca6532efe2 tracing: Add clock trace events only for COMMON_CLK_MSM
Clock trace events related to msm clock framework are
not required to be part of available events other that
CLK_MSM config so add the support for the same by
adding a config check.

Change-Id: I93e8d9604a58c0cb48be723d5845591e7a4b7861
Signed-off-by: Amit Nischal <anischal@codeaurora.org>
2017-02-10 18:59:48 +05:30
Tirupathi Reddy
b2a1e066fc defconfig: Enable FG GEN3 and QNOVO configs for sdm660 32-bit
Enable the GEN3 Fuel Gauge driver and Qnovo pulse charging engine
for sdm660 32-bit platform.

CRs-Fixed: 2005232
Change-Id: Ib6a158e7e6ee55fb348dc2ef7e4eb7d40f3051a5
Signed-off-by: Tirupathi Reddy <tirupath@codeaurora.org>
2017-02-10 18:20:56 +05:30
Tirupathi Reddy
5e090adb96 qcom: qnovo: fix 32-bit compilation
Make division operations in qpnp-qnovo 32-bit compatible.

CRs-Fixed: 2005232
Change-Id: I3dd5eed9cad8b2d054993305f1c737bc81418b5f
Signed-off-by: Tirupathi Reddy <tirupath@codeaurora.org>
2017-02-10 18:19:32 +05:30
Tirupathi Reddy
6e2aa6379c qpnp-fg-gen3: fix 32-bit compilation
Make division operations in qpnp-fg-gen3 32-bit compatible.

CRs-Fixed: 2005232
Change-Id: I33215147d093aef3f04c46912bddd5aef284d7c4
Signed-off-by: Tirupathi Reddy <tirupath@codeaurora.org>
2017-02-10 18:18:41 +05:30
Shantanu Jain
eaaf79250d input: keyboard: correct suspend/resume for gpio_keys
Execute pinctrl operations at correct place in
suspend/resume procedure of gpio_keys driver.

Change-Id: Ic393778e35f52859512bd32ccbf6c4d1079a7e37
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2017-02-10 17:30:08 +05:30
Shantanu Jain
c26a324755 input: gpio_keys: Add support for pinctrl framework
Add pinctrl framework support for gpio configuration
to gpio_keys driver.

Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
Change-Id: I50c46caca0a65f8906f816e04f89610497956eea
2017-02-10 17:29:50 +05:30
Padmanabhan Komanduru
399804a90e ARM: dts: msm: limit the maximum PCLK supported for DP on SDM660
Update the dtsi property to limit the maximum pixel clock frequency
supported on Display Port for SDM660 to 300 MHz.

Change-Id: Iaacb08a310debd0d470d2f16c794fe70b09af2f5
Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
2017-02-10 16:57:27 +05:30
Padmanabhan Komanduru
21e7c25c87 clk: qcom: mdss: update the clk_ops for dp_vco_divided_clk_src_mux
The fractional divider values for DP pixel clock RCG needs to be
determined dynamically. Add the recalc_rate operation for the DP
PLL mux clock dp_vco_divided_clk_src_mux which is the parent of
DP pixel clock RCG. This enables the RCG clock to calculate the
fractional dividers correctly. Modify the determine rate op for the
mux clock to also set the new parent after performing the determine
rate operation.

Change-Id: Id931a60677380ecee28eb9aec6468548898b812b
Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
2017-02-10 16:44:58 +05:30
Jayant Shekhar
c170aec689 ARM: dts: msm: add mdss node for sdm630
Add mdss node for sdm630 which is used by
display driver.

Change-Id: Ie5b6448a9a6da59ea1a134db3c700e35f89da50b
Signed-off-by: Jayant Shekhar <jshekhar@codeaurora.org>
Signed-off-by: Sandeep Panda <spanda@codeaurora.org>
2017-02-10 16:40:56 +05:30
Shantanu Jain
b9c5295a4d ARM: dts: msm: add camera focus and snapshot device nodes for SDM630
MSM GPIO 64 is connected to camera focus button and MSM GPIO 113 is
connected to camera snapshot button. Add the device nodes for these
buttons for SDM630 devices.

Change-Id: I7f58f3ed6e7cfa49f03ebea23cff4eae417a071b
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2017-02-10 16:34:49 +05:30
Tirupathi Reddy
55a4a605c9 regulator: cpr4-mmss-ldo: Add GFX LDO CPR support for sdm630
GPU subsystem in sdm630 is supplied by either LDO300(VDD_GFX)
in LDO mode or VDD_CX in BHS mode. This LDO300 is CPR managed
and supports CPR closed-loop operation.

CRs-Fixed: 2000929
Change-Id: I94d6739f9abbdba3918b118eaa29fc0bc5cbd6e7
Signed-off-by: Tirupathi Reddy <tirupath@codeaurora.org>
2017-02-10 15:18:29 +05:30
Nicholas Troast
578f8f6a7c qpnp-smb2: support POWER_SUPPLY_PROP_CTM_CURRENT_MAX
CTM needs to vote for USB ICL. Add support for it.

Change-Id: I88b146000f7327cf5dc7310fb721309f08dc3035
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2017-02-10 12:52:15 +05:30
Nicholas Troast
fcc57cd62f power_supply: add CTM_CURRENT_MAX property
POWER_SUPPLY_PROP_CTM_CURRENT_MAX is needed by CTM to limit USB input
current. Add it.

Change-Id: I8aac65a91959300676cf7e1c2685a557f322c509
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2017-02-10 12:52:15 +05:30