Modules/VirtIONet - Added disabled Tx packet trace
[tpg/acess2.git] / KernelLand / Modules / USB / Core / usb_lowlevel.c
index 4c62c3b..27bad3e 100644 (file)
@@ -41,8 +41,8 @@ void *USB_int_Request(tUSBDevice *Device, int EndPt, int Type, int Req, int Val,
 
        dest_hdl = Device->EndpointHandles[EndPt];
        if( !dest_hdl ) {
-               dest_hdl = Host->HostDef->InitControl(Host->Ptr, Device->Address*16 + EndPt);
-               Device->EndpointHandles[EndPt] = dest_hdl;
+               LEAVE('n');
+               return NULL;
        }
        
        req.ReqType = Type;
@@ -84,7 +84,7 @@ void USB_int_WakeThread(void *Thread, void *Data, size_t Length)
 
 int USB_int_SendSetupSetAddress(tUSBHost *Host, int Address)
 {
-       USB_int_Request(&Host->RootHubDev, 0, 0x00, 5, Address & 0x7F, 0, 0, NULL);
+       USB_int_Request(Host->RootHubDev, 0, 0x00, 5, Address & 0x7F, 0, 0, NULL);
        return 0;
 }
 
@@ -95,8 +95,7 @@ int USB_int_ReadDescriptor(tUSBDevice *Dev, int Endpoint, int Type, int Index, i
        
        dest_hdl = Dev->EndpointHandles[Endpoint];
        if( !dest_hdl ) {
-               dest_hdl = Dev->Host->HostDef->InitControl(Dev->Host->Ptr, Dev->Address*16 + Endpoint);
-               Dev->EndpointHandles[Endpoint] = dest_hdl;
+               return -1;
        }
 
        ENTER("pDev xEndpoint iType iIndex iLength pDest",

UCC git Repository :: git.ucc.asn.au