usb: host: ohci-at91: suspend/resume ports after/before OHCI accesses
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Wed, 21 Jul 2021 13:29:05 +0000 (16:29 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Jul 2021 14:31:17 +0000 (16:31 +0200)
commit00de6a572f30ee93cad7e0704ec4232e5e72bda8
treeb08cd8667b834bccd9fd78ad61423bcccf0a6359
parent68d9f95d6fd5399d105eaf2308c243536c5d7664
usb: host: ohci-at91: suspend/resume ports after/before OHCI accesses

On SAMA7G5 suspending ports will cut the access to OHCI registers and
any subsequent access to them will lead to CPU being blocked trying to
access that memory. Same thing happens on resume: if OHCI memory is
accessed before resuming ports the CPU will block on that access. The
OCHI memory is accessed on suspend/resume though
ohci_suspend()/ohci_resume().

Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20210721132905.1970713-1-claudiu.beznea@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ohci-at91.c