Output some more debug output in case of port reset failure.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26546 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
1f855f9696
commit
508dd5f91d
@ -215,8 +215,10 @@ Hub::Explore(change_item **changeList)
|
||||
|
||||
// reset the port, this will also enable it
|
||||
result = ResetPort(i);
|
||||
if (result < B_OK)
|
||||
if (result < B_OK) {
|
||||
TRACE_ERROR(("USB Hub %d: resetting port %ld failed\n", DeviceAddress(), i));
|
||||
continue;
|
||||
}
|
||||
|
||||
result = UpdatePortStatus(i);
|
||||
if (result < B_OK)
|
||||
|
@ -721,7 +721,7 @@ EHCI::ResetPort(uint8 index)
|
||||
|
||||
portStatus = ReadOpReg(portRegister) & EHCI_PORTSC_DATAMASK;
|
||||
if (portStatus & EHCI_PORTSC_PORTRESET) {
|
||||
TRACE(("usb_ehci: port reset won't complete\n"));
|
||||
TRACE_ERROR(("usb_ehci: port reset won't complete\n"));
|
||||
return B_ERROR;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user