Changeset cac458f in mainline for uspace/drv/bus/usb/ohci/root_hub.c
- Timestamp:
- 2011-06-22T01:59:39Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 41e2118
- Parents:
- 79506d6 (diff), f1fae414 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ohci/root_hub.c
r79506d6 rcac458f 232 232 return ENOMEM; 233 233 234 usb_log_info(" OHCI root hub with %zu portsinitialized.\n",234 usb_log_info("Root hub (%zu ports) initialized.\n", 235 235 instance->port_count); 236 236 … … 251 251 int opResult; 252 252 if (request->ep->transfer_type == USB_TRANSFER_CONTROL) { 253 usb_log_ info("Root hub got CONTROL packet\n");253 usb_log_debug("Root hub got CONTROL packet\n"); 254 254 opResult = process_ctrl_request(instance, request); 255 255 usb_transfer_batch_finish_error(request, opResult); 256 256 } else if (request->ep->transfer_type == USB_TRANSFER_INTERRUPT) { 257 usb_log_ info("Root hub got INTERRUPT packet\n");257 usb_log_debug("Root hub got INTERRUPT packet\n"); 258 258 create_interrupt_mask_in_instance(instance); 259 259 if (is_zeros(instance->interrupt_buffer, … … 521 521 case USB_DESCTYPE_HUB: 522 522 { 523 usb_log_debug ("USB_DESCTYPE_HUB\n");523 usb_log_debug2("USB_DESCTYPE_HUB\n"); 524 524 result_descriptor = instance->hub_descriptor; 525 525 size = instance->descriptor_size; … … 528 528 case USB_DESCTYPE_DEVICE: 529 529 { 530 usb_log_debug ("USB_DESCTYPE_DEVICE\n");530 usb_log_debug2("USB_DESCTYPE_DEVICE\n"); 531 531 result_descriptor = &ohci_rh_device_descriptor; 532 532 size = sizeof (ohci_rh_device_descriptor); … … 535 535 case USB_DESCTYPE_CONFIGURATION: 536 536 { 537 usb_log_debug ("USB_DESCTYPE_CONFIGURATION\n");537 usb_log_debug2("USB_DESCTYPE_CONFIGURATION\n"); 538 538 result_descriptor = instance->descriptors.configuration; 539 539 size = instance->descriptors.configuration_size; … … 542 542 case USB_DESCTYPE_INTERFACE: 543 543 { 544 usb_log_debug ("USB_DESCTYPE_INTERFACE\n");544 usb_log_debug2("USB_DESCTYPE_INTERFACE\n"); 545 545 result_descriptor = &ohci_rh_iface_descriptor; 546 546 size = sizeof (ohci_rh_iface_descriptor); … … 549 549 case USB_DESCTYPE_ENDPOINT: 550 550 { 551 usb_log_debug ("USB_DESCTYPE_ENDPOINT\n");551 usb_log_debug2("USB_DESCTYPE_ENDPOINT\n"); 552 552 result_descriptor = &ohci_rh_ep_descriptor; 553 553 size = sizeof (ohci_rh_ep_descriptor); … … 556 556 default: 557 557 { 558 usb_log_debug ("USB_DESCTYPE_EINVAL %d \n",558 usb_log_debug2("USB_DESCTYPE_EINVAL %d \n", 559 559 setup_request->value); 560 usb_log_debug ("\ttype %d\n\trequest %d\n\tvalue "560 usb_log_debug2("\ttype %d\n\trequest %d\n\tvalue " 561 561 "%d\n\tindex %d\n\tlen %d\n ", 562 562 setup_request->request_type, … … 789 789 } 790 790 if (setup_request->request_type == USB_HUB_REQ_TYPE_SET_PORT_FEATURE) { 791 usb_log_debug ("USB_HUB_REQ_TYPE_SET_PORT_FEATURE\n");791 usb_log_debug2("USB_HUB_REQ_TYPE_SET_PORT_FEATURE\n"); 792 792 return process_port_feature_clear_request(instance, 793 793 setup_request->value, … … 854 854 return EINVAL; 855 855 } 856 usb_log_ info("CTRL packet: %s.\n",856 usb_log_debug("CTRL packet: %s.\n", 857 857 usb_debug_str_buffer( 858 858 (const uint8_t *) request->setup_buffer, 8, 8)); … … 864 864 case USB_DEVREQ_GET_DESCRIPTOR: 865 865 case USB_DEVREQ_GET_CONFIGURATION: 866 usb_log_debug ("Processing request with output\n");866 usb_log_debug2("Processing request with output\n"); 867 867 opResult = process_request_with_output( 868 868 instance, request); … … 871 871 case USB_DEVREQ_SET_FEATURE: 872 872 case USB_DEVREQ_SET_ADDRESS: 873 usb_log_debug ("Processing request without "873 usb_log_debug2("Processing request without " 874 874 "additional data\n"); 875 875 opResult = process_request_without_data( … … 878 878 case USB_DEVREQ_SET_DESCRIPTOR: 879 879 case USB_DEVREQ_SET_CONFIGURATION: 880 usb_log_debug("Processing request with " 881 "input\n"); 880 usb_log_debug2("Processing request with input\n"); 882 881 opResult = process_request_with_input( 883 882 instance, request); … … 885 884 break; 886 885 default: 887 usb_log_warning("Received unsuported request: " 888 "%d\n", 889 setup_request->request 890 ); 886 usb_log_warning("Received unsupported request: %d.\n", 887 setup_request->request); 891 888 opResult = ENOTSUP; 892 889 }
Note:
See TracChangeset
for help on using the changeset viewer.