git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Modules/E1000 - (minor) Logging when init fails
[tpg/acess2.git]
/
KernelLand
/
Modules
/
USB
/
Core
/
portctl.c
diff --git
a/KernelLand/Modules/USB/Core/portctl.c
b/KernelLand/Modules/USB/Core/portctl.c
index
1f6cf86
..
4e798fc
100644
(file)
--- 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("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;
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]);
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)
}
void USB_PortCtl_SetPortFeature(tUSBHub *Hub, int Port, int Feat)
UCC
git Repository :: git.ucc.asn.au