linux/drivers/staging/hikey9xx
Mauro Carvalho Chehab fd765da060 staging: hikey9xx: hi6421v600-regulator: fix delay logic
The original driver, which can be seen at
commit 42f24d9d44 ("staging: regulator: add a regulator driver for HiSilicon 6421v600 SPMI PMIC")
had a complex logic to ensure that there won't be multiple power
enable/disable commands running at the same time. At the original
logic, it were ensured that:

- a next power up/down would wait for at least the on/off period;
- an extra delay would be granted. It turns that such extra delay
  has a value of zero, but it was relying on gettimeofday()
  call, which can take some time.

This was later simplified, but there are still some possible
issues. In order to avoid that, let's simply add a delay
to wait for the power up line to stabilize after powering up
a device.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Link: https://lore.kernel.org/r/6733dac9813ba6688def404142cb7b964accf758.1611212783.git.mchehab+huawei@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-01-26 18:52:54 +01:00
..
hi6421-spmi-pmic.c staging: mfd: hi6421-spmi-pmic: fix error return code in hi6421_spmi_pmic_probe() 2020-11-23 17:59:51 +01:00
hi6421v600-regulator.c staging: hikey9xx: hi6421v600-regulator: fix delay logic 2021-01-26 18:52:54 +01:00
hisi-spmi-controller.c staging: spmi: hisi-spmi-controller: Fix some error handling paths 2020-12-28 15:14:53 +01:00
hisilicon,hi6421-spmi-pmic.yaml staging: hikey9xx: hisilicon, hi6421-spmi-pmic.yaml: simplify props 2021-01-26 18:51:21 +01:00
hisilicon,hisi-spmi-controller.yaml staging: hikey9xx: hisilicon, hisi-spmi-controller.yaml fix bindings 2021-01-26 18:51:21 +01:00
Kconfig staging: hikey9xx: Specify HAS_IOMEM dependency for MFD_HI6421_SPMI 2020-11-23 17:59:51 +01:00
Makefile staging: hikey9xx: add build for the Kirin 970 PHY driver 2020-09-17 18:50:25 +02:00
phy-hi3670-usb3.c staging: hikey9xx: phy-hi3670-usb3: hi3670_is_abbclk_seleted() returns bool 2021-01-26 18:49:23 +01:00
phy-hi3670-usb3.yaml staging: hikey9xx: phy-hi3670-usb3.yaml: add a blank line 2021-01-26 18:49:30 +01:00
TODO staging: hikey9xx: add a TODO list 2020-08-18 16:15:27 +02:00