[oe-commits] Dmitry Baryshkov : apm-tosa-suspendfix: tosa-specific suspend w/around

GIT User account git at amethyst.openembedded.net
Thu Dec 4 14:00:38 UTC 2008


Module: openembedded.git
Branch: org.openembedded.dev
Commit: ea9fbdbb541ae878c31750f46d40a61a20f35d84
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=ea9fbdbb541ae878c31750f46d40a61a20f35d84

Author: Dmitry Baryshkov <dbaryshkov at gmail.com>
Date:   Tue Dec  2 18:57:17 2008 +0300

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 <dbaryshkov at gmail.com>

---

 packages/apmd/apm-tosa-suspendfix_0.1.bb |   10 ++++++++++
 packages/apmd/files/50-tmio-ohci-unbind  |   19 +++++++++++++++++++
 2 files changed, 29 insertions(+), 0 deletions(-)

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 0000000..ad223c1
--- /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 0000000..f65e0b3
--- /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
+





More information about the Openembedded-commits mailing list