Commit graph

582952 commits

Author SHA1 Message Date
Govind Singh
efc329cae7 defconfig: msm: enable ATH10k WCN3990 WLAN module for APQ8098
This module adds support for the Integrated WCN3990 WLAN
module, The ATH10k WCN3990 has integrated 802.11ac chipset
with SNOC bus interface.

The ATH10K is MAC80211 based driver, enable MAC80211 and
ATH10K core related kernel config flag for driver compilation.

CRs-Fixed: 2005603
Change-Id: Ie153688eabf29e8f33aee413750028147a94d9a2
Signed-off-by: Govind Singh <govinds@codeaurora.org>
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
2017-02-13 13:16:15 +05:30
Manish Dewangan
bb52835a61 ASoC: msm: qdspv2: Add mixer controls for drift query
Add mixer control to query avtimer vs HDMI drift.

CRs-Fixed: 1112258
Change-Id: If57a8e32de65f3e4949cd44631552ce5afe41ef2
Signed-off-by: Manish Dewangan <manish@codeaurora.org>
2017-02-12 22:18:32 -08:00
Manish Dewangan
563050b247 ASoC: msm: qdsp6v2: Add support to query Drift.
Afe driver changes to query avtimer vs device drift.
Drift obtained can be used to pull the device pll so
that avtimer and device are in sync.

CRs-Fixed: 1112258
Change-Id: I4d4ddb0dbc06270553d583f266a44ddbe9412d1a
Signed-off-by: Manish Dewangan <manish@codeaurora.org>
2017-02-12 22:17:21 -08:00
Charan Teja Reddy
f1cc7ec4c8 arm: dma-mapping: add dma mapper for io-pgtable-fast for 32 bit
io-pgtable-fast was implemented to achieve
better performance for IOMMU map/un-map. Add
DMA API support that goes through io-pgtable-fast
for 32 bit targets.

Change-Id:I3d0560a4331f6b7b87c70d0885df11d12cb1d6ec
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
2017-02-13 11:05:17 +05:30
xiaonian
a897b79683 ARM: dts: msm: Add sdhc2 for sdm630 QRD
Add sdhc2 to enable sd card for sdm630 QRD platform.

CRs-Fixed: 2005013
Change-Id: I3c88e1b80d36482b8f5563381656556d30a36f4c
Signed-off-by: xiaonian <xiaonian@codeaurora.org>
2017-02-13 13:34:29 +08:00
Rajesh Kemisetti
daaf5f2b04 ARM: dts: msm: Add GPU properties for SDM630
Add initial version of SDM630 GPU properties.

This is needed to support Graphics driver functionality
on SDM630 target.

Change-Id: I0442ed8dbb728adae36db8631eeba83c6425ea82
Signed-off-by: Rajesh Kemisetti <rajeshk@codeaurora.org>
2017-02-13 10:44:16 +05:30
xiaonian
f242508320 ARM: dts: msm: Add sdhc1 for SDM630 QRD
Add sdhc1 to enable eMMC support for SDM630 QRD.

CRs-Fixed: 2005010
Change-Id: I8d6c9f1479d7bde36b86b5e482085fef033795a1
Signed-off-by: xiaonian <xiaonian@codeaurora.org>
2017-02-13 09:44:27 +08:00
xiaonian
9c5dd62ff8 ARM: dts: msm: Add ufs support for SDM630 QRD
Add ufs and ufs-phy device nodes to support
ufs as storage device for SDM630 QRD platform.

CRs-Fixed: 2005015
Change-Id: If0c4edaba9285ba9a1c927e1e804427160947b11
Signed-off-by: xiaonian <xiaonian@codeaurora.org>
2017-02-13 09:09:47 +08:00
Linux Build Service Account
3a7e752617 Merge "spi: spi_qsd: Use the right device for dma_unmap_single operation" 2017-02-12 14:28:20 -08:00
Prasad Sodagudi
6ff89e188d ARM: dts: msm: Enable pil_modem for apq8998 mediabox
To support WLAN on apq8998 mediabox platform, modem PIL is needed.

Change-Id: I542053414f5de256514f252b8c019d498756bf80
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
2017-02-12 07:59:39 -08:00
Linux Build Service Account
88fee0f381 Merge "config: Add new file msmcortex_mediabox_defconfig" 2017-02-11 01:25:30 -08:00
Linux Build Service Account
a9868ae54b Merge "ARM: dts: msm: add mdss node for sdm630" 2017-02-11 01:25:28 -08:00
Linux Build Service Account
befaaa3795 Merge "qcom: qpnp-smb2: Reset switcher_power_ok irq count when USBIN_UV fires" 2017-02-11 01:25:25 -08:00
Linux Build Service Account
58a2863f69 Merge "qcom: smb-lib: make smb_irq_info common for smb2 and smb138x chargers" 2017-02-11 01:25:23 -08:00
Linux Build Service Account
713e5d786e Merge "qcom: qnovo: Update fcc and fv through batt psy" 2017-02-11 01:25:21 -08:00
Linux Build Service Account
ebcc5b8ada Merge "arm64: process: Update the kernel offset" 2017-02-11 01:25:20 -08:00
Linux Build Service Account
12ab5894a7 Merge "defconfig: msm: Enable EL2 tlb handler" 2017-02-11 01:25:19 -08:00
Linux Build Service Account
e189ae8694 Merge "arm64: raise exception to EL2 for sync aborts" 2017-02-11 01:25:18 -08:00
Linux Build Service Account
cf0c08925b Merge "qpnp-smb2: Add DT option for enabling input suspend on fake battery" 2017-02-11 01:25:17 -08:00
Linux Build Service Account
c905163809 Merge "msm: ipa3: fix race condition in SSR" 2017-02-11 01:25:17 -08:00
Linux Build Service Account
70df1c3981 Merge "input: keyboard: correct suspend/resume for gpio_keys" 2017-02-11 01:25:16 -08:00
Linux Build Service Account
e884d847c2 Merge "input: gpio_keys: Add support for pinctrl framework" 2017-02-11 01:25:15 -08:00
Linux Build Service Account
76dfa08d86 Merge "ARM: dts: msm: Disable CXIP LM feature for sdm630" 2017-02-11 01:25:14 -08:00
Linux Build Service Account
1d06a9f4b8 Merge "defconfig: msm: Enable BALANCE_ANON_FILE_RECLAIM" 2017-02-11 01:25:13 -08:00
Linux Build Service Account
aee0c0c2ad Merge "msm: mhi: fix latent issues in MHI drivers" 2017-02-11 01:25:12 -08:00
Linux Build Service Account
cba45acfcb Merge "ath10k: converge TLV and HL1.0 params and API" 2017-02-11 01:25:12 -08:00
Linux Build Service Account
8e60b717af Merge "tracing: Add clock trace events only for COMMON_CLK_MSM" 2017-02-11 01:25:11 -08:00
Linux Build Service Account
ac25dfbde4 Merge "defconfig: Enable FG GEN3 and QNOVO configs for sdm660 32-bit" 2017-02-11 01:25:09 -08:00
Linux Build Service Account
597011d7ff Merge "regulator: cpr4-mmss-ldo: Add GFX LDO CPR support for sdm630" 2017-02-11 01:25:08 -08:00
Linux Build Service Account
887be35ac5 Merge "ARM: dts: msm: add camera focus and snapshot device nodes for SDM630" 2017-02-11 01:25:07 -08:00
Linux Build Service Account
bc73950c63 Merge "clk: qcom: mdss: update the clk_ops for dp_vco_divided_clk_src_mux" 2017-02-11 01:25:07 -08:00
Linux Build Service Account
264fc8202f Merge "ARM: dts: msm: Update MEM ACC corner mapping for APC0/1 for sdm630" 2017-02-11 01:25:06 -08:00
Linux Build Service Account
30acf3e7e9 Merge "drm/msm: Use dma_sync_sg_for_device() to flush cache for new buffers" 2017-02-11 01:25:04 -08:00
Sathish Ambley
3c6901ee67 msm: ADSPRPC: Set the device node in the session context
Set the device node associated with the session while creating
the context to allow for dma operations.

Change-Id: I7937a7bd533a9be09453144e20f7ecca3f3cc0ef
Signed-off-by: Sathish Ambley <sathishambley@codeaurora.org>
2017-02-10 18:55:18 -08:00
Subbaraman Narayanamurthy
6825d0dd4f qpnp-fg-gen3: add support for configuring slope limit coefficients
Slope limit coefficient is used to define the maximum change in
battery SOC. There is a requirement to configure slope limit
coefficient based on charging status and battery temperature
threshold. Add support for it through the following properties.

- qcom,slope-limit-temp-threshold
- qcom,slope-limit-coeffs

Possibe values allowed for slope limit coefficient is 0 to 31.

Change-Id: I41eacb13734f1692a16c1b011c58a488e46515ec
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-02-10 18:20:07 -08:00
Jack Pham
da9c7fa2a5 usb: pd: Update uevent parameters during hard reset
Ensure that a few of the parameters (SELECTED_PDO, REQUESTED_PDO,
RDO) are properly cleared out during hard reset and a uevent
update is sent to notify userspace clients.

Also, don't reset src_cap_id upon disconnect. This makes it a
a monotonically increasing value upon every connection so that
clients can distinguish when a new PD session is established.
Demote it to a u16 in order to have a smaller wraparound (65535).

Change-Id: I622ad1155b3680d3f616d5e9a835d4c6cbca3636
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2017-02-10 17:42:29 -08:00
Jack Pham
47fdec0cf1 usb: pd: Make select_pdo_store() wait until request goes through
When sending a request through the 'select_pdo' sysfs file,
make sure the request has gone through and is acknowledged
by the source before returning. This allows for checking if
the request was rejected so that an error can be returned.

Rename the 'swap_complete' completion variable to 'is_ready'
so it can be reused in this context. Also add a mutex so that
select_pdo will not contend with a dual_role swap.

Change-Id: Ie8b088faa15c67915e3bd96972b4f59f0cc66afe
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2017-02-10 17:42:06 -08:00
Subbaraman Narayanamurthy
6f4dec2b0c qcom: qpnp-smb2: Reset switcher_power_ok irq count when USBIN_UV fires
Currently when 3 switcher_power_ok interrupts are seen within a
second, the driver thinks that the switcher is reverse boosting
and suspends USB input path.

However, switcher_power_ok could happen 3 times within a second
while AICL is run from a charger collapse, a valid usecase which
ends up in an USB suspended state.

Note that AICL run caused switcher_power_ok is accompanied by an
USBIN_UV interrupt. Use that to distinguish reverse boost Vs AICL
runs. In particular, reset the switcher_power_ok interrupt count
updated by storm_watch when an USBIN_UV interrupt is seen.

Change-Id: I6817c66319f9af03ac28324a8d863876fdadafb3
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-02-10 16:57:58 -08:00
Subbaraman Narayanamurthy
2b9d6a362f qcom: smb-lib: make smb_irq_info common for smb2 and smb138x chargers
Since the interrupt information for both smb2 and smb138x charger
devices are almost common, abstract it to a single smb_irq_info
struct. Also, keep an interrupt index for every interrupt which
can be used when necessary.

Change-Id: I4e42dd15a46b59c1a9c27412ca6fdff281fa71ec
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-02-10 16:57:53 -08:00
Subbaraman Narayanamurthy
1f0f1184a0 qcom: storm-watch: add support to reset storm count
There are some circumstances where we have to reset the storm
watch interrupt count. Add support for it.

Change-Id: Iacbeb3258d53010aab8ba881d10de773fe54dd93
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-02-10 16:57:48 -08:00
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