|
@@ -708,10 +708,6 @@ static void usb_control_complete ( struct usb_endpoint *ep,
|
708
|
708
|
/* Record completion status in buffer */
|
709
|
709
|
pshdr = iob_push ( iobuf, sizeof ( *pshdr ) );
|
710
|
710
|
pshdr->rc = rc;
|
711
|
|
- if ( rc != 0 ) {
|
712
|
|
- DBGC ( usb, "USB %s control transaction failed: %s\n",
|
713
|
|
- usb->name, strerror ( rc ) );
|
714
|
|
- }
|
715
|
711
|
|
716
|
712
|
/* Add to list of completed I/O buffers */
|
717
|
713
|
list_add_tail ( &iobuf->list, &usb->complete );
|
|
@@ -793,6 +789,9 @@ int usb_control ( struct usb_device *usb, unsigned int request,
|
793
|
789
|
|
794
|
790
|
/* Fail immediately if completion was in error */
|
795
|
791
|
if ( rc != 0 ) {
|
|
792
|
+ DBGC ( usb, "USB %s control %04x:%04x:%04x "
|
|
793
|
+ "failed: %s\n", usb->name, request,
|
|
794
|
+ value, index, strerror ( rc ) );
|
796
|
795
|
free_iob ( cmplt );
|
797
|
796
|
return rc;
|
798
|
797
|
}
|
|
@@ -809,8 +808,8 @@ int usb_control ( struct usb_device *usb, unsigned int request,
|
809
|
808
|
mdelay ( 1 );
|
810
|
809
|
}
|
811
|
810
|
|
812
|
|
- DBGC ( usb, "USB %s timed out waiting for control transaction\n",
|
813
|
|
- usb->name );
|
|
811
|
+ DBGC ( usb, "USB %s timed out waiting for control %04x:%04x:%04x\n",
|
|
812
|
+ usb->name, request, value, index );
|
814
|
813
|
return -ETIMEDOUT;
|
815
|
814
|
|
816
|
815
|
err_message:
|