Changeset 5ef3afd in mainline for uspace/drv/bus/usb/xhci/isoch.c


Ignore:
Timestamp:
2018-02-24T19:51:28Z (6 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
39f1c86
Parents:
95f1b8f
git-author:
Ondřej Hlavatý <aearsis@…> (2018-02-24 18:43:36)
git-committer:
Ondřej Hlavatý <aearsis@…> (2018-02-24 19:51:28)
Message:

usb: cstyle

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/xhci/isoch.c

    r95f1b8f r5ef3afd  
    597597
    598598        switch (completion_code) {
    599                 case XHCI_TRBC_RING_OVERRUN:
    600                 case XHCI_TRBC_RING_UNDERRUN:
    601                         /*
    602                         * For OUT, there was nothing to process.
    603                         * For IN, the buffer has overfilled.
    604                         * In either case, reset the ring.
    605                         */
    606                         usb_log_warning("Ring over/underrun.");
    607                         isoch_reset_no_timer(ep);
    608                         fibril_condvar_broadcast(&ep->isoch->avail);
    609                         fibril_mutex_unlock(&ep->isoch->guard);
    610                         goto out;
    611                 case XHCI_TRBC_SHORT_PACKET:
    612                 case XHCI_TRBC_SUCCESS:
    613                         err = EOK;
    614                         break;
    615                 default:
    616                         usb_log_warning("Transfer not successfull: %u", completion_code);
    617                         err = EIO;
    618                         break;
     599        case XHCI_TRBC_RING_OVERRUN:
     600        case XHCI_TRBC_RING_UNDERRUN:
     601                /*
     602                * For OUT, there was nothing to process.
     603                * For IN, the buffer has overfilled.
     604                * In either case, reset the ring.
     605                */
     606                usb_log_warning("Ring over/underrun.");
     607                isoch_reset_no_timer(ep);
     608                fibril_condvar_broadcast(&ep->isoch->avail);
     609                fibril_mutex_unlock(&ep->isoch->guard);
     610                goto out;
     611        case XHCI_TRBC_SHORT_PACKET:
     612        case XHCI_TRBC_SUCCESS:
     613                err = EOK;
     614                break;
     615        default:
     616                usb_log_warning("Transfer not successfull: %u", completion_code);
     617                err = EIO;
     618                break;
    619619        }
    620620
Note: See TracChangeset for help on using the changeset viewer.