Changeset 5af769c in mainline


Ignore:
Timestamp:
2011-07-11T15:56:24Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
00694c5
Parents:
c3bc8a8
Message:

OHCI: Root hub: Implement SET_ADDRESS.

It might be used if root hub initialization is changed.
SET_CONFIGURATION does not carry additional data, the only input request that does is SET_DESCRIPTOR and that one is not supported.

File:
1 edited

Legend:

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

    rc3bc8a8 r5af769c  
    659659        case USB_DEVREQ_SET_ADDRESS:
    660660                usb_log_debug("USB_DEVREQ_SET_ADDRESS\n");
    661                 return ENOTSUP;
     661                instance->address = setup_request->value;
     662                TRANSFER_OK(0);
     663        case USB_DEVREQ_SET_CONFIGURATION:
     664                usb_log_debug("USB_DEVREQ_SET_CONFIGURATION\n");
     665                /* We don't need to do anything */
     666                TRANSFER_OK(0);
    662667
    663668        default:
     
    713718        case USB_DEVREQ_SET_FEATURE:
    714719        case USB_DEVREQ_SET_ADDRESS:
     720        case USB_DEVREQ_SET_CONFIGURATION:
    715721                usb_log_debug2("Processing request without "
    716722                    "additional data\n");
    717723                return request_without_data(instance, request);
    718         case USB_DEVREQ_SET_CONFIGURATION:
    719                 usb_log_debug2("Processing request with input\n");
    720                 /* We don't need to do anything */
    721                 TRANSFER_OK(0);
    722724        case USB_DEVREQ_SET_DESCRIPTOR: /* Not supported by OHCI RH */
    723725        default:
Note: See TracChangeset for help on using the changeset viewer.