]> git.baikalelectronics.ru Git - uboot.git/commit
usb: xhci-rcar: deregister before deactivating clock
authorMatthias Blankertz <matthias.blankertz@cetitec.com>
Tue, 22 May 2018 13:24:48 +0000 (15:24 +0200)
committerMarek Vasut <marex@denx.de>
Wed, 30 May 2018 09:59:10 +0000 (11:59 +0200)
commitc0f48aa3b37a6fb4358350f00fb9aa7d567877e9
tree5455c30789e09f4dc38f65d87237971483d8c8d2
parent55bd47a974612d89f0f45ff2f1bf6536fc76ea0f
usb: xhci-rcar: deregister before deactivating clock

During the execution of xhci_deregister xHCI registers are accessed. If
the clock is already deactivated when xhci_deregister is called this can
lead to undefined behavior. Change the order to deregister the device
before deactivating the clock.

Signed-off-by: Matthias Blankertz <matthias.blankertz@cetitec.com>
drivers/usb/host/xhci-rcar.c