Add legacy msm pm sleep mode support for MDM9607 target.
Add warmboot set address support for multi cluster cpu's.
Snapshot is taken from msm-4.9 kernel version @ commit 078db469522464
("soc: qcom: bgrsb: Increase time out for RSB channel opening").
Change-Id: Ibfc56254c47cfc1465aff5559b8846072f66041a
Signed-off-by: Raghavendra Kakarla <rkakarla@codeaurora.org>
Signed-off-by: Haribabu Gattem <haribabu@codeaurora.org>
Signed-off-by: Raja Mallik <rmallik@codeaurora.org>
Signed-off-by: Tushar Nimkar <tnimkar@codeaurora.org>
Compilation failed, due to updated function declarations lpm_levels
driver where the lpm_levels_legacy driver is not updated in parallel
Rectified all errors occurred during compilation for mdm9607 target.
Change-Id: Iacb6ce9949454a949bcba90a8e8285ca18b832d5
Signed-off-by: Raghavendra Kakarla <rkakarla@codeaurora.org>
Signed-off-by: Sivasri Kumar Vanka <sivasri@codeaurora.org>
Signed-off-by: Haribabu Gattem <haribabu@codeaurora.org>
Signed-off-by: Tushar Nimkar <tnimkar@codeaurora.org>
Add non psci legacy lpm support. Modify and align changes
for clock event, MPM and cpu hotplug for LPM callback notification.
Remove deprecated scheduler c-state(idle cpu), d-state(idle cluster)
setting from lpm driver.
Snapshot is taken from msm-4.9 kernel version @commit b9ad452666da39.
("soc: qcom: bgrsb: Increase time out for RSB channel opening").
Change-Id: I8958ab4f098cc6d875071e3f100b8b74845e0cfa
Signed-off-by: Raghavendra Kakarla <rkakarla@codeaurora.org>
Signed-off-by: Haribabu Gattem <haribabu@codeaurora.org>
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
Signed-off-by: Suresh Kumar Allam <allamsuresh@codeaurora.org>
Signed-off-by: Tushar Nimkar <tnimkar@codeaurora.org>
Add SOC ID to support socinfo for Blair SOC.
Change-Id: I92f7d55c389bbb4a25c6c29a83457604b53e7039
Signed-off-by: Mayank Grover <groverm@codeaurora.org>
Add initial defconfig fragment support to enable compilation
for the blair platform.
Change-Id: I944b6d892d85459493b400b98a52f108f9f94aff
Signed-off-by: Mayank Grover <groverm@codeaurora.org>
Consider a scenario where setup packet gets queued from the
function driver and without geting completion for that request
composition switch or cable disconnect happens. Since the
request is not given back to the gadget driver it will be in
pending list. During composition switch or cable disconnect
composite dev cleanup happens which will free the request
without dequeing it since setup_pending is not set for the
request. When a new setup packet is queued and the completion
for the new setup packet happens driver will try to access the
freed request from the pending list leading to use-after-free.
Fix this by setting setup_pending to true if ep_queue on ep0
is successful.
Change-Id: I7fe083dfc99663681fc0b98e02613799e526d3d4
Signed-off-by: Pratham Pratap <prathampratap@codeaurora.org>
- Hotfix to increase reset tmo on A2 to 2secs
- Hotfix to disable macsec load on A2
- Fixes for compilation without PTP
- [ATLDRV-1649]: WOL was not functional. MAC address was invalid.
Change-Id: I546961bcaf75b0489e973da1eecf22be0a3d71d7
Signed-off-by: Igor Russkikh <irusskikh@marvell.com>
Git-commit: f636f449dfd671f7f7707100da4c7d0dc5dfb58b
Git-repo: https://github.com/aquantia/linux-4.14-atlantic-forwarding
Signed-off-by: Lakshit Tyagi <ltyagi@codeaurora.org>
There is a race between ep_queue from function driver and
ep_disable during function disable as part of bus reset.
This race is leading to a scenario where the endpoint is
disabled with an active transfer. And when the endpoint is enabled
back, this leads to a stale buffer access by the controller.
The race is as below:
qdss_disable
usb_qdss_write | -----> Waits on qdss_lock
| ----> Acquires qdss_lock |
| ----> Checks for qdss_connected |
| ----> Releases qdss_lock | ------> Acquires qdss_lock
| | ------> Clears usb_connected
| | ------> Releases qdss_lock
| usb_ep_disable
| | ------> Acquires dwc->lock
| dwc3_remove_reuests
| |
| dwc3_stop_active_transfer
| |
| | ------> Releases dwc->lock
usb_ep_queue |
| ----> Acquires dwc->lock usb_gadget_giveback
| |
dwc3_gadget_kick_transfer |
| ----> Releases dwc->lock |
| ----> Acquires dwc->lock
|
disable_endpoint
After this state when the endpoint is enabled back, there is already
and active transfer on this endpoint. Any START TRANSFER command
on this endpoint would lead to "No Transfer Resource" error
from the controller.
Fix this by preventing the ep_queue when a reset of the gadget
is in progress. This is done by clearing the connected flag
as part of dwc3_gadget_reset and checking for this as part of
ep_queue. Set this flag once we have received the CONNECTION
DONE interrupt from the controller.
Change-Id: Idc52a72ed0a965c2043618046a5b0dc32bfd1985
Signed-off-by: Sriharsha Allenki <sallenki@codeaurora.org>
Enable configs required for CNSS2 and QRTR-MHI driver to
support QCA WLAN device.
Change-Id: Ieead71f0a5db87a888fd16d01fcbd7345ce52860
Signed-off-by: Kuichu Ni <kuichun@codeaurora.org>