Add support for virtual clocks needed for PCIe RCs
2a, 2b, 3a, 3b, and 4, to the Direwolf VM.
Change-Id: I73002071c18f85d8cbcb15c06e030650d10dc5b9
Signed-off-by: Anant Goel <anantg@codeaurora.org>
When CONFIG_QCOM_LLCC is not enabled, there is unused function warnings
seen when llcc-tcm.h is added part of client driver.
warning: unused function 'llcc_tcm_get_phys_addr' [-Wunused-function]
Suppress those warnings by adding __maybe_unused attributes with those
APIs.
Change-Id: Ic933b67f95a0f7b2b5577d7d0f79c19cc1dbeb2a
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
Add support for clock measurement for Global clock and other clock
controllers.
Change-Id: Ieffb49f31b3ffd83b788fc9c9ac951979ed01463
Signed-off-by: Madhuri Medasani <mmedasan@codeaurora.org>
Display clock controller for clients to be able to vote/devote on the
clocks.
Change-Id: Ib0cd34646636ec8985f866c1d252a61807a75dbc
Signed-off-by: Madhuri Medasani <mmedasan@codeaurora.org>
PCIE_DISCONNECT_REQ_REG is not being set in warm boot which is
blocking reset separation. Configure the register during D3 and
D0 transition to decouple the device reset with controller reset.
Change-Id: I5eb7baf68514f989b7bd3a371b569b467e56d43c
Signed-off-by: Gauri Joshi <gaurjosh@codeaurora.org>
Enable this driver to allow using standard APIs
to enable and disable AER support in endpoint
driver. In order to enable this driver
CONFIG_PCI_QTI needs to be enabled to prevent
GKI ABI breakage.
Change-Id: I58bdfe98176ea80e74a44c683878a573fd12fa62
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
We don't need to hold the local pinctrl lock here to set irq wake on the
summary irq line. Doing so only leads to lockdep warnings instead of
protecting us from anything. Remove the locking.
Change-Id: I89a9bca1ed4c8aab8b9ecd2000a116c74e33b186
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Git-commit: 1d44616e7549d0154c1224a3eee3c407029294dc
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Manoj Vishwanathan <mvishwan@codeaurora.org>
LOCKDEP complains about a potential "suspicious RCU usage" in calling
trace calls in cpu-idle.
Change-Id: I59711a4a9bded246cac8b433bd1756269a17e153
Signed-off-by: Manoj Vishwanathan <mvishwan@codeaurora.org>
Suppose for a function driver the usb controller received EPCMDCMPLT
for end transfer from previous case, so as part of this the resources
for the endpoint will be released. In this process we will be clearing
the cancelled_request as part of which controller executes
gadget_giveback where the spinlock is released. Within that time if
ep_queue from the function driver is called, then the endpoint command
will fail due to no resources being present in for the endpoint, the
ep command will return -EINVAL due to no resources. This will lead
the controller to move the request to cancelled list and if the
DWC3_EP_END_TRANSFER_PENDING flag is set then it will go ahead and try
to cleanup the already cleared cancelled request.
Resulting the controller to double free the request.
This problem is only with Gen1 controllers as there the
DWC3_EP_END_TRANSFER_PENDING flag will not be set.
Fix this issue by introducing a check in ep_interrupt on EPCMDCMPLT.
If the DWC3_EP_END_TRANSFER_PENDING bit is set, then cleanup the
cancelled request. This will ensure that if it is a GEN1 controller,
cleanup cancelled request will be called from kick_transfer and if
GEN2 controller, then cleanup from ep_interrupt.
However, preventing cleaning up of cancelled list from EPCMDCMPLT has
one side effect as if from function driver ep_dequeue is called and
it does not giveback the request from there and rely on EPCMDCMPLT
to cleanup the cancelled list. Therefore the request will be moved
to cancelled list but won't be given back to function driver.
To fix this additionally have introduced the DWC3_EP_END_TRANSFER_PENDING
check in ep_dequeue as well so if it is not set then cleanup the cancelled
list from there.
Commit eec9afd56c ("usb: gadget: Give back request from ep_dequeue")
added the ep_dequeue check but missed the EPCMDCMPLT one, adding
that check to avoid any other corner case.
Change-Id: I575a38ba9dc9b3a6684d0973a49109f97e22f1b2
Signed-off-by: Udipto Goswami <ugoswami@codeaurora.org>