From: John Hodge Date: Tue, 1 Oct 2013 03:18:10 +0000 (+0800) Subject: Modules/USB - More debug in portctl X-Git-Tag: rel0.15~165 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=bb34fb0b4eb3257f0289a245ca702b7b314aca82;p=tpg%2Facess2.git Modules/USB - More debug in portctl --- 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)