mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-27 23:20:26 +09:00
usb: Update for new sequence numbers
Use the new sequence number in all cases. Since all devices are assigned a number when bound, this hack should not be needed. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
4de51cc25b
commit
b27347f425
@ -296,16 +296,14 @@ static const struct ehci_ops vf_ehci_ops = {
|
||||
|
||||
static int vf_usb_bind(struct udevice *dev)
|
||||
{
|
||||
static int num_controllers;
|
||||
|
||||
/*
|
||||
* Without this hack, if we return ENODEV for USB Controller 0, on
|
||||
* probe for the next controller, USB Controller 1 will be given a
|
||||
* sequence number of 0. This conflicts with our requirement of
|
||||
* sequence numbers while initialising the peripherals.
|
||||
*
|
||||
* FIXME: Check that this still works OK with the new sequence numbers
|
||||
*/
|
||||
dev->req_seq = num_controllers;
|
||||
num_controllers++;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user