Files
linux-st/drivers
Valentin Caron 48aae478a0 mfd: stmfx: wait boot time after a regulator enable
STMFX has a boot time of 10ms between reset and first register access.
But this delay is not yet respected after a regulator_enable, and sometimes
register access could failed with -ENXIO.

As we cannot get the time since the regulator was enabled, we poll every
1ms the STMFX_REG_FW_VERSION_MSB, to wait the completed boot of chip.
A timeout is set to 10ms.

Signed-off-by: Valentin Caron <valentin.caron@foss.st.com>
Change-Id: I5563eb4d799ab40ca540a008f38518d0b086ca40
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/linux-stm32/+/306814
Reviewed-by: Antonio Maria BORNEO <antonio.borneo@foss.st.com>
Reviewed-by: Amelie DELAUNAY <amelie.delaunay@foss.st.com>
ACI: CITOOLS <MDG-smet-aci-reviews@list.st.com>
ACI: CIBUILD <MDG-smet-aci-builds@list.st.com>
Domain-Review: Amelie DELAUNAY <amelie.delaunay@foss.st.com>
2023-06-16 12:05:22 +02:00
..
2023-05-11 23:03:28 +09:00
2023-05-30 17:15:44 +02:00
2023-05-30 17:15:50 +02:00