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:
@@ -215,8 +215,10 @@ Hub::Explore(change_item **changeList)
|
|||||||
|
|
||||||
// reset the port, this will also enable it
|
// reset the port, this will also enable it
|
||||||
result = ResetPort(i);
|
result = ResetPort(i);
|
||||||
if (result < B_OK)
|
if (result < B_OK) {
|
||||||
|
TRACE_ERROR(("USB Hub %d: resetting port %ld failed\n", DeviceAddress(), i));
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
result = UpdatePortStatus(i);
|
result = UpdatePortStatus(i);
|
||||||
if (result < B_OK)
|
if (result < B_OK)
|
||||||
|
|||||||
@@ -721,7 +721,7 @@ EHCI::ResetPort(uint8 index)
|
|||||||
|
|
||||||
portStatus = ReadOpReg(portRegister) & EHCI_PORTSC_DATAMASK;
|
portStatus = ReadOpReg(portRegister) & EHCI_PORTSC_DATAMASK;
|
||||||
if (portStatus & EHCI_PORTSC_PORTRESET) {
|
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;
|
return B_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user