There is a chance that error might occur in connect_work before
endless request is queued to USB controller and bails out. In this case,
DBM endpoint will not be disabled and results in setendpoint config
command timeouts after next connect and could cause usb endpoint enable
fails. Fix this by disabling DBM endpoint corresponding to USB endpoint
in msm_ep_unconfig() if there are no requests queued to USB endpoint.
Change-Id: I5601d76c58263150a3ad5b026a8f2b10da087ba5
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
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>
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>
Move the stub regulator to RPM-control based regulators
for most of the rails. Keep the GFX regulator as a stub
until the MSM GFX LDO node is added.
CRs-Fixed: 1100152
Change-Id: Ib2d83635af352513064a3c8b717541bc47b2f875
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
SPMI enables communication with PMIC peripherals. Add
the device tree node for it.
While at it, include the supported PMIC configuration.
CRs-Fixed: 1100152
Change-Id: Ib892e3c550e7486d615e9d29e701d2b0c19c45f0
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
When the remote subsystem crash (SSR),
glink will notify rx-abort for any pending rx buffer that was queued.
The notification callback sets the channel rx-abort flag.
When the channel is closed, reset the rx-abort flag.
Change-Id: I6cca614327f7b8e3216e3872a36f08f33a65b23e
Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
An LDO300 regulator is used by the GPU rail on msmfalcon. This LDO
is CPR managed and uses a different configuration/control scheme
compared to Kryo LDO. Add support for this LDO in the CPR3 framework.
CRs-Fixed: 1068294
Change-Id: Ia45152fe211f2ece1028c5cb978beebda86faba3
Signed-off-by: Tirupathi Reddy <tirupath@codeaurora.org>
Add support for secure camera buffer handling in SDE rotator.
This change adds detaching the secure context when the buffer
with the secure camera flag is signaled and attaches the secure
context when going back to normal non securer-camera usecases.
Change-Id: Iaff45907e78775975fa3035404dcfd9b27e6e816
Signed-off-by: Abhijit Kulkarni <kabhijit@codeaurora.org>
Add initial device tree support for QRD platform of
msmfalcon.
Change-Id: Id6787274bf5e1dce8b813835af66874f667144ff
Signed-off-by: Zhenhua Huang <zhenhuah@codeaurora.org>
Configure the limits hardware with the interrupt to listen for.
Limits hardware driver will interact with the trustzone to get
throttling information from the hardware.
Change-Id: I295ea05892075c43d389b3b9a20ea4f68daeba3b
Signed-off-by: Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
Add ufs and ufs-phy device nodes for msmfalcon.
Change-Id: I42e796ca7e1883f5c2077660dbcde87cd4b30038
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
Add support for new UFS PHY that is used in
falcon msm.
This PHY is identical to the final 8996 PHY except it
has been moved to VDDMX and level shifters have been added
between the controller/chip and the PHY.
Change-Id: I50681c877917a58c3d70262597300b0d66b1e3a8
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
ETM coresight nodes are not present in 32-bit defconfig
file for msmfalcon. Add support to enable ETM in msmfalcon.
CRs-fixed: 1089405
Change-Id: I8259722a890d8388b62294de40cb29a9005f1a3e
Signed-off-by: Amey Telawane <ameyt@codeaurora.org>
The temp_alarm module monitors the PMIC die-temp. Add the
device tree nodes to enable the module.
CRs-Fixed: 1100015
Change-Id: I17c5d04d8492f237d75eaf433a34b3451428d537
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
Crash observed when listen to audio SSR
notifiation during modem up event. Avoid
listen to SSR events as temporary fix.
Change-Id: I754a43a953a311938f4e4103879bff2c2a4551a0
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>