1 | /*
|
---|
2 | * Copyright (c) 2017 Michal Staruch
|
---|
3 | * All rights reserved.
|
---|
4 | *
|
---|
5 | * Redistribution and use in source and binary forms, with or without
|
---|
6 | * modification, are permitted provided that the following conditions
|
---|
7 | * are met:
|
---|
8 | *
|
---|
9 | * - Redistributions of source code must retain the above copyright
|
---|
10 | * notice, this list of conditions and the following disclaimer.
|
---|
11 | * - Redistributions in binary form must reproduce the above copyright
|
---|
12 | * notice, this list of conditions and the following disclaimer in the
|
---|
13 | * documentation and/or other materials provided with the distribution.
|
---|
14 | * - The name of the author may not be used to endorse or promote products
|
---|
15 | * derived from this software without specific prior written permission.
|
---|
16 | *
|
---|
17 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
---|
18 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
---|
19 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
---|
20 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
---|
21 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
---|
22 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
---|
23 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
---|
24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
---|
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
---|
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
---|
27 | */
|
---|
28 |
|
---|
29 | /** @addtogroup drvusbxhci
|
---|
30 | * @{
|
---|
31 | */
|
---|
32 | /** @file
|
---|
33 | * @brief The roothub structures abstraction.
|
---|
34 | */
|
---|
35 |
|
---|
36 | #include <errno.h>
|
---|
37 | #include <str_error.h>
|
---|
38 | #include <usb/request.h>
|
---|
39 | #include <usb/debug.h>
|
---|
40 | #include <usb/host/utils/malloc32.h>
|
---|
41 | #include <usb/host/bus.h>
|
---|
42 | #include <usb/host/ddf_helpers.h>
|
---|
43 | #include <usb/host/hcd.h>
|
---|
44 |
|
---|
45 | #include "debug.h"
|
---|
46 | #include "commands.h"
|
---|
47 | #include "endpoint.h"
|
---|
48 | #include "hc.h"
|
---|
49 | #include "hw_struct/trb.h"
|
---|
50 | #include "rh.h"
|
---|
51 | #include "transfers.h"
|
---|
52 |
|
---|
53 | /* This mask only lists registers, which imply port change. */
|
---|
54 | static const uint32_t port_change_mask =
|
---|
55 | XHCI_REG_MASK(XHCI_PORT_CSC) |
|
---|
56 | XHCI_REG_MASK(XHCI_PORT_PEC) |
|
---|
57 | XHCI_REG_MASK(XHCI_PORT_WRC) |
|
---|
58 | XHCI_REG_MASK(XHCI_PORT_OCC) |
|
---|
59 | XHCI_REG_MASK(XHCI_PORT_PRC) |
|
---|
60 | XHCI_REG_MASK(XHCI_PORT_PLC) |
|
---|
61 | XHCI_REG_MASK(XHCI_PORT_CEC);
|
---|
62 |
|
---|
63 | int xhci_rh_init(xhci_rh_t *rh, xhci_hc_t *hc, ddf_dev_t *device)
|
---|
64 | {
|
---|
65 | assert(rh);
|
---|
66 | assert(hc);
|
---|
67 |
|
---|
68 | rh->hc = hc;
|
---|
69 | rh->max_ports = XHCI_REG_RD(hc->cap_regs, XHCI_CAP_MAX_PORTS);
|
---|
70 | hc->rh.hc_device = device;
|
---|
71 |
|
---|
72 | return device_init(&hc->rh.device);
|
---|
73 | }
|
---|
74 |
|
---|
75 | static void setup_control_ep0_ctx(xhci_ep_ctx_t *ctx, xhci_trb_ring_t *ring,
|
---|
76 | const xhci_port_speed_t *speed)
|
---|
77 | {
|
---|
78 | XHCI_EP_TYPE_SET(*ctx, EP_TYPE_CONTROL);
|
---|
79 | // TODO: must be changed with a command after USB descriptor is read
|
---|
80 | // See 4.6.5 in XHCI specification, first note
|
---|
81 | XHCI_EP_MAX_PACKET_SIZE_SET(*ctx, speed->major == 3 ? 512 : 8);
|
---|
82 | XHCI_EP_MAX_BURST_SIZE_SET(*ctx, 0);
|
---|
83 | XHCI_EP_TR_DPTR_SET(*ctx, ring->dequeue);
|
---|
84 | XHCI_EP_DCS_SET(*ctx, 1);
|
---|
85 | XHCI_EP_INTERVAL_SET(*ctx, 0);
|
---|
86 | XHCI_EP_MAX_P_STREAMS_SET(*ctx, 0);
|
---|
87 | XHCI_EP_MULT_SET(*ctx, 0);
|
---|
88 | XHCI_EP_ERROR_COUNT_SET(*ctx, 3);
|
---|
89 | }
|
---|
90 |
|
---|
91 | // TODO: Check device deallocation, we free device_ctx in hc.c, not
|
---|
92 | // sure about the other structs.
|
---|
93 | // TODO: This currently assumes the device is attached to rh directly.
|
---|
94 | // Also, we should consider moving a lot of functionailty to xhci bus
|
---|
95 | int xhci_rh_address_device(xhci_rh_t *rh, device_t *dev, xhci_bus_t *bus)
|
---|
96 | {
|
---|
97 | /* FIXME: Certainly not generic solution. */
|
---|
98 | const uint32_t route_str = 0;
|
---|
99 |
|
---|
100 | int err;
|
---|
101 | xhci_hc_t *hc = rh->hc;
|
---|
102 | const xhci_port_speed_t *speed = xhci_rh_get_port_speed(rh, dev->port);
|
---|
103 |
|
---|
104 | /* Enable new slot */
|
---|
105 | uint32_t slot_id;
|
---|
106 | if ((err = hc_enable_slot(hc, &slot_id)) != EOK)
|
---|
107 | return err;
|
---|
108 | usb_log_debug2("Obtained slot ID: %u.\n", slot_id);
|
---|
109 |
|
---|
110 | /* Setup input context */
|
---|
111 | xhci_input_ctx_t *ictx = malloc(sizeof(xhci_input_ctx_t));
|
---|
112 | if (!ictx)
|
---|
113 | return ENOMEM;
|
---|
114 | memset(ictx, 0, sizeof(xhci_input_ctx_t));
|
---|
115 |
|
---|
116 | XHCI_INPUT_CTRL_CTX_ADD_SET(ictx->ctrl_ctx, 0);
|
---|
117 | XHCI_INPUT_CTRL_CTX_ADD_SET(ictx->ctrl_ctx, 1);
|
---|
118 |
|
---|
119 | /* Initialize slot_ctx according to section 4.3.3 point 3. */
|
---|
120 | /* Attaching to root hub port, root string equals to 0. */
|
---|
121 | XHCI_SLOT_ROOT_HUB_PORT_SET(ictx->slot_ctx, dev->port);
|
---|
122 | XHCI_SLOT_CTX_ENTRIES_SET(ictx->slot_ctx, 1);
|
---|
123 | XHCI_SLOT_ROUTE_STRING_SET(ictx->slot_ctx, route_str);
|
---|
124 |
|
---|
125 | xhci_trb_ring_t *ep_ring = malloc(sizeof(xhci_trb_ring_t));
|
---|
126 | if (!ep_ring) {
|
---|
127 | err = ENOMEM;
|
---|
128 | goto err_ictx;
|
---|
129 | }
|
---|
130 |
|
---|
131 | err = xhci_trb_ring_init(ep_ring);
|
---|
132 | if (err)
|
---|
133 | goto err_ring;
|
---|
134 | setup_control_ep0_ctx(&ictx->endpoint_ctx[0], ep_ring, speed);
|
---|
135 |
|
---|
136 | /* Setup and register device context */
|
---|
137 | xhci_device_ctx_t *dctx = malloc32(sizeof(xhci_device_ctx_t));
|
---|
138 | if (!dctx) {
|
---|
139 | err = ENOMEM;
|
---|
140 | goto err_ring;
|
---|
141 | }
|
---|
142 | memset(dctx, 0, sizeof(xhci_device_ctx_t));
|
---|
143 | hc->dcbaa[slot_id] = addr_to_phys(dctx);
|
---|
144 |
|
---|
145 | memset(&hc->dcbaa_virt[slot_id], 0, sizeof(xhci_virt_device_ctx_t));
|
---|
146 | hc->dcbaa_virt[slot_id].dev_ctx = dctx;
|
---|
147 | hc->dcbaa_virt[slot_id].trs[0] = ep_ring;
|
---|
148 |
|
---|
149 | /* Address device */
|
---|
150 | if ((err = hc_address_device(hc, slot_id, ictx)) != EOK)
|
---|
151 | goto err_dctx;
|
---|
152 | dev->address = XHCI_SLOT_DEVICE_ADDRESS(dctx->slot_ctx);
|
---|
153 | usb_log_debug2("Obtained USB address: %d.\n", dev->address);
|
---|
154 |
|
---|
155 | // Ask libusbhost to create a control endpoint for EP0.
|
---|
156 | bus_t *bus_base = &bus->base;
|
---|
157 | usb_target_t ep0_target = { .address = dev->address, .endpoint = 0 };
|
---|
158 | usb_direction_t ep0_direction = USB_DIRECTION_BOTH;
|
---|
159 |
|
---|
160 | // TODO: Should this call be unified with other calls to `bus_add_ep()`?
|
---|
161 | err = bus_add_ep(bus_base, dev, ep0_target.endpoint, ep0_direction,
|
---|
162 | USB_TRANSFER_CONTROL, CTRL_PIPE_MIN_PACKET_SIZE, CTRL_PIPE_MIN_PACKET_SIZE, 1);
|
---|
163 |
|
---|
164 | if (err != EOK)
|
---|
165 | goto err_add_ep;
|
---|
166 |
|
---|
167 | // Save all data structures in the corresponding xhci_device_t.
|
---|
168 | endpoint_t *ep0_base = bus_find_endpoint(bus_base, ep0_target, ep0_direction);
|
---|
169 | xhci_endpoint_t *ep0 = xhci_endpoint_get(ep0_base);
|
---|
170 | xhci_device_t *xhci_dev = ep0->device;
|
---|
171 |
|
---|
172 | xhci_dev->device = dev;
|
---|
173 | xhci_dev->slot_id = slot_id;
|
---|
174 | xhci_dev->usb3 = speed->major == 3;
|
---|
175 | xhci_dev->hc = hc;
|
---|
176 |
|
---|
177 | // TODO: Save anything else?
|
---|
178 |
|
---|
179 | return EOK;
|
---|
180 |
|
---|
181 | err_add_ep:
|
---|
182 | err_dctx:
|
---|
183 | if (dctx) {
|
---|
184 | free(dctx);
|
---|
185 | hc->dcbaa[slot_id] = 0;
|
---|
186 | memset(&hc->dcbaa_virt[slot_id], 0, sizeof(xhci_virt_device_ctx_t));
|
---|
187 | }
|
---|
188 | err_ring:
|
---|
189 | if (ep_ring) {
|
---|
190 | xhci_trb_ring_fini(ep_ring);
|
---|
191 | free(ep_ring);
|
---|
192 | }
|
---|
193 | err_ictx:
|
---|
194 | free(ictx);
|
---|
195 | return err;
|
---|
196 | }
|
---|
197 |
|
---|
198 | /** Create a device node for device directly connected to RH.
|
---|
199 | */
|
---|
200 | static int rh_setup_device(xhci_rh_t *rh, uint8_t port_id)
|
---|
201 | {
|
---|
202 | int err;
|
---|
203 | assert(rh);
|
---|
204 | assert(rh->hc_device);
|
---|
205 |
|
---|
206 | xhci_bus_t *bus = &rh->hc->bus;
|
---|
207 |
|
---|
208 | device_t *dev = hcd_ddf_device_create(rh->hc_device, bus->base.device_size);
|
---|
209 | if (!dev) {
|
---|
210 | usb_log_error("Failed to create USB device function.");
|
---|
211 | return ENOMEM;
|
---|
212 | }
|
---|
213 |
|
---|
214 | dev->hub = &rh->device;
|
---|
215 | dev->port = port_id;
|
---|
216 |
|
---|
217 | if ((err = xhci_bus_enumerate_device(bus, rh->hc, dev))) {
|
---|
218 | usb_log_error("Failed to enumerate USB device: %s", str_error(err));
|
---|
219 | return err;
|
---|
220 | }
|
---|
221 |
|
---|
222 | if (!ddf_fun_get_name(dev->fun)) {
|
---|
223 | device_set_default_name(dev);
|
---|
224 | }
|
---|
225 |
|
---|
226 | if ((err = ddf_fun_bind(dev->fun))) {
|
---|
227 | usb_log_error("Device(%d): Failed to register: %s.", dev->address, str_error(err));
|
---|
228 | goto err_usb_dev;
|
---|
229 | }
|
---|
230 |
|
---|
231 | fibril_mutex_lock(&rh->device.guard);
|
---|
232 | list_append(&dev->link, &rh->device.devices);
|
---|
233 | fibril_mutex_unlock(&rh->device.guard);
|
---|
234 |
|
---|
235 | return EOK;
|
---|
236 |
|
---|
237 | err_usb_dev:
|
---|
238 | hcd_ddf_device_destroy(dev);
|
---|
239 | return err;
|
---|
240 | }
|
---|
241 |
|
---|
242 | static int handle_connected_device(xhci_rh_t *rh, uint8_t port_id)
|
---|
243 | {
|
---|
244 | xhci_port_regs_t *regs = &rh->hc->op_regs->portrs[port_id - 1];
|
---|
245 |
|
---|
246 | uint8_t link_state = XHCI_REG_RD(regs, XHCI_PORT_PLS);
|
---|
247 | const xhci_port_speed_t *speed = xhci_rh_get_port_speed(rh, port_id);
|
---|
248 |
|
---|
249 | usb_log_info("Detected new %.4s%u.%u device on port %u.", speed->name, speed->major, speed->minor, port_id);
|
---|
250 |
|
---|
251 | if (speed->major == 3) {
|
---|
252 | if (link_state == 0) {
|
---|
253 | /* USB3 is automatically advanced to enabled. */
|
---|
254 | return rh_setup_device(rh, port_id);
|
---|
255 | }
|
---|
256 | else if (link_state == 5) {
|
---|
257 | /* USB 3 failed to enable. */
|
---|
258 | usb_log_error("USB 3 port couldn't be enabled.");
|
---|
259 | return EAGAIN;
|
---|
260 | }
|
---|
261 | else {
|
---|
262 | usb_log_error("USB 3 port is in invalid state %u.", link_state);
|
---|
263 | return EINVAL;
|
---|
264 | }
|
---|
265 | }
|
---|
266 | else {
|
---|
267 | usb_log_debug("USB 2 device attached, issuing reset.");
|
---|
268 | xhci_rh_reset_port(rh, port_id);
|
---|
269 | /*
|
---|
270 | FIXME: we need to wait for the event triggered by the reset
|
---|
271 | and then alloc_dev()... can't it be done directly instead of
|
---|
272 | going around?
|
---|
273 | */
|
---|
274 | return EOK;
|
---|
275 | }
|
---|
276 | }
|
---|
277 |
|
---|
278 | /** Deal with a detached device.
|
---|
279 | */
|
---|
280 | static int handle_disconnected_device(xhci_rh_t *rh, uint8_t port_id)
|
---|
281 | {
|
---|
282 | // TODO: Find XHCI device by the port.
|
---|
283 | // TODO: Destroy DDF function using _gone.
|
---|
284 | // TODO: Remove device endpoints on the bus.
|
---|
285 | // TODO: Free device context.
|
---|
286 | // TODO: Free TRB rings.
|
---|
287 | // TODO: Figure out what was forgotten and free that as well.
|
---|
288 |
|
---|
289 | return EOK;
|
---|
290 | }
|
---|
291 |
|
---|
292 | /** Handle an incoming Port Change Detected Event.
|
---|
293 | */
|
---|
294 | int xhci_rh_handle_port_status_change_event(xhci_hc_t *hc, xhci_trb_t *trb)
|
---|
295 | {
|
---|
296 | uint8_t port_id = XHCI_QWORD_EXTRACT(trb->parameter, 31, 24);
|
---|
297 | usb_log_debug("Port status change event detected for port %u.", port_id);
|
---|
298 |
|
---|
299 | /**
|
---|
300 | * We can't be sure that the port change this event announces is the
|
---|
301 | * only port change that happened (see section 4.19.2 of the xHCI
|
---|
302 | * specification). Therefore, we just check all ports for changes.
|
---|
303 | */
|
---|
304 | xhci_rh_handle_port_change(&hc->rh);
|
---|
305 |
|
---|
306 | return EOK;
|
---|
307 | }
|
---|
308 |
|
---|
309 | void xhci_rh_handle_port_change(xhci_rh_t *rh)
|
---|
310 | {
|
---|
311 | for (uint8_t i = 1; i <= rh->max_ports; ++i) {
|
---|
312 | xhci_port_regs_t *regs = &rh->hc->op_regs->portrs[i - 1];
|
---|
313 |
|
---|
314 | uint32_t events = XHCI_REG_RD_FIELD(®s->portsc, 32);
|
---|
315 | XHCI_REG_WR_FIELD(®s->portsc, events, 32);
|
---|
316 |
|
---|
317 | events &= port_change_mask;
|
---|
318 |
|
---|
319 | if (events & XHCI_REG_MASK(XHCI_PORT_CSC)) {
|
---|
320 | usb_log_info("Connected state changed on port %u.", i);
|
---|
321 | events &= ~XHCI_REG_MASK(XHCI_PORT_CSC);
|
---|
322 |
|
---|
323 | bool connected = XHCI_REG_RD(regs, XHCI_PORT_CCS);
|
---|
324 | if (connected) {
|
---|
325 | handle_connected_device(rh, i);
|
---|
326 | } else {
|
---|
327 | handle_disconnected_device(rh, i);
|
---|
328 | }
|
---|
329 | }
|
---|
330 |
|
---|
331 | if (events & XHCI_REG_MASK(XHCI_PORT_PEC)) {
|
---|
332 | usb_log_info("Port enabled changed on port %u.", i);
|
---|
333 | events &= ~XHCI_REG_MASK(XHCI_PORT_PEC);
|
---|
334 | }
|
---|
335 |
|
---|
336 | if (events & XHCI_REG_MASK(XHCI_PORT_WRC)) {
|
---|
337 | usb_log_info("Warm port reset on port %u completed.", i);
|
---|
338 | events &= ~XHCI_REG_MASK(XHCI_PORT_WRC);
|
---|
339 | }
|
---|
340 |
|
---|
341 | if (events & XHCI_REG_MASK(XHCI_PORT_OCC)) {
|
---|
342 | usb_log_info("Over-current change on port %u.", i);
|
---|
343 | events &= ~XHCI_REG_MASK(XHCI_PORT_OCC);
|
---|
344 | }
|
---|
345 |
|
---|
346 | if (events & XHCI_REG_MASK(XHCI_PORT_PRC)) {
|
---|
347 | usb_log_info("Port reset on port %u completed.", i);
|
---|
348 | events &= ~XHCI_REG_MASK(XHCI_PORT_PRC);
|
---|
349 |
|
---|
350 | const xhci_port_speed_t *speed = xhci_rh_get_port_speed(rh, i);
|
---|
351 | if (speed->major != 3) {
|
---|
352 | /* FIXME: We probably don't want to do this
|
---|
353 | * every time USB2 port is reset. This is a
|
---|
354 | * temporary workaround. */
|
---|
355 | rh_setup_device(rh, i);
|
---|
356 | }
|
---|
357 | }
|
---|
358 |
|
---|
359 | if (events & XHCI_REG_MASK(XHCI_PORT_PLC)) {
|
---|
360 | usb_log_info("Port link state changed on port %u.", i);
|
---|
361 | events &= ~XHCI_REG_MASK(XHCI_PORT_PLC);
|
---|
362 | }
|
---|
363 |
|
---|
364 | if (events & XHCI_REG_MASK(XHCI_PORT_CEC)) {
|
---|
365 | usb_log_info("Port %u failed to configure link.", i);
|
---|
366 | events &= ~XHCI_REG_MASK(XHCI_PORT_CEC);
|
---|
367 | }
|
---|
368 |
|
---|
369 | if (events) {
|
---|
370 | usb_log_warning("Port change (0x%08x) ignored on port %u.", events, i);
|
---|
371 | }
|
---|
372 | }
|
---|
373 |
|
---|
374 | /**
|
---|
375 | * Theory:
|
---|
376 | *
|
---|
377 | * Although more events could have happened while processing, the PCD
|
---|
378 | * bit in USBSTS will be set on every change. Because the PCD is
|
---|
379 | * cleared even before the interrupt is cleared, it is safe to assume
|
---|
380 | * that this handler will be called again.
|
---|
381 | *
|
---|
382 | * But because we could have handled the event in previous run of this
|
---|
383 | * handler, it is not an error when no event is detected.
|
---|
384 | *
|
---|
385 | * Reality:
|
---|
386 | *
|
---|
387 | * The PCD bit is never set. TODO Check why the interrupt never carries
|
---|
388 | * the PCD flag. Possibly repeat the checking until we're sure the
|
---|
389 | * PSCEG is 0 - check section 4.19.2 of the xHCI spec.
|
---|
390 | */
|
---|
391 | }
|
---|
392 |
|
---|
393 | static inline int get_hub_available_bandwidth(xhci_device_t* dev, uint8_t speed, xhci_port_bandwidth_ctx_t *ctx) {
|
---|
394 | // TODO: find a correct place for this function + API
|
---|
395 | // We need speed, because a root hub device has both USB 2 and USB 3 speeds
|
---|
396 | // and the command can query only one of them
|
---|
397 | // ctx is an out parameter as of now
|
---|
398 | assert(dev);
|
---|
399 |
|
---|
400 | ctx = malloc(sizeof(xhci_port_bandwidth_ctx_t));
|
---|
401 | if(!ctx)
|
---|
402 | return ENOMEM;
|
---|
403 |
|
---|
404 | xhci_cmd_t cmd;
|
---|
405 | xhci_cmd_init(&cmd);
|
---|
406 |
|
---|
407 | xhci_get_port_bandwidth_command(dev->hc, &cmd, ctx, speed);
|
---|
408 |
|
---|
409 | int err = xhci_cmd_wait(&cmd, XHCI_DEFAULT_TIMEOUT);
|
---|
410 | if(err != EOK) {
|
---|
411 | free(ctx);
|
---|
412 | ctx = NULL;
|
---|
413 | }
|
---|
414 |
|
---|
415 | return EOK;
|
---|
416 | }
|
---|
417 |
|
---|
418 | const xhci_port_speed_t *xhci_rh_get_port_speed(xhci_rh_t *rh, uint8_t port)
|
---|
419 | {
|
---|
420 | xhci_port_regs_t *port_regs = &rh->hc->op_regs->portrs[port - 1];
|
---|
421 |
|
---|
422 | unsigned psiv = XHCI_REG_RD(port_regs, XHCI_PORT_PS);
|
---|
423 | return &rh->speeds[psiv];
|
---|
424 | }
|
---|
425 |
|
---|
426 | int xhci_rh_reset_port(xhci_rh_t* rh, uint8_t port)
|
---|
427 | {
|
---|
428 | usb_log_debug2("Resetting port %u.", port);
|
---|
429 | xhci_port_regs_t *regs = &rh->hc->op_regs->portrs[port-1];
|
---|
430 | XHCI_REG_SET(regs, XHCI_PORT_PR, 1);
|
---|
431 |
|
---|
432 | return EOK;
|
---|
433 | }
|
---|
434 |
|
---|
435 | int xhci_rh_fini(xhci_rh_t *rh)
|
---|
436 | {
|
---|
437 | /* TODO: Implement me! */
|
---|
438 | usb_log_debug2("Called xhci_rh_fini().");
|
---|
439 | return EOK;
|
---|
440 | }
|
---|
441 |
|
---|
442 | /**
|
---|
443 | * @}
|
---|
444 | */
|
---|