]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
usb: dwc2: Add exit clock gating before removing driver
authorArtur Petrosyan <Arthur.Petrosyan@synopsys.com>
Tue, 13 Apr 2021 07:37:30 +0000 (11:37 +0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Apr 2021 10:25:12 +0000 (12:25 +0200)
commit401411bbc4e62bcbcc020c2c458ecb90843140a8
tree8ec84386ae066d6182b272c4484ad131f021a405
parentef5e0eec476426791d3d5e74fa96b2a30076922d
usb: dwc2: Add exit clock gating before removing driver

When dwc2 core is in clock gating mode loading driver
again causes driver fail. Because in that mode
registers are not accessible.

Added a flow of exiting clock gating mode
to avoid the driver reload failure.

Signed-off-by: Artur Petrosyan <Arthur.Petrosyan@synopsys.com>
Link: https://lore.kernel.org/r/20210413073731.3C81BA022E@mailhost.synopsys.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc2/platform.c