cc93: standby: add a small delay before resuming Wi-Fi

When switching off the 3.3V supply from the Wi-Fi during suspend,
around a 10% of the times, when resuming the Wi-Fi driver fails to load.

It was verified that a rebind operation over the mmc interface (which
eventually calls the script that loads the Wi-Fi module) makes it
load successfully, which denotes a timing issue during resume.

Adding a small delay on the resume operation before running the script
makes the Wi-Fi driver load at the first try.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://onedigi.atlassian.net/browse/DEL-8821
This commit is contained in:
Hector Palacios 2024-01-10 09:37:46 +01:00
parent 9248c9ab79
commit bf1eeabbf5
1 changed files with 2 additions and 1 deletions

View File

@ -47,8 +47,9 @@ if [ "${1}" = "pre" ]; then
fi
elif [ "${1}" = "post" ]; then
if actions_needed; then
/etc/udev/scripts/load_iw612.sh
sleep 0.5
/etc/udev/scripts/load_iw612.sh
sh "${RESUME_ACTIONS}"
rm -f "${RESUME_ACTIONS}"
fi