Commit d63c66d2 authored by Dmitri Epshtein's avatar Dmitri Epshtein Committed by Greg Kroah-Hartman

USB: ehci: add call of free_cached_itd_list() function in disable_periodic()

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: default avatarDimitry Epshtein <dima@marvell.com>
Signed-off-by: default avatarSaeed Bishara <saeed@marvell.com>
Cc: David Brownell <dbrownell@users.sourceforge.net>
Cc: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent a5f0efab
...@@ -510,6 +510,8 @@ static int disable_periodic (struct ehci_hcd *ehci) ...@@ -510,6 +510,8 @@ static int disable_periodic (struct ehci_hcd *ehci)
ehci_writel(ehci, cmd, &ehci->regs->command); ehci_writel(ehci, cmd, &ehci->regs->command);
/* posted write ... */ /* posted write ... */
free_cached_itd_list(ehci);
ehci->next_uframe = -1; ehci->next_uframe = -1;
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment