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/IPStack - Moving to reduction of memcpy usage
[tpg/acess2.git]
/
KernelLand
/
Modules
/
USB
/
Core
/
hub.c
diff --git
a/KernelLand/Modules/USB/Core/hub.c
b/KernelLand/Modules/USB/Core/hub.c
index
69599e1
..
7bc4dc2
100644
(file)
--- a/
KernelLand/Modules/USB/Core/hub.c
+++ b/
KernelLand/Modules/USB/Core/hub.c
@@
-5,7
+5,7
@@
* hub.c
* - Basic hub driver
*/
* hub.c
* - Basic hub driver
*/
-#define DEBUG
1
+#define DEBUG
0
#include <usb_hub.h>
#include <timers.h>
#include <usb_hub.h>
#include <timers.h>
@@
-123,8
+123,9
@@
void Hub_PortStatusChange(tUSBInterface *Dev, int Endpoint, int Length, void *Da
for( i = 0; i < info->nPorts; i += 8, status ++ )
{
if( i/8 >= Length ) break;
for( i = 0; i < info->nPorts; i += 8, status ++ )
{
if( i/8 >= Length ) break;
- if( *status == 0 ) continue;
-
+ LOG("status[%i] = %x", i/8, *status);
+ if( *status == 0 ) continue;
+
for( int j = 0; j < 8; j ++ )
if( *status & (1 << j) )
Hub_int_HandleChange(Dev, i+j);
for( int j = 0; j < 8; j ++ )
if( *status & (1 << j) )
Hub_int_HandleChange(Dev, i+j);
UCC
git Repository :: git.ucc.asn.au