X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FModules%2FUSB%2FCore%2Fusb_poll.c;h=5a9326939b16ce6a4268763477475000ef3fe241;hb=d9334c3a1eb0295eb13d088991182c57a4d3cabf;hp=9cdd6b47cee65c5a675cc5e919520df90265ad3b;hpb=3ae2c079ea44ea7a8fb1a65e7b9ff5d76f3f4c24;p=tpg%2Facess2.git diff --git a/KernelLand/Modules/USB/Core/usb_poll.c b/KernelLand/Modules/USB/Core/usb_poll.c index 9cdd6b47..5a932693 100644 --- a/KernelLand/Modules/USB/Core/usb_poll.c +++ b/KernelLand/Modules/USB/Core/usb_poll.c @@ -61,10 +61,9 @@ void USB_StartPollingEndpoint(tUSBInterface *Iface, int Endpoint) endpt->InputData = malloc(endpt->MaxPacketSize); LOG("Polling 0x%x at %i ms", Iface->Dev->Address * 16 + endpt->EndpointNum, endpt->PollingPeriod); - Iface->Dev->Host->HostDef->InterruptIN( - Iface->Dev->Host->Ptr, - Iface->Dev->Address * 16 + endpt->EndpointNum, - endpt->PollingPeriod, + Iface->Dev->Host->HostDef->InitInterrupt( + Iface->Dev->Host->Ptr, Iface->Dev->Address * 16 + endpt->EndpointNum, + 0, endpt->PollingPeriod, USB_int_PollCallback, endpt, endpt->InputData, endpt->MaxPacketSize ); @@ -82,7 +81,8 @@ int USB_PollThread(void *unused) // Check hosts for( tUSBHost *host = gUSB_Hosts; host; host = host->Next ) { - host->HostDef->CheckPorts(host->Ptr); + if( host->HostDef->CheckPorts ) + host->HostDef->CheckPorts(host->Ptr); } Time_Delay(100);