ISO9660 filesystem driver
This commit is contained in:
@@ -110,7 +110,7 @@ static void xhci_bios_handover (struct xhci* xhci) {
|
||||
if (!(val & (1 << XHCI_USBLEGSUP_BIOS_SEMA)) && (val & (1 << XHCI_USBLEGSUP_OS_SEMA)))
|
||||
break;
|
||||
|
||||
stall_ms (3);
|
||||
stall_ms (2);
|
||||
}
|
||||
|
||||
DEBUG ("XHCI Handover OK\n");
|
||||
@@ -257,8 +257,8 @@ static void xhci_event_dispatch (struct xhci* xhci, struct xhci_trb* event, uint
|
||||
uint8_t slot_id = (event->ctrl >> XHCI_TETRB_CTRL_SLOT_ID) & 0xFF;
|
||||
uint8_t endpoint_id = (event->ctrl >> XHCI_TETRB_CTRL_ENDPOINT) & 0x1F;
|
||||
|
||||
DEBUG ("transfer completion: code=%u,slot=%u,endpoint_id=%u\n", cmpl_code, slot_id,
|
||||
endpoint_id);
|
||||
/* DEBUG ("transfer completion: code=%u,slot=%u,endpoint_id=%u\n", cmpl_code, slot_id, */
|
||||
/* endpoint_id); */
|
||||
|
||||
xhci->last_slot_id = slot_id;
|
||||
xhci->last_cmpl_code = cmpl_code;
|
||||
@@ -406,7 +406,7 @@ static bool xhci_endpoint0_ctrl_in (struct xhci* xhci, struct xhci_usb_device* u
|
||||
xhci_write32 (xhci->xhci_doorbell_base, usb_device->slot_id * 4, 1);
|
||||
|
||||
while (atomic_load (&xhci->pending) && --timeout > 0)
|
||||
stall_ms (10);
|
||||
stall_ms (1);
|
||||
|
||||
spin_lock (&xhci->device->lock, lockflags);
|
||||
|
||||
@@ -482,7 +482,7 @@ static bool xhci_endpoint0_ctrl_out (struct xhci* xhci, struct xhci_usb_device*
|
||||
xhci_write32 (xhci->xhci_doorbell_base, usb_device->slot_id * 4, 1);
|
||||
|
||||
while (atomic_load (&xhci->pending) && --timeout > 0)
|
||||
stall_ms (10);
|
||||
stall_ms (1);
|
||||
|
||||
spin_lock (&xhci->device->lock, lockflags);
|
||||
|
||||
@@ -530,7 +530,7 @@ static void xhci_send_cmd (struct xhci* xhci, uint64_t param, uint32_t status, u
|
||||
xhci_write32 (xhci->xhci_doorbell_base, 0, 0);
|
||||
|
||||
while (atomic_load (&xhci->pending) && --timeout > 0)
|
||||
stall_ms (10);
|
||||
stall_ms (1);
|
||||
|
||||
spin_lock (&xhci->device->lock, lockflags);
|
||||
|
||||
@@ -1046,7 +1046,7 @@ int xhci_bulk_transfer (struct xhci* xhci, struct xhci_usb_device* usb_device,
|
||||
xhci_write32 (xhci->xhci_doorbell_base, usb_device->slot_id * 4, dci);
|
||||
|
||||
while (atomic_load (&xhci->pending) && --timeout > 0)
|
||||
stall_ms (10);
|
||||
stall_ms (1);
|
||||
|
||||
spin_lock (&xhci->device->lock, lockflags);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user