From 47de17cc2d0cd0f974451a84d68412892aa982c0 Mon Sep 17 00:00:00 2001 From: Javier Viguera Date: Wed, 27 Nov 2013 14:41:00 +0100 Subject: [PATCH] kernel-module-atheros: workaround driver crashing on load There seems to be a race condition in the load of the 'cfg80211' and 'ath6kl_sdio' modules. If we try to load the atheros module before the cfg80211 is settled down, the driver crash. The workaround is just separate the load of both modules in two separate 'modprobe' commands and add a small delay between them. https://jira.digi.com/browse/DEL-814 Signed-off-by: Javier Viguera --- .../kernel-module-atheros/ccardimx28js/atheros | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meta-digi-arm/recipes-kernel/kernel-module-atheros/kernel-module-atheros/ccardimx28js/atheros b/meta-digi-arm/recipes-kernel/kernel-module-atheros/kernel-module-atheros/ccardimx28js/atheros index 78bf3ca48..25862e520 100644 --- a/meta-digi-arm/recipes-kernel/kernel-module-atheros/kernel-module-atheros/ccardimx28js/atheros +++ b/meta-digi-arm/recipes-kernel/kernel-module-atheros/kernel-module-atheros/ccardimx28js/atheros @@ -81,6 +81,10 @@ if [ ! -e "${BDATA_LINK}" ] || ! cmp -s "${BDATA_LINK}" "${FIRMWARE_DIR}/${BDATA ln -sf "${BDATA_SOURCE}" "${BDATA_LINK}" fi + +# Load 'cfg80211' and let it settle down (needed by 'ath6kl_sdio') +modprobe -q cfg80211 && sleep 0.1 + # ath6kl_sdio.ko if ! grep -qs ath6kl_sdio /proc/modules; then RETRIES="5"