Changeset f1fae414 in mainline for uspace/drv/bus/usb/ohci/root_hub.c


Ignore:
Timestamp:
2011-06-22T01:34:53Z (13 years ago)
Author:
Petr Koupy <petr.koupy@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8d7e82c1, cac458f
Parents:
72ec8cc (diff), bf172825 (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.
Message:

Merge mainline changes.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/ohci/root_hub.c

    r72ec8cc rf1fae414  
    232232                return ENOMEM;
    233233
    234         usb_log_info("OHCI root hub with %zu ports initialized.\n",
     234        usb_log_info("Root hub (%zu ports) initialized.\n",
    235235            instance->port_count);
    236236
     
    251251        int opResult;
    252252        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");
    254254                opResult = process_ctrl_request(instance, request);
    255255                usb_transfer_batch_finish_error(request, opResult);
    256256        } 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");
    258258                create_interrupt_mask_in_instance(instance);
    259259                if (is_zeros(instance->interrupt_buffer,
     
    521521                case USB_DESCTYPE_HUB:
    522522                {
    523                         usb_log_debug("USB_DESCTYPE_HUB\n");
     523                        usb_log_debug2("USB_DESCTYPE_HUB\n");
    524524                        result_descriptor = instance->hub_descriptor;
    525525                        size = instance->descriptor_size;
     
    528528                case USB_DESCTYPE_DEVICE:
    529529                {
    530                         usb_log_debug("USB_DESCTYPE_DEVICE\n");
     530                        usb_log_debug2("USB_DESCTYPE_DEVICE\n");
    531531                        result_descriptor = &ohci_rh_device_descriptor;
    532532                        size = sizeof (ohci_rh_device_descriptor);
     
    535535                case USB_DESCTYPE_CONFIGURATION:
    536536                {
    537                         usb_log_debug("USB_DESCTYPE_CONFIGURATION\n");
     537                        usb_log_debug2("USB_DESCTYPE_CONFIGURATION\n");
    538538                        result_descriptor = instance->descriptors.configuration;
    539539                        size = instance->descriptors.configuration_size;
     
    542542                case USB_DESCTYPE_INTERFACE:
    543543                {
    544                         usb_log_debug("USB_DESCTYPE_INTERFACE\n");
     544                        usb_log_debug2("USB_DESCTYPE_INTERFACE\n");
    545545                        result_descriptor = &ohci_rh_iface_descriptor;
    546546                        size = sizeof (ohci_rh_iface_descriptor);
     
    549549                case USB_DESCTYPE_ENDPOINT:
    550550                {
    551                         usb_log_debug("USB_DESCTYPE_ENDPOINT\n");
     551                        usb_log_debug2("USB_DESCTYPE_ENDPOINT\n");
    552552                        result_descriptor = &ohci_rh_ep_descriptor;
    553553                        size = sizeof (ohci_rh_ep_descriptor);
     
    556556                default:
    557557                {
    558                         usb_log_debug("USB_DESCTYPE_EINVAL %d \n",
     558                        usb_log_debug2("USB_DESCTYPE_EINVAL %d \n",
    559559                            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 "
    561561                            "%d\n\tindex %d\n\tlen %d\n ",
    562562                            setup_request->request_type,
     
    789789                }
    790790                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");
    792792                        return process_port_feature_clear_request(instance,
    793793                            setup_request->value,
     
    854854                return EINVAL;
    855855        }
    856         usb_log_info("CTRL packet: %s.\n",
     856        usb_log_debug("CTRL packet: %s.\n",
    857857            usb_debug_str_buffer(
    858858            (const uint8_t *) request->setup_buffer, 8, 8));
     
    864864                case USB_DEVREQ_GET_DESCRIPTOR:
    865865                case USB_DEVREQ_GET_CONFIGURATION:
    866                         usb_log_debug("Processing request with output\n");
     866                        usb_log_debug2("Processing request with output\n");
    867867                        opResult = process_request_with_output(
    868868                            instance, request);
     
    871871                case USB_DEVREQ_SET_FEATURE:
    872872                case USB_DEVREQ_SET_ADDRESS:
    873                         usb_log_debug("Processing request without "
     873                        usb_log_debug2("Processing request without "
    874874                            "additional data\n");
    875875                        opResult = process_request_without_data(
     
    878878                case USB_DEVREQ_SET_DESCRIPTOR:
    879879                case USB_DEVREQ_SET_CONFIGURATION:
    880                         usb_log_debug("Processing request with "
    881                             "input\n");
     880                        usb_log_debug2("Processing request with input\n");
    882881                        opResult = process_request_with_input(
    883882                            instance, request);
     
    885884                        break;
    886885                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);
    891888                        opResult = ENOTSUP;
    892889        }
Note: See TracChangeset for help on using the changeset viewer.