Commit graph

872,962 commits

Author SHA1 Message Date
Zhen Kong
d574756dfd shmbridge: GKI change for shmbridge
make GKI change for shmbridge and temporarily disable
this feature in HYP.

Change-Id: I2e8835d8a68090123ee43247eedc0fbcebd3db21
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
2019-10-29 12:14:01 -07:00
qctecmdr
50c2dbd386 Merge "shmbridge: Add shmbridge driver snapshot for lahaina" 2019-10-29 11:19:16 -07:00
qctecmdr
7ac5584cf6 Merge "defconfig: lahaina-gki: Enable support for QCOM clock drivers" 2019-10-29 10:37:18 -07:00
qctecmdr
9c4121e901 Merge "usb: phy: Add snapshot of QTI USB PHY drivers" 2019-10-29 08:30:19 -07:00
qctecmdr
852e10894e Merge "platform: msm: Add snapshot of USB BAM driver" 2019-10-29 07:46:26 -07:00
qctecmdr
3dbc4f5acc Merge "usb: gadget: Add snapshot of USB CDEV function driver" 2019-10-29 06:50:58 -07:00
qctecmdr
c2c6e761c2 Merge "usb: gadget: Add snapshot of CCID function driver" 2019-10-29 05:56:08 -07:00
qctecmdr
15c41120e1 Merge "soc: qcom: spss_utils: add spss_utils as DLKM for GKI" 2019-10-29 03:44:07 -07:00
qctecmdr
86ec4007dd Merge "soc: qcom: add secure processor subsystem (spss) utils driver" 2019-10-29 02:53:30 -07:00
qctecmdr
a9f0122404 Merge "net: qrtr: Fix wakeup_source_register" 2019-10-29 02:03:39 -07:00
qctecmdr
3f1accfe27 Merge "coresight: csr: Add msr support" 2019-10-28 23:37:42 -07:00
qctecmdr
9c547ab7a9 Merge "usb: gadget: Add snapshot of USB QDSS function driver" 2019-10-28 22:56:33 -07:00
qctecmdr
b7c7d57e85 Merge "soc: qcom: Add snapshot of IPC IRQ bridge driver" 2019-10-28 22:18:20 -07:00
qctecmdr
eabf380163 Merge "usb: dwc3: Stop active transfer on control endpoints" 2019-10-28 21:31:48 -07:00
qctecmdr
ccc11220e7 Merge "usb: dwc3: Disable the irq before clearing run_stop bit" 2019-10-28 20:52:45 -07:00
qctecmdr
df67e52b3a Merge "dwc3: gadget: Take copy of dwc->gadget_driver before releasing lock" 2019-10-28 20:16:02 -07:00
qctecmdr
f79c5887a7 Merge "usb: dwc3: gadget: Enable SUSPEND event after CONNECT DONE" 2019-10-28 19:37:38 -07:00
qctecmdr
b8e7366b19 Merge "usb: dwc3: Check return value for debugfs_create_dir()" 2019-10-28 19:01:56 -07:00
qctecmdr
08baf0afb0 Merge "usb: dwc3: gadget: Ensure no control transfers in progress when stopping" 2019-10-28 18:27:33 -07:00
qctecmdr
f8d14ce83a Merge "usb: dwc3: gadget: Fix runtime PM vote from pull_up handler" 2019-10-28 17:50:56 -07:00
qctecmdr
79600075fb Merge "usb: dwc3: Avoid NULL pointer access" 2019-10-28 17:12:01 -07:00
qctecmdr
dd5ffe4e30 Merge "usb: dwc3: request 2mA VBUS current when suspending" 2019-10-28 16:23:05 -07:00
qctecmdr
ca12b166a0 Merge "usb: dwc3: Add support for PM suspend and hibernation in host mode" 2019-10-28 15:41:38 -07:00
qctecmdr
10004e7945 Merge "usb: dwc3: ep0: Fail enqueue() when racing with vbus_sess disconnect" 2019-10-28 15:02:03 -07:00
qctecmdr
9c6f55fcd1 Merge "dwc3: gadget: Don't queue USB request if pull up is getting disabled" 2019-10-28 14:27:55 -07:00
qctecmdr
310a5c3075 Merge "usb: dwc3: Fix USB gadget initialization sequence" 2019-10-28 13:39:03 -07:00
qctecmdr
6d73fbad77 Merge "usb: dwc3: Avoid NULL pointer access in dwc3_calc_trbs_left" 2019-10-28 13:03:02 -07:00
qctecmdr
8d79cb85f0 Merge "usb: dwc3: Do not traverse list using list_for_each_safe" 2019-10-28 12:27:37 -07:00
Mayank Rana
5bd60c1a18 usb: phy: Add snapshot of QTI USB PHY drivers
This change adds USB PHY drivers for high speed and super speed/plus
functionality on QTI MSM platforms. This snapshot is taken as of
msm-4.19 commit <8197f81ffc14> ("Merge "msm: kgsl: Correct HFI
acknowledgment failure condition"").

Change-Id: Iede74fa0fd037a0741ee3269d78adb372600ea8d
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2019-10-28 11:57:54 -07:00
qctecmdr
3c7ed8087d Merge "usb: dwc3: gadget: delay clearing run/stop when setup just arrived" 2019-10-28 11:47:22 -07:00
Mayank Rana
d08e05220b platform: msm: Add snapshot of USB BAM driver
This change adds snapshot of USB BAM driver which allows USB BAM to
communicate with other peripherals' (e.g. QDSS or IPA) BAM.

This snapshot is taken as of msm-4.19 kernel commit <b318a6e04625>
("Merge "msm: ipa4: Fix to use common PM handle for coalescing and
default pipe"").

Change-Id: I747e4defab668d44bdc956e318492dd30880a166
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2019-10-28 11:42:12 -07:00
Jack Pham
45960fc74a usb: gadget: Add snapshot of USB CDEV function driver
This change adds USB CDEV function driver which creates USB
character device to provide DUN and NMEA functionality.
This snapshot is taken as of msm-4.19 commit 104eef6e1fe8 ("platform:
msm: Remove unused local count variable").

Change-Id: I2a20aec1c21a506f8981e907bc0f0f58fff7fe58
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2019-10-28 11:37:07 -07:00
Mayank Rana
8a07131c08 usb: gadget: Add snapshot of CCID function driver
This USB CCID function driver will be a transport layer between the
userspace CCID component and the Windows Host. Data and control
commands from the Windows Host will be sent to the userspace component
and vice-versa. This snapshot is taken as of msm-4.19 commit 104eef6e1fe8
("platform: msm: Remove unused local count variable").

Change-Id: I47301a318cb04c814699abf3e5ed5a9aecd7fbee
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2019-10-28 11:37:02 -07:00
qctecmdr
dc87488bd4 Merge "dwc3: gadget: Stop active transfer pending on ep0 out/in during reset" 2019-10-28 11:08:09 -07:00
qctecmdr
c2e15eef58 Merge "usb: dwc3: Fix incorrect ep0 state on reset" 2019-10-28 10:32:57 -07:00
qctecmdr
a7d5a85aa0 Merge "usb: dwc3: resize txfifo of IN/INT endpoint before enabling it" 2019-10-28 09:55:51 -07:00
qctecmdr
4c196dd091 Merge "usb: dwc3: Add QTI MSM platform specific feature and other changes" 2019-10-28 09:24:14 -07:00
Konstantin Dorfman
78200d8ba0 soc: qcom: spss_utils: add spss_utils as DLKM for GKI
This change converts statically compiled platform driver into kernel
module.

Change-Id: Iee2c47dd895931f6c8f1982bc34b868287b994f6
Signed-off-by: Konstantin Dorfman <kdorfman@codeaurora.org>
2019-10-28 14:39:26 +02:00
Konstantin Dorfman
d50cfdc312 soc: qcom: add secure processor subsystem (spss) utils driver
The spss-util driver provides utilities required for the Secure
Processor Subsystem (SPSS). It provides the fuse state for key selection
and the SPSS HW version.

Add snapshot for spss-util driver from msm-4.19 commit a7793b40172f
("soc: qcom: spss_utils: fix spss SSR when IAR not active").

Change-Id: I6531cae56cec9d062fa03c573bcd70207d10f1a2
Signed-off-by: Konstantin Dorfman <kdorfman@codeaurora.org>
2019-10-28 13:29:59 +02:00
qctecmdr
86cb2da52a Merge "ASoC: Add a debug message to track widget power up/down" 2019-10-27 20:51:11 -07:00
Zhen Kong
2a61b52cc9 shmbridge: Add shmbridge driver snapshot for lahaina
Add snapshot for qtee_shmbridge from msm-4.19 commit 4260f49233b7
("drivers: soc: qcom: enable shared memory bridge in hypervisor").

Change-Id: I3247eedc0fbcebd3db212e8835d8a68090123ee4
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
2019-10-27 20:50:06 -07:00
qctecmdr
f53b149a86 Merge "ASoC: Change info logs to debug" 2019-10-27 20:13:16 -07:00
Tingwei Zhang
79a2734194 coresight: csr: Add msr support
SWAO msr has been moved to SWAO csr. Add the support in driver
to program it.

Change-Id: Ied618265a117a5fcd385524e1ec9aa4ce4e84deb
Signed-off-by: Tingwei Zhang <tingwei@codeaurora.org>
2019-10-27 19:40:54 -07:00
qctecmdr
6c77d64802 Merge "msm: qdsp6v2: Add timestamp support for compress capture" 2019-10-27 19:32:59 -07:00
qctecmdr
18dc13d57e Merge "msm: ipa3: Query stats from Q6 NLO PROD/CONS" 2019-10-27 02:42:23 -07:00
Hemant Kumar
e189769e47 usb: dwc3: Stop active transfer on control endpoints
If cable disconnects before data stage completion dwc3_remove_requests()
gets called for ep0 in and out but dwc3_ep0_complete_data() does not
get called. dwc3_ep0_complete_data() function resets TRB enqueue count
to 0. As a result upon next cable connect start transfer is called with
wrong TRB address because trb_enqueue is set to 1. Since this TRB was
completed in the past, HWO bit is cleared for this TRB. This results into
usb enumeration failure due to control transfer stall. Fix this issue
by issuing end transfer command on control endpoints after ep0 requests
are removed for IN and OUT and reset trb_enqueue counters to 0.

Change-Id: Ic5364f11372d85ec7c133024dc48bbc5d848ebf4
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2019-10-26 23:24:03 -07:00
Chandana Kishori Chiluveru
8ef037cd20 usb: dwc3: Disable the irq before clearing run_stop bit
Consider a case of quick pull-up disable after pull-up is enabled.
If a SETUP packet comes after bus reset event followed by connection
done event, there is a possibility of race between
composite_dev_cleanup() freeing cdev->req called from
configfs_composite_unbind() and composite_setup() storing req pointer
to stack. This causes use after free of cdev->req. Fix this issue by
disabling the irq before clearing the run-stop bit so that interrupt
handling for setup packet is prevented. In order to prevent running
bottom half check pullups_connected flag in dwc3_interrupt and ack
the generated events and return. Also flush the bottom half work
if there was any work pending before disabling dwc3 irq.

Change-Id: I979da8536bd6766153e25cf6120f00f348427a72
Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2019-10-26 23:24:03 -07:00
Mayank Rana
0f35545c3f dwc3: gadget: Take copy of dwc->gadget_driver before releasing lock
gadget_driver can become null if gadget_stop is called while any other
gadget callbacks are in progress. As gadget callbacks needs to release
spinlock before the callback, store the local copy of gadget_driver to
avoid the race with gadget_stop.

Change-Id: I7f0cbf9af3e3b286f2826647f08215f29f699de1
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2019-10-26 23:24:03 -07:00
Jack Pham
c36156c78d usb: dwc3: gadget: Enable SUSPEND event after CONNECT DONE
Spurious suspend event may arrive before CONNECT DONE, which
may unnecessarily notify to the charger to reduce current
draw to 2mA, only to revert back to 100mA on the subsequent
reset & connection. Instead, only enable the SUSPEND event
interrupt after the initial CONNECT DONE event is handled.

Change-Id: I41e2ff5d9b693757e06059c98fbe8b3a3878abdd
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2019-10-26 23:24:03 -07:00
Hemant Kumar
6f78412e23 usb: dwc3: Check return value for debugfs_create_dir()
debugfs_create_dir() returns NULL when second directory is created
with same name gsi-epin. Without checking return value
dwc3_debugfs_create_endpoint_dir() creates endpoint files with parent
as NULL. This would create files in root dir /sys/kernel/debug which
remains there even after calling debugfs_remove_recursive() from
dwc3_debugfs_exit(). Due to probe deferral dwc3 endpoints get freed
up and re-allocated. As a result accessing endpoint files created in
root dir causes access to stale dwc3 endpoint pointer. Hence check
return value for debugfs_create_dir and do not create files for NULL
parent.

Change-Id: I44b65b77f35be1a52e71db2184a359887c25c8c9
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2019-10-26 23:24:03 -07:00