Skip to content
Commit 87e8dfa6 authored by Boris Krasnovskiy's avatar Boris Krasnovskiy Committed by Greg Kroah-Hartman
Browse files

USB: host: ohci-at91: resume: balance the clock start call



There is a clock enable counter run away problem in resume ohci_at91. Code
enables clock that was never disabled in case of non wakeup interface. That
would make clock unstoppable in future.
Use proper alternative to start clocks only if they were stopped before.

Signed-off-by: default avatarBoris Krasnovskiy <Boris.Krasnovskiy@lairdconnect.com>
Signed-off-by: default avatarNicolas Ferre <nicolas.ferre@microchip.com>
Acked-by: default avatarAlan Stern <stern@rowland.harvard.edu>
Link: https://lore.kernel.org/r/20190911064154.28633-4-nicolas.ferre@microchip.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a3bf4d68
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment