diff options
author | Christian Kohlschütter <[email protected]> | 2022-07-19 16:02:00 +0200 |
---|---|---|
committer | Mark Brown <[email protected]> | 2022-07-19 18:47:19 +0100 |
commit | 218320fec29430438016f88dd4fbebfa1b95ad8d (patch) | |
tree | b4ddef029db6377e42075cd93280cdd0d645978c /drivers/usb/cdns3/cdns3-pci-wrap.c | |
parent | 66efb665cd5ad69b27dca8571bf89fc6b9c628a4 (diff) |
regulator: core: Fix off-on-delay-us for always-on/boot-on regulators
Regulators marked with "regulator-always-on" or "regulator-boot-on"
as well as an "off-on-delay-us", may run into cycling issues that are
hard to detect.
This is caused by the "last_off" state not being initialized in this
case.
Fix the "last_off" initialization by setting it to the current kernel
time upon initialization, regardless of always_on/boot_on state.
Signed-off-by: Christian Kohlschütter <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-pci-wrap.c')
0 files changed, 0 insertions, 0 deletions