From: Dmitry Baryshkov Date: Tue, 2 Dec 2008 15:57:17 +0000 (+0300) Subject: apm-tosa-suspendfix: tosa-specific suspend w/around X-Git-Tag: Release-2010-05/1~4956^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea9fbdbb541ae878c31750f46d40a61a20f35d84;p=openembedded.git apm-tosa-suspendfix: tosa-specific suspend w/around add tosa-specific suspend workaround, that will unbind ohci-hcd before entering suspend and rebind it again after resuming. Signed-off-by: Dmitry Baryshkov --- diff --git a/packages/apmd/apm-tosa-suspendfix_0.1.bb b/packages/apmd/apm-tosa-suspendfix_0.1.bb new file mode 100644 index 0000000000..ad223c1959 --- /dev/null +++ b/packages/apmd/apm-tosa-suspendfix_0.1.bb @@ -0,0 +1,10 @@ +DESCRIPTION = "Workaround for bug 2134 (Tosa Angstrom x11 image suspend/resume failure)" +AUTHOR = "Dmitry Baryshkov" +PR = "r0" + +SRC_URI = "file://50-tmio-ohci-unbind" + +do_install() { + install -d ${D}${sysconfdir}/apm/event.d + install -m 0755 ${WORKDIR}/50-tmio-ohci-unbind ${D}${sysconfdir}/apm/event.d +} diff --git a/packages/apmd/files/50-tmio-ohci-unbind b/packages/apmd/files/50-tmio-ohci-unbind new file mode 100644 index 0000000000..f65e0b37d3 --- /dev/null +++ b/packages/apmd/files/50-tmio-ohci-unbind @@ -0,0 +1,19 @@ +#!/bin/sh + +TOPATH=/sys/bus/platform/drivers/tmio-ohci + +case "$1" in + suspend) + if [ -d $TOPATH ] + then + echo -n tmio-ohci > $TOPATH/unbind + fi + ;; + resume) + if [ -d $TOPATH ] + then + echo -n tmio-ohci > $TOPATH/bind + fi + ;; +esac +