X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FModules%2FUSB%2FCore%2Fhub.c;h=7bc4dc270047d53e65f28f5715d4a2e349ad276c;hb=849329d50395b44ac97c5b5145fc2df0749eace2;hp=69599e18a2ac58fac8710bce2e78b087bab97300;hpb=1ba64c63a4a3a8ce27155f9463f0442ea7f7dc89;p=tpg%2Facess2.git diff --git a/KernelLand/Modules/USB/Core/hub.c b/KernelLand/Modules/USB/Core/hub.c index 69599e18..7bc4dc27 100644 --- a/KernelLand/Modules/USB/Core/hub.c +++ b/KernelLand/Modules/USB/Core/hub.c @@ -5,7 +5,7 @@ * hub.c * - Basic hub driver */ -#define DEBUG 1 +#define DEBUG 0 #include #include @@ -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; - 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);