libpayload: usb: Remove generic roothub reset port function
The generic roothub reset port function is overly broad and does some things which may be undesirable, such as issuing multiple resets to a port if the reset is deemed to have finished too quickly. Remove the generic function and replace it with a controller-specific function, currently only implemented for xhci. Change-Id: Id46f73ea3341d4d01d2b517c6bf687402022d272 Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/189495 Reviewed-by: Julius Werner <jwerner@chromium.org> (cherry picked from commit 54e1da075b0106b0a1f736641fa52c39401d349d) Signed-off-by: Isaac Christensen <isaac.christensen@se-eng.com> Reviewed-on: http://review.coreboot.org/7001 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
This commit is contained in:
committed by
Isaac Christensen
parent
758f26aa2d
commit
a16029a93d
@@ -72,8 +72,11 @@ typedef struct generic_hub {
|
||||
} generic_hub_t;
|
||||
|
||||
void generic_hub_destroy(usbdev_t *);
|
||||
int generic_hub_wait_for_port(usbdev_t *const dev, const int port,
|
||||
const int wait_for,
|
||||
int (*const port_op)(usbdev_t *, int),
|
||||
int timeout_steps, const int step_us);
|
||||
int generic_hub_resetport(usbdev_t *, int port);
|
||||
int generic_hub_rh_resetport(usbdev_t *, int port); /* root hubs have different timing requirements */
|
||||
int generic_hub_scanport(usbdev_t *, int port);
|
||||
/* the provided generic_hub_ops struct has to be static */
|
||||
int generic_hub_init(usbdev_t *, int num_ports, const generic_hub_ops_t *);
|
||||
|
Reference in New Issue
Block a user