Changeset 5ef3afd in mainline
- Timestamp:
- 2018-02-24T19:51:28Z (8 years ago)
- 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)
- Location:
- uspace/drv/bus/usb/xhci
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/xhci/debug.c
r95f1b8f r5ef3afd 322 322 323 323 switch (id) { 324 case XHCI_EC_SUPPORTED_PROTOCOL:325 name.packed = host2uint32_t_le(XHCI_REG_RD(ec, XHCI_EC_SP_NAME));326 ports_from = XHCI_REG_RD(ec, XHCI_EC_SP_CP_OFF);327 ports_to = ports_from + XHCI_REG_RD(ec, XHCI_EC_SP_CP_COUNT) - 1;328 unsigned psic = XHCI_REG_RD(ec, XHCI_EC_SP_PSIC);329 330 usb_log_debug("\tProtocol %.4s%u.%u, ports %u-%u, "331 "%u protocol speeds", name.str,332 XHCI_REG_RD(ec, XHCI_EC_SP_MAJOR),333 XHCI_REG_RD(ec, XHCI_EC_SP_MINOR),334 ports_from, ports_to, psic);335 336 for (unsigned i = 0; i < psic; i++)337 xhci_dump_psi(xhci_extcap_psi(ec, i));338 break;324 case XHCI_EC_SUPPORTED_PROTOCOL: 325 name.packed = host2uint32_t_le(XHCI_REG_RD(ec, XHCI_EC_SP_NAME)); 326 ports_from = XHCI_REG_RD(ec, XHCI_EC_SP_CP_OFF); 327 ports_to = ports_from + XHCI_REG_RD(ec, XHCI_EC_SP_CP_COUNT) - 1; 328 unsigned psic = XHCI_REG_RD(ec, XHCI_EC_SP_PSIC); 329 330 usb_log_debug("\tProtocol %.4s%u.%u, ports %u-%u, " 331 "%u protocol speeds", name.str, 332 XHCI_REG_RD(ec, XHCI_EC_SP_MAJOR), 333 XHCI_REG_RD(ec, XHCI_EC_SP_MINOR), 334 ports_from, ports_to, psic); 335 336 for (unsigned i = 0; i < psic; i++) 337 xhci_dump_psi(xhci_extcap_psi(ec, i)); 338 break; 339 339 } 340 340 } -
uspace/drv/bus/usb/xhci/isoch.c
r95f1b8f r5ef3afd 597 597 598 598 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; 619 619 } 620 620
Note:
See TracChangeset
for help on using the changeset viewer.
