atheros: don't remove wireless module on ifdown for ccardimx28
A post-down script was unloading the Atheros wireless driver when the network interfaces were brought down. On rare occasions the 'rmmod' command was not able to complete and may leave the system in an unexpected state. This patch removes the post-down script for the ccardimx28 platform and leaves it only for the ccimx6 platform, where the unloading is wanted to reset the driver after suspend. Signed-off-by: Hector Palacios <hector.palacios@digi.com> https://jira.digi.com/browse/DEL-1314
This commit is contained in:
parent
c926df2479
commit
d8a24e0ce3
|
|
@ -21,14 +21,16 @@ SRC_URI_internal = "${DIGI_GIT}linux-modules/atheros.git;protocol=git;nobranch=1
|
||||||
SRC_URI = "${@base_conditional('DIGI_INTERNAL_GIT', '1' , '${SRC_URI_internal}', '${SRC_URI_external}', d)}"
|
SRC_URI = "${@base_conditional('DIGI_INTERNAL_GIT', '1' , '${SRC_URI_internal}', '${SRC_URI_external}', d)}"
|
||||||
SRC_URI += " \
|
SRC_URI += " \
|
||||||
file://atheros-pre-up \
|
file://atheros-pre-up \
|
||||||
file://atheros-post-down \
|
|
||||||
file://Makefile \
|
file://Makefile \
|
||||||
${@base_conditional('IS_KERNEL_2X', '1' , '', 'file://0001-atheros-convert-NLA_PUT-macros.patch', d)} \
|
${@base_conditional('IS_KERNEL_2X', '1' , '', 'file://0001-atheros-convert-NLA_PUT-macros.patch', d)} \
|
||||||
${@base_conditional('IS_KERNEL_2X', '1' , '', 'file://0002-atheros-update-renamed-struct-members.patch', d)} \
|
${@base_conditional('IS_KERNEL_2X', '1' , '', 'file://0002-atheros-update-renamed-struct-members.patch', d)} \
|
||||||
"
|
"
|
||||||
|
|
||||||
# MX6 wireless calibration file
|
# MX6 wireless calibration file and post-down script
|
||||||
SRC_URI_append_ccimx6 = " file://Digi_6203-6233-US.bin"
|
SRC_URI_append_ccimx6 = " \
|
||||||
|
file://Digi_6203-6233-US.bin \
|
||||||
|
file://atheros-post-down \
|
||||||
|
"
|
||||||
|
|
||||||
S = "${WORKDIR}/git"
|
S = "${WORKDIR}/git"
|
||||||
|
|
||||||
|
|
@ -43,9 +45,8 @@ do_configure_prepend_ccimx6() {
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install_append() {
|
do_install_append() {
|
||||||
install -d ${D}${sysconfdir}/network/if-pre-up.d ${D}${sysconfdir}/network/if-post-down.d
|
install -d ${D}${sysconfdir}/network/if-pre-up.d
|
||||||
install -m 0755 ${WORKDIR}/atheros-pre-up ${D}${sysconfdir}/network/if-pre-up.d/atheros
|
install -m 0755 ${WORKDIR}/atheros-pre-up ${D}${sysconfdir}/network/if-pre-up.d/atheros
|
||||||
install -m 0755 ${WORKDIR}/atheros-post-down ${D}${sysconfdir}/network/if-post-down.d/atheros
|
|
||||||
install -d ${D}${sysconfdir}/modprobe.d
|
install -d ${D}${sysconfdir}/modprobe.d
|
||||||
cat >> ${D}${sysconfdir}/modprobe.d/atheros.conf <<-_EOF_
|
cat >> ${D}${sysconfdir}/modprobe.d/atheros.conf <<-_EOF_
|
||||||
install ath6kl_sdio true
|
install ath6kl_sdio true
|
||||||
|
|
@ -53,6 +54,11 @@ do_install_append() {
|
||||||
_EOF_
|
_EOF_
|
||||||
}
|
}
|
||||||
|
|
||||||
|
do_install_append_ccimx6() {
|
||||||
|
install -d ${D}${sysconfdir}/network/if-post-down.d
|
||||||
|
install -m 0755 ${WORKDIR}/atheros-post-down ${D}${sysconfdir}/network/if-post-down.d/atheros
|
||||||
|
}
|
||||||
|
|
||||||
FILES_${PN} += " \
|
FILES_${PN} += " \
|
||||||
${base_libdir}/firmware/ \
|
${base_libdir}/firmware/ \
|
||||||
${sysconfdir}/modprobe.d/ \
|
${sysconfdir}/modprobe.d/ \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue