From bf1eeabbf5ec359377b5e7b33577e83508766f54 Mon Sep 17 00:00:00 2001 From: Hector Palacios Date: Wed, 10 Jan 2024 09:37:46 +0100 Subject: [PATCH] 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 https://onedigi.atlassian.net/browse/DEL-8821 --- .../recipes-core/busybox/busybox/ccimx93/standby-actions | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meta-digi-dey/recipes-core/busybox/busybox/ccimx93/standby-actions b/meta-digi-dey/recipes-core/busybox/busybox/ccimx93/standby-actions index b200c71a7..c6abb6f93 100644 --- a/meta-digi-dey/recipes-core/busybox/busybox/ccimx93/standby-actions +++ b/meta-digi-dey/recipes-core/busybox/busybox/ccimx93/standby-actions @@ -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