Skip to content

Commit

Permalink
USB: ehci: add call of free_cached_itd_list() function in disable_per…
Browse files Browse the repository at this point in the history
…iodic()

Sometimes disable_periodic() stop scan_periodic before than free_cached_itd_list() was called.
In such case USB Host stacked during disconnect operation
Solution: add call of free_cached_itd_list() function in disable_periodic()

Signed-off-by: Dimitry Epshtein <dima@marvell.com>
Signed-off-by: Saeed Bishara <saeed@marvell.com>
Cc: David Brownell <dbrownell@users.sourceforge.net>
Cc: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Dmitri Epshtein authored and Greg Kroah-Hartman committed Mar 2, 2010
1 parent a5f0efa commit d63c66d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/usb/host/ehci-sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,8 @@ static int disable_periodic (struct ehci_hcd *ehci)
ehci_writel(ehci, cmd, &ehci->regs->command);
/* posted write ... */

free_cached_itd_list(ehci);

ehci->next_uframe = -1;
return 0;
}
Expand Down

0 comments on commit d63c66d

Please sign in to comment.