Index: uspace/drv/bus/usb/xhci/commands.c
===================================================================
--- uspace/drv/bus/usb/xhci/commands.c	(revision ce85fc8d349274ffd03adfbc352acf011649c380)
+++ uspace/drv/bus/usb/xhci/commands.c	(revision f711f06116f62c4ea5fb02b9075000c5692c6219)
@@ -91,5 +91,14 @@
 	xhci_dump_trb(trb);
 
-	// TODO: Extract command trb pointer, switch by its type and handle it.
+	int code = XHCI_DWORD_EXTRACT(trb->status, 31, 24);
+	if (code != XHCI_TRBC_SUCCESS)
+		return EINVAL; // TODO: Find a better error code/handler.
+
+	xhci_trb_t *command = (xhci_trb_t *) XHCI_QWORD_EXTRACT(trb->parameter, 63, 4);
+	switch(TRB_TYPE(*command)) {
+		default:
+			// TODO:
+			break;
+	}
 
 	return EOK;
