Commit graph

578781 commits

Author SHA1 Message Date
Ajay Agarwal
3a55a2de32 usb: gadget: u_data_ipa: Fix condition check for IPA pipes updation
Only RmNet and DPL need to update their IPA pipes
during ipa_data_connect_work context. Add this check
before updation of the pipes.

Also fix usage of spinlock to avoid potential
device crash.

Change-Id: I45d13b40fab9bf6686277c0c26a07668410cdfb2
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2016-12-22 11:46:10 +05:30
Chandana Kishori Chiluveru
025b721004 USB: gadget: u_data_ipa: Handle usb requests allocation/free correctly
Currently USB requests are allocated during connect work for starting
endless TX and RX in BAM2BAM over IPA. But these requests are not freed
during disconnect which leads to memory leak and could result in memory
allocation failure in function drivers during next connect. Hence free USB
requests allocated during disconnect to fix memleak issue and also move
allocation of RX/TX usb requests to gbam_connect to avoid crashes due
to NULL pointer dereference.

Also extend spinlock protection to avoid the crashes during connect and
disconnect functions.

Change-Id: I4362fde2928857253d2150e4d9531cada876cd58
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2016-12-20 15:41:24 +05:30
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
Linux Build Service Account
0aaea76517 Merge "ARM: msm: dts: Add regulator changes for msm8998-v2.1-interposer" 2016-12-13 12:18:05 -08:00
Linux Build Service Account
4cfe3d17f6 Merge "ARM: dts: msm: Add bluetooth node for msmfalcon" 2016-12-13 12:18:04 -08:00
Linux Build Service Account
1dcf06662e Merge "ARM: dts: msm: add camera focus and snapshot nodes for MSMFALCON" 2016-12-13 12:18:03 -08:00
Linux Build Service Account
a9d2a4230a Merge "ARM: dts: msm: Add GPU mempools properties for msmfalcon" 2016-12-13 12:18:02 -08:00
Linux Build Service Account
41a3d6a427 Merge "clk: qcom: Update fmax tables and few frequencies clocks of MSMfalcon" 2016-12-13 12:18:02 -08:00
Linux Build Service Account
7acd465532 Merge "defconfig: arm64: msm: Enable USB RMNET & RNDIS using IPA over BAM2BAM" 2016-12-13 12:18:01 -08:00
Linux Build Service Account
f25d55e62e Merge "qpnp-fg-gen3: Use the correct property name to get fastcharge current" 2016-12-13 12:18:00 -08:00
Linux Build Service Account
127197b2bf Merge "ARM: dts: msm: rename battery profile used for msm8998 QRD" 2016-12-13 12:17:59 -08:00
Linux Build Service Account
6243ed9ad2 Merge "usb: dwc3-msm: Set PROP_BOOST_CURRENT for direct attach devices" 2016-12-13 12:17:59 -08:00
Linux Build Service Account
d18c993351 Merge "icnss: Remove dev reference" 2016-12-13 12:17:58 -08:00
Linux Build Service Account
db080b80dc Merge "msm: dvb: demux: compilation error fix for 32 bit version" 2016-12-13 12:17:57 -08:00
Linux Build Service Account
ccb490b3dc Merge "smb-lib: revert the boost back workaround for dc path" 2016-12-13 12:17:56 -08:00
Linux Build Service Account
6524cc4515 Merge "dwc3: gadget: Increase TXFIFO size as 3KB with endless USB IN endpoint" 2016-12-13 12:17:56 -08:00
Linux Build Service Account
10114703d2 Merge "spcom: check buf size for send modified command" 2016-12-13 12:17:55 -08:00
Linux Build Service Account
ef451d15bb Merge "spcom: check buf_size validity for user send command" 2016-12-13 12:17:54 -08:00
Linux Build Service Account
d3fdecd206 Merge "NFC: Inform CLF whenever eSE is powered off" 2016-12-13 12:17:53 -08:00
Linux Build Service Account
3263de1fee Merge "spcom: check user space command size" 2016-12-13 12:17:53 -08:00
Taniya Das
0cb6666c6f clk: qcom: Update fmax tables and few frequencies clocks of MSMfalcon
The fmax corner frequencies have got updated, and also new frequencies have
been added for few clocks, so fix and update the same.

Change-Id: Ic6e2c2208a8971b07ed6ccfc8d63091e4692301f
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-12-13 13:05:35 +05:30
Vijayavardhan Vennapusa
4c551536ee USB: dwc3: msm: Fail probe if core-clk-rate is not passed from dts
Currently USB driver is not failing probe if USB core-clk-rate property
is not exist. This leads to USB enumeration failures across connect/
disconnect. Hence make core-clk-rate property mandatory and if in case
not defined, fail the probe. Also Fail probe if extcon property not
defined in case of OTG mode.

Also return error if dwc3_core_pre_init() fails during dwc3-msm_resume()
due to phy init fails and don't go ahead with setting up event buffers
as event buffers allocation is done.

Change-Id: I3927ad2f670e45acd10f8568857cf9f3434df657
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2016-12-12 23:20:32 -08:00
Vijayavardhan Vennapusa
9dea5a7428 ARM: msm: dts: Add regulator changes for msm8998-v2.1-interposer
Add required regulator changes in msm8998-v2.1-interposer-msmfalcon.dts
file for USB functionality to be working.

Change-Id: I3e4a43de0c1de6573fea8a52929f6c7af5259755
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2016-12-13 12:12:36 +05:30
Chandana Kishori Chiluveru
a305a4198a defconfig: arm64: msm: Enable USB RMNET & RNDIS using IPA over BAM2BAM
This change enables USB RNDIS and RMNET drivers for BAM2BAM communication.

Change-Id: Ibfd9d12503248a3589bbda94096d40856ccba2c4
Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
2016-12-13 11:55:24 +05:30
Rupesh Tatiya
7ee3354e7a ARM: dts: msm: Add bluetooth node for msmfalcon
Add bluetooth node for wcn3990 on msmfalcon. This change configures
various voltage regulator and clocks.

CRs-Fixed: 1100113
Change-Id: I403c9def4f90832174f45e21e6c6fceb4a77a2a0
Signed-off-by: Rupesh Tatiya <rtatiya@codeaurora.org>
2016-12-13 11:34:17 +05:30
Jack Pham
7d34e07588 usb: dwc3-msm: Set PROP_BOOST_CURRENT for direct attach devices
If PMIC provides boost power for VBUS in host mode, it may
need to know the amount of current of an attached device
in order to optimize for overall power consumption. We can
pass the bMaxPower obtained from a device's configuration
descriptor when it is attached. This only affects devices
(including hubs) directly attached to the root port, as
any device downstream of a hub will either consume part of
the hub's budget or has external power.

Change-Id: I1ad2cfecb7a2f6bdeaced29a1753cdc1bf3849db
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2016-12-12 15:27:36 -08:00
Rajesh Kemisetti
3783f2acda ARM: dts: msm: Add GPU mempools properties for msmfalcon
Add initial set of configuration for GPU mempools
to reserve page pools at init time of kgsl driver.

Change-Id: I088aafe8cef621550b1776ca5a652c66e8ac5b62
Signed-off-by: Rajesh Kemisetti <rajeshk@codeaurora.org>
2016-12-13 00:31:26 +05:30
Yuanyuan Liu
97e02e9dfb icnss: Remove dev reference
Remove dev reference in icnss_set_wlan_mac_address as
this function is called by external module and won't
be able to get ICNSS dev pointer.

CRs-Fixed: 1099641
Change-Id: I21c992676c41b6cdc3ea53722806e8d0be78d9d5
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
2016-12-12 09:52:36 -08:00
Udaya Mallavarapu
97b96558bd msm: dvb: demux: compilation error fix for 32 bit version
Compilation error fix for 32 bit version mpq demux common plugin

Change-Id: Id2472097e115f1c8d09886c1a1ceb01c4f5c5f4b
CRs-Fixed: 1090466
Signed-off-by: Udaya Mallavarapu <udaym@codeaurora.org>
2016-12-12 18:07:54 +05:30
Himanshu Aggarwal
66f8dff8c8 ARM: dts: msm: add camera focus and snapshot nodes for MSMFALCON
MSM GPIO 64 is connected to Camera Focus Button and MSM GPIO 113 is
connected to Camera Snapshot Button. Add the nodes for these buttons
along with their pintrl configuration.

Change-Id: Ifc03c72233dcf1081fc3f2fed495d19e48bb8c7d
Signed-off-by: Himanshu Aggarwal <haggarwa@codeaurora.org>
2016-12-12 16:34:51 +05:30
Mayank Rana
d3e24bc43d dwc3: gadget: Increase TXFIFO size as 3KB with endless USB IN endpoint
Current code is resizing each USB IN endpoint's TXFIFO to 1KB if it is
not USB GSI endpoint or bursting is not enable. In some high throughput
test case where there is contention in terms of accessing DDR memory
through SNOC between USB3 and other peripheral PCIE, there are many
underrun errors (i.e. Bad Data Length/Bad CRC) observed. These errors
results into retransmision of USB packets and sometime dropping packets
causing diffrent kind of data stalls. Hence fix this issue by increasing
TXFIFO size as 3KB with endless USB IN endpoint (i.e. USB BAM2BAM
endpoint) which helps to successfully retransmit packets.

Change-Id: I73860a7bb252a0226b591a5f732e6a7b864911cf
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2016-12-12 02:52:09 -08:00
Vijayavardhan Vennapusa
280fe6dcf1 USB: dwc3-msm: Check endpoint status and request queued or not first
When function driver calls dwc3_msm_ep_queue() to queue endless request,
first check endpoint status and whether any request already queued or not.
If that is the case, return error. Else go ahead with queuing request
to USB HW. This helps in resolving the crash seen when request is being
queued again.

Change-Id: I3d6a603c693d1df36719f57684ffad409e1a0e78
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
2016-12-12 15:17:48 +05:30
Vijayavardhan Vennapusa
58c91d96b2 USB: dwc3-msm: Initialize DBM ep before BAM pipe reset
On new platforms, endpoint clock gating is added for dbm endpoints
with Synopsys USB3.0 controller. This hardware feature requires
initialization of DBM endpoint before BAM pipe reset for bam2bam mode
data transfers working. Hence change sequence such that do DBM endpoint
initialization first followed by BAM pipe reset and do start transfer
as last operation.

CRs-Fixed: 965207
Change-Id: Ib5bfd1a7d258fe336a4c9924850fc9223c1c81f6
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
2016-12-12 15:16:52 +05:30
Linux Build Service Account
a80e267a8c Merge "ARM: dts: msm: Configure MPM for qusb2phy_dpse_hv for msm8998" 2016-12-10 23:06:39 -08:00
Linux Build Service Account
35640cdd7e Merge "mm: remove gup_flags FOLL_WRITE games from __get_user_pages()" 2016-12-10 23:06:38 -08:00
Linux Build Service Account
b6dff5ca3c Merge "clk: msm: clock-osm: don't use version register to enable WDOG status" 2016-12-10 23:06:38 -08:00
Linux Build Service Account
5332a6cfcb Merge "ARM: dts: msm: enable the watchdog bark interrupt for smb138x" 2016-12-10 23:06:37 -08:00
Linux Build Service Account
6daf3a8c26 Merge "power: bcl: Add frequency mitigation as an optional property for BCL" 2016-12-10 23:06:36 -08:00
Linux Build Service Account
1bb4efc419 Merge "ARM: dts: msm: Add BCL peripheral configs for pmfalcon" 2016-12-10 23:06:36 -08:00
Linux Build Service Account
bd3f1f2aee Merge "ARM: dts: msm: add qdss node support for msmtriton" 2016-12-10 23:06:35 -08:00
Linux Build Service Account
cbd1483f05 Merge "sound: usb: Handle implicit feedback data endpoint properly" 2016-12-10 23:06:34 -08:00
Linux Build Service Account
7643874858 Merge "sched: Ensure proper task migration when a CPU is isolated" 2016-12-10 15:43:17 -08:00
Linux Build Service Account
496c2d7a0f Merge "sched/core: Fix race condition in clearing hmp request" 2016-12-10 15:43:16 -08:00
Linux Build Service Account
a3ed87c16c Merge "usb: phy: qusb2: Add support to vote for regulator L2a" 2016-12-09 19:59:45 -08:00
Linux Build Service Account
b922308190 Merge "msm: mdss: dp: correctly ref count the pll resources" 2016-12-09 19:59:41 -08:00
Linux Build Service Account
08a4cbeb4d Merge "msm: vidc: Disable clocks in reverse order" 2016-12-09 19:59:40 -08:00
Linux Build Service Account
b6b2f0da26 Merge "msm: vidc: Fix kw issues" 2016-12-09 19:59:39 -08:00
Linux Build Service Account
2528ee722f Merge "iommu: arm-smmu: Fix clock reference count error" 2016-12-09 19:59:38 -08:00