xhci: Improve No-Op tracing
This commit is contained in:
@@ -568,8 +568,9 @@ XHCI::Start()
|
|||||||
|
|
||||||
TRACE_ALWAYS("successfully started the controller\n");
|
TRACE_ALWAYS("successfully started the controller\n");
|
||||||
#ifdef TRACE_USB
|
#ifdef TRACE_USB
|
||||||
TRACE("No-Op test\n");
|
TRACE("No-Op test...\n");
|
||||||
Noop();
|
status_t noopResult = Noop();
|
||||||
|
TRACE("No-Op %ssuccessful\n", noopResult < B_OK ? "un" : "");
|
||||||
#endif
|
#endif
|
||||||
return BusManager::Start();
|
return BusManager::Start();
|
||||||
}
|
}
|
||||||
@@ -2043,13 +2044,16 @@ XHCI::HandleTransferComplete(xhci_trb* trb)
|
|||||||
status_t
|
status_t
|
||||||
XHCI::DoCommand(xhci_trb* trb)
|
XHCI::DoCommand(xhci_trb* trb)
|
||||||
{
|
{
|
||||||
if (!Lock())
|
if (!Lock()) {
|
||||||
|
TRACE("Unable to get lock!\n");
|
||||||
return B_ERROR;
|
return B_ERROR;
|
||||||
|
}
|
||||||
|
|
||||||
QueueCommand(trb);
|
QueueCommand(trb);
|
||||||
Ring(0, 0);
|
Ring(0, 0);
|
||||||
|
|
||||||
if (acquire_sem(fCmdCompSem) < B_OK) {
|
if (acquire_sem(fCmdCompSem) < B_OK) {
|
||||||
|
TRACE("Unable to obtain fCmdCompSem semaphore!\n");
|
||||||
Unlock();
|
Unlock();
|
||||||
return B_ERROR;
|
return B_ERROR;
|
||||||
}
|
}
|
||||||
@@ -2082,7 +2086,7 @@ XHCI::DoCommand(xhci_trb* trb)
|
|||||||
status_t
|
status_t
|
||||||
XHCI::Noop()
|
XHCI::Noop()
|
||||||
{
|
{
|
||||||
TRACE("Noop\n");
|
TRACE("Issue No-Op\n");
|
||||||
xhci_trb trb;
|
xhci_trb trb;
|
||||||
trb.qwtrb0 = 0;
|
trb.qwtrb0 = 0;
|
||||||
trb.dwtrb2 = 0;
|
trb.dwtrb2 = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user