Commit graph

586895 commits

Author SHA1 Message Date
Linux Build Service Account
e99cdf40ba Merge "net: ipv6: Add early demux handler for UDP unicast" 2017-03-31 21:24:21 -07:00
Linux Build Service Account
f0ee86f82a Merge "drm/msm: Add performance counter tracking" 2017-03-31 21:24:20 -07:00
Linux Build Service Account
438703a38e Merge "icnss: Separate debug and verbose log" 2017-03-31 21:24:19 -07:00
Linux Build Service Account
793709645b Merge "msm: qpnp-haptic: Enable HW auto-resonance for PM660" 2017-03-31 21:24:19 -07:00
Linux Build Service Account
ad4fb9e0fe Merge "msm_11ad: 11AD SMMU changes to allow enabling of SMMU stage1" 2017-03-31 21:24:18 -07:00
Linux Build Service Account
feb15f20cb Merge "msm: media: Allocate extra memory after alignment" 2017-03-31 21:24:17 -07:00
Linux Build Service Account
6b41d84c53 Merge "soc: qcom: spcom: lock ion buf, decrement ref count if no free entry" 2017-03-31 21:24:16 -07:00
Linux Build Service Account
29a8408816 Merge "diag: Add support for header untagging" 2017-03-31 21:24:15 -07:00
Linux Build Service Account
6210291d06 Merge "ASoC: codecs: Correct stream name, add dapm sync" 2017-03-31 21:24:15 -07:00
Linux Build Service Account
68a715abd5 Merge "drivers: soc: Add mutex lock in audio_notifier_late_init" 2017-03-31 21:24:14 -07:00
Subhash Jadavani
bee947b93d scsi: ufs: prevent auto-hibern8 trigger during clock frequency scaling
If auto hibern8 is supported then we should manually put the link in
hibern8 before clock frequency scaling sequence to avoid auto hibern8
racing during clock frequency scaling sequence. Othewise, we may
see UFS command or hibern8 issues after the scaling sequence completion.

Change-Id: I6a126029be6fb03ba4b387fbdfa89e068882a54f
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
2017-03-31 19:17:26 -07:00
Anirudh Ghayal
1054280e99 regulator: qpnp-lcdb: Add a WA to toggle SC before module_enable
There is a possibility of the NCP failing to turn on due
to an invalid (short circuit) SC event before the LCDB module
is enabled.

Force a SC re-enable to recover from this condition. Enable this
for PM660L V1.1.

Also, disable the SC handling logic for PM660L to avoid
permanently disabling the module due to the above mentioned
issue.

CRs-Fixed: 2025449
Change-Id: I191d11c35c3d96727874818b8b57fa1c254879bf
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2017-04-01 06:47:53 +05:30
Anirudh Ghayal
5549356bec include: qpnp-revid: Add PM660L version info
Add PM660L v1.1 version macros.

Change-Id: I14c3f2110efc474686df488748b0a671f34ced90
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2017-04-01 06:39:53 +05:30
Daniel Rosenberg
f6c025297e ANDROID: ion: check for kref overflow
Userspace can cause the kref to handles to increment
arbitrarily high. Ensure it does not overflow.

Signed-off-by: Daniel Rosenberg <drosen@google.com>

Bug: 31992382
Test: See bug for poc
Change-Id: I6bff1df385742b1d836d43180dc87fadcea80782
Git-repo: https://android.googlesource.com/kernel/msm
Git-commit: 0c702db4d90de88df11057bcf0d8fb2dfe741605
Signed-off-by: Dennis Cagle <d-cagle@codeaurora.org>
2017-03-31 16:37:58 -07:00
Satya Durga Srinivasu Prabhala
5559ceed46 soc: qcom: service-locator: Return in case of no matching domains found
If no matching domains found in response to the request, return error
instead of going ahead with memory allocation which would lead to
other issues.

CRs-Fixed: 2025293
Change-Id: I327b3494812cddc643f6b355c04f85f4baa7c399
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
2017-03-31 16:10:33 -07:00
Harry Yang
6399b30218 qcom: qnovo: Fix PCURx reporting error
PCURx[MSB:LSB] is a 14-bit signed raw data, but treated as two full bytes
during reg reading, as a result bit 14 and 15 are filled with 0s. When
the raw data is negative, the mistreated reading gives positive result.
Hence the eventual PCURx after applying the gain and offset corrections
is incorrect.

Fix it by extending sign bit when negative.

Change-Id: Ia35406809355bd5e2d6cfeb890dd870430e38f66
Signed-off-by: Harry Yang <harryy@codeaurora.org>
2017-03-31 15:41:21 -07:00
Sujeev Dias
533f538f7f mhi: mhi_uci: redesign mhi_uci driver
As a prerequisite for subsystem restart support,
redesign driver main operations such as open,
read, write, poll, and close methods.

CRs-Fixed: 1097560
Change-Id: I7eb99a09de75a2afa1eb408cace6a03dca85f5fe
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
2017-03-31 15:39:06 -07:00
Mayank Rana
7af71579f5 usb: dwc3: Use high priority worker as bottom half handler
Latency involved in handling dwc3 interrupt in real time threaded
interrupt is sometimes resulting into RT throttling. Hence queue
bottom half work from dwc3 hard irq handler to a high priority
workqueue. Also, update the corresponding irq flag in host
controller platform driver.

Change-Id: If65a522efb6d792eea7fa7afc4c5e4dcd1cb6fb8
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2017-03-31 15:22:57 -07:00
John Youn
c451e3744b usb: dwc3: Workaround for irq mask issue
This is a workaround for STAR 9000961433 which affects only version
3.00a of the DWC_usb3 core. This prevents the controller interrupt from
being masked while handling events. Enabling interrupt moderation allows
us to work around this issue because once the GEVNTCOUNT.count is
written the IRQ is immediately deasserted and won't be asserted again
until GEVNTCOUNT.EHB is cleared.

Signed-off-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Change-Id: I18d507ec98401341d08537cd347aefd940c24da0
Git-commit: 28632b44d129cd2dc677475197a01cced307cfc5
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
[hemantk@codeaurora.org: Moved WA to dwc3_core_init()]
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2017-03-31 15:20:36 -07:00
John Youn
df622b1759 usb: dwc3: Implement interrupt moderation
Implement interrupt moderation which allows the interrupt rate to be
throttled. To enable this feature the dwc->imod_interval must be set to
1 or greater. This value specifies the minimum inter-interrupt interval,
in 250 ns increments. A value of 0 disables interrupt moderation.

This applies for DWC_usb3 version 3.00a and higher and for DWC_usb31
version 1.20a and higher.

Signed-off-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Change-Id: I5c5997c6eea817e49102b8e080f3a9bcf45305b4
Git-commit: cf40b86b6ef6df5262ef5a8463b42524e6aa5590
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
[hemantk@codeaurora.org: removed write to DWC3_DEV_IMOD in dwc3_interrupt,
and fixed merge conflicts]
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2017-03-31 15:19:34 -07:00
John Youn
4be0173416 usb: dwc3: Add a check for the DWC_usb3 core
Add a helper function to check if we are running on a DWC_usb3 core.

Signed-off-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Change-Id: Ic0c3810b798df8bf34a2ad7e1879884e7bf3c8f5
Git-commit: a987a906e95c4d80a364629d6bcb7cf69d2018e4
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
[mrana@codeaurora.org: resolved merge conflicts]
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2017-03-31 14:19:53 -07:00
John Youn
fc1a0913c1 usb: dwc3: DWC_usb31 controller check
Add a convenience function to check if the controller is DWC_usb31.

Signed-off-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
Change-Id: I2f9080a4a54269790e3594d0e61a76bd37d8b2c9
Git-commit: c4137a9c841ec7fb300782d211f2d6907f4d6e20
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2017-03-31 14:19:27 -07:00
John Youn
e63417d73c usb: dwc3: gadget: clear events in top-half handler
Now that all the infrastructure is in place, we can
clear events in the top-half handler in order to
bring IRQ line low ASAP.

This is also a necessary step in order to implement
workaround for known erratum in follow-up patches.

Signed-off-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Change-Id: Ic0823f85c0386045ab4865544bef0403ec047a99
Git-commit: 65aca3205046d159b2c79f7531203a53aec9cf35
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
[hemantk@codeaurora.org: resolved merge conflict by replacing
DWC3_GEVNTCOUNT(0) with DWC3_GEVNTCOUNT(buf)]
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2017-03-31 14:14:15 -07:00
Subash Abhinov Kasiviswanathan
ecc51b984b drivers: net: rmnet: Initial implementation
RmNet driver provides a transport agnostic MAP (multiplexing and
aggregation protocol) support in embedded and bridge modes. Module
provides virtual network devices which can be attached to any IP-mode
physical device. This will be used to provide all MAP functionality
on future hardware in a single consistent location.

CRs-Fixed: 2022292
Change-Id: I4dd0f4fcf00bbf9dcbec65cec82436d48a813ecc
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
2017-03-31 15:07:51 -06:00
Sujeev Dias
f13bb7cfeb mhi: core: add support for subsystem restart and shutdown
Add support for subsystem restart and shutdown processing
for slave mode and master mode.

CRs-Fixed: 1097560
Change-Id: I8c60605d202d38a7a8f8fb587a179f95ec402692
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
2017-03-31 13:44:51 -07:00
Ram Chandrasekar
ddf27e53c3 ARM: dts: msm: Update KTM boot mitigation config for msm8996pro
Update the KTM boot mitigation configuration to poll at
50 milliseconds and do frequency mitigation at 80c and
hotplug at 90C for msm8996pro.

CRs-Fixed: 1007266
Change-Id: I8537c5d8fd86d90f607a719c618157f4a2fbfad9
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
2017-03-31 08:31:55 -07:00
Hardik Kantilal Patel
0e7de47c30 icnss: pre-alloc memory leak check on probe failure and remove
After wlan host driver probe failure and driver unload check the
memory leak and reset the memory pool.

CRs-Fixed: 2027407
Change-Id: Id6e413416ec7ea1d1bf0e69aab7eccb06de753d7
Signed-off-by: Hardik Kantilal Patel <hkpatel@codeaurora.org>
2017-03-31 16:49:22 +05:30
Shantanu Jain
27ff365a17 input: touchscreen: remove synaptics v2.6 touch driver
Remove synaptics v2.6 touch driver from the kernel code
as it has never been used in any of the recent platforms.

Change-Id: Ibf14dec548a180e517d9b41098af642577c4328b
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2017-03-31 14:52:14 +05:30
Sarada Prasanna Garnayak
948f3d7425 net: cnss_prealloc: add debugfs entry to check the memory status
This feature adds support to check the pre allocated memory
pool status at runtime. This debugfs entry provide the required
information for wlan host driver memory profiling and adds support
to debug the pre-alloc memory failure issue.

feature:
1. Total amount of pre-alloc memory avail and used in the
   memory pool.
2. Pre-alloc memory status per slots(used/free).

CRs-Fixed: 2027352
Change-Id: I61c51f93dd7462b1fa9c36f6eea3814a6acbdd34
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
Signed-off-by: Hardik Kantilal Patel <hkpatel@codeaurora.org>
2017-03-31 14:27:58 +05:30
Maulik Shah
a95247f5db drivers: cpuidle: Minimize round off errors in wake up time
Current implementation adds more delay in wake up time programmed
due to round off errors. Minimize round off errors in calculation.

Change-Id: Iddb19c6dae79c999de9fae444f0c64aac0500f42
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
2017-03-31 14:11:22 +05:30
Prateek Sood
13fb75f9f1 ARM: dts: msm: Add dt support for platforms with audio over USBC
Add device tree files for analog audio over USBC support
for RCM platform of SDM660 & SDM630.

Change-Id: I0aa36adcdd71414f4f8091f02cb1ac3b61ab5c07
Signed-off-by: Prateek Sood <prsood@codeaurora.org>
2017-03-31 13:01:34 +05:30
Subbaraman Narayanamurthy
493821b72c ARM: dts: msm: update itech and st1031ga battery profile parameters
Change the fast charge current of ascent battery to 2A as the
maximum current limit is 2.1 A. Set CC_CV threshold for ST1031GA
battery to 4.39 V.

Change-Id: I3e270105f1d6ae105890d1905906c3648926c314
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-03-30 20:10:22 -07:00
Deepak Kumar
e94796fdb3 ARM: dts: msm: Update GFX PM-QoS values for SDM630
Update GFX PM-QoS entries according to the measured
LPM latencies for SDM630 to prevent l2-pc.

Change-Id: I3a59a26bf19d79393c4b45c8a3b243897f3f6eb2
Signed-off-by: Deepak Kumar <dkumar@codeaurora.org>
2017-03-30 20:08:58 -07:00
Walter Yang
4e26a02aab ASoC: mbhc: Modify special headset detection
Modify detection sequence to support the fast special headset
detection with more reliable plug type result.

Change-Id: I74df2c8c54e49a3888511843a15122ca708425ed
CRs-Fixed: 2022622
Signed-off-by: Walter Yang <yandongy@codeaurora.org>
2017-03-30 19:40:36 -07:00
Anirudh Ghayal
e8662c7b5d power: smb-lib: Rerun APSD regardless of charger-type
It is observed that the USB_PHY may interfere with APSD
when the charger is inserted at PON. This may lead to
incorrect charger type detection.

Fix this by doing a APSD re-run during driver initialization
if USB is present and regardless of the charger type.

CRs-Fixed: 2011764
Change-Id: Icc9ee7bacf0eecdb311ca52979758514abca154e
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2017-03-30 18:03:50 -07:00
Mayank Rana
265b668a10 usb: gadget: f_mass_storage: Perform async runtime resume upon set_alt
commit 82f2935616 ("usb: gadget: f_mass_storage: Allow USB LPM
upon ep disable") just increments power usage count by 1 for dwc3 device
in thread handler. Since child count for dwc3 parent remains 0, there is
possibility of dwc3 parent going into suspend even if dwc3 power usage
count is set to 1. This causes unclocked register access as mdwc gets
runtime suspended and mass storage thread handler disables the endpoint.
Fix this issue by calling usb_gadget_autopm_get_async() in set_alt which
increments dwc3 power usage count and carry out resume asynchronously.

Change-Id: Iccce928590d8e67e234f0aa371f78eb1e6a326b7
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2017-03-30 17:56:21 -07:00
Jack Pham
775e281fb6 trace: ipc_logging: Avoid buffer overflow in ipc_log_string()
In ipc_log_string() the return value from vsnprintf(), data_size,
is used to increment ectxt.offset. However, this length could
actually be much larger than that of ectxt.buff itself. This is a
typical mistake of [v]snprintf() usage [1], in that it returns
not the number of characters written but how many characters
*would* have been written regardless of whether it was truncated.
The result is that even though ectxt.buff itself is not overrun,
the incorrect size in ectxt.offset will be later used as the length
parameter when memcpy()'ing to the ipc_log_page's data, overflowing
that memory and beyond. The write_page's write_offset would also
indicate an out-of-bounds (greater than PAGE_SIZE) length.

The fix is simple: use vscnprintf() instead of vsnprintf().

[1] https://lwn.net/Articles/69419/

Change-Id: I2e9d44e74f5f30a009732e31a554d82e31946999
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2017-03-30 17:34:50 -07:00
Linux Build Service Account
92124c76a2 Merge "drm/msm: Remove ringbuffer restriction from idle" 2017-03-30 15:31:40 -07:00
Linux Build Service Account
2146eb6702 Merge "drm/msm: Update registers for performance counters" 2017-03-30 15:31:39 -07:00
Linux Build Service Account
e7e5fdf600 Merge "ARM: dts: msm: Update QoS priority for pimem bus master for sdm660" 2017-03-30 15:31:38 -07:00
Linux Build Service Account
8bbbda45fb Merge "msm_serial_hs: Change GPIO config sequence during runtime resume/suspend" 2017-03-30 15:31:37 -07:00
Linux Build Service Account
afe9a529cb Merge "msm: sde: Protect concurrent access to resources in SDE rotator" 2017-03-30 15:31:35 -07:00
Linux Build Service Account
45a51fbf92 Merge "msm-4.4: driver to create cld80211 nl family at bootup time" 2017-03-30 15:31:34 -07:00
Linux Build Service Account
32aa03c0c5 Merge "wil6210: do not start regular scan on stopped p2p device" 2017-03-30 15:31:33 -07:00
Linux Build Service Account
e19e1d6ed8 Merge "msm: ipa: Fix to reset the sticky_rear flag" 2017-03-30 15:31:30 -07:00
Linux Build Service Account
3e41080faa Merge "usb: gadget: mtp: reset string descriptor's index with unbind" 2017-03-30 15:31:29 -07:00
Linux Build Service Account
a9a7492ba1 Merge "esoc: Fix user space corruption due to wrong data type" 2017-03-30 15:31:28 -07:00
Linux Build Service Account
2959ac0a18 Merge "qseecom: fix macro QSEECOM_ALIGN definition issue" 2017-03-30 15:31:26 -07:00
Linux Build Service Account
2645a39019 Merge "qcom: qnovo: Disable ok_to_qnovo right after charging stops" 2017-03-30 15:31:25 -07:00
Linux Build Service Account
2b504b9bae Merge "qcom: smb138x-charger: support two usb input properties" 2017-03-30 15:31:23 -07:00