From 252fa0fc83e4f7e2a50c9191ab136d0a6a1e9f18 Mon Sep 17 00:00:00 2001 From: Michael Lotz Date: Fri, 25 Jan 2008 14:08:15 +0000 Subject: [PATCH] Unconditionally output when giving up port ownership and taking over host controller ownership in EHCI to aid debugging USB legacy support issues. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23735 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/kernel/busses/usb/ehci.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/add-ons/kernel/busses/usb/ehci.cpp b/src/add-ons/kernel/busses/usb/ehci.cpp index 1bfd84e5c7..98d0416b2f 100644 --- a/src/add-ons/kernel/busses/usb/ehci.cpp +++ b/src/add-ons/kernel/busses/usb/ehci.cpp @@ -170,7 +170,7 @@ EHCI::EHCI(pci_info *info, Stack *stack) TRACE(("usb_ehci: the host controller is bios owned\n")); } - TRACE(("usb_ehci: claiming ownership of the host controller\n")); + dprintf("usb_ehci: claiming ownership of the host controller\n"); sPCIModule->write_pci_config(fPCIInfo->bus, fPCIInfo->device, fPCIInfo->function, extendedCapPointer, 4, EHCI_LEGSUP_OSOWNED); @@ -189,7 +189,7 @@ EHCI::EHCI(pci_info *info, Stack *stack) TRACE_ERROR(("usb_ehci: bios won't give up control over the host controller\n")); return; } else if (legacySupport & EHCI_LEGSUP_OSOWNED) { - TRACE(("usb_ehci: successfully took ownership of the host controller\n")); + dprintf("usb_ehci: successfully took ownership of the host controller\n"); } } else { TRACE(("usb_ehci: extended capability is not a legacy support register\n")); @@ -689,7 +689,7 @@ EHCI::ResetPort(uint8 index) uint32 portStatus = ReadOpReg(portRegister) & EHCI_PORTSC_DATAMASK; if (portStatus & EHCI_PORTSC_DMINUS) { - TRACE(("usb_ehci: lowspeed device connected, giving up port ownership\n")); + dprintf("usb_ehci: lowspeed device connected, giving up port ownership\n"); // there is a lowspeed device connected. // we give the ownership to a companion controller. WriteOpReg(portRegister, portStatus | EHCI_PORTSC_PORTOWNER); @@ -713,7 +713,7 @@ EHCI::ResetPort(uint8 index) } if ((portStatus & EHCI_PORTSC_ENABLE) == 0) { - TRACE(("usb_ehci: fullspeed device connected, giving up port ownership\n")); + dprintf("usb_ehci: fullspeed device connected, giving up port ownership\n"); // the port was not enabled, this means that no high speed device is // attached to this port. we give up ownership to a companion controler WriteOpReg(portRegister, portStatus | EHCI_PORTSC_PORTOWNER);