[patch 1/6] jbt6k74: Enable display again after state change
Stefan Schmidt
stefan at openmoko.org
Thu Oct 18 14:05:41 CEST 2007
Make sure the display gets enabled again after coming out of the deep-standby
state.
Signed-off-by: Stefan Schmidt <stefan at openmoko.org>
Index: linux-2.6.22.5/drivers/spi/jbt6k74.c
===================================================================
--- linux-2.6.22.5.orig/drivers/spi/jbt6k74.c 2007-10-18 13:37:50.000000000 +0800
+++ linux-2.6.22.5/drivers/spi/jbt6k74.c 2007-10-18 14:55:44.000000000 +0800
@@ -365,7 +365,11 @@
for (i = 0; i < ARRAY_SIZE(jbt_state_names); i++) {
if (!strncmp(buf, jbt_state_names[i],
strlen(jbt_state_names[i]))) {
+ DEBUGP("Switch to state: %i\n", i);
jbt6k74_enter_state(jbt, i);
+ if (i == JBT_STATE_NORMAL)
+ /* Enable display again after deep-standby */
+ jbt6k74_display_onoff(jbt, 1);
return count;
}
}
--
More information about the neo1973-hardware
mailing list