mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-18 15:08:59 +00:00
usb: ehci: Do not disable an already disabled periodic schedule
When periodic_schedules == 0, the schedule is disabled and there is no reason to disable it again. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
parent
0834bb2fb0
commit
32f2eac1e0
1 changed files with 5 additions and 3 deletions
|
@ -1249,9 +1249,11 @@ create_int_queue(struct usb_device *dev, unsigned long pipe, int queuesize,
|
|||
ALIGN_END_ADDR(struct qTD, result->tds,
|
||||
queuesize));
|
||||
|
||||
if (disable_periodic(ctrl) < 0) {
|
||||
debug("FATAL: periodic should never fail, but did");
|
||||
goto fail3;
|
||||
if (ctrl->periodic_schedules > 0) {
|
||||
if (disable_periodic(ctrl) < 0) {
|
||||
debug("FATAL: periodic should never fail, but did");
|
||||
goto fail3;
|
||||
}
|
||||
}
|
||||
|
||||
/* hook up to periodic list */
|
||||
|
|
Loading…
Add table
Reference in a new issue