OSDN Git Service

sagit-ice-cold/kernel_xiaomi_msm8998.git
6 years agoMerge "USB: core: harden cdc_parse_cdc_header"
Linux Build Service Account [Wed, 18 Jul 2018 08:05:43 +0000 (01:05 -0700)]
Merge "USB: core: harden cdc_parse_cdc_header"

6 years agoMerge "ARM: dts: msm: Change thermal configuration settings for msm8996."
Linux Build Service Account [Wed, 18 Jul 2018 08:05:42 +0000 (01:05 -0700)]
Merge "ARM: dts: msm: Change thermal configuration settings for msm8996."

6 years agoMerge "firmware_class: make firmware caching configurable"
Linux Build Service Account [Wed, 18 Jul 2018 08:05:41 +0000 (01:05 -0700)]
Merge "firmware_class: make firmware caching configurable"

6 years agoMerge "drm: msm: add skip_ddc support for hdmi display"
Linux Build Service Account [Wed, 18 Jul 2018 08:05:40 +0000 (01:05 -0700)]
Merge "drm: msm: add skip_ddc support for hdmi display"

6 years agoMerge "ARM: dts: msm: add ddc_skip on auto 8996 boards"
Linux Build Service Account [Wed, 18 Jul 2018 08:05:37 +0000 (01:05 -0700)]
Merge "ARM: dts: msm: add ddc_skip on auto 8996 boards"

6 years agoMerge "drm/msm: Fix the format prints in display driver"
Linux Build Service Account [Tue, 17 Jul 2018 22:06:27 +0000 (15:06 -0700)]
Merge "drm/msm: Fix the format prints in display driver"

6 years agoMerge "msm: ipa: Error prints are misleading fix it"
Linux Build Service Account [Tue, 17 Jul 2018 22:06:09 +0000 (15:06 -0700)]
Merge "msm: ipa: Error prints are misleading fix it"

6 years agoARM: dts: msm: Change thermal configuration settings for msm8996.
Atul Raut [Sat, 12 May 2018 01:31:04 +0000 (18:31 -0700)]
ARM: dts: msm: Change thermal configuration settings for msm8996.

msm-core(EA in kernel part) is enabled for thermal monitoring feature.
It sets cpu tsens threshold independent of thermal SW but not really
using any thermal info in driver. So redundant threshold get sets which
causes wakable irq to fire in hibernation restore phase.
That abort's system wide suspend transition which eventually fail to
restore hibernation image.

To fix, set thermal configuration to new threshold.

Change-Id: I38cad5217c1196d3a804fa78570984e60427a94e
Signed-off-by: Atul Raut <araut@codeaurora.org>
6 years agofirmware_class: make firmware caching configurable
Tim Murray [Thu, 20 Oct 2016 20:53:58 +0000 (13:53 -0700)]
firmware_class: make firmware caching configurable

Because firmware caching generates uevent messages that are sent over a
netlink socket, it can prevent suspend on many platforms. It's also not
always useful, so make it a configurable option.

bug 32180327

Change-Id: I1250512b27edb56caa78d536e5ccf1fb669476ad
Signed-off-by: Tim Murray <timmurray@google.com>
Git-repo: https://source.codeaurora.org/quic/la/kernel/msm-4.4
Git-commit: e3198d51be98ec5606e2a2c5112a8a974d354fbc
Signed-off-by: Chintan Pandya <cpandya@codeaurora.org>
Signed-off-by: Srinivasarao P <spathi@codeaurora.org>
6 years agoMerge "ARM: dts: msm: Enable diagfwd-usb for MSM8996 CV2X boards"
Linux Build Service Account [Tue, 17 Jul 2018 04:54:13 +0000 (21:54 -0700)]
Merge "ARM: dts: msm: Enable diagfwd-usb for MSM8996 CV2X boards"

6 years agoMerge "diag: Enable diagfwd via USB even when MHI is available"
Linux Build Service Account [Tue, 17 Jul 2018 04:54:10 +0000 (21:54 -0700)]
Merge "diag: Enable diagfwd via USB even when MHI is available"

6 years agoMerge "soc: qcom: hab: check the buffer's pointer before exporting it"
Linux Build Service Account [Tue, 17 Jul 2018 04:54:09 +0000 (21:54 -0700)]
Merge "soc: qcom: hab: check the buffer's pointer before exporting it"

6 years agoMerge "mmc: core: Update SD card removal logic based on cd gpio state"
Linux Build Service Account [Mon, 16 Jul 2018 18:36:26 +0000 (11:36 -0700)]
Merge "mmc: core: Update SD card removal logic based on cd gpio state"

6 years agoARM: dts: msm: Enable diagfwd-usb for MSM8996 CV2X boards
Gustavo Solaira [Tue, 10 Jul 2018 02:24:13 +0000 (19:24 -0700)]
ARM: dts: msm: Enable diagfwd-usb for MSM8996 CV2X boards

Enable the diagfwd-usb platform driver for MSM8996
CV2X boards. This is used to forward diag data from MDM
via USB.

Change-Id: I816e82c25ca623c47c541e4e790e22b90c55da41
Signed-off-by: Gustavo Solaira <gustavos@codeaurora.org>
6 years agodiag: Enable diagfwd via USB even when MHI is available
Gustavo Solaira [Tue, 10 Jul 2018 02:21:00 +0000 (19:21 -0700)]
diag: Enable diagfwd via USB even when MHI is available

Some devices need diag via USB even when MHI is used
for rmnet and qmi tethering. This is because of lack
of support for diagfwd for mhi_dev in Linux.

Change-Id: Ie0ec19ee109d49aa409d1df3ad5ca24b75de7102
Signed-off-by: Gustavo Solaira <gustavos@codeaurora.org>
6 years agousb: misc: diag_ipc_bridge: Add support for 901D PID
Gustavo Solaira [Tue, 10 Jul 2018 02:06:49 +0000 (19:06 -0700)]
usb: misc: diag_ipc_bridge: Add support for 901D PID

Add support for creation of diag traffic channel in case
the connected device has 0x05C6 VID and 0x901D PID.
   0x901D : DIAG + ADB

Change-Id: I6df0aca714f10ea7d854f621e19da1388a7e7d5c
Signed-off-by: Gustavo Solaira <gustavos@codeaurora.org>
6 years agodefconfig: msm-auto: Enable diag_ipc_bridge driver for msm8996
Ajay Agarwal [Fri, 22 Jun 2018 04:57:06 +0000 (10:27 +0530)]
defconfig: msm-auto: Enable diag_ipc_bridge driver for msm8996

Enable DIAG and IPC bridge driver on msm8996 auto to support
interfacing with DIAG and QMI interfaces.

Change-Id: I8b32bdfc6aa29c090b21512e202c2822b9752a48
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
6 years agodiag: Disable the code for diag_smux
Gustavo Solaira [Tue, 10 Jul 2018 02:03:00 +0000 (19:03 -0700)]
diag: Disable the code for diag_smux

Disable the diag_smux code to fix the build with
diagfwd USB enabled since the dependencies for
diag_smux are not available it is deprecated in
this kernel version.

Change-Id: I6a8bc3a34f67ed5b1ca175cad0b3067e2c2df199
Signed-off-by: Gustavo Solaira <gustavos@codeaurora.org>
6 years agomsm: ipa: Error prints are misleading fix it
Mohammed Javid [Fri, 29 Jun 2018 09:36:00 +0000 (15:06 +0530)]
msm: ipa: Error prints are misleading fix it

IPC logging is for debugging purpose and
it may disabled in kernel anytime.
From IPA driver printing the error log on IPC
create context is misleading.
Instead of error, make it as debug.

Change-Id: Icee2b1ad9fcef446f79dfc71f554a24a90ea3d2d
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
6 years agoMerge "soc: qcom: hab: resolve NULL pointer dereference issues"
Linux Build Service Account [Mon, 16 Jul 2018 08:31:34 +0000 (01:31 -0700)]
Merge "soc: qcom: hab: resolve NULL pointer dereference issues"

6 years agoMerge "defconfig: gvm: enable msm hardware random generator"
Linux Build Service Account [Mon, 16 Jul 2018 08:31:33 +0000 (01:31 -0700)]
Merge "defconfig: gvm: enable msm hardware random generator"

6 years agoMerge "ssusb: vplatform: enable otg passthrough in la-gvm"
Linux Build Service Account [Mon, 16 Jul 2018 08:31:32 +0000 (01:31 -0700)]
Merge "ssusb: vplatform: enable otg passthrough in la-gvm"

6 years agoMerge "iommu/debug: Add mutex to make attach/detach thread safe"
Linux Build Service Account [Mon, 16 Jul 2018 08:31:31 +0000 (01:31 -0700)]
Merge "iommu/debug: Add mutex to make attach/detach thread safe"

6 years agoARM: dts: msm: add ddc_skip on auto 8996 boards
Suprith Malligere Shankaregowda [Thu, 5 Jul 2018 12:52:10 +0000 (18:22 +0530)]
ARM: dts: msm: add ddc_skip on auto 8996 boards

This change is done to disable the hdmi scrambler related display
kernel error messages in the boot logs.

Change-Id: I7f9284c3d64e291ef9c6442e7e89f6551cbce8d6
Signed-off-by: Suprith Malligere Shankaregowda <supgow@codeaurora.org>
6 years agodrm: msm: add skip_ddc support for hdmi display
Suprith Malligere Shankaregowda [Thu, 5 Jul 2018 11:54:45 +0000 (17:24 +0530)]
drm: msm: add skip_ddc support for hdmi display

HDMI display on auto boards has disabled pluggable function
and hardcoded 1080p mode for output. So ddc related function
should also be skipped. Otherwise, some error messages are
printed when accessing ddc.

Change-Id: I42694b0586dd870e7881b422cd3d6ee960276b17
Signed-off-by: Suprith Malligere Shankaregowda <supgow@codeaurora.org>
Signed-off-by: Guchun Chen <guchunc@codeaurora.org>
6 years agoMerge "ARM: dts: msm: Add clock skew values for msm8996 CV2X boards"
Linux Build Service Account [Sun, 15 Jul 2018 20:23:50 +0000 (13:23 -0700)]
Merge "ARM: dts: msm: Add clock skew values for msm8996 CV2X boards"

6 years agoMerge "Documentation: devicetree: net: Add clock skew parameters for neutrino"
Linux Build Service Account [Sat, 14 Jul 2018 07:36:46 +0000 (00:36 -0700)]
Merge "Documentation: devicetree: net: Add clock skew parameters for neutrino"

6 years agoMerge "cnss2: Refactor PCIe bus related code"
Linux Build Service Account [Sat, 14 Jul 2018 07:36:46 +0000 (00:36 -0700)]
Merge "cnss2: Refactor PCIe bus related code"

6 years agodrm/msm: Fix the format prints in display driver
Lakshmi Narayana Kalavala [Fri, 11 May 2018 18:28:12 +0000 (11:28 -0700)]
drm/msm: Fix the format prints in display driver

Fix the %p format prints with %pK.

Change-Id: I1743bacb76c1db4bfa304146f7d391751b35273c
Signed-off-by: Lakshmi Narayana Kalavala <lkalaval@codeaurora.org>
Signed-off-by: Navid Bahrani <nbahrani@codeaurora.org>
6 years agoARM: dts: msm: Add clock skew values for msm8996 CV2X boards
Aditya Mathur [Fri, 13 Jul 2018 19:27:43 +0000 (12:27 -0700)]
ARM: dts: msm: Add clock skew values for msm8996 CV2X boards

Add phy clock skew values for the neutrino driver
on msm8996 CV2X boards.

Change-Id: Ic06b054dd6d5e4267fdec64d7d73786b54466444
Signed-off-by: Aditya Mathur <aditmath@codeaurora.org>
6 years agoDocumentation: devicetree: net: Add clock skew parameters for neutrino
Aditya Mathur [Fri, 13 Jul 2018 19:21:05 +0000 (12:21 -0700)]
Documentation: devicetree: net: Add clock skew parameters for neutrino

Add documentation for new PHY clock skew parameters
in the neutrino driver.

Change-Id: Ibefa49ef0f91e42e3bb6d050eeac4a4adfc67ee1
Signed-off-by: Aditya Mathur <aditmath@codeaurora.org>
6 years agoMerge "drm: msm: error notification and handling"
Linux Build Service Account [Fri, 13 Jul 2018 21:31:17 +0000 (14:31 -0700)]
Merge "drm: msm: error notification and handling"

6 years agoiommu/debug: Add mutex to make attach/detach thread safe
VENKATA RAO KAKANI [Fri, 13 Jul 2018 11:44:00 +0000 (17:14 +0530)]
iommu/debug: Add mutex to make attach/detach thread safe

This mutex lock will help to synchronise the usage of iommu domain
structure which is getting used by multiple threads to perform
iommu attach and iommu detach in case of any error.

Without this change we are seeing page poisoning - write after free
when running stress tests using iommu-debug test cases.

Change-Id: I388a90084ab8cc7e7097bac9a41ed5fed6dad312
Acked-by: Ankur Saxena <c_ankusa@qti.qualcomm.com>
Signed-off-by: Vivek Gautam <vivek.gautam@codeaurora.org>
Signed-off-by: VENKATA RAO KAKANI <vkakani@codeaurora.org>
6 years agoMerge "adv7481: Fix AVI infoframe read"
Linux Build Service Account [Fri, 13 Jul 2018 10:01:25 +0000 (03:01 -0700)]
Merge "adv7481: Fix AVI infoframe read"

6 years agoMerge "cnss2: Add bus layer"
Linux Build Service Account [Fri, 13 Jul 2018 03:13:14 +0000 (20:13 -0700)]
Merge "cnss2: Add bus layer"

6 years agoMerge "net: core: null pointer derefernce in sockev_client_cb"
Linux Build Service Account [Fri, 13 Jul 2018 03:13:12 +0000 (20:13 -0700)]
Merge "net: core: null pointer derefernce in sockev_client_cb"

6 years agoMerge "usb: gadget: ffs: Remove IPC context create failure log"
Linux Build Service Account [Thu, 12 Jul 2018 12:37:43 +0000 (05:37 -0700)]
Merge "usb: gadget: ffs: Remove IPC context create failure log"

6 years agoMerge "msm: camera: isp: Add null check for vfe_dev."
Linux Build Service Account [Thu, 12 Jul 2018 12:37:33 +0000 (05:37 -0700)]
Merge "msm: camera: isp: Add null check for vfe_dev."

6 years agoMerge "cnss2: Do not load board data file if bdf_bypass is enabled"
Linux Build Service Account [Thu, 12 Jul 2018 12:37:15 +0000 (05:37 -0700)]
Merge "cnss2: Do not load board data file if bdf_bypass is enabled"

6 years agoMerge "iommu/debug: Add mutex to make attach/detach thread safe"
Linux Build Service Account [Thu, 12 Jul 2018 12:36:59 +0000 (05:36 -0700)]
Merge "iommu/debug: Add mutex to make attach/detach thread safe"

6 years agodefconfig: gvm: enable msm hardware random generator
Venkata Rao Kakani [Tue, 10 Jul 2018 12:23:35 +0000 (17:53 +0530)]
defconfig: gvm: enable msm hardware random generator

Enable MSM hardware random generator in LA-GVM.

Change-Id: I970986fd302dfc56544409682faa97c9e0a508bd
Signed-off-by: Venkata Rao Kakani <vkakani@codeaurora.org>
6 years agosoc: qcom: hab: resolve NULL pointer dereference issues
Yong Ding [Thu, 12 Jul 2018 05:35:43 +0000 (13:35 +0800)]
soc: qcom: hab: resolve NULL pointer dereference issues

Some NULL pointer dereference issues are fixed.

Change-Id: I0f7f8ede860c81d451f2105520750692fd4eee50
Signed-off-by: Yong Ding <yongding@codeaurora.org>
6 years agomsm: camera: isp: Add null check for vfe_dev.
Shobhit Singh [Tue, 26 Jun 2018 13:15:40 +0000 (18:45 +0530)]
msm: camera: isp: Add null check for vfe_dev.

In some cases, observed that vfe node information is
not filled in the stream information, this will lead
to a null pointer access. To avoid such scenarios,
a null check is added.

Change-Id: Ibe8e095629574e2d8b8fbb097449d49bc0a762b3
Signed-off-by: Shobhit Singh <shobsi@codeaurora.org>
6 years agocnss2: Refactor PCIe bus related code
Yue Ma [Wed, 27 Jun 2018 10:47:37 +0000 (16:17 +0530)]
cnss2: Refactor PCIe bus related code

PCIe bus related APIs should not directly called from common files.
Instead, create equivalent abstract BUS APIs from where it can
decide which corresponding PCIe bus APIs to be invoked. This will
help to extend other buses like USB and SDIO in the future.

Change-Id: I1f115173f2e6c34e3a8cb6f975349112f52697e4
Signed-off-by: Yue Ma <yuem@codeaurora.org>
Signed-off-by: Rajasekaran Kalidoss <rkalidos@codeaurora.org>
6 years agocnss2: Add bus layer
Yue Ma [Tue, 26 Jun 2018 14:06:01 +0000 (19:36 +0530)]
cnss2: Add bus layer

Bus layer is a shim layer for potential buses (PCIe, USB and SDIO)
of WLAN devices. It abstracts all the bus related APIs for common
files of the driver so that it can help make them bus independent.

Change-Id: I06e19a26d34168fe0fcc65229a4519b868cd97c1
Signed-off-by: Yue Ma <yuem@codeaurora.org>
Signed-off-by: Rajasekaran Kalidoss <rkalidos@codeaurora.org>
6 years agocnss2: Do not load board data file if bdf_bypass is enabled
Yue Ma [Fri, 8 Jun 2018 00:55:04 +0000 (17:55 -0700)]
cnss2: Do not load board data file if bdf_bypass is enabled

Send dummy board data file to firmware if bdf_bypass is enabled,
no matter the real file is present or not.

Change-Id: I042d0ce7190fa56f362baf99c5847edf50419377
Signed-off-by: Yue Ma <yuem@codeaurora.org>
6 years agoMerge "msm: adsprpc: destroy mutex before file free"
Linux Build Service Account [Wed, 11 Jul 2018 22:18:41 +0000 (15:18 -0700)]
Merge "msm: adsprpc: destroy mutex before file free"

6 years agoMerge "net: sockev: code cleanup"
Linux Build Service Account [Wed, 11 Jul 2018 14:09:25 +0000 (07:09 -0700)]
Merge "net: sockev: code cleanup"

6 years agoMerge "xhci: Fix use-after-free in xhci_free_virt_device"
Linux Build Service Account [Wed, 11 Jul 2018 14:09:24 +0000 (07:09 -0700)]
Merge "xhci: Fix use-after-free in xhci_free_virt_device"

6 years agoMerge "ufs: scsi: fix redzone overwritten error when print utp hci testbus"
Linux Build Service Account [Wed, 11 Jul 2018 14:09:23 +0000 (07:09 -0700)]
Merge "ufs: scsi: fix redzone overwritten error when print utp hci testbus"

6 years agoMerge "usb: dwc3-msm: Enable PHY IRQ wakeup only for non-auto targets"
Linux Build Service Account [Wed, 11 Jul 2018 14:09:23 +0000 (07:09 -0700)]
Merge "usb: dwc3-msm: Enable PHY IRQ wakeup only for non-auto targets"

6 years agoMerge "clk: msm: clock-mmss-8996: disable cache based clk rate"
Linux Build Service Account [Wed, 11 Jul 2018 14:09:22 +0000 (07:09 -0700)]
Merge "clk: msm: clock-mmss-8996: disable cache based clk rate"

6 years agomsm: adsprpc: destroy mutex before file free
Tharun Kumar Merugu [Wed, 11 Jul 2018 09:50:08 +0000 (15:20 +0530)]
msm: adsprpc: destroy mutex before file free

Destroy mutex before file free, to avoid use after free of mutex.

Change-Id: I4ff73dc17b15043eacbb299219a379bfd1a8efa6
Acked-by: Himateja Reddy <hmreddy@qti.qualcomm.com>
Signed-off-by: Tharun Kumar Merugu <mtharu@codeaurora.org>
6 years agodrm: msm: error notification and handling
Rahul Sharma [Mon, 9 Jul 2018 10:09:27 +0000 (15:39 +0530)]
drm: msm: error notification and handling

This implementation facilitates a framework to report and recover the
errors in display hardware pipeline.

Change-Id: Ie4059dd8bcdd83f73b5a5165ae5a8363ae4efb94
Signed-off-by: Rahul Sharma <rahsha@codeaurora.org>
6 years agonet: core: null pointer derefernce in sockev_client_cb
Tejaswi Tanikella [Tue, 12 Jun 2018 04:39:53 +0000 (10:09 +0530)]
net: core: null pointer derefernce in sockev_client_cb

sockev_client_cb creates a netlink message and populates
the nlmsg_data using the socket->sock information.
If socket is closed, while the nlmsg_data is being
populated, a null pointer dereference occurs.

BUG: KASAN: null-ptr-deref in sockev_client_cb+0x1e4/0x310 net/core/sockev_nlmcast.c:98
Read of size 2 at addr 0000000000000010 by task syz-executor/9398
CPU: 6 PID: 9398 Comm: syz-executor Tainted: G W O 4.9.92+ #1

Call trace:
[<ffffff94e2bebec4>] sockev_client_cb+0x1e4/0x310 net/core/sockev_nlmcast.c:98
[<ffffff94e14fb20c>] notifier_call_chain+0x94/0xe0 kernel/notifier.c:93
[<ffffff94e14fb894>] __blocking_notifier_call_chain+0x6c/0xb8 kernel/notifier.c:317
[<ffffff94e14fb920>] blocking_notifier_call_chain+0x40/0x50 kernel/notifier.c:328
[<ffffff94e2b727f8>] sockev_notify net/socket.c:180 [inline]
[<ffffff94e2b727f8>] SYSC_listen net/socket.c:1446 [inline]
[<ffffff94e2b727f8>] SyS_listen+0x1e0/0x1f8 net/socket.c:1428
[<ffffff94e1483f70>] el0_svc_naked+0x24/0x28

CR's Fixed: 2251042
Change-Id: Iad9eb58cd05fcdc0b5cc1ed24de56b69abb532b4
Signed-off-by: Sharath Chandra Vurukala <sharathv@codeaurora.org>
Signed-off-by: Tejaswi Tanikella <tejaswit@codeaurora.org>
6 years agonet: sockev: code cleanup
Tejaswi Tanikella [Wed, 11 Jul 2018 08:05:11 +0000 (13:35 +0530)]
net: sockev: code cleanup

Replace with cleaner NULL checks. Needed for dependent change
commit 59f6fd5f1905 ("net: core: null pointer derefernce in
sockev_client_cb").

Change-Id: Icdd7a5c9f3e3f343bb20b1f9b75fa580ea75a2dc
Signed-off-by: Tejaswi Tanikella <tejaswit@codeaurora.org>
6 years agoufs: scsi: fix redzone overwritten error when print utp hci testbus
Can Guo [Tue, 20 Mar 2018 05:46:17 +0000 (22:46 -0700)]
ufs: scsi: fix redzone overwritten error when print utp hci testbus

When print UTP HCI testbus data, a redzone overwritten error is triggered
because the max select minor value goes across its border. This change
fixes it.

Change-Id: Ib085288f3770aa0ab3683926247fb95f5e50cb08
Signed-off-by: Can Guo <cang@codeaurora.org>
6 years agoMerge "Merge android-4.4.139 (7ba5557) into msm-4.4"
Linux Build Service Account [Wed, 11 Jul 2018 05:43:57 +0000 (22:43 -0700)]
Merge "Merge android-4.4.139 (7ba5557) into msm-4.4"

6 years agoMerge "ASoC: msm: Fix config control indices for TX DAIs"
Linux Build Service Account [Wed, 11 Jul 2018 05:43:54 +0000 (22:43 -0700)]
Merge "ASoC: msm: Fix config control indices for TX DAIs"

6 years agoMerge "include: qdsp6v2: avoid returning error code from stubbed function"
Linux Build Service Account [Wed, 11 Jul 2018 05:43:49 +0000 (22:43 -0700)]
Merge "include: qdsp6v2: avoid returning error code from stubbed function"

6 years agoMerge "Revert "drm/msm/sde: output black frame during resume operation""
Linux Build Service Account [Tue, 10 Jul 2018 15:50:42 +0000 (08:50 -0700)]
Merge "Revert "drm/msm/sde: output black frame during resume operation""

6 years agoMerge "mdss: mdp: Constant fetch start across dfps change"
Linux Build Service Account [Tue, 10 Jul 2018 15:50:39 +0000 (08:50 -0700)]
Merge "mdss: mdp: Constant fetch start across dfps change"

6 years agoMerge "DRM: DSI: setup software context during DSI prepare with splash"
Linux Build Service Account [Tue, 10 Jul 2018 15:50:36 +0000 (08:50 -0700)]
Merge "DRM: DSI:  setup software context during DSI prepare with splash"

6 years agoASoC: msm: Fix config control indices for TX DAIs
Satish Babu Patakokila [Thu, 5 Jul 2018 06:50:34 +0000 (12:20 +0530)]
ASoC: msm: Fix config control indices for TX DAIs

Correct the config control indices for TX DAIs of MI2S interface.

Change-Id: Ie8bf646a0c1fbd30abdb34703ae1f90ed9b484e8
Signed-off-by: Satish Babu Patakokila <sbpata@codeaurora.org>
6 years agousb: dwc3-msm: Enable PHY IRQ wakeup only for non-auto targets
Ajay Agarwal [Wed, 4 Jul 2018 05:26:28 +0000 (10:56 +0530)]
usb: dwc3-msm: Enable PHY IRQ wakeup only for non-auto targets

On automotive targets, we do not want the system to wakeup if the
connected peripheral is issuing remote wakeup when the system is
PM suspended. Do not enable the system wakeup capability of the
PHY IRQs if the target is automotive.

Change-Id: I0bd986fdfab8f978692b605a44301086de3d0a87
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
6 years agoUSB: core: harden cdc_parse_cdc_header
Greg Kroah-Hartman [Thu, 21 Sep 2017 14:58:48 +0000 (16:58 +0200)]
USB: core: harden cdc_parse_cdc_header

Andrey Konovalov reported a possible out-of-bounds problem for the
cdc_parse_cdc_header function.  He writes:
It looks like cdc_parse_cdc_header() doesn't validate buflen
before accessing buffer[1], buffer[2] and so on. The only check
present is while (buflen > 0).

So fix this issue up by properly validating the buffer length matches
what the descriptor says it is.

Change-Id: I9c65dc98778aa357911e554c8d28deef2bf9a5b3
Reported-by: Andrey Konovalov <andreyknvl@google.com>
Tested-by: Andrey Konovalov <andreyknvl@google.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Git-commit: 2e1c42391ff2556387b3cb6308b24f6f65619feb
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Srinivasa Rao Kuppala <srkupp@codeaurora.org>
6 years agoadv7481: Fix AVI infoframe read
Suprith Malligere Shankaregowda [Sat, 7 Jul 2018 09:53:34 +0000 (15:23 +0530)]
adv7481: Fix AVI infoframe read

Change the AVI infoframe read to check avi_info_raw bit in
hdmi lvl raw status register instead of new_avi_info_raw
in hdmi edg raw status register. This is required so as not
to miss AVI infoframes if we disconnect and reconnect the
HDMI cable or close and reopen the application. Also return
error if no AVI infoframe is found and change some error
logs to be more specific.

Change-Id: If30ba820d255149f1b54f422b8e075e634271aaf
Signed-off-by: Suprith Malligere Shankaregowda <supgow@codeaurora.org>
6 years agousbnet: move the CDC parser into USB core
Oliver Neukum [Thu, 14 Jul 2016 13:41:30 +0000 (15:41 +0200)]
usbnet: move the CDC parser into USB core

The dependencies were impossible to handle preventing
drivers for CDC devices not which are not network drivers
from using the common parser.

Change-Id: Ied0d1d037bfb8b60bc82236382ef894755755cef
Signed-off-by: Oliver Neukum <ONeukum@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Git-commit: e4c6fb779498243ec001c5547b3504fe6b1993ec
Git-repo: https://android.googlesource.com/kernel/common
Signed-off-by: Srinivasa Rao Kuppala <srkupp@codeaurora.org>
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
6 years agoMerge "usb: misc: Fix incorrect use of keywords in Kconfig"
Linux Build Service Account [Tue, 10 Jul 2018 07:19:33 +0000 (00:19 -0700)]
Merge "usb: misc: Fix incorrect use of keywords in Kconfig"

6 years agoMerge "scsi: ufs: print TSTBUS_UTP_HCI testbus data"
Linux Build Service Account [Tue, 10 Jul 2018 07:19:31 +0000 (00:19 -0700)]
Merge "scsi: ufs: print TSTBUS_UTP_HCI testbus data"

6 years agoinclude: qdsp6v2: avoid returning error code from stubbed function
Banajit Goswami [Tue, 10 Jul 2018 03:26:19 +0000 (20:26 -0700)]
include: qdsp6v2: avoid returning error code from stubbed function

If MSM_QDSP6_NOTIFIER is not enabled for a target, audio_notifier
feature will not be available for that target. Whenever a call is
made to audio_notifier when its not supported, returning error from
stubbed function may confuse the error with real failure (even though
the feature is not enabled on the target). Avoid returning error code
from stubbed function, when feature is disabled.

Change-Id: I37eb2e25e45b25948aff55f2a231195a22b16f05
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
6 years agoMerge "sdm660: defconfig: Enable GCM crypto configs"
Linux Build Service Account [Mon, 9 Jul 2018 19:30:24 +0000 (12:30 -0700)]
Merge "sdm660: defconfig: Enable GCM crypto configs"

6 years agoMerge "hid: usbhid: Changes to prevent buffer overflow"
Linux Build Service Account [Mon, 9 Jul 2018 19:30:23 +0000 (12:30 -0700)]
Merge "hid: usbhid: Changes to prevent buffer overflow"

6 years agoiommu/debug: Add mutex to make attach/detach thread safe
Vivek Gautam [Fri, 22 Jun 2018 14:23:31 +0000 (19:53 +0530)]
iommu/debug: Add mutex to make attach/detach thread safe

This mutex lock will help to synchronise the usage of iommu domain
structure which is getting used by multiple threads to perform
iommu attach and iommu detach in case of any error.

Without this change we are seeing page poisoning - write after free
when running stress tests using iommu-debug test cases.

Change-Id: I1033808a510786577c41201c2a6a330e5465d4d1
Acked-by: Ankur Saxena <c_ankusa@qti.qualcomm.com>
Signed-off-by: Vivek Gautam <vivek.gautam@codeaurora.org>
6 years agoMerge "msm8998: defconfig: Enable GCM crypto configs."
Linux Build Service Account [Mon, 9 Jul 2018 10:59:42 +0000 (03:59 -0700)]
Merge "msm8998: defconfig: Enable GCM crypto configs."

6 years agoMerge "ASoC: msm: qdsp6v2: Update LSM param hdr size"
Linux Build Service Account [Mon, 9 Jul 2018 10:59:41 +0000 (03:59 -0700)]
Merge "ASoC: msm: qdsp6v2: Update LSM param hdr size"

6 years agoMerge "pmic: gpio: dt: disable unnecessary gpios in la-gvm"
Linux Build Service Account [Mon, 9 Jul 2018 10:59:39 +0000 (03:59 -0700)]
Merge "pmic: gpio: dt: disable unnecessary gpios in la-gvm"

6 years agossusb: vplatform: enable otg passthrough in la-gvm
Venkata Rao Kakani [Mon, 2 Jul 2018 12:53:32 +0000 (18:23 +0530)]
ssusb: vplatform: enable otg passthrough in la-gvm

Enable ssusb passthrough functionality in la-gvm

Change-Id: I9652cc2e4d2bdf9e0b2027abf0cce84eb77e049e
Signed-off-by: Venkata Rao Kakani <vkakani@codeaurora.org>
6 years agoMerge changes into msm-4.4
Gerrit - the friendly Code Review server [Mon, 9 Jul 2018 10:35:34 +0000 (03:35 -0700)]
Merge changes  into msm-4.4

6 years agomdss: mdp: Constant fetch start across dfps change
Animesh Kishore [Wed, 4 Jul 2018 12:51:04 +0000 (18:21 +0530)]
mdss: mdp: Constant fetch start across dfps change

Timing engine HW restricts changing programmable fetch
start when off. Fix fetch start in SW drivers.

Change-Id: I8ec80408a4ae36a7dfd963bc570fca9672d12341
Signed-off-by: Animesh Kishore <animeshk@codeaurora.org>
6 years agosdm660: defconfig: Enable GCM crypto configs
Devi Sandeep Endluri V V [Mon, 9 Jul 2018 05:52:35 +0000 (11:22 +0530)]
sdm660: defconfig: Enable GCM crypto configs

Enable GCM crypto support.

Change-Id: I08b9d20ad314117bb30b21ffc2eabe8dd0cac7d3
CRs-Fixed: 2263373
Signed-off-by: Devi Sandeep Endluri V V <dendluri@codeaurora.org>
6 years agoMerge "msm: ais: sensor: Fix turning clocks off during suspend"
Linux Build Service Account [Mon, 9 Jul 2018 03:23:57 +0000 (20:23 -0700)]
Merge "msm: ais: sensor: Fix turning clocks off during suspend"

6 years agomsm8998: defconfig: Enable GCM crypto configs.
Devi Sandeep Endluri V V [Sun, 8 Jul 2018 18:55:58 +0000 (00:25 +0530)]
msm8998: defconfig: Enable GCM crypto configs.

Enable GCM crypto support.

CRs-Fixed: 2263373
Change-Id: Ic243892a71551e880ece90876c38bb08fd709b4b
Signed-off-by: Devi Sandeep Endluri V V <dendluri@codeaurora.org>
6 years agousb: misc: Fix incorrect use of keywords in Kconfig
Ajay Agarwal [Sat, 7 Jul 2018 09:01:57 +0000 (14:31 +0530)]
usb: misc: Fix incorrect use of keywords in Kconfig

In 'commit 60de9d752e97 ("usb: misc: Add snapshot of diag_bridge
driver")', we used wrong keyword in the Kconfig file. Fix that
by using "Qualcomm Technologies".

Change-Id: I6caecf19ed67257db7eda0289257118549d46836
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
6 years agoMerge "ARM: dts: msm: add sde block lengths on msm8996"
Linux Build Service Account [Sat, 7 Jul 2018 00:35:01 +0000 (17:35 -0700)]
Merge "ARM: dts: msm: add sde block lengths on msm8996"

6 years agoMerge "regulator: qpnp-lcdb: Disable the SC irq only for PM660L V1.1 and below"
Linux Build Service Account [Fri, 6 Jul 2018 16:57:16 +0000 (09:57 -0700)]
Merge "regulator: qpnp-lcdb: Disable the SC irq only for PM660L V1.1 and below"

6 years agoMerge "ARM: dts: msm: Set default status of I2C_8 as disabled"
Linux Build Service Account [Fri, 6 Jul 2018 16:57:14 +0000 (09:57 -0700)]
Merge "ARM: dts: msm: Set default status of I2C_8 as disabled"

6 years agoMerge "pinctrl: qcom: Clear status bit on irq_unmask"
Linux Build Service Account [Fri, 6 Jul 2018 16:57:12 +0000 (09:57 -0700)]
Merge "pinctrl: qcom: Clear status bit on irq_unmask"

6 years agoASoC: msm: qdsp6v2: Update LSM param hdr size
Soumya Managoli [Fri, 6 Jul 2018 05:27:52 +0000 (10:57 +0530)]
ASoC: msm: qdsp6v2: Update LSM param hdr size

q6lsm_pack_params requires param hdr size
to be filled and sent as argument.
Change is to update size with param_hdr_v3 struct size.

Change-Id: Id2380f3ceb887e1fc73b7f5f8e28ac93029082e4
Signed-off-by: Soumya Managoli <smanag@codeaurora.org>
6 years agohid: usbhid: Changes to prevent buffer overflow
Sriharsha Allenki [Thu, 22 Dec 2016 09:27:44 +0000 (14:57 +0530)]
hid: usbhid: Changes to prevent buffer overflow

Moved some value checks to right positions to prevent
buffer flow, which may be possible before. Previously
these value checks are in an else statement which may
not be executed.

Change-Id: I02dbecd074183581a6bdae6377097bc004bd3d3c
CRs-fixed: 1102936
Signed-off-by: Sriharsha Allenki <sallenki@codeaurora.org>
6 years agoMerge "Revert "do d_instantiate/unlock_new_inode combinations safely""
Linux Build Service Account [Fri, 6 Jul 2018 07:10:22 +0000 (00:10 -0700)]
Merge "Revert "do d_instantiate/unlock_new_inode combinations safely""

6 years agomsm: ais: sensor: Fix turning clocks off during suspend
Suprith Malligere Shankaregowda [Thu, 5 Jul 2018 11:04:51 +0000 (16:34 +0530)]
msm: ais: sensor: Fix turning clocks off during suspend

Added condition check for suspend only if sensor state is power
down and for resume only if sensor state is power up in
pm functions on sensor driver to control.

Change-Id: Ia31f34dc103428423a86efe8f8012db18b5a75f1
Signed-off-by: Suprith Malligere Shankaregowda <supgow@codeaurora.org>
6 years agopinctrl: qcom: Clear status bit on irq_unmask
Srinivas Ramana [Tue, 17 Oct 2017 11:54:06 +0000 (17:24 +0530)]
pinctrl: qcom: Clear status bit on irq_unmask

This commits reverts the commit a6566710adaa ("pinctrl:
qcom: Don't clear status bit on irq_unmask").
Above change causes an unexpected wakeup on the gpios when the
interrupt is enabled. The gpio interrupt status bit is getting set
after the irq is disabled and causing an immediate interrupt after
enablling the irq. So, revert this change to avoid unexpected/spurious
wakeups.

The above change came in as part of the merge commit 3a75d7a94709
("Merge 4.4.59 into android-4.4")

Change-Id: Ie58116c8ac5c81bc007d2c4398f5edfcbf9988d6
Signed-off-by: Srinivas Ramana <sramana@codeaurora.org>
6 years agoregulator: qpnp-lcdb: Disable the SC irq only for PM660L V1.1 and below
Kiran Gunda [Wed, 27 Jun 2018 05:44:21 +0000 (11:14 +0530)]
regulator: qpnp-lcdb: Disable the SC irq only for PM660L V1.1 and below

PM660L v2.0 has the NCP power-on issue fixed. This allows enabling the
short-circuit IRQ. Enable the same.

Change-Id: I4c0523ef8c46dd9bac190d4ad69190ef777ef14b
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
6 years agoMerge "dts: msm: Add QSEECOM heap node on msm8996 lfv baseline platform"
Linux Build Service Account [Thu, 5 Jul 2018 21:33:21 +0000 (14:33 -0700)]
Merge "dts: msm: Add QSEECOM heap node on msm8996 lfv baseline platform"

6 years agoARM: dts: msm: Set default status of I2C_8 as disabled
Shrey Vijay [Thu, 5 Jul 2018 13:24:14 +0000 (18:54 +0530)]
ARM: dts: msm: Set default status of I2C_8 as disabled

Set default configuration of I2C_8 instance to disabled
state, for MSM8996 vplatform, such that clients can overwrite
and enable respective instance as per need.

Change-Id: I2e873cb27ba028323d6dc1a0aa302f2c32e2b69f
Signed-off-by: Shrey Vijay <shreyv@codeaurora.org>
6 years agodts: msm: Add QSEECOM heap node on msm8996 lfv baseline platform
Jomana Artul [Thu, 5 Jul 2018 10:24:57 +0000 (13:24 +0300)]
dts: msm: Add QSEECOM heap node on msm8996 lfv baseline platform

Added the QSEECOM ION heap node, to allow QSEECOM driver and QSEECOM
API library to allocate ION memory from QSEECOM heap.

Change-Id: I72162f8e45bfb8dd3d54e259947aa9604618a7ed
Signed-off-by: Jomana Artul <jartul@codeaurora.org>
6 years agodiag: Update mask buffer after reallocation
Manoj Prabhu B [Wed, 27 Jun 2018 10:35:57 +0000 (16:05 +0530)]
diag: Update mask buffer after reallocation

Currently, reallocated mask update buffers are not
updated if the received mask range is more than the
mask update buffer length. Update the reallocated buffer
address before writing the mask to peripherals.

CRs-Fixed: 2266693
Change-Id: I6b506ce68e17b7da61926b0f9543157812a8c555
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
6 years agoDRM: DSI: setup software context during DSI prepare with splash
Camus Wong [Fri, 29 Jun 2018 19:44:59 +0000 (15:44 -0400)]
DRM: DSI:  setup software context during DSI prepare with splash

When splash handoff is enabled, it should skip the hardware init
function.  However, the software context should setup properly to
reflect actual hardware state.

Change-Id: I2a69bf5fadab726459e874597022cf5b54503102
Signed-off-by: Camus Wong <camusw@codeaurora.org>
6 years agoMerge "Revert "packet: fix race condition in packet_set_ring""
Linux Build Service Account [Wed, 4 Jul 2018 14:24:45 +0000 (07:24 -0700)]
Merge "Revert "packet: fix race condition in packet_set_ring""