Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eb6ef86f authored by Pavankumar Kondeti's avatar Pavankumar Kondeti
Browse files

USB: EHCI: Fix a bug in selecting the test mode



The controller is halted twice while putting a port in the test mode.
This bug was introduced unintentionally during 3.10 kernel upgrade.

Change-Id: I3addbdb8e71b6cc99aa98c99c15f74f6eb2a1034
Signed-off-by: default avatarPavankumar Kondeti <pkondeti@codeaurora.org>
parent dca34e2b
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -1295,12 +1295,6 @@ static int ehci_hub_control (
							temp | PORT_SUSPEND,
							sreg);
				}
				spin_unlock_irq(&ehci->lock);
				ehci_halt(ehci);
				spin_lock_irq(&ehci->lock);
				temp = ehci_readl(ehci, status_reg);
				temp |= selector << 16;
				ehci_writel(ehci, temp, status_reg);

				spin_unlock_irqrestore(&ehci->lock, flags);
				ehci_halt(ehci);