From bb34fb0b4eb3257f0289a245ca702b7b314aca82 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Tue, 1 Oct 2013 11:18:10 +0800 Subject: [PATCH] Modules/USB - More debug in portctl --- KernelLand/Modules/USB/Core/portctl.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/KernelLand/Modules/USB/Core/portctl.c b/KernelLand/Modules/USB/Core/portctl.c index 1f6cf863..4e798fc0 100644 --- a/KernelLand/Modules/USB/Core/portctl.c +++ b/KernelLand/Modules/USB/Core/portctl.c @@ -61,9 +61,14 @@ void USB_PortCtl_Worker(void *Unused) LOG("Port enabling"); USB_PortCtl_SetPortFeature(hub, port->PortNum, PORT_ENABLE); // Begin connect processing + LOG("Reset complete, marking connection"); port->Status = 2; USB_DeviceConnected(hub, port->PortNum); break; + default: + Log_Warning("USB", "PortCtl worker: Unknown port state %i", + port->Status); + break; } } } @@ -76,6 +81,7 @@ void USB_PortCtl_BeginReset(tUSBHub *Hub, int Port) Hub->Ports[Port].PortNum = Port; // Add to the work queue Workqueue_AddWork(&gUSB_PortCtl_WorkQueue, &Hub->Ports[Port]); + LOG("Queue added"); } void USB_PortCtl_SetPortFeature(tUSBHub *Hub, int Port, int Feat) -- 2.20.1