usb: dwc2: do not gate off the hardware if it does not support clock gating
authorDinh Nguyen <dinguyen@kernel.org>
Tue, 4 Jan 2022 13:59:22 +0000 (07:59 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Jan 2022 14:27:53 +0000 (15:27 +0100)
commit34146c68083f1aef6709196b3dc888c1ceffd357
treed861bf9afd653f4ed8213ce4a220d014a1581eb2
parentb52fe2dbb3e655eb1483000adfab68a219549e13
usb: dwc2: do not gate off the hardware if it does not support clock gating

We should not be clearing the HCD_FLAG_HW_ACCESSIBLE bit if the hardware
does not support clock gating.

Fixes: 50fb0c128b6e ("usb: dwc2: Add clock gating entering flow by system suspend")
Acked-by: Minas Harutyunyan <Minas.Harutyunyan@synopsys.com>
Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
Link: https://lore.kernel.org/r/20220104135922.734776-1-dinguyen@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc2/hcd.c