OSDN Git Service

sagit-ice-cold/kernel_xiaomi_msm8998.git
7 years agoMerge "usb: phy: qusb: Support specifying vdda33 levels from device tree"
Linux Build Service Account [Tue, 16 May 2017 23:08:12 +0000 (16:08 -0700)]
Merge "usb: phy: qusb: Support specifying vdda33 levels from device tree"

7 years agoMerge "ARM: dts: msm: Enable support for guest virtual platform"
Linux Build Service Account [Tue, 16 May 2017 23:08:11 +0000 (16:08 -0700)]
Merge "ARM: dts: msm: Enable support for guest virtual platform"

7 years agoMerge "ARM: dts: msm: always enable mdss_mdp node for msm8998 based MOB3 platform"
Linux Build Service Account [Tue, 16 May 2017 23:08:08 +0000 (16:08 -0700)]
Merge "ARM: dts: msm: always enable mdss_mdp node for msm8998 based MOB3 platform"

7 years agoMerge "msm: msm_bus: Add mutex to protect node_list"
Linux Build Service Account [Tue, 16 May 2017 23:08:07 +0000 (16:08 -0700)]
Merge "msm: msm_bus: Add mutex to protect node_list"

7 years agoMerge "msm_11ad: add support to PCIe D3hot in system suspend"
Linux Build Service Account [Tue, 16 May 2017 23:08:06 +0000 (16:08 -0700)]
Merge "msm_11ad: add support to PCIe D3hot in system suspend"

7 years agousb: phy: qusb: Support specifying vdda33 levels from device tree
Jack Pham [Fri, 21 Apr 2017 01:52:28 +0000 (18:52 -0700)]
usb: phy: qusb: Support specifying vdda33 levels from device tree

The specific voltage levels for the vdda33 regulator may vary
depending on the target. Add an optional device tree property to
allow specifying a 3-tuple of voltages for minimum, operating
and maximum voltage levels. The minimum level is used when simply
powering on, whereas the operating level is used when initializing
the PHY.

Change-Id: Ia5d301efdb6964434a01264e7aa19421a41e98ca
Signed-off-by: Jack Pham <jackp@codeaurora.org>
7 years agoARM: dts: msm: Enable support for guest virtual platform
Atul Raut [Sat, 21 Jan 2017 01:59:57 +0000 (17:59 -0800)]
ARM: dts: msm: Enable support for guest virtual platform

Add device tree to support guest virtual machine on
msm kernel.

CRs-Fixed: 2000645
Change-Id: I4ca06c28c349dd533057b24fe6794a7c11a84cc6
Signed-off-by: Atul Raut <araut@codeaurora.org>
7 years agoMerge "drm/msm: remove mdp node entry"
Linux Build Service Account [Tue, 16 May 2017 13:49:50 +0000 (06:49 -0700)]
Merge "drm/msm: remove mdp node entry"

7 years agoMerge "ath10k: Define structure for copy engine interrupt map for SNOC"
Linux Build Service Account [Tue, 16 May 2017 13:49:49 +0000 (06:49 -0700)]
Merge "ath10k: Define structure for copy engine interrupt map for SNOC"

7 years agoMerge "ARM: dts: msm: Update high-speed PHY parameters for QRD SDM660"
Linux Build Service Account [Tue, 16 May 2017 13:49:48 +0000 (06:49 -0700)]
Merge "ARM: dts: msm: Update high-speed PHY parameters for QRD SDM660"

7 years agoMerge "ARM: dts: msm: Update high-speed PHY parameters for QRD SDM630"
Linux Build Service Account [Tue, 16 May 2017 13:49:47 +0000 (06:49 -0700)]
Merge "ARM: dts: msm: Update high-speed PHY parameters for QRD SDM630"

7 years agoMerge "soc: qcom: Fix checks for QMI response values"
Linux Build Service Account [Tue, 16 May 2017 13:49:46 +0000 (06:49 -0700)]
Merge "soc: qcom: Fix checks for QMI response values"

7 years agoMerge "soc: qcom: fix to avoid memory allocation failures"
Linux Build Service Account [Tue, 16 May 2017 13:49:45 +0000 (06:49 -0700)]
Merge "soc: qcom: fix to avoid memory allocation failures"

7 years agoMerge "ASoC: msm: add support for new ADSP event APIs"
Linux Build Service Account [Tue, 16 May 2017 13:49:44 +0000 (06:49 -0700)]
Merge "ASoC: msm: add support for new ADSP event APIs"

7 years agoMerge "defconfig: arm64: Enable UFSHCD_CMD_LOGGING flag"
Linux Build Service Account [Tue, 16 May 2017 13:49:42 +0000 (06:49 -0700)]
Merge "defconfig: arm64: Enable UFSHCD_CMD_LOGGING flag"

7 years agoMerge "ASoC: msm: remove unused msm-compr-q6-v2"
Linux Build Service Account [Tue, 16 May 2017 13:49:41 +0000 (06:49 -0700)]
Merge "ASoC: msm: remove unused msm-compr-q6-v2"

7 years agoMerge "ARM64: Make KERNEL_TEXT_RDONLY depend on !DEBUG_RODATA"
Linux Build Service Account [Tue, 16 May 2017 13:49:40 +0000 (06:49 -0700)]
Merge "ARM64: Make KERNEL_TEXT_RDONLY depend on !DEBUG_RODATA"

7 years agoMerge "scsi: ufs-qcom: remove broken hci version quirk"
Linux Build Service Account [Tue, 16 May 2017 13:49:37 +0000 (06:49 -0700)]
Merge "scsi: ufs-qcom: remove broken hci version quirk"

7 years agoMerge "msm: mdss: fix display port crash caused by hpd_irq attention event"
Linux Build Service Account [Tue, 16 May 2017 13:49:36 +0000 (06:49 -0700)]
Merge "msm: mdss: fix display port crash caused by hpd_irq attention event"

7 years agoMerge "drm/msm: drop return from gpu->submit()"
Linux Build Service Account [Tue, 16 May 2017 13:49:35 +0000 (06:49 -0700)]
Merge "drm/msm: drop return from gpu->submit()"

7 years agoMerge "tracing: do not leak kernel addresses"
Linux Build Service Account [Tue, 16 May 2017 13:49:33 +0000 (06:49 -0700)]
Merge "tracing: do not leak kernel addresses"

7 years agoMerge "Prevent heap overflow in uvc driver"
Linux Build Service Account [Tue, 16 May 2017 13:49:32 +0000 (06:49 -0700)]
Merge "Prevent heap overflow in uvc driver"

7 years agoMerge "msm: kgsl: Offload mementry destroy work to separate thread"
Linux Build Service Account [Tue, 16 May 2017 13:49:30 +0000 (06:49 -0700)]
Merge "msm: kgsl: Offload mementry destroy work to separate thread"

7 years agoMerge "spcom: avoid user commands via /dev/spcom"
Linux Build Service Account [Tue, 16 May 2017 13:49:29 +0000 (06:49 -0700)]
Merge "spcom: avoid user commands via /dev/spcom"

7 years agoMerge "timer: Clear deferrable_pending while handling timer softirq"
Linux Build Service Account [Tue, 16 May 2017 13:49:28 +0000 (06:49 -0700)]
Merge "timer: Clear deferrable_pending while handling timer softirq"

7 years agoMerge "soc: qcom: rpm_master_stat: Fix buffer overflow"
Linux Build Service Account [Tue, 16 May 2017 13:49:27 +0000 (06:49 -0700)]
Merge "soc: qcom: rpm_master_stat: Fix buffer overflow"

7 years agoMerge "diag: Add proper synchronization checks to msg mask table"
Linux Build Service Account [Tue, 16 May 2017 13:49:26 +0000 (06:49 -0700)]
Merge "diag: Add proper synchronization checks to msg mask table"

7 years agoMerge "msm: ADSPRPC: verify and initialize some variables"
Linux Build Service Account [Tue, 16 May 2017 13:49:25 +0000 (06:49 -0700)]
Merge "msm: ADSPRPC: verify and initialize some variables"

7 years agoMerge "ASoC: wcd: Depend on right config option"
Linux Build Service Account [Tue, 16 May 2017 13:49:24 +0000 (06:49 -0700)]
Merge "ASoC: wcd: Depend on right config option"

7 years agoMerge "memshare: Update the free memory count after allocation"
Linux Build Service Account [Tue, 16 May 2017 13:49:24 +0000 (06:49 -0700)]
Merge "memshare: Update the free memory count after allocation"

7 years agoMerge "PM/devfreq: bw_hwmon: add mutex lock in polling interval case"
Linux Build Service Account [Tue, 16 May 2017 13:49:22 +0000 (06:49 -0700)]
Merge "PM/devfreq: bw_hwmon: add mutex lock in polling interval case"

7 years agoMerge "qseecom: add bus scaling support for GP operations"
Linux Build Service Account [Tue, 16 May 2017 13:49:21 +0000 (06:49 -0700)]
Merge "qseecom: add bus scaling support for GP operations"

7 years agoMerge "ARM: dts: msm: move tdm common prop to parent node"
Linux Build Service Account [Tue, 16 May 2017 13:49:19 +0000 (06:49 -0700)]
Merge "ARM: dts: msm: move tdm common prop to parent node"

7 years agoMerge "ASoC: msm: qdsp6v2: Add TDM master slave select setting"
Linux Build Service Account [Tue, 16 May 2017 13:49:18 +0000 (06:49 -0700)]
Merge "ASoC: msm: qdsp6v2: Add TDM master slave select setting"

7 years agoARM: dts: msm: always enable mdss_mdp node for msm8998 based MOB3 platform
Narender Ankam [Mon, 1 May 2017 12:37:57 +0000 (18:07 +0530)]
ARM: dts: msm: always enable mdss_mdp node for msm8998 based MOB3 platform

Duplicate probing of mdss_mdp device node is now handled
within SDE driver.

Change-Id: I3e4bb5c73c8d43e6fe07ff791ea3815636e50a55
Signed-off-by: Narender Ankam <nankam@codeaurora.org>
7 years agomsm: msm_bus: Add mutex to protect node_list
David Dai [Wed, 26 Apr 2017 21:52:24 +0000 (14:52 -0700)]
msm: msm_bus: Add mutex to protect node_list

Static variable node_list list need to be protected with a mutex
to prevent race conditions and use after free cases.

Change-Id: I4790b06712b8a8b401f43418cfcc53b415fb0019
Signed-off-by: David Dai <daidavid1@codeaurora.org>
Signed-off-by: Odelu Kukatla <okukatla@codeaurora.org>
7 years agoARM: dts: msm: Update high-speed PHY parameters for QRD SDM660
Ziqi Chen [Mon, 27 Mar 2017 02:55:00 +0000 (10:55 +0800)]
ARM: dts: msm: Update high-speed PHY parameters for QRD SDM660

QRD SDM660 failed on high-speed eye diagram test. Updated
these parameters based on tuning result to pass compliance test.

Change-Id: Ice00698872be4c39c2184dbd5bc2d99af7641b02
Signed-off-by: Ziqi Chen <ziqic@codeaurora.org>
7 years agoARM: dts: msm: Update high-speed PHY parameters for QRD SDM630
Ziqi Chen [Mon, 27 Mar 2017 04:36:59 +0000 (12:36 +0800)]
ARM: dts: msm: Update high-speed PHY parameters for QRD SDM630

QRD SDM630 failed on high-speed eye diagram test. Update these
parameters based on tuning result to pass compliance test.

Change-Id: I34bb4d7808448ba687bdd9495e1573cb9eac6098
Signed-off-by: Ziqi Chen <ziqic@codeaurora.org>
7 years agoath10k: Define structure for copy engine interrupt map for SNOC
Sarada Prasanna Garnayak [Thu, 11 May 2017 15:19:52 +0000 (20:49 +0530)]
ath10k: Define structure for copy engine interrupt map for SNOC

The WLAN driver request and free the copy engine interrupt
according to the WLAN host target communication and protocol
in different WLAN context and subsystem state. The ath10k snoc
free/request all copy engine interrupt line during wlan subsystem
recovery due to firmware crash or hardware interface down etc.

To avoid the kernel warning and fault due to redundant copy engine
interrupt request/free in different wlan state. Define structure
for copy engine to maintain the stat of copy engine interrupt list
request/free.

Change-Id: I5cf3de4feecfb3a93a930c4939dc0a80bfc14e55
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
7 years agoASoC: msm: remove unused msm-compr-q6-v2
Xiaojun Sang [Thu, 27 Apr 2017 06:44:25 +0000 (14:44 +0800)]
ASoC: msm: remove unused msm-compr-q6-v2

msm-compr-q6-v2.c and msm-compr-q6-v2.h are no longer used.

CRs-Fixed: 2022953
Change-Id: I856d90a212a3e123a2c8b80092aff003f7c608c7
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
7 years agodefconfig: arm64: Enable UFSHCD_CMD_LOGGING flag
Can Guo [Mon, 1 May 2017 05:38:30 +0000 (13:38 +0800)]
defconfig: arm64: Enable UFSHCD_CMD_LOGGING flag

Enabling SCSI_UFSHCD_CMD_LOGGING flag in defconfig
file. With this feature eanbled, ufs commands send
through ufshcd shall be logged.

Change-Id: Ibc4d1f39221fbcdc926e030d1df08a9fea31d24c
Signed-off-by: Can Guo <cang@codeaurora.org>
7 years agosoc: qcom: Fix checks for QMI response values
Puja Gupta [Mon, 15 May 2017 18:15:07 +0000 (11:15 -0700)]
soc: qcom: Fix checks for QMI response values

The return values from QMI could be compared directly and was
incorrectly interpreted in service locator and notifier.

Also initialize structure in service locator so as to not have garbage
values in them.

Change-Id: I7f8f27857706e9508b64289d9263c79494c17a8d
Signed-off-by: Puja Gupta <pujag@codeaurora.org>
7 years agotracing: do not leak kernel addresses
Nick Desaulniers [Fri, 3 Mar 2017 23:40:12 +0000 (15:40 -0800)]
tracing: do not leak kernel addresses

This likely breaks tracing tools like trace-cmd.  It logs in the same
format but now addresses are all 0x0.

Bug: 34277115
Change-Id: Ifb0d4d2a184bf0d95726de05b1acee0287a375d9
Git-repo: https://android.googlesource.com/kernel/msm
Git-commit: 9ad8f2cc1bb73a3e2255dff4ee9c45c909869225
Signed-off-by: Dennis Cagle <d-cagle@codeaurora.org>
7 years agoPrevent heap overflow in uvc driver
Robb Glasser [Tue, 14 Feb 2017 21:25:46 +0000 (13:25 -0800)]
Prevent heap overflow in uvc driver

The size of uvc_control_mapping is user controlled leading to a
potential heap overflow in the uvc driver. This adds a check to verify
the user provided size fits within the bounds of the defined buffer
size.

Bug: 33300353
Change-Id: If29c1b396633b6137966a12e38f6fd1841b045bd
Signed-off-by: Robb Glasser <rglasser@google.com>
Git-repo: https://android.googlesource.com/kernel/msm
Git-commit: 8bc3ec72a02052187397d0de1a7b8bbe7340451c
Signed-off-by: Dennis Cagle <d-cagle@codeaurora.org>
7 years agomsm_11ad: add support to PCIe D3hot in system suspend
Maya Erez [Sun, 14 May 2017 13:40:19 +0000 (16:40 +0300)]
msm_11ad: add support to PCIe D3hot in system suspend

Transition to D3 hot in system suspend allows the wil6210
device to preserve the active connections in system suspend.

Change-Id: I4c24551f91ee7e59d4bfee02b0911c31ae0a05b1
Signed-off-by: Maya Erez <merez@codeaurora.org>
7 years agowil6210: add support for PCIe D3hot in system suspend
Maya Erez [Mon, 15 May 2017 13:57:46 +0000 (16:57 +0300)]
wil6210: add support for PCIe D3hot in system suspend

In order to preserve the connection in suspend/resume flow,
wil6210 host allows going to PCIe D3hot state in suspend,
instead of performing a full wil6210 device reset. This
requires the platform ability to initiate wakeup in case of
RX data. To check that, a new platform API is added.
In addition, add cfg80211 suspend/resume callbacks
implementation.

Change-Id: I3846eaaa8d6e9ecbe5adbb0c04c7574865d5af5e
Signed-off-by: Maya Erez <merez@codeaurora.org>
7 years agoMerge "ARM: dts: msm: Update charging ESR timer value to 96 for PM660 FG"
Linux Build Service Account [Mon, 15 May 2017 10:51:25 +0000 (03:51 -0700)]
Merge "ARM: dts: msm: Update charging ESR timer value to 96 for PM660 FG"

7 years agoMerge "scsi: ufs: Initialize cmd_id and check lrbp->cmd NULL"
Linux Build Service Account [Mon, 15 May 2017 10:51:25 +0000 (03:51 -0700)]
Merge "scsi: ufs: Initialize cmd_id and check lrbp->cmd NULL"

7 years agoMerge "mmc: mmc: Fix mmc_partial_init for HS400 mode"
Linux Build Service Account [Mon, 15 May 2017 10:51:23 +0000 (03:51 -0700)]
Merge "mmc: mmc: Fix mmc_partial_init for HS400 mode"

7 years agoMerge "defconfig: msm: remove dcc config for perf on sdm660"
Linux Build Service Account [Mon, 15 May 2017 10:51:23 +0000 (03:51 -0700)]
Merge "defconfig: msm: remove dcc config for perf on sdm660"

7 years agoMerge "sound: usb: Add default branches for BADD 3.0 devices"
Linux Build Service Account [Mon, 15 May 2017 10:51:22 +0000 (03:51 -0700)]
Merge "sound: usb: Add default branches for BADD 3.0 devices"

7 years agoMerge "media: dvb-core: Fix coding errors in broadcast drivers"
Linux Build Service Account [Mon, 15 May 2017 10:51:21 +0000 (03:51 -0700)]
Merge "media: dvb-core: Fix coding errors in broadcast drivers"

7 years agoMerge "defconfig: msmcortex: Cleanup"
Linux Build Service Account [Mon, 15 May 2017 10:51:20 +0000 (03:51 -0700)]
Merge "defconfig: msmcortex: Cleanup"

7 years agoMerge "qpnp-smb2: Add software based glitch filter for OTG detection"
Linux Build Service Account [Mon, 15 May 2017 10:51:19 +0000 (03:51 -0700)]
Merge "qpnp-smb2: Add software based glitch filter for OTG detection"

7 years agoMerge "dma-mapping: Always remap on dma buffer free"
Linux Build Service Account [Mon, 15 May 2017 10:51:18 +0000 (03:51 -0700)]
Merge "dma-mapping: Always remap on dma buffer free"

7 years agoMerge "ARM: dts: msm: Update the virtual corner for SDM630"
Linux Build Service Account [Mon, 15 May 2017 10:51:18 +0000 (03:51 -0700)]
Merge "ARM: dts: msm: Update the virtual corner for SDM630"

7 years agoMerge "clk: Move vdd voting before set rate and parent"
Linux Build Service Account [Mon, 15 May 2017 10:51:17 +0000 (03:51 -0700)]
Merge "clk: Move vdd voting before set rate and parent"

7 years agoMerge "usb: gadget: f_cdev: Increase number of driver instances to 3"
Linux Build Service Account [Mon, 15 May 2017 10:51:16 +0000 (03:51 -0700)]
Merge "usb: gadget: f_cdev: Increase number of driver instances to 3"

7 years agoMerge "msm: camera: isp: Fix excessive logging in w+t"
Linux Build Service Account [Mon, 15 May 2017 10:51:15 +0000 (03:51 -0700)]
Merge "msm: camera: isp: Fix excessive logging in w+t"

7 years agospcom: avoid user commands via /dev/spcom
Amir Samuelov [Mon, 15 May 2017 07:52:11 +0000 (10:52 +0300)]
spcom: avoid user commands via /dev/spcom

The pseudo-file char-device-nodes /dev/spcom and /dev/sp_ssr are not
associated with a logical channel for data transfer with the Secure
Processor (SP).
Avoid sending user command by file write() over those device nodes.
The command "create channel" should be done over /dev/sp_kernel rather
than over /dev/spcom.
Verify that glink pass valid channel pointer to spcom callbacks.
Use size_t for channel "actual_rx_size" parameter that is provided by
glink to spcom callback.
Remove "fake SSR" command, since real SSR is supported by SP.

Change-Id: Id9113389d94ab4aed01d3ac1e370c4e8f3c8965b
Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
7 years agotimer: Clear deferrable_pending while handling timer softirq
Neeraj Upadhyay [Wed, 3 May 2017 10:35:48 +0000 (16:05 +0530)]
timer: Clear deferrable_pending while handling timer softirq

Clear deferrable_pending everytime timer softirq is run.
This handles a potential race condition, where one CPU
handles all deferrable timers, before the other CPU gets
a change to run timer softirq. Due to the deferrable_pending
not getting cleared, subsequently, CPUs do not raise
the softirq for handling expired deferrable timers,
in nohz idle enter path.

Change-Id: Ie5fd78f9b27e7553ba43101b86ad939c289827e0
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
7 years agosoc: qcom: rpm_master_stat: Fix buffer overflow
Maulik Shah [Mon, 15 May 2017 05:22:14 +0000 (10:52 +0530)]
soc: qcom: rpm_master_stat: Fix buffer overflow

Buffer overflow can happen when finding next set bit
due to type casting of uint32_t to unsigned long.

Fix this to correctly print number of active cores in
rpm_master_stat.

Change-Id: Ibeacc5ac66535e373965d8f8e4919829367cc257
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
7 years agoARM: dts: msm: Update charging ESR timer value to 96 for PM660 FG
Anirudh Ghayal [Mon, 15 May 2017 02:52:32 +0000 (08:22 +0530)]
ARM: dts: msm: Update charging ESR timer value to 96 for PM660 FG

Use the same FG ESR timer value (96) for charging and
discharging. This is to avoid the frequent periodic spur
seen in the RF performance with charger connected.

CRs-Fixed: 2046553
Change-Id: I9d1ad61f75f553bf527906715699817236f44b01
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
7 years agodrm/msm: drop return from gpu->submit()
Rob Clark [Tue, 3 May 2016 13:46:49 +0000 (09:46 -0400)]
drm/msm: drop return from gpu->submit()

At this point, there is nothing left to fail.  And submit already has a
fence assigned and is added to the submit_list.  Any problems from here
on out are asynchronous (ie. hangcheck/recovery).

Change-Id: Ib6b6bf00099137972649c97cc6cd8c4fe25ce7c3
Signed-off-by: Rob Clark <robdclark@gmail.com>
Git-commit: 1193c3bcb581807d58dd7df90528ec744af387a9
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
[smasetty@codeaurora.org: fixed merge conflict issues; made corresponding
changes to A5XX submit function.]
Signed-off-by: Sharat Masetty <smasetty@codeaurora.org>
7 years agomedia: dvb-core: Fix coding errors in broadcast drivers
Udaya Bhaskara Reddy Mallavarapu [Sat, 6 May 2017 13:47:16 +0000 (19:17 +0530)]
media: dvb-core: Fix coding errors in broadcast drivers

Added Check to verify TSPP channel input source is valid.
Initialize return variables to return correct values in fail conditions.
Move deferencing of input pointer arguments after NULL checking.

CR's-Fixed: 2043689
Change-Id: I7febdb0e0f499846cfcf8836ea35c8547a5074fb
Signed-off-by: Udaya Bhaskara Reddy Mallavarapu <udaym@codeaurora.org>
7 years agoMerge "drm/msm: make msm_drm.h uapi header safe for C++"
Linux Build Service Account [Sat, 13 May 2017 23:25:55 +0000 (16:25 -0700)]
Merge "drm/msm: make msm_drm.h uapi header safe for C++"

7 years agoARM64: Make KERNEL_TEXT_RDONLY depend on !DEBUG_RODATA
Stephen Boyd [Fri, 12 May 2017 15:47:47 +0000 (08:47 -0700)]
ARM64: Make KERNEL_TEXT_RDONLY depend on !DEBUG_RODATA

KERNEL_TEXT_RDONLY is similar to DEBUG_RODATA, but it relies on
4k pages to be made, whereas DEBUG_RODATA can work with or
without 4k pages. Let's move the depends on statement from
FORCE_PAGES to KERNEL_TEXT_RDONLY to accurately reflect the real
dependency here. This fixes a warning where we have FORCE_PAGES
enabled but DEBUG_RODATA is also enabled at the same time because
the latter is "default y" now and the depends on for FORCE_PAGES
can't be satisfied. In fact, it's OK for FORCE_PAGES to be
enabled at the same time as DEBUG_RODATA, it's really there to
prevent KERNEL_TEXT_RDONLY being enabled at the same time as
DEBUG_RODATA. Move the depends on to make things clearer.

Change-Id: Ie73b768ed4540cdb4d752a9b5f1a049bf644bc7e
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
7 years agodefconfig: msmcortex: Cleanup
Olav Haugan [Wed, 10 May 2017 23:26:38 +0000 (16:26 -0700)]
defconfig: msmcortex: Cleanup

Sync defconfig with make menuconfig output.

Change-Id: Ieefef23fe14676007580c524268ef2a228d38059
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
7 years agoASoC: wcd: Depend on right config option
Stephen Boyd [Thu, 11 May 2017 21:44:43 +0000 (14:44 -0700)]
ASoC: wcd: Depend on right config option

Kconfig doesn't have the CONFIG_ part of the option, so don't use
it here. This fixes a kconfig warning about missing a dependency
for "CONFIG_SPI" which doesn't exist because it's supposed to be
"SPI".

Change-Id: Ie449ff250dd87b0a445d34ee079082c6e91f147c
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
7 years agoqpnp-smb2: Add software based glitch filter for OTG detection
Ashay Jaiswal [Wed, 3 May 2017 09:40:25 +0000 (15:10 +0530)]
qpnp-smb2: Add software based glitch filter for OTG detection

When the USB_ID line is pulled low for a very short time there is a
possibility that the SW misses rising edge(removal) event. This may
lead to the state where charger is stuck in the boost-mode forever.

Fix this my adding a SW based glitch logic which checks for the
USB_ID after a SW debounce time and then notifies its presence/removal to
the USB driver.

CRs-Fixed: 2044958
Change-Id: I31974f7d68b435bbef329278cedbd726ada02e3f
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
7 years agodefconfig: msm: remove dcc config for perf on sdm660
Saranya Chidura [Fri, 12 May 2017 09:55:10 +0000 (15:25 +0530)]
defconfig: msm: remove dcc config for perf on sdm660

remove the DCC_CONFIG option in perf defconfig for SDM660
target.

Change-Id: Id1b019a5eb1c6a71d4b5e6e854e642411714a900
Signed-off-by: Saranya Chidura <schidura@codeaurora.org>
7 years agommc: mmc: Fix mmc_partial_init for HS400 mode
Ritesh Harjani [Mon, 20 Feb 2017 08:20:58 +0000 (13:50 +0530)]
mmc: mmc: Fix mmc_partial_init for HS400 mode

In case of emmc5.0 cards where HS400 mode and CMD5(awake) partial
init is enabled -> mmc_partial_init is broken and gives below errors.
Fix this by adding calibration logic in case of HS400 mode.

NOTE: In HS400 mode tuning is only performed once during bootup (in
HS200 mode).
Post to that it is always DLL calibration which is performed (in
system/runtime resume).
So even for below issue since timing is already changed using
cached_ios, then do the calibration using ->execute_tuning.

<dmesg errors w/o patch>
root@msm8996:/ # [   76.011036] mmc0: mmc_runtime_suspend:
[   77.315903] mmc0: mmc_runtime_resume:
[   77.367866] mmc0: mmc_partial_init: starting partial init
[   77.376225] mmc0: mmc_test_awake_ext_csd: mmc_get_ext_csd failed
(-110)
[   77.382190] mmc0: mmc_partial_init: done partial init (-110)
[   77.387536] mmc0: _mmc_resume: awake failed (-110), fallback to full
init
[   77.394405] mmc0: mmc_init_card:
[   77.402762] mmc0: mmc_init_card: mmc_send_op_cond() fails -110
[   77.407573] mmc0: MMC card re-init failed rc = -110 (retries = 3)
[   77.507261] mmc0: _mmc_resume: awake failed (-110), fallback to full
init
[   77.513293] mmc0: mmc_init_card:

<dmesg with patch>
[   74.002624] mmc0: mmc_runtime_resume:
[   74.056089] mmc0: mmc_partial_init: starting partial init
[   74.067143] mmc0: mmc_partial_init: done partial init (0)

Change-Id: I0e55efb7863b75bd584843c3fc920c845996eb5c
Signed-off-by: Ritesh Harjani <riteshh@codeaurora.org>
7 years agosound: usb: Add default branches for BADD 3.0 devices
Ajay Agarwal [Fri, 12 May 2017 06:10:00 +0000 (11:40 +0530)]
sound: usb: Add default branches for BADD 3.0 devices

For a BADD 3.0 device, the Data Endpoint wMaxPacketSize
of an Alt Setting must be one of the values mentioned in
the specifications. Similarly, the unit IDs of the source
units of any entity is prescribed by the specs. Add
support for checking the error(default) branches in the
relevant switch cases and accordingly handle them.

Change-Id: Ib88eee21df012089d41c4e78a161ddc6767e1bd4
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
7 years agomsm: ADSPRPC: verify and initialize some variables
Tharun Kumar Merugu [Fri, 12 May 2017 06:35:11 +0000 (12:05 +0530)]
msm: ADSPRPC: verify and initialize some variables

Verify cid variable before accessing it and
initialize invoket variable before bailing out.

Change-Id: Idec133bf8ba1a000b83f92bb567f0b75bbdab340
Signed-off-by: Tharun Kumar Merugu <mtharu@codeaurora.org>
7 years agomemshare: Update the free memory count after allocation
Manoj Prabhu B [Wed, 10 May 2017 05:31:37 +0000 (11:01 +0530)]
memshare: Update the free memory count after allocation

The patch updates the client's free memory
count variable after the successful allocation.

CRs-Fixed: 2046258
Change-Id: Ibae317596557e23d2b2278daf433bd293a8bd0be
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
7 years agoPM/devfreq: bw_hwmon: add mutex lock in polling interval case
Santosh Mardi [Tue, 9 May 2017 05:54:04 +0000 (11:24 +0530)]
PM/devfreq: bw_hwmon: add mutex lock in polling interval case

Protect polling interval update event in the governor
with mutex lock.
This will avoid parallel execution of update interval event
on different cores, resulting in memory poison overwritten.

CRs-Fixed: 2035633
Change-Id: Ib919d9774317bc01e3cf581c169c5d18555f484f
Signed-off-by: Santosh Mardi <gsantosh@codeaurora.org>
7 years agoclk: Move vdd voting before set rate and parent
Taniya Das [Wed, 10 May 2017 09:53:22 +0000 (15:23 +0530)]
clk: Move vdd voting before set rate and parent

There could be clocks where the clock operations of set_rate_and_parent
would be defined to take care of setting rate and updating parent.
Move the vdd voting logic to ensure the vdd levels are voted prior to
updating rate and parent.

Change-Id: I57f903f95f290627d676afd567a6e6d21decf4a3
Signed-off-by: Taniya Das <tdas@codeaurora.org>
7 years agoscsi: ufs: Initialize cmd_id and check lrbp->cmd NULL
Can Guo [Thu, 11 May 2017 00:46:03 +0000 (08:46 +0800)]
scsi: ufs: Initialize cmd_id and check lrbp->cmd NULL

In commit d70b0a18f6e5 ("scsi: ufs: add command
logging infrastructure"), cmd_id is not initialized
and lrbp->cmd is explicitly dereferenced without
checking NULL. Fix them by initializing cmd_id with
an initial value 0 and checking NULL for lrbp->cmd.

Change-Id: I6f66066adc8d53e3615df50ac49dd313f6d7ea8e
Signed-off-by: Can Guo <cang@codeaurora.org>
7 years agoqseecom: add bus scaling support for GP operations
Zhen Kong [Fri, 28 Apr 2017 20:32:32 +0000 (13:32 -0700)]
qseecom: add bus scaling support for GP operations

When a GP application is loaded and the crypto engine is accessed,
a NOC error will happen if CE clock is not enabled. Thus, add bus
scaling support for GP operations.

Change-Id: I59d63be9e08b2c135edc6ec224ec1a355434e1ec
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
7 years agoMerge "Merge branch 'android-4.4@9796ea8' into branch 'msm-4.4'"
Linux Build Service Account [Thu, 11 May 2017 18:48:48 +0000 (11:48 -0700)]
Merge "Merge branch 'android-4.4@9796ea8' into branch 'msm-4.4'"

7 years agoMerge "drm/msm: add extern C guard for the UAPI header"
Linux Build Service Account [Thu, 11 May 2017 18:48:47 +0000 (11:48 -0700)]
Merge "drm/msm: add extern C guard for the UAPI header"

7 years agoMerge "input: misc: fix error path for hbtp touch driver"
Linux Build Service Account [Thu, 11 May 2017 18:48:46 +0000 (11:48 -0700)]
Merge "input: misc: fix error path for hbtp touch driver"

7 years agoMerge "ARM: dts: msm: Add SMB1381 device node for QRD SDM660"
Linux Build Service Account [Thu, 11 May 2017 18:48:45 +0000 (11:48 -0700)]
Merge "ARM: dts: msm: Add SMB1381 device node for QRD SDM660"

7 years agoMerge "diag: Validate proper mdlog session for a PD"
Linux Build Service Account [Thu, 11 May 2017 18:48:44 +0000 (11:48 -0700)]
Merge "diag: Validate proper mdlog session for a PD"

7 years agoMerge "ota_crypto: Add NULL pointer check for new_req variable"
Linux Build Service Account [Thu, 11 May 2017 18:48:43 +0000 (11:48 -0700)]
Merge "ota_crypto: Add NULL pointer check for new_req variable"

7 years agoMerge "USB: f_qdss: Fix crash issue during connect_work"
Linux Build Service Account [Thu, 11 May 2017 18:48:42 +0000 (11:48 -0700)]
Merge "USB: f_qdss: Fix crash issue during connect_work"

7 years agoMerge "soc: qcom: qpnp-haptic: add support for auto mode"
Linux Build Service Account [Thu, 11 May 2017 18:48:41 +0000 (11:48 -0700)]
Merge "soc: qcom: qpnp-haptic: add support for auto mode"

7 years agoMerge "scsi: ufs: ufs-qcom-ice: Initialize local variable in ice_cfg_start()"
Linux Build Service Account [Thu, 11 May 2017 18:48:40 +0000 (11:48 -0700)]
Merge "scsi: ufs: ufs-qcom-ice: Initialize local variable in ice_cfg_start()"

7 years agoMerge "mmc: core: Replacing sprintf() with snprintf()"
Linux Build Service Account [Thu, 11 May 2017 18:48:39 +0000 (11:48 -0700)]
Merge "mmc: core: Replacing sprintf() with snprintf()"

7 years agoMerge "sound: usb: Fix format desc usage for BADD 3.0 devices"
Linux Build Service Account [Thu, 11 May 2017 18:48:38 +0000 (11:48 -0700)]
Merge "sound: usb: Fix format desc usage for BADD 3.0 devices"

7 years agoMerge "drm/msm: Allocate secure buffer objects"
Linux Build Service Account [Thu, 11 May 2017 18:48:35 +0000 (11:48 -0700)]
Merge "drm/msm: Allocate secure buffer objects"

7 years agousb: gadget: f_cdev: Increase number of driver instances to 3
Hemant Kumar [Tue, 9 May 2017 21:28:59 +0000 (14:28 -0700)]
usb: gadget: f_cdev: Increase number of driver instances to 3

This allows to instantiate two dial up network interfaces and
one NMEA interface.

Change-Id: I59f5d93a5e9360628d8004508162dcdb42f6520d
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
7 years agodma-mapping: Always remap on dma buffer free
Shiraz Hashim [Thu, 11 May 2017 17:32:47 +0000 (23:02 +0530)]
dma-mapping: Always remap on dma buffer free

DMA clients may opt to clear cpu virtual address mapping
on alloc. On free when dma buffer is given back to cpu,
ensure that it is always remapped in cpu address space.

Change-Id: I67f9616d9bee8cf07cbe81468ebf174d2599f4c5
Signed-off-by: Shiraz Hashim <shashim@codeaurora.org>
7 years agoMerge "mmc: host: sdhci-msm-ice: Initialize local variable in ice_cmdq_cfg()"
Linux Build Service Account [Thu, 11 May 2017 13:48:13 +0000 (06:48 -0700)]
Merge "mmc: host: sdhci-msm-ice: Initialize local variable in ice_cmdq_cfg()"

7 years agoMerge "ath10k: cancel the event work in wlan snoc driver module remove"
Linux Build Service Account [Thu, 11 May 2017 13:48:12 +0000 (06:48 -0700)]
Merge "ath10k: cancel the event work in wlan snoc driver module remove"

7 years agoMerge "qseecom: Initialize the hlos_ce_hw_instance array"
Linux Build Service Account [Thu, 11 May 2017 13:48:11 +0000 (06:48 -0700)]
Merge "qseecom: Initialize the hlos_ce_hw_instance array"

7 years agoMerge "btfm: Fix coding error with uninitialized variables"
Linux Build Service Account [Thu, 11 May 2017 13:48:10 +0000 (06:48 -0700)]
Merge "btfm: Fix coding error with uninitialized variables"

7 years agoMerge "input: stm: Fix NULL dereference in laser driver"
Linux Build Service Account [Thu, 11 May 2017 13:48:08 +0000 (06:48 -0700)]
Merge "input: stm: Fix NULL dereference in laser driver"

7 years agoMerge "msm: camera: Fixing NULL dereference in sensor code"
Linux Build Service Account [Thu, 11 May 2017 13:48:07 +0000 (06:48 -0700)]
Merge "msm: camera: Fixing NULL dereference in sensor code"

7 years agoMerge "ARM: dts: msm: Add support for camss throttle clock on SDM660"
Linux Build Service Account [Thu, 11 May 2017 13:48:06 +0000 (06:48 -0700)]
Merge "ARM: dts: msm: Add support for camss throttle clock on SDM660"