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>
Thu, 12 Aug 2021 11:22:11 +0000 (13:22 +0200)
commit5b4318885a4388b6b7c9227be53b8411bb1457ac
treee2cc2ac2de4575aea9ae420e9a06ee60e4b26cf4
parent1f2015506d9cca9ada79ed82de702b863a28d5c1
usb: host: ohci-at91: suspend/resume ports after/before OHCI accesses

commit 00de6a572f30ee93cad7e0704ec4232e5e72bda8 upstream.

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