Commit graph

581096 commits

Author SHA1 Message Date
Ashay Jaiswal
b4fe7907b0 qcom-charger: smb2: suspend USB path for fake battery or debug board
Add support to identify fake battery/debug board and suspend the USB
input path when this is detected.

CRs-Fixed: 1107245
Change-Id: Icaa936e4e5b3c9381bc92b6664b32547a820b9c3
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
2017-01-17 20:40:38 -08:00
Ashay Jaiswal
bafe291f17 power_supply: add power supply property to support debug battery
Add power supply property to report debug/fake battery status.

CRs-Fixed: 1107245
Change-Id: I5590a772604986de8eed1c8417411dac62668440
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
2017-01-17 20:29:29 -08:00
Nicholas Troast
d4b9ff94df power: align qcom drivers with msm-4.9 kernel
The power directory structure has changed in kernel version 4.9. Align
msm-4.4 with this new directory structure.

Change-Id: Iba729f8ef33245ea78cdc05276ba8f5593191509
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2017-01-17 12:21:07 -08:00
Nicholas Troast
cbd28f4381 qcom-charger: smb-lib: fix return of an uninitialized variable
rc could be returned without being initialized. Initialize it.

Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
Change-Id: I044f74c7853e6853ae41734a95a4d86569c60457
2017-01-17 12:21:06 -08:00
Nicholas Troast
6b20920b2d qcom-charger: qpnp-fg: fix oob array access and uninitialized return
pos is incremented by bytes_read which could exceed the boundary of
kbuf. Fix this by checking the bounds of pos.

resched_ms is used when uninitialized. Initialize it.

Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
Change-Id: I3a01d59bb5ed53666307a5210a684c7d9fd654fc
2017-01-17 12:21:05 -08:00
Nicholas Troast
f0ea5d918d qcom-charger: msm_bcl: fix out of bounds array access
param_type is used for array access before the boundary check. Check the
boundary before using param_type.

Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
Change-Id: I3d1fb4ada3182c533e5b937717962dc513837e78
2017-01-17 12:21:05 -08:00
Linux Build Service Account
4b3736890b Merge "usb: phy: qusb2: Enable phy auto-resume" 2017-01-16 13:29:53 -08:00
Linux Build Service Account
ed2eb1070d Merge "USB: dwc3-msm: Set speed as high speed if no speed information" 2017-01-16 13:29:52 -08:00
Linux Build Service Account
78f6511c28 Merge "ARM: dts: msm: Add support of IPA for SDM630" 2017-01-16 13:29:51 -08:00
Linux Build Service Account
74aecd0f81 Merge "ARM: dts: msm: Disable IPA in SDA658/660" 2017-01-16 13:29:50 -08:00
Linux Build Service Account
fc8e309f19 Merge "power: reset: fix compilation errors when dload disabled." 2017-01-16 13:29:50 -08:00
Linux Build Service Account
bb64ae8a47 Merge "ARM: dts: msm: Update Camera CSIPHY clock for SDM660" 2017-01-16 13:29:49 -08:00
Linux Build Service Account
37c5f804a2 Merge "spss_utils: select spss test/prod/hybrid firmware to load" 2017-01-16 04:29:08 -08:00
Linux Build Service Account
1e5081e1b2 Merge "sched: Initialize variables" 2017-01-16 04:29:07 -08:00
Linux Build Service Account
9f0ae8e606 Merge "clk: qcom: Add support to set rcg parent src for dp_pixel clock" 2017-01-16 04:29:06 -08:00
Linux Build Service Account
a0d62ae120 Merge "ARM: dts: msm: increase VDD_GFX Fmax CPR ceiling voltage for MSM8998v2" 2017-01-16 04:29:06 -08:00
Linux Build Service Account
a963750b83 Merge "sched: Fix compilation errors when CFS_BANDWIDTH && !SCHED_HMP" 2017-01-16 04:29:04 -08:00
Linux Build Service Account
05030ff7a0 Merge "ARM: dts: msm: Add alias information for tsens in msm8998" 2017-01-16 04:29:03 -08:00
Linux Build Service Account
c410ee8d5c Merge "ARM: dts: msm: Program slimbus bam offset address for SDM660" 2017-01-16 04:29:03 -08:00
Linux Build Service Account
72591d47f4 Merge "ASoC: wcd-mbhc: add null pointer check" 2017-01-16 04:29:02 -08:00
Linux Build Service Account
7ff850a1d4 Merge "ARM: dts: msm: Add I2C, SPI, UART and slimbus devices for SDM630" 2017-01-16 04:29:01 -08:00
Linux Build Service Account
a295b7196b Merge "msm: mdss: Fix equation to calculate prefill count for amortization" 2017-01-16 04:29:00 -08:00
Linux Build Service Account
a2dbdc2c6e Merge "perf: don't leave group_entry on sibling list (use-after-free)" 2017-01-16 04:29:00 -08:00
Linux Build Service Account
686a509ed0 Merge "KEYS: Fix short sprintf buffer in /proc/keys show function" 2017-01-16 04:28:59 -08:00
Linux Build Service Account
20dcab7b2d Merge "ion: Fix use after free during ION_IOC_ALLOC" 2017-01-16 04:28:58 -08:00
Linux Build Service Account
63e23a6cfe Merge "ASoC: msm: qdsp6v2: DAP: Enable non DAP modules on DAP disable" 2017-01-16 04:28:57 -08:00
Linux Build Service Account
e638fbdb05 Merge "ASoC: wcd-mbhc: fix inconsistent detection of euro headset" 2017-01-16 04:28:57 -08:00
Vijayavardhan Vennapusa
3759fd1701 USB: dwc3-msm: Set speed as high speed if no speed information
Speed is not notified in case of platforms having micro USB connector
instead of USB type C connector. In this case, set speed as High speed
only as by default only high speed is supported over micro USB ports.

Change-Id: I6f29914ca9e2345157330651464b7a0c151f1f97
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2017-01-16 13:39:17 +05:30
Utkarsh Saxena
4b8e68eab4 ARM: dts: msm: Add support of IPA for SDM630
Enable IPA in SDM660.
IPA shunt data between apps, modem and USB.

Change-Id: I09aa16138d643b17b793162ca0591c143ad8da1f
Acked-by: Mohammed Javid <mjavid@qti.qualcomm.com>
Signed-off-by: Utkarsh Saxena <usaxena@codeaurora.org>
2017-01-16 12:54:38 +05:30
Utkarsh Saxena
15ae5b7344 ARM: dts: msm: Disable IPA in SDA658/660
IPA needs to be kept disabled in SDA 658/660 APQ platforms.

Change-Id: I1fd4ff9d50b7ad2c429bf8a180a6612d5ed3497f
Acked-by: Mohammed Javid <mjavid@qti.qualcomm.com>
Signed-off-by: Utkarsh Saxena <usaxena@codeaurora.org>
2017-01-16 12:49:11 +05:30
Amir Samuelov
3763023d7d spss_utils: select spss test/prod/hybrid firmware to load
Select which SPSS firmware to load based on 2 fuses.

Change-Id: I7080cc0b58c38965ed7e58808431cf487008de9e
Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
2017-01-15 21:54:58 -08:00
Shankar Ravi
8d53ed1fb0 ARM: dts: msm: Update Camera CSIPHY clock for SDM660
Use the proper clock for CSIPHY2 for SDM660.

CRs-Fixed: 1111640
Change-Id: If9eaa19a0ee837dbbe335597259a62287a1620d5
Signed-off-by: Shankar Ravi <rshankar@codeaurora.org>
2017-01-15 21:48:25 -08:00
Linux Build Service Account
2326bcf687 Merge "clk: qcom: Move prepare enable parent sources for FORCE_ENABLE_RCGR" 2017-01-15 19:55:54 -08:00
Linux Build Service Account
da942ab82a Merge "ARM: dts: msm: Enable OSM CPU clocks for SDM660" 2017-01-15 19:55:53 -08:00
Linux Build Service Account
242e8667ed Merge "ARM: dts: msm: Update voltage and interrupt details of sdhc2 for sdm660" 2017-01-15 07:06:03 -08:00
Linux Build Service Account
f34742edd2 Merge "ASoC: wcd-mbhc: set moisture thresholds for NO jack" 2017-01-15 07:06:01 -08:00
Linux Build Service Account
5c470dc1df Merge "mmc: mmc: Don't send CMD13 after switch command while switching speed modes" 2017-01-15 07:06:01 -08:00
Linux Build Service Account
4ee892e235 Merge "ARM: dts: msm: Change SVS clock rate for VFE on msm8998" 2017-01-15 07:06:00 -08:00
Taniya Das
956eaf60d6 clk: qcom: Move prepare enable parent sources for FORCE_ENABLE_RCGR
Move preparing/unpreparing the clock source parents from the clk set rate.
This is required as invoking prepare from clk enable with disable irqs and
prepare would take a mutex resulting in sleeping from invalid context.

Change-Id: I90d8a346f684747f635bd9e7254ceb8d45841b05
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2017-01-15 13:00:30 +05:30
Linux Build Service Account
2bb237c91a Merge "ARM: dts: msm: Update audio WDSP entries for sdm660" 2017-01-14 22:18:07 -08:00
Taniya Das
5e14d7b53f ARM: dts: msm: Enable OSM CPU clocks for SDM660
Update the 'apm-threshold-voltage' as per recommendation and also enable
the OSM cpu clocks.

Change-Id: I8074699b1ea9e5182a136d4935ffd2938972a91b
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2017-01-14 21:52:12 -08:00
Linux Build Service Account
2e830e63e4 Merge "defconfig: msm: Enable MSM_TIMER_LEAP" 2017-01-14 12:24:45 -08:00
Linux Build Service Account
7366c63969 Merge "cfg80211: Reset beacon interval when stop AP fails" 2017-01-14 03:43:01 -08:00
Linux Build Service Account
a0b1e8d4ef Merge "Revert "USB: rndis: Free the rndis response queue during rndis reset msg"" 2017-01-14 03:43:00 -08:00
Linux Build Service Account
49decc6726 Merge "usb: gadget: gsi: Improve notify_req handling" 2017-01-14 03:43:00 -08:00
Linux Build Service Account
42bd9640b2 Merge "regulator: cpr3: fix system regulator vote in regulator disable path" 2017-01-14 03:42:59 -08:00
Linux Build Service Account
a1e7739089 Merge "sched: fix a bug in handling top task table rollover" 2017-01-14 03:42:58 -08:00
Linux Build Service Account
500c0ddd7c Merge "usb: mon: replace %p with %pK" 2017-01-14 03:42:56 -08:00
Linux Build Service Account
dce0275223 Merge "usb: core: replace %p with %pK" 2017-01-14 03:42:55 -08:00
Linux Build Service Account
f5ee23be9b Merge "usb: phy: snps: replace %p with %pK" 2017-01-14 03:42:54 -08:00