mirror of
https://github.com/reactos/reactos.git
synced 2025-05-27 21:18:15 +00:00
[USBOHCI]
- Silence a few traces - Add a hack for handling URB_FUNCTION_CLASS_INTERFACE. The hid bus driver performs this request with zero buffer length, which is not valid. Needs more investigation svn path=/branches/usb-bringup/; revision=54777
This commit is contained in:
parent
4e6638bcc3
commit
7e231e2c92
4 changed files with 9 additions and 3 deletions
|
@ -1364,7 +1364,7 @@ InterruptServiceRoutine(
|
|||
//
|
||||
// defer processing
|
||||
//
|
||||
DPRINT1("Status %x Acknowledge %x FrameNumber %x\n", Status, Acknowledge, This->m_HCCA->CurrentFrameNumber);
|
||||
DPRINT("Status %x Acknowledge %x FrameNumber %x\n", Status, Acknowledge, This->m_HCCA->CurrentFrameNumber);
|
||||
KeInsertQueueDpc(&This->m_IntDpcObject, (PVOID)Status, (PVOID)(DoneHead & ~1));
|
||||
|
||||
//
|
||||
|
|
|
@ -1634,6 +1634,12 @@ CHubController::HandleClassInterface(
|
|||
DPRINT1("Value %x\n", Urb->UrbControlVendorClassRequest.Value);
|
||||
DPRINT1("Index %x\n", Urb->UrbControlVendorClassRequest.Index);
|
||||
|
||||
if (Urb->UrbControlVendorClassRequest.TransferBufferLength == 0)
|
||||
{
|
||||
DPRINT1("Invalid request length\n");
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
//
|
||||
// initialize setup packet
|
||||
//
|
||||
|
|
|
@ -620,7 +620,7 @@ CUSBQueue::TransferDescriptorCompletionCallback(
|
|||
POHCI_ENDPOINT_DESCRIPTOR EndpointDescriptor, PreviousEndpointDescriptor;
|
||||
NTSTATUS Status;
|
||||
|
||||
DPRINT1("CUSBQueue::TransferDescriptorCompletionCallback transfer descriptor %x\n", TransferDescriptorLogicalAddress);
|
||||
DPRINT("CUSBQueue::TransferDescriptorCompletionCallback transfer descriptor %x\n", TransferDescriptorLogicalAddress);
|
||||
|
||||
//
|
||||
// find transfer descriptor in control list
|
||||
|
|
|
@ -941,7 +941,7 @@ CUSBRequest::AllocateEndpointDescriptor(
|
|||
Descriptor->Flags |= OHCI_ENDPOINT_SET_ENDPOINT_NUMBER(GetEndpointAddress());
|
||||
Descriptor->Flags |= OHCI_ENDPOINT_SET_MAX_PACKET_SIZE(GetMaxPacketSize());
|
||||
|
||||
DPRINT1("Flags %x DeviceAddress %x EndpointAddress %x PacketSize %x\n", Descriptor->Flags, GetDeviceAddress(), GetEndpointAddress(), GetMaxPacketSize());
|
||||
DPRINT("Flags %x DeviceAddress %x EndpointAddress %x PacketSize %x\n", Descriptor->Flags, GetDeviceAddress(), GetEndpointAddress(), GetMaxPacketSize());
|
||||
|
||||
//
|
||||
// is there an endpoint descriptor
|
||||
|
|
Loading…
Reference in a new issue