Changeset c9d905f in mainline
- Timestamp:
- 2017-09-30T13:16:18Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4d28d86
- Parents:
- e6b0dba
- Location:
- uspace/drv/bus/usb/xhci
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/xhci/hc.c
re6b0dba rc9d905f 327 327 usb_log_debug2("LEGSUP: bios: %x, os: %x", hc->legsup->sem_bios, hc->legsup->sem_os); 328 328 XHCI_REG_WR(hc->legsup, XHCI_LEGSUP_SEM_OS, 1); 329 for (int i = 0; i< 1001; i++) {329 for (int i = 0; i<=(XHCI_LEGSUP_BIOS_TIMEOUT_US/XHCI_LEGSUP_POLLING_DELAY_1MS); i++) { 330 330 usb_log_debug2("LEGSUP: elapsed: %i ms, bios: %x, os: %x", i, 331 331 XHCI_REG_RD(hc->legsup, XHCI_LEGSUP_SEM_BIOS), … … 335 335 return EOK; 336 336 } 337 async_usleep( 1000);337 async_usleep(XHCI_LEGSUP_POLLING_DELAY_1MS); 338 338 } 339 339 usb_log_error("BIOS did not release XHCI legacy hold!\n"); -
uspace/drv/bus/usb/xhci/hw_struct/regs.h
re6b0dba rc9d905f 581 581 #define XHCI_LEGSUP_SEM_OS sem_os, 8, FLAG, 0 582 582 583 #define XHCI_LEGSUP_POLLING_DELAY_1MS 1000 584 #define XHCI_LEGSUP_BIOS_TIMEOUT_US 1000000 /* 4.22.1 BIOS may take up to 1 second to release the device */ 585 583 586 #endif 584 587 /**
Note:
See TracChangeset
for help on using the changeset viewer.