Commit graph

580413 commits

Author SHA1 Message Date
Venkat Gopalakrishnan
ef5666862f scsi: ufs-qcom: skip err message for optional clk
Don't print err message for clocks that are optional, this
leads to unnecessary confusion about failure.

Change-Id: Ieb16f2203210963d7035447547b5779fadb17f6d
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
2016-12-15 11:39:33 -08:00
Jeff Mahoney
3283aeeace Revert "ecryptfs: forbid opening files without mmap handler"
This reverts commit 2f36db71009304b3f0b95afacd8eba1f9f046b87.

It fixed a local root exploit but also introduced a dependency on
the lower file system implementing an mmap operation just to open a file,
which is a bit of a heavy hammer.  The right fix is to have mmap depend
on the existence of the mmap handler instead.

Change-Id: I78753c9cadef7b43cd277d4827a096b45697c288
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Cc: stable@vger.kernel.org
Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
Git-commit: 78c4e172412de5d0456dc00d2b34050aa0b683b5
Signed-off-by: Dennis Cagle <d-cagle@codeaurora.org>
2016-12-15 10:30:19 -08:00
Karthikeyan Ramasubramanian
32c229060c net: ipc_router: Register services only on client port
Allowing services to be registered on a non-client port will cause either
an existing service or a control port to be over-written. This will cause
undefined functional behavior.

Allow the services to be registered only on client ports.

CRs-Fixed: 1101792
Change-Id: If6cfc75e9314204b7b44957f1598a8a2e1a45325
Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
2016-12-15 08:16:35 -07:00
Andrey Markovytch
0ea43de288 ext4 crypto: added support for O_DIRECT flag
In case of HW FBE, O_DIRECT flag can be supported since FS is not
required for crypto operations

Change-Id: I2e6a7abb56f0e3efdf314a57db131837d029de2e
Signed-off-by: Andrey Markovytch <andreym@codeaurora.org>
2016-12-15 06:38:04 -08:00
Vijayavardhan Vennapusa
442026d990 ARM: dts: msm: Update MPM pin mappings for USB for msmfalcon
Update required MPM pin mappings for USB for msmfalcon for remote wakeup
to be working during system suspend.

Change-Id: I26893b0d5974e8aff3c2ed7147560ba113af0155
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2016-12-15 17:26:00 +05:30
Preetam Singh Ranawat
1dff02e08e ASoC: msm: fix ULL playback over a2dp
ULL playback is not working over a2dp.

Add DAPM widget in routing driver for ULL playback
over SLIM_7_RX backend.

CRs-Fixed: 1101825
Change-Id: I9a9bcbf52ccb1f48b4e37e674a29c8c312b5ba1a
Signed-off-by: Preetam Singh Ranawat <apranawat@codeaurora.org>
2016-12-15 03:03:12 -08:00
Wei Ding
7dcadefa9c msm: camera: add logic to support sensor compatibility
Add logic to support sensor compatibility to fix same
slave address of sensor but different modules on one platform.

Change-Id: I6c6721e8ff890feaf2d618c8170e346367a68c28
Signed-off-by: penliu <pengfeiliu@codeaurora.org>
Signed-off-by: Wei Ding <weiding@codeaurora.org>
2016-12-15 00:14:53 -08:00
Harry Yang
841179fa16 ARM: dts: msm: set boost current threshold on PMI8998
A boost current threshold will be referenced in deciding
optimal boost switching frequency for efficiency.

CRs-Fixed: 1095917
Change-Id: I1e738e66cdfb72305dd4256dc0a6e05b03de585e
Signed-off-by: Harry Yang <harryy@codeaurora.org>
2016-12-15 00:00:41 -08:00
Harry Yang
e18221c7d0 qcom-charger: set optimal boost switching frequency
Currently, the default boost switching frequency is fixed at 800KHz,
which shows low efficiency in low USB load.

To improve it, only use the default 800KHz when boost current goes
above 100mA; otherwise, switch to 2MHz.

CRs-Fixed: 1095917
Change-Id: Iebb62303febfb78738ada4553fdb9b9eb4810ed5
Signed-off-by: Harry Yang <harryy@codeaurora.org>
2016-12-14 23:59:57 -08:00
Abinaya Selvaraj
5dd85a95f8 ARM: dts: msm: Add NFC device node for msm8998 QRD platforms
Add NFC device tree node for msm8998 QRD VR1 and SKUK
platforms. Add PMIC GPIO configurations associated with it.

Change-Id: I5b265ecd403bf09924ae6c58e56171f3a4d7e3d7
Acked-by: Umesh Jagga <ujagga@qti.qualcomm.com>
Signed-off-by: Abinaya Selvaraj <abinayas@codeaurora.org>
2016-12-15 09:55:13 +05:30
Walter Yang
23a11e9c28 ASoC: wcd-mbhc: check HPH PA status before impedance detection
If HPH PA is on, the result of impedance detection is not
reliable. So check the HPH PA status before impedance detection.

CRs-Fixed: 1100622
Change-Id: I9c2063011247cca8105b39c913633cd7619a89eb
Signed-off-by: Walter Yang <yandongy@codeaurora.org>
2016-12-14 19:00:41 -08:00
Syed Rameez Mustafa
3366a508ff Revert "sched/cputime: Fix steal time accounting vs. CPU hotplug"
This reverts commit 2a8225ef46
("sched/cputime: Fix steal time accounting vs. CPU hotplug").

The commit introduces a bug in scheduler book-keeping whereby if a CPU
is hotplugged out for a small duration of time, subsequent time spent
executing tasks gets mis-attributed to interrupts. This in turn results
in unfair scheduling whereby a task can keep executing for a very long
time without any update to it's vruntime. This revert has no side
effects for msm based systems.

Change-Id: Ibb506824c4223551bceb449594ac99f9dfd8064b
Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
2016-12-14 14:56:27 -08:00
Qidan He
b9e5da8b6f net: ping: Fix stack buffer overflow in ping_common_sendmsg()
In ping_common_sendmsg(), when len < icmph_len, memcpy_fromiovec()
will access invalid memory because msg->msg_iov only has 1 element
and memcpy_fromiovec() attempts to increment it. KASAN report:

BUG: KASAN: stack-out-of-bounds in memcpy_fromiovec+0x60/0x114 at addr ffffffc071077da0
Read of size 8 by task trinity-c2/9623
page:ffffffbe034b9a08 count:0 mapcount:0 mapping:          (null) index:0x0
flags: 0x0()
page dumped because: kasan: bad access detected
CPU: 0 PID: 9623 Comm: trinity-c2 Tainted: G    BU         3.18.0-dirty #15
Hardware name: Google Tegra210 Smaug Rev 1,3+ (DT)
Call trace:
[<ffffffc000209c98>] dump_backtrace+0x0/0x1ac arch/arm64/kernel/traps.c:90
[<ffffffc000209e54>] show_stack+0x10/0x1c arch/arm64/kernel/traps.c:171
[<     inline     >] __dump_stack lib/dump_stack.c:15
[<ffffffc000f18dc4>] dump_stack+0x7c/0xd0 lib/dump_stack.c:50
[<     inline     >] print_address_description mm/kasan/report.c:147
[<     inline     >] kasan_report_error mm/kasan/report.c:236
[<ffffffc000373dcc>] kasan_report+0x380/0x4b8 mm/kasan/report.c:259
[<     inline     >] check_memory_region mm/kasan/kasan.c:264
[<ffffffc00037352c>] __asan_load8+0x20/0x70 mm/kasan/kasan.c:507
[<ffffffc0005b9624>] memcpy_fromiovec+0x5c/0x114 lib/iovec.c:15
[<     inline     >] memcpy_from_msg include/linux/skbuff.h:2667
[<ffffffc000ddeba0>] ping_common_sendmsg+0x50/0x108 net/ipv4/ping.c:674
[<ffffffc000dded30>] ping_v4_sendmsg+0xd8/0x698 net/ipv4/ping.c:714
[<ffffffc000dc91dc>] inet_sendmsg+0xe0/0x12c net/ipv4/af_inet.c:749
[<     inline     >] __sock_sendmsg_nosec net/socket.c:624
[<     inline     >] __sock_sendmsg net/socket.c:632
[<ffffffc000cab61c>] sock_sendmsg+0x124/0x164 net/socket.c:643
[<     inline     >] SYSC_sendto net/socket.c:1797
[<ffffffc000cad270>] SyS_sendto+0x178/0x1d8 net/socket.c:1761
Memory state around the buggy address:
 ffffffc071077c80: f3 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 f1 f1
 ffffffc071077d00: f1 f1 04 f4 f4 f4 f2 f2 f2 f2 04 f4 f4 f4 f2 f2
>ffffffc071077d80: f2 f2 00 00 f4 f4 f2 f2 f2 f2 00 00 00 00 00 00
                               ^
 ffffffc071077e00: 00 f4 f2 f2 f2 f2 00 00 00 00 00 00 00 00 00 00
 ffffffc071077e80: 00 00 00 00 00 00 f3 f3 f3 f3 00 00 00 00 00 00

Bug: 31349935
Change-Id: Ib7385fc26dfe7e07e9bab42a10ff65a37cbaab54
Signed-off-by: Siqi Lin <siqilin@google.com>
Git-repo: https://android.googlesource.com/kernel/msm
Git-commit: 5459140fb7c8cbb588e06dadb4dc721f0d115c53
Signed-off-by: Dennis Cagle <d-cagle@codeaurora.org>
2016-12-14 13:57:36 -08:00
Osvaldo Banuelos
2d5df4af1a clk: msm: clock-osm: fix read-modify-write for LLM volt vote register
Currently, LLM_INTF_DCVS_DISABLE register is written values
directly instead of doing a read-modify-write. Fix this.

CRs-Fixed: 1101488
Change-Id: I1f99dc4b37e809cdc6fb4cafe7fb0b6d585cbd76
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
2016-12-14 12:17:00 -08:00
Prasad Sodagudi
4f22b25751 ARM: dts: msm: Add kaslr offset IMEM entry for msm8998
Add kaslr offset imem entry  for msm8998.

Change-Id: I456c62764c88149b785ecf1d65691ea5a775c1db
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
2016-12-14 11:08:43 -08:00
Prasad Sodagudi
4126207edf power: reset: Store KASLR offset in IMEM
Store kaslr offset in IMEM entry for debugging

Change-Id: I2f9b4e9d45f95066ec93bb5fab179a14bc2c62ee
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
2016-12-14 11:07:42 -08:00
Runmin Wang
cf58ac692b defconfig: msm: disable AIO support for msm8998
Disable the aio interface as we do not use this for performance
benefits.

Change-Id: Ibbe1845c673f3a422b013d17492790c79c78d076
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
2016-12-14 11:07:41 -08:00
Harry Yang
cfd44286e5 qcom-charger: smblib: drop the BOOST PFM Threshold change
The original change to set 200mV boost PFM threshold at request
of a HW workaround is no longer needed, set as default now in
SBL.  Remove it.

CRs-Fixed: 1095917
Change-Id: I4e041dafa83d935a5c16c96bea7a3ea488e80d87
Signed-off-by: Harry Yang <harryy@codeaurora.org>
2016-12-14 10:52:37 -08:00
Veera Sundaram Sankaran
97b9905c13 msm: mdss: avoid cropping of pipe src/dst rect for MPU
Avoid cropping of the pipe src/dst rect based on the two
ROIs during Multiple Partial Update. The userspace is expected
to send the actual cropped rect, as cropping in the kernel
will need recalculation of pixel extension parameters. Add
checks to fail such cases fall back to full screen update.

Change-Id: Ie41c5664adf3882400b8138b0473ac3a469ee0a6
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
2016-12-14 10:42:16 -08:00
Jack Pham
68a23c3a17 usb: xhci: Add support for SINGLE_STEP_SET_FEATURE test of EHSET
The Embedded High-speed Host Electrical Test (EHSET) procedure defines
the SINGLE_STEP_SET_FEATURE test for an embedded USB Host port. Upon
activating this test mode, the SETUP stage of a GetDescriptor request
is sent and followed by a delay of 15 seconds before finishing with
the DATA and STATUS stages. The idea is that this delay will give the
test operator sufficient time to configure the oscilloscope to perform
a measurement of the response time delay between the latter two stages.

This test is not implemented by the EHCI/xHCI host controller itself but
can be implemented in software. Similar to commit 9841f37a1c ("usb:
ehci: Add support for SINGLE_STEP_SET_FEATURE test of EHSET"), this patch
adds such support to the xHCI driver.

Change-Id: I638ca552f6dae735147378f3e6f6068e0003094b
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2016-12-14 09:38:27 -08:00
Skylar Chang
c5301546e5 msm: ipa: fix split packet handling
Fix packet handling in case packet received from IPA hardware
is scattered across multiple buffers.

Change-Id: I4935ecb8eaa438d259c1c27a66f62c78f874c9ee
CRs-Fixed: 1097420
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2016-12-14 09:11:17 -08:00
Hareesh Gundu
6b8b2d1a05 msm: kgsl: Get pages from the system incase mempool is not configured
Allow driver to get pages from the system incase mempool configuration
is not defined from the device tree. This will fix kgsl driver probe
failure for without gpu mempool configuration devices.

Change-Id: I3142a5d2e13ed40f643c91594fd868c37620ce54
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
2016-12-14 09:01:22 -08:00
Rama Krishna Phani A
884c1cb85a hwmon: qpnp-adc: Initialize variables in get_devicetree function
Properly initialize variables at the time of declaration.

Change-Id: I6eab6b08cb9ec7bfa6523ab3ed66d086eab89544
Signed-off-by: Rama Krishna Phani A <rphani@codeaurora.org>
2016-12-14 20:00:12 +05:30
Gaurav Kohli
90491d775b ARM: dts: msm: Update smem id of CDSP PIL for MSMFALCON
Update smem id of CDSP PIL for MSMFALCON.

Change-Id: I8d76958b07d5cdd9f139bba21eae00e676bc9d96
Signed-off-by: Gaurav Kohli <gkohli@codeaurora.org>
2016-12-14 18:39:56 +05:30
Trishansh Bhardwaj
2705050d4a msm: camera: Change %p into %pK
Prevents kernel info leak by changing %p into %pK

Change-Id: I7f1419c8f7fd7c371767f6921afe0cd8cfaad18f
CRs-Fixed: 1052835
Signed-off-by: Trishansh Bhardwaj <tbhardwa@codeaurora.org>
2016-12-14 17:48:07 +05:30
Gaurav Kohli
f03bf11b39 ARM: dts: msm: Remove write of acc register for MSMFalcon/Triton/8998
Remove the write of acc strap register by default value during Q6 reset
as per Hardware Programming Guide.

Change-Id: Id5b8aaae0783893290e95626b394841a7d3808a3
Signed-off-by: Gaurav Kohli <gkohli@codeaurora.org>
2016-12-14 17:22:21 +05:30
Ajay Agarwal
fc6f256ae8 usb: gadget: Add DPL support using IPA over BAM2BAM
This change adds DPL support using IPA over BAM2BAM.
Initialises two instances of the RmNet Opts structure,
one for RmNet itself and one for DPL. Uses APIs for
QTI and IPA support from RmNet driver.

Change-Id: I76e0c86643331b9623d634bb462faaeb816c0935
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2016-12-14 17:15:18 +05:30
Vijayavardhan Vennapusa
48f731aacb ARM: dts: msm: Add QMP PHY init sequence for msmfalcon
Add required QMP PHY initialization sequence for msmfalcon for
USB SS mode working.

Change-Id: I14a9f7a1079956efcb3b31ffeca1235a62856bf5
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2016-12-14 16:10:59 +05:30
Shubhraprakash Das
b17b5d80da ARM: dts: msm: Remove unrequired vbif settings
Additional vbif registers being programmed by isp driver
are not needed as the reset state of the registers are
correct.

CRs-Fixed: 1076756
Change-Id: I08e377141321ce65e6971eec4a35bd771a1fc590
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
2016-12-14 01:03:17 -08:00
Gaurav Kohli
19740f9d53 soc: qcom: pil-q6v5: Update the reset sequence for qdspv62.1.2/1.5
Update the reset sequence to read each write while enabling QDSP6 memory
bank one at a time. This will make sure whether write is complete or not.
Also add logs during Mss shutdown, It will help to debug Mss restart
and shutdown case.

Change-Id: I9f2cb058a7e59b573fc64662ee7b5bff49b18ea7
Signed-off-by: Gaurav Kohli <gkohli@codeaurora.org>
2016-12-14 01:02:53 -08:00
Linux Build Service Account
e76a02113d Promotion of kernel.lnx.4.4-161213.
CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
1100362   I9a12ac11b6bd303eb32b4e03e116281bca664d06   ARM: dts: msm: rename battery profile used for msm8998 Q
1100113   I403c9def4f90832174f45e21e6c6fceb4a77a2a0   ARM: dts: msm: Add bluetooth node for msmfalcon
1100536   I088aafe8cef621550b1776ca5a652c66e8ac5b62   ARM: dts: msm: Add GPU mempools properties for msmfalcon
1094140   I8c280b60f316d7bae87644104d18aa7df4af9efe   spcom: check buf size for send modified command
1074535 1094097   Ibfd9d12503248a3589bbda94096d40856ccba2c4   defconfig: arm64: msm: Enable USB RMNET & RNDIS using IP
1094078   Ib03cd8c79966ff35863c1bde99089cac018ab45c   spcom: check buf_size validity for user send command
1099641   I21c992676c41b6cdc3ea53722806e8d0be78d9d5   icnss: Remove dev reference
1097768   I3927ad2f670e45acd10f8568857cf9f3434df657   USB: dwc3: msm: Fail probe if core-clk-rate is not passe
996538   I3d6a603c693d1df36719f57684ffad409e1a0e78   USB: dwc3-msm: Check endpoint status and request queued
1094143   If3ead54bd03368fa9338921e299b2ad8fb078297   spcom: check user space command size
1100206   Ifc03c72233dcf1081fc3f2fed495d19e48bb8c7d   ARM: dts: msm: add camera focus and snapshot nodes for M
1099501   I864fd8f75ded6ab8c42ea36bcdadcdbe924e927d   NFC: Inform CLF whenever eSE is powered off
1092550   I3e4a43de0c1de6573fea8a52929f6c7af5259755   ARM: msm: dts: Add regulator changes for msm8998-v2.1-in
1095917   I1ad2cfecb7a2f6bdeaced29a1753cdc1bf3849db   usb: dwc3-msm: Set PROP_BOOST_CURRENT for direct attach
965207   Ib5bfd1a7d258fe336a4c9924850fc9223c1c81f6   USB: dwc3-msm: Initialize DBM ep before BAM pipe reset
1097176   Ic6e2c2208a8971b07ed6ccfc8d63091e4692301f   clk: qcom: Update fmax tables and few frequencies clocks
1097901   I81b4a3184a709a5328b04c389b0e5277d65a675d   smb-lib: revert the boost back workaround for dc path
1054284   I73860a7bb252a0226b591a5f732e6a7b864911cf   dwc3: gadget: Increase TXFIFO size as 3KB with endless U
1090466   Id2472097e115f1c8d09886c1a1ceb01c4f5c5f4b   msm: dvb: demux: compilation error fix for 32 bit versio
1100362   I119e6af297b37a06a227475f712f938367fb65bc   qpnp-fg-gen3: Use the correct property name to get fastc

Change-Id: I8028d83fec88ca91fa5248a1efcb36707abe6029
CRs-Fixed: 1097176, 1100206, 1099501, 1090466, 1095917, 1097901, 1099641, 965207, 1074535, 1092550, 1100362, 1094078, 1094097, 1100113, 1054284, 996538, 1097768, 1094143, 1094140, 1100536
2016-12-14 00:03:04 -07:00
Amir Samuelov
28d23d4d79 spcom: check size before calling copy_to_user()
Calling copy_to_user(to, from, size) with negative value
might cause heap overflow since size is unsigned parameter
and negative value is cast to big unsigned value.

CRs-Fixed: 1092683
Change-Id: I9b4a0710aa33942de2976f7ee158a8025dd6a20e
Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
2016-12-13 22:26:38 -08:00
Mayank Rana
b978a16710 usb/xhci: Add support for EHSET tests for host compliance
USB 2.0 specification defines following test modes for host electrical
compliance: TEST_J/K/SE0_NAK and TEST_PACKET. Hence add support for
same.

CRs-Fixed: 868394
Change-Id: I885ae66be2d8cca17bcc0b87b7635a71c734e4b2
Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2016-12-13 21:22:16 -08:00
Vijayavardhan Vennapusa
e6b5a58c7d USB: composite: Send stall when no config is active
Whenever composition switch happens, android driver stops data transfers &
removes configuation before disabling pullup. Due to this, there is small
window during which pullup is active and device ends up sending device
descriptor with zero confiurations in certain scenarios of Host PC reboot.
Hence fix the issue by stalling control endpoint in this scenario.

Change-Id: I3d3c0321d9311617c6ee492c55809f36de6ae412
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
2016-12-13 21:02:32 -08:00
Vijayavardhan Vennapusa
d4d45536ae usb: gadget: composite: Add spinlock protection for usb config descriptor
During composition switch, android driver stops data transfers first and
removes configuration before disabling pullup for USB3 controller. With
this sequence there is a possibility for a race where usb_remove_config is
in progress during which pullup is active and sending the setup request for
configuration descriptor with zero configuration value. Hence fix the issue
by adding spinlock protection for get_config descriptor.

CRs-Fixed: 1052608
Change-Id: I65d38387f77addc9a8894a74f427d97313f90a9e
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
2016-12-13 20:58:03 -08:00
Vijayavardhan Vennapusa
7d36ce0b84 Revert "USB: dwc3-msm: Enable power event irq in case of host bus suspend"
Commit 3dd2172dfecc ("USB: dwc3-msm: Enable power event irq in case of
host bus suspend") is added to enable power_event_irq during host bus
suspend. This is to map MPM pin for DM to power_event_irq to wakeup during
system suspend in host mode. Currently MPM driver has support for mapping
multiple MPM pins to single IRQ. Hence it is not required to enable
power_event_irq during host bus suspend.

Change-Id: I5c7d6b4d43baa0b387342a8bd261361a5c07fe23
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2016-12-13 20:55:37 -08:00
Vijayavardhan Vennapusa
98eba6ebf2 USB: gadget: f_qdss: Add proper checks in usb_qdss_close()
On qdsss channel close, driver is dequeuing endless request without
checking whether qdss is active or not. This might crash if qdss channel
is closed when non QDSS composition is active. Fix the issue by having
proper checks and if qdss is not active, just return without performing
dequeue operation.

Change-Id: I667ea843f77794e9384c22ece218853331751db6
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
2016-12-13 20:55:21 -08:00
Vijayavardhan Vennapusa
fc2fd4a788 USB: f_qc_rndis: Add spinlock protection whereever required
Add spinlock protection in rndis_qc_command_complete() and
rndis_qc_response_complete() to avoid races with disable and
unbind() function calls. Otherwise it results in crash or using
freed memory.

Change-Id: Ida99de70a541ba12a8a8610b1c6fa717e42d865c
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
2016-12-13 20:54:53 -08:00
Vijayavardhan Vennapusa
3ce2d1d47d defconfig: msmfalcon: Enable EHSET Test Fixture device driver
Enable required EHSET Test fixture driver to perform the high speed
electrical testing procedure for USB-IF compliance.

Change-Id: I92cd6cac7315905862aff1c3dde1b4d6ee771128
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2016-12-14 10:23:06 +05:30
Vijayavardhan Vennapusa
6ffbb989b5 usb: qusb2: De-assert TCSR_QUSB2PHY_CLAMP_DIG_N_1P8 upon boot up
This prevents leakage on 1p8 power rail upon boot up when usb cable
is not connected.

Change-Id: Ia19d54df6086cfb0047fcdd8b04e7e0edff91cf7
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2016-12-14 10:17:18 +05:30
Hemant Kumar
9ed86b4e6c sound: usb: auto suspend device only if it supports remote wakeup
Some usb headsets which do not support remote wakeup when suspended
and resumed by host resulting device disconnect. Hence do not suspend
device if it not remote wake up capable.

Change-Id: Ia2462116582b6e22c44cff88df2872e4127e5e29
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2016-12-13 18:28:27 -08:00
Jack Pham
33c3372a82 defconfig: msmcortex: Enable EHSET Test Fixture device driver
Enable required EHSET Test fixture driver to perform the high speed
electrical testing procedure for USB-IF compliance.

Change-Id: I88f2748f0c8cf96fe7f6ab9ebaa82d51ec97f4fd
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2016-12-13 18:03:26 -08:00
Kuirong Wang
9286838256 ASoC: msm8998: add asm loopback FE DAI
Add asm loopback FE DAI to support the audio asm loopback
use case for msm8998 platform.

CRs-Fixed: 1099656
Change-Id: Ia1c6d8dfd75eb21cde8de7b9bfcab4e4277e339f
Signed-off-by: Kuirong Wang <kuirongw@codeaurora.org>
2016-12-13 17:56:03 -08:00
Kuirong Wang
73c975d6fd ARM: dts: msm: update speaker left and right GPIOs for APQ8998
Update speaker left and right GPIOs for APQ8998 platform since it
uses different GPIOs from MSM8998 platform.

CRs-Fixed: 1099656
Change-Id: Idecd865b7a11e4cd30737f5d800673c87807592c
Signed-off-by: Kuirong Wang <kuirongw@codeaurora.org>
2016-12-13 17:32:17 -08:00
Skylar Chang
303f2fbfac msm: ipa3: support AP+STA IPA stats
Add IPA stats support on AP+STA mode when
CNE queries. Also add metering funtionality
on WIFI interface to stop the data transfer
when quota reached on WIFI-case.

Change-Id: I85da89f681170acf21674a8f1a34778014c92892
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2016-12-13 17:01:29 -08:00
Krishnankutty Kolathappilly
7e4424a1b5 msm: camera: Synchronize jpeg ISR and userspace call
This will fix the race between jpeg dma ISR and userspace call.
Without this fix jpeg dma may randomly crash due to invalid pointer
access.

Change-Id: I559ae08b9a46d5d3c35f8be509976a25faa967f9
CRs-Fixed: 1083323
Signed-off-by: Krishnankutty Kolathappilly <kkolatha@codeaurora.org>
2016-12-13 15:20:00 -08:00
Prabhanjan Kandula
3bf774ff83 msm: mdss: fix data path for concurrent writeback
- Read data-path flag set by client for CWB, and
populate CWB output layer flags.
- Fix data path register setting for right mixer

Change-Id: I3599ce1b19df48c72a4c951be76b813704b8a124
Signed-off-by: Prabhanjan Kandula <pkandula@codeaurora.org>
2016-12-13 12:45:59 -08:00
Linux Build Service Account
3162449f7d Merge "USB: dwc3: msm: Fail probe if core-clk-rate is not passed from dts" 2016-12-13 12:18:07 -08:00
Linux Build Service Account
2b66512ac3 Merge "USB: dwc3-msm: Check endpoint status and request queued or not first" 2016-12-13 12:18:06 -08:00
Linux Build Service Account
b574f42cd7 Merge "USB: dwc3-msm: Initialize DBM ep before BAM pipe reset" 2016-12-13 12:18:05 -08:00