mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-31 11:01:19 +00:00
cr50: Remove usleep() call from ina_enable function
Since the INAs are now enabled based on rdd_attach, there is no need to have a a delay following enabling the 3.3V rail and the delay can't be a usleep() because ina_connect() is not being called from rdd_attach which is running in an interrupt context. BUG=chrome-os-partner:62375 BRANCH=none TEST=manual The usleep() call was causing a reboot but was only visible when using UART console. Verified that with this CL the reboot was no longer happening. Change-Id: Id9bbef4e89dee39a2dfa443c3af54c1f9a611ebd Signed-off-by: Scott <scollyer@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/438675 Reviewed-by: Mary Ruthven <mruthven@chromium.org> Commit-Queue: Vadim Bendebury <vbendeb@chromium.org> Trybot-Ready: Vadim Bendebury <vbendeb@chromium.org>
This commit is contained in:
@@ -42,8 +42,6 @@ static void ina_connect(void)
|
||||
|
||||
/* Apply power to INA chips */
|
||||
gpio_set_level(GPIO_EN_PP3300_INA_L, 0);
|
||||
/* Allow enough time for power rail to come up */
|
||||
usleep(25);
|
||||
|
||||
/*
|
||||
* Connect B0/B1 pads to I2C0 input SDA/SCL. Note, that the inputs
|
||||
|
||||
Reference in New Issue
Block a user