Commit graph

587911 commits

Author SHA1 Message Date
Subbaraman Narayanamurthy
b9b8b965bf qpnp-haptic: Fix writing incorrect value to EN_CTL1 when disabling haptics
Currently, variable "val" is used for caching the last value
written to EN_CTL1 register and also it is used to read STATUS
register. This causes an incorrect value being written to
EN_CTL1 register when the module is disabled. Fix it.

CRs-Fixed: 2032850
Change-Id: Ib3cbe1b41962e5dff38d9c4d343d8f3f43fc0009
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-04-13 14:36:52 -07:00
Alex Sarraf
14e89235dc input: misc: hbtp_input: Support for Region of Interest/sensors
Add support for sensor and Region of Interest (ROI) events.
Create new ioctl to receive sensor data from userspace.
Create binary sysfs entries to expose data from kernel to
userspace.

Change-Id: Ifa76f08eb293c3da0618c22c07e65976319ea926
Signed-off-by: Alex Sarraf <asarraf@codeaurora.org>
2017-04-13 14:30:49 -07:00
Osvaldo Banuelos
b411d4d59f ARM: dts: msm: update VDD_APC margin adjustments for msm8998v2
Update the open-loop and closed-loop VDD_APC virtual
corner margin adjustments to match the latest characterization
guidelines.

CRs-Fixed: 2006091
Change-Id: Ib7a0657302b4ae76107ba53b21f9bd4b39f104df
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
2017-04-13 11:15:51 -07:00
Linux Build Service Account
15a311d026 Merge "ARM: dts: msm: Update regulator min-voltage for SMPS5A on SDM660/630" 2017-04-13 10:30:11 -07:00
Linux Build Service Account
728981c575 Merge "arm64: defconfig: Add a config option to compile cpu-boost driver" 2017-04-13 10:30:09 -07:00
Mahesh Sivasubramanian
476b11678f drivers: cpuidle: lpm-levels: Log hotplug events
Add debug events for CPU_STARTING and CPU_DYING events when a CPU is
hotplugged. The events will help correlate with the TZ events using the
ARM timers counts for debug.

Change-Id: Ieb6449575b4a95974b787ceea430fc5362c77c29
Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>
2017-04-13 08:57:30 -06:00
Rakesh Pillai
6079be7471 ath10k: Fix crash when SSR is done during packet transfer
If any data traffic is ON, when SSR is triggered there is a crash
since we allowed HTT packets to go through.
Stopping these packets to go through fixes this crash.

Also changing the QMI client ID for the qmi client.

CRs-Fixed: 2033262
Change-Id: I1236ef901fd8943f228497a79f11feaec1c16d8e
Signed-off-by: Rakesh Pillai <pillair@codeaurora.org>
2017-04-13 17:22:36 +05:30
Tirupathi Reddy
4d569b976c ARM: dts: msm: Enable APC0/1 CPR closed-loop operation for sdm630
Configure APC0/1 CPR instances to operate in closed-loop operation
to maintain an optimal voltage set point on the APC0/1 voltage rails.

Also, add static open-loop and closed-loop voltage margins as per
the voltage characterization results.

CRs-Fixed: 2032723
Change-Id: I1a01d78252dc71ca7def251e99581cad3714cdd1
Signed-off-by: Tirupathi Reddy <tirupath@codeaurora.org>
2017-04-13 17:18:55 +05:30
Hamad Kadmany
93a521dc52 wil6210: Improve AP stop handling
Set resetting flag early when stopping AP to avoid
disconnect events as a result of disconnect command
sent during AP stop procedure.

Change-Id: I59647d5775e68705b361b1aaacbc6a6088e9c813
Signed-off-by: Hamad Kadmany <hkadmany@codeaurora.org>
2017-04-13 14:38:45 +03:00
Hamad Kadmany
abd1cc456b wil6210: Fix protection against connections during reset
Existing code that ignores connection events during
reset flow will never take effect since it locks the
same mutex taken by the reset flow.

In addition, in case of unsolicited disconnect events ignore
those as well since device is about to get reset.

Change-Id: I132040822b8c1b3d1d92965d578ed5bee0b3d1cf
Signed-off-by: Hamad Kadmany <hkadmany@codeaurora.org>
2017-04-13 14:38:20 +03:00
Anirudh Ghayal
4d785ef60b ARM: dts: msm: Update regulator min-voltage for SMPS5A on SDM660/630
The minimum supported voltage on the SMPS5A is 1.224V, update
it accordingly.

Change-Id: Ib973febdf5b719836f5fb54e6cd6e797e7101e3e
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2017-04-13 15:28:26 +05:30
Linux Build Service Account
16c1669252 Merge "arm: make default iova alignment as 2mb" 2017-04-13 02:19:13 -07:00
Linux Build Service Account
ea8b530b5e Merge "USB: gadget: ffs: Fix USBCV compliance failure due to adbd" 2017-04-13 02:19:11 -07:00
Linux Build Service Account
9689415e9a Merge "msm: mdss: configure SMART_PANEL_ALIGN_MODE for split display" 2017-04-13 02:19:10 -07:00
Linux Build Service Account
6b7fb076d4 Merge "msm: wlan: AR TX power regulatory updates" 2017-04-13 02:19:09 -07:00
Linux Build Service Account
d604805e4d Merge "drm/msm/sde: remove redundant CRTC event caching" 2017-04-13 02:19:07 -07:00
Linux Build Service Account
2b0de03719 Merge "apq8098: rename apq8998 to apq8098" 2017-04-13 02:19:06 -07:00
Linux Build Service Account
1ac435a768 Merge "power: qpnp-fg-gen3: Add support to configure base termination current" 2017-04-13 02:19:04 -07:00
Linux Build Service Account
b290a7a8e7 Merge "ath10k: recal the txpower when removing interface" 2017-04-13 02:19:02 -07:00
Linux Build Service Account
4d121122fe Merge "soc: qcom: socinfo: Protect current_image using semaphore lock." 2017-04-13 02:19:00 -07:00
Linux Build Service Account
27925f25a9 Merge "ARM: dts: msm: add SMB1351 charger node for SDM630 MTP" 2017-04-13 02:18:59 -07:00
Linux Build Service Account
0adf9d4050 Merge "Merge branch 'android-4.4@8e53f7c' into branch 'msm-4.4'" 2017-04-13 02:18:57 -07:00
Charan Teja Reddy
9c490fa73d arm: make default iova alignment as 2mb
To get the 2MB aligned IOVA section mappings, set
ARM_DMA_IOMMU_ALIGNMENT to 9.

Change-Id: I3254c39e4864c32d6f25a4d416b1b7aec6756ecd
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
2017-04-12 22:28:14 -07:00
Rohit Gupta
b596bcc918 arm64: defconfig: Add a config option to compile cpu-boost driver
CONFIG_CPU_BOOST config option is only enabled for
msmcortex-perf_defconfig. Enable it for msmcortex_defconfig too.

Change-Id: I31d42aa4ac3a78e6bc3c52aa0ba7cebd8c5a7893
Signed-off-by: Rohit Gupta <rohgup@codeaurora.org>
2017-04-12 19:11:41 -07:00
Karthikeyan Mani
d1e077de03 ASoC: wcd-spi: Initialize variables before use
Initialize variable before use to avoid
invalid memory access.

CRs-fixed: 2004067
Change-Id: I9f7dd1e87d323ff300060c3d838342f55e6711e8
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2017-04-12 17:26:53 -07:00
Karthikeyan Mani
13feabf360 ASoC: wcd9335: Initialize variables before use
Initialize variable before use to avoid
invalid memory access.

CRs-fixed: 2004067
Change-Id: I719bb13acb1ae8a9654604d251f728d98cffe936
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2017-04-12 17:26:36 -07:00
Karthikeyan Mani
075b17a1d2 ASoC: wcd_cpe_core: Initialize variables before use
Initialize variable before use to avoid
invalid memory access.

CRs-fixed: 2004067
Change-Id: I882cdf78709d6dcc2dcd1fc7f903492aa2581138
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2017-04-12 17:26:25 -07:00
Abhinav Kumar
fe965aa6bc drm/msm/sde: remove redundant CRTC event caching
Currently both sde_crtc_atomic_begin() and
sde_crtc_atomic_flush() add the CRTC state event
to the cached sde_crtc->event.

This has a potential NULL ptr issue in the
case of vblank event firing in between sde_crtc_atomic_begin() and
sde_crtc_atomic_flush() because the upstream DRM vblank API
send_vblank_event() doesn't consider the case when the VBLANK
interrupt could have already freed any pending vblank events.

Remove the caching from sde_crtc_atomic_begin() to avoid this
condition.

Also make sure that a page_flip event was indeed submitted before
signaling the complete_flip() by setting a PENDING_FLIP flag right
after HW flush.

Change-Id: Ib201d2851e57bf22ec1f00814fc2e4dd2f35bfa1
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
2017-04-12 16:39:08 -07:00
Linux Build Service Account
4a4051e573 Merge "diag: Place proper NULL pointer checks" 2017-04-12 16:10:20 -07:00
Linux Build Service Account
d96dc0727a Merge "wil6210: add sysfs file for enable/disable fst link loss" 2017-04-12 16:10:19 -07:00
Linux Build Service Account
fd64062315 Merge "ASoC: msm: qdspv2: add mutex to prevent access same memory simultaneously" 2017-04-12 16:10:18 -07:00
Linux Build Service Account
a4d598f9ee Merge "ASoC: msm: qdsp6v2: support TDM to AUX_PCM loopback for BT HFP uplink" 2017-04-12 16:10:17 -07:00
Linux Build Service Account
3ce5511759 Merge "ASoC: msm: support up to 8 channel capture on MM1" 2017-04-12 16:10:17 -07:00
Linux Build Service Account
d11deab41b Merge "ASoC: msm: defer the machine driver probing if ADSP is down" 2017-04-12 16:10:16 -07:00
Linux Build Service Account
7cd2991c8e Merge "ASoC: msm: add support for TERT_TDM_RX_4 BE" 2017-04-12 16:10:14 -07:00
Linux Build Service Account
ae9e7ab9f2 Merge "ASoC: codecs: Fix mbhc data NULL pointer dereferencing" 2017-04-12 16:10:13 -07:00
Linux Build Service Account
4c9126a7a2 Merge "dma-mapping: add the missing functions to dma_map_ops" 2017-04-12 16:10:12 -07:00
Linux Build Service Account
e56d3280a5 Merge "dma-mapping: add i/o coherency support for 32bit" 2017-04-12 16:10:12 -07:00
Linux Build Service Account
840c2fd1fb Merge "drm/msm: Re-trigger preemption upon command completion" 2017-04-12 16:10:11 -07:00
Linux Build Service Account
a694bbf616 Merge "msm: vidc: Update QP control values" 2017-04-12 16:10:10 -07:00
Linux Build Service Account
0a2d2c47a8 Merge "ARM: dts: msm: Add RRADC die-temp channel for PM660 FG" 2017-04-12 16:10:09 -07:00
Linux Build Service Account
f6b72aa023 Merge "drm/msm: add HDMI debugfs support to show edid modes" 2017-04-12 16:10:05 -07:00
Linux Build Service Account
5ccdda59a4 Merge "drm/msm: Add DRM EDID parser for external displays" 2017-04-12 16:10:05 -07:00
Linux Build Service Account
9ffdd89420 Merge "drivers/video: Add new aspect ratios for HDMI 2.0" 2017-04-12 16:10:04 -07:00
Satya Durga Srinivasu Prabhala
bfd0d96f4b soc: qcom: remove debugfs interface from ssr, service locator & notifier
As debugfs interface is intended to test the respective framework, remove
from the driver to make sure it won't be available by default.

CRs-Fixed: 2025661
Change-Id: I6af9a8333c8028611f889cc2f9b0beb37ef12c9b
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
2017-04-12 12:16:37 -07:00
bings
dbb543631c msm: wlan: AR TX power regulatory updates
Regulatory updates for AR TX power

CRs-Fixed: 2031894
Change-Id: I8b198d009b1e008be252698128285b9c218100ba
Signed-off-by: bings <bings@codeaurora.org>
2017-04-13 00:51:44 +08:00
Swetha Chikkaboraiah
2fb8a14c6d soc: qcom: socinfo: Protect current_image using semaphore lock.
Variable current_image can be modified by multiple threads.
This change will protect current_image getting modified
by multiple threads.

Change-Id: I33df463311b24f73b1ba124d388731a72bd13263
CRs-Fixed: 2016485
Signed-off-by: Swetha Chikkaboraiah <schikk@codeaurora.org>
2017-04-12 04:56:13 -07:00
Manoj Prabhu B
e6707683f3 diag: Place proper NULL pointer checks
This patch checks the buffer for NULL
pointer to prevent undefined access.

CRs-Fixed: 2032374
Change-Id: I1a1c4ca24e5c3d538ea93685de304dd186968308
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
2017-04-12 03:27:04 -07:00
Ajay Agarwal
61add90b90 usb: gadget: ffs: Fix runtime PM usage count for multiple set_alt
In some scenarios such as USBCV tests, multiple set_alt
could be issued with same interface and alternate
setting. In that case, EPs are disabled and enabled,
we get the usage count but do not put it. This causes
a mismatch and DWC3 LPM does not work anymore. Fix
this issue by moving put_usage_count to ffs_func_set_alt.

Change-Id: Ic85db09820d2c18b67bd463fe27e2c1ef41e8c74
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2017-04-12 15:43:42 +05:30
Ashay Jaiswal
36c0827bfa ARM: dts: msm: add SMB1351 charger node for SDM630 MTP
Add SMB1351 charger node in parallel charger configuration
for SDM630.

Change-Id: Icf7e307971f5d34b28d8363c055d9a8c65adffcd
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
2017-04-12 15:10:36 +05:30