Commit graph

583823 commits

Author SHA1 Message Date
Linux Build Service Account
85f1f431e7 Merge "f_gsi: Don't reconfigure USB GSI eps multiple time with cable connect case" 2017-03-01 02:22:44 -08:00
Linux Build Service Account
8e3beda481 Merge "f_gsi: Don't send end xfer command when USB is into U3 state" 2017-03-01 02:22:44 -08:00
Linux Build Service Account
bb35e1ed78 Merge "ARM: dts: msm: Update SDCC LPM latencies for sdm660" 2017-03-01 02:22:43 -08:00
Linux Build Service Account
4b2c57e721 Merge "msm: camera: isp: Handle array out of bounds" 2017-03-01 02:22:42 -08:00
Shiraz Hashim
847210ab6b iommu/io-pgtable-fast: cache clean the last level ptes
While preparing page tables for fastmap, last level ptes
are not being cache cleaned. Fix this.

Change-Id: I97f894b52484d0d223b15090b94c186bba9af734
Signed-off-by: Shiraz Hashim <shashim@codeaurora.org>
2017-03-01 14:45:40 +05:30
Yingwei Zhao
bec85cc3d8 ARM: dts: msm: Add SMB1381 device node for SDM630 QRD
SMB1381 acts as a slave charger in SDM630 QRD board. Add device node
to support it.

CRs-Fixed: 2012488
Change-Id: I03803eddc9db5f9bc7901225fa2defd8bcf0e32d
Signed-off-by: Yingwei Zhao <cyizhao@codeaurora.org>
2017-03-01 01:15:17 -08:00
Manaf Meethalavalappu Pallikunhi
514e483a47 power: bcl_peripheral: Enable BCL LMH algorithm only once
Currently BCL LMH algorithm enable request goes for every time BCL
threshold enablement. It needs to be enabled only once. So Enable
BCL LMH algorithm only once.

Change-Id: I94c7326b7730830f71b71c92df21a589ddd2347b
Signed-off-by: Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
2017-02-28 23:25:16 -08:00
Manaf Meethalavalappu Pallikunhi
1e42f4cc4f power: bcl: Fix battery SoC read and evaluation whenever BCL enabled
Just after enabling BCL, reading and evaluating current battery SoC
is bypassed. Because of this, during this same time if battery SoC
is less than preset threshold, BCL doesn't mitigate until next battery
SoC change notification comes. Fix battery SoC read and evaluation
path whenever BCL is enabled.

CRs-Fixed: 2007133
Change-Id: I65639ab078875dc3f6940fd1a89201af98e40881
Signed-off-by: Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
2017-02-28 23:25:02 -08:00
Shiraz Hashim
2e87440c3e iommu/io-pgtable-fast: optimize statically allocated pages
Presently fastmap iommu feature allocates page tables for
full 4GB virtual address space. This can be optimized to
consider virtual address range [base, size] needed by
client and prepare page tables only for applicable
region.

Change-Id: Ie6c23cb8e1702a823567e126f452b1e72d851f71
Signed-off-by: Shiraz Hashim <shashim@codeaurora.org>
2017-03-01 12:02:07 +05:30
Subbaraman Narayanamurthy
c7d377aa83 power: qpnp-fg-gen3: Add support to clamp ESR
If ESR value goes to 0 because of some hardware issue, there is
no way to recover it back from that state. This causes incorrect
SOC reporting leading to a bad user experience. Hence add support
to clamp ESR value based on user defined DT property so that ESR
can be clamped to this value once it is found to go below it.

Since this change modifies ESR value in SRAM, having FG_SRAM_ESR
property would make encode and decode the value easier. Hence
remove fg_get_battery_esr() and get it from FG_SRAM_ESR property.

CRs-Fixed: 2011200
Change-Id: I96250b44f52d6208f3c64fb9e61f70ea41f54f4e
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-02-28 20:06:09 -08:00
Hemant Kumar
ab8f94b1da usb: gadget: f_fs: Fix memory leak for ipc_log_context
Driver is not calling ipc_log_context_destroy in driver
cleanup which leaves the context allocated.

Change-Id: Ic1a74b530836d142c9f1db2143b5700e8b6c3321
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2017-02-28 18:54:06 -08:00
Anirudh Ghayal
fc1a759824 power: qcom-battery: Add sysfs to restrict charging
Add sysfs files for user applications to restrict
the battery charge current (FCC). The two files in
/sys/class/qcom-battery/ are -

1. restricted_charging: To enable/disable this feature
2. restricted_current: Restricted FCC (uA)

The default restricted_current value is 1A.

CRs-Fixed: 1113761
Change-Id: I23a6796eaa0c41c2e93a52c45f6200326d262e99
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2017-03-01 08:21:31 +05:30
Abhijeet Dharmapurikar
941bfaf2dc power: supply: qcom: remove unused drivers
qpnp-fg and qpnp-smbcharger are not supported anymore. Remove them.

Change-Id: Icc010cd77d9d1e839a6dfa681b65e19b8978fb56
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
2017-02-28 18:22:56 -08:00
Linux Build Service Account
eee829e625 Merge "msm: kgsl: Add GPU Cx ipeak client support on SDM660" 2017-02-28 17:03:50 -08:00
Linux Build Service Account
f67f8d0739 Merge "msm: ADSPRPC: Unregister glink notification handle after SSR" 2017-02-28 17:03:50 -08:00
Linux Build Service Account
b174cc4b07 Merge "msm: camera: isp: Do not wait w/o interruptible" 2017-02-28 17:03:48 -08:00
Linux Build Service Account
f5ba6d1e77 Merge "msm: kgsl: Clean up device debugfs files on removal" 2017-02-28 17:03:47 -08:00
Linux Build Service Account
fb7ed6aaa8 Merge "msm: camera: jpegdma: fix compilation issues for sdm660" 2017-02-28 17:03:47 -08:00
Linux Build Service Account
f57fc5ef76 Merge "msm: qpnp-haptic: Manage the state of PON regulator" 2017-02-28 17:03:45 -08:00
Linux Build Service Account
adb1c6ac95 Merge "msm: qpnp-haptic: add additional checks to avoid division by zero." 2017-02-28 17:03:44 -08:00
Linux Build Service Account
7a0d50c776 Merge "msm: camera: Fix invalid access of vb2 buffer" 2017-02-28 17:03:43 -08:00
Linux Build Service Account
dbc4dc7807 Merge "msm: camera: Correct the settings for csiphy clock lane" 2017-02-28 17:03:42 -08:00
Linux Build Service Account
30f26be013 Merge "ARM: dts: msm: Add stmVL53L0 device entry" 2017-02-28 17:03:42 -08:00
Linux Build Service Account
e328726a91 Merge "msm: camera: isp: add support for CX iPeak limits management" 2017-02-28 17:03:41 -08:00
Prashanth Bhatta
443b19badd icnss: Trigger recovery only if PDR enabled
To trigger WLAN host initiated WLAN FW recovery, platform driver
needs to have service notifier handle. Service notifier handle is
obtained only when service locator locates the WLAN user PD. If
service locator doesn't locate the WLAN user PD then service
notifier handle can be NULL. Add sanity check to make sure PDR is
enabled in platform driver before triggering PD restart.

Change-Id: I5524060cc1f4bfff7faf7f3736455beb73801f4a
CRs-fixed: 2012995
Signed-off-by: Prashanth Bhatta <bhattap@codeaurora.org>
2017-02-28 14:12:02 -08:00
Sujeev Dias
bde04af52b msm: mhi_rmnet: If failed, do not retry to queue UL buffers
If MHI failed to queue the buffer, do not attempt to re-queue.
Instead wait for transfer completion event and restart
the UL queue.

Change-Id: Id57db52e0eb2e5930ec228a920d109fef941389f
CRs-Fixed: 1055681
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
2017-02-28 10:45:17 -08:00
Sujeev Dias
29b04c0ff5 mhi: rmnet: Add bg worker to allocate memory
On memory stress conditions, host could
fails to allocate memory on atomic context.
Schedule a background worker to allocate
memory in such conditions.

CRs-Fixed: 1037593
Change-Id: Ia48b31622fcb043d31d197fab0a84ab40fc5c0ba
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
2017-02-28 10:38:56 -08:00
Tony Truong
92b1edc793 mhi: rmnet: remove debug message regarding invalid buff
The debug message does not accurately describe the reason
for rmnet to reschedule the request.

CRs-Fixed: 1016968
Change-Id: I49fa6a0dbdd9dec7a36f5705b9e8d27bc7352286
Signed-off-by: Tony Truong <truong@codeaurora.org>
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
2017-02-28 10:38:21 -08:00
Jordan Crouse
6a24f15d53 defconfig: msm: Enable DRM
Enable the DRM KMS/GPU driver for the mediabox configuration.

Change-Id: Ic0dedbadf5d12793c13563059872d2970bea8398
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2017-02-28 09:39:41 -07:00
Jordan Crouse
9073863d35 ARM: dts: msm: Add device tree settings for A540 DRM on msm8998
Enable the various settings to enable A540 DRM/GPU driver on
msm8998.

Change-Id: Ic0dedbadf7d4dbaaa75c24dde64ff13faf1283b9
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2017-02-28 09:39:39 -07:00
Laxminath Kasam
618936473f ASoC: wsa881x: remove retry logic in swr_startup
Avoid retry logic in swr_startup API as it results
in speaker mute on sdm660 external codec.

CRs-Fixed: 2012814
Change-Id: Ic8876fd6e62081253a46e4e896d154043d5170db
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2017-02-28 20:55:55 +05:30
Maya Erez
5f075ec48b wil6210: remove "No Snoop" settings for RX transactions
"No Snoop" for RX transactions was previously set as a WA for a
PCIe HW issue. As the PCIe HW issue is fixed, the WA no longer
required.
Removal of the "No Snoop" bit will allow enabling DMA coherency
when SMMU is enabled.

Change-Id: I2030ea7182316ae18483ffb79d0a1de4d90f2fda
Signed-off-by: Maya Erez <merez@codeaurora.org>
2017-02-28 15:45:38 +02:00
Hardik Kantilal Patel
311352e71f defconfig: sdm630: Disable CONFIG_ICNSS_DEBUG
Disable CONFIG_ICNSS_DEBUG now that solution is stable.

CRs-fixed: 2012235
Change-Id: I42dca2b723c7b3614a6d9c1c5e73ecbd6ae84a4c
Signed-off-by: Hardik Kantilal Patel <hkpatel@codeaurora.org>
2017-02-28 18:52:55 +05:30
Vijayavardhan Vennapusa
6d0d3f2222 USB: composite: Release spinlock before WARN()
if WARN() is called under spinlock, it will lead crash due to
watchdog timeout. Hence fix it by releasing spinlock before calling
WARN(). And also check cdev->config is NULL or not before calling
WARN().

Change-Id: Iebd00932b94164e9f40aa6126a2352437b1141ed
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2017-02-28 03:17:17 -08:00
Kui Wang
6f9253f799 ARM: dts: msm: Upgrade actuator cci master for SDM660 QRD
Update actuator cci master for aux camera sensor of
SDM660 QRD device.

Change-Id: I9426b6cad5ed162f086b434950d2c854a9ba5223
Signed-off-by: Kui Wang <kuiw@codeaurora.org>
2017-02-28 01:45:29 -08:00
Srinivas Ramana
67c98cd8a7 defconfig: msm: Enable ARM64_STRICT_BREAK_BEFORE_MAKE flag
Enable config ARM64_STRICT_BREAK_BEFORE_MAKE to detect
break-before-make violations in set_pte and print a warning.

Change-Id: Idb7f5a7a1e46b6738659931188e143acd31a7ffa
Signed-off-by: Srinivas Ramana <sramana@codeaurora.org>
2017-02-28 14:55:42 +05:30
Shashank Mittal
3f8c010896 coresight-tpdm: fix multiple datasets allocation issue
TPDM driver is allocating memory for TPDM datasets at two places which
leads to a memory leak issue.

Fix this issue by getting rid of one allocation call.

Change-Id: I9ac26cabe09dcbabeafd5a14aa85fc59a966d4dd
Signed-off-by: Saranya Chidura <schidura@codeaurora.org>
2017-02-28 01:15:36 -08:00
Rama Krishna Phani A
4eaa5ae3c4 ARM: dts: msm: Add thermistor support for PM660
Thermal clients will be monitoring thermistors for
temperature mitigations. Add emmc_therm support for PM660.

Change-Id: I71f109a3a99b5d962c7101f348141a4cae921a8d
Signed-off-by: Rama Krishna Phani A <rphani@codeaurora.org>
2017-02-28 13:07:31 +05:30
Linux Build Service Account
59a631bcac Merge "arm64: Disable KASAN in uwwind_frame" 2017-02-27 23:37:28 -08:00
Linux Build Service Account
993b116d8d Merge "msm: kgsl: Add efuse read capabilities for A508 GPU" 2017-02-27 23:37:28 -08:00
Linux Build Service Account
8b8f43a684 Merge "i2c-msm-v2: Enable/Disable clocks and gpios per transfer" 2017-02-27 23:37:27 -08:00
Linux Build Service Account
99383b676b Merge "qseecom: add mutex around qseecom_set_client_mem_param" 2017-02-27 23:37:26 -08:00
Linux Build Service Account
22e7695a57 Merge "msm: mdss: Allocate DMA pipe for pan display path" 2017-02-27 23:37:25 -08:00
Linux Build Service Account
a805bce81d Merge "msm: sde: Add mutex lock for debug buffer access in rotator" 2017-02-27 23:37:24 -08:00
Linux Build Service Account
598d0c01b1 Merge "msm: mdss: add support for Cx iPeak limit management" 2017-02-27 23:37:23 -08:00
Linux Build Service Account
a19f132f6e Merge "Revert "firmware_class: Add an additional path to fw_path list"" 2017-02-27 23:37:22 -08:00
Linux Build Service Account
f3cef9d2d4 Merge "soc: qcom: Notify clients in case qmi connection to service locator fails" 2017-02-27 23:37:21 -08:00
Linux Build Service Account
d26bc0f855 Merge "f_gsi: Make usb ipa wq as freezable workqueue" 2017-02-27 23:37:20 -08:00
Linux Build Service Account
986e0dacea Merge "msm: ipa: increment GSI command timeout" 2017-02-27 23:37:19 -08:00
Linux Build Service Account
c3b7b9dbd6 Merge "msm: kgsl: Add placeholders for KGSL power limit functions" 2017-02-27 23:37:19 -08:00