r2308 - trunk/src/target/kernel/patches

laforge at sita.openmoko.org laforge at sita.openmoko.org
Wed Jun 20 16:27:44 CEST 2007


Author: laforge
Date: 2007-06-20 16:27:40 +0200 (Wed, 20 Jun 2007)
New Revision: 2308

Modified:
   trunk/src/target/kernel/patches/gta01-jbt6k74.patch
Log:
* actually transition to the new state, if state change was successful
* fix parsing of state name if presented from userspace via sysfs


Modified: trunk/src/target/kernel/patches/gta01-jbt6k74.patch
===================================================================
--- trunk/src/target/kernel/patches/gta01-jbt6k74.patch	2007-06-20 07:57:02 UTC (rev 2307)
+++ trunk/src/target/kernel/patches/gta01-jbt6k74.patch	2007-06-20 14:27:40 UTC (rev 2308)
@@ -1,10 +1,10 @@
 This driver adds support for LCM initialization of the JBT6K74 LCM
 as found on the FIC GTA01 hardware
 
-Index: linux-2.6.21-moko/drivers/spi/Kconfig
+Index: linux-2.6.21.3-moko/drivers/spi/Kconfig
 ===================================================================
---- linux-2.6.21-moko.orig/drivers/spi/Kconfig
-+++ linux-2.6.21-moko/drivers/spi/Kconfig
+--- linux-2.6.21.3-moko.orig/drivers/spi/Kconfig
++++ linux-2.6.21.3-moko/drivers/spi/Kconfig
 @@ -160,5 +160,9 @@
  
  # (slave support would go here)
@@ -15,21 +15,21 @@
 +
  endmenu # "SPI support"
  
-Index: linux-2.6.21-moko/drivers/spi/Makefile
+Index: linux-2.6.21.3-moko/drivers/spi/Makefile
 ===================================================================
---- linux-2.6.21-moko.orig/drivers/spi/Makefile
-+++ linux-2.6.21-moko/drivers/spi/Makefile
+--- linux-2.6.21.3-moko.orig/drivers/spi/Makefile
++++ linux-2.6.21.3-moko/drivers/spi/Makefile
 @@ -30,4 +30,5 @@
  # 	... add above this line ...
  
  # SPI slave drivers (protocol for that link)
 +obj-$(CONFIG_SPI_SLAVE_JBT6K74)		+= jbt6k74.o
  # 	... add above this line ...
-Index: linux-2.6.21-moko/drivers/spi/jbt6k74.c
+Index: linux-2.6.21.3-moko/drivers/spi/jbt6k74.c
 ===================================================================
 --- /dev/null
-+++ linux-2.6.21-moko/drivers/spi/jbt6k74.c
-@@ -0,0 +1,540 @@
++++ linux-2.6.21.3-moko/drivers/spi/jbt6k74.c
+@@ -0,0 +1,543 @@
 +/* Linux kernel driver for the tpo JBT6K74-AS LCM ASIC
 + *
 + * Copyright (C) 2006-2007 by OpenMoko, Inc.
@@ -360,6 +360,8 @@
 +		}
 +		break;
 +	}
++	if (rc == 0)
++		jbt->state = new_state;
 +
 +	return rc;
 +}
@@ -393,7 +395,8 @@
 +	int i;
 +
 +	for (i = 0; i < ARRAY_SIZE(jbt_state_names); i++) {
-+		if (!strcmp(buf, jbt_state_names[i])) {
++		if (!strncmp(buf, jbt_state_names[i],
++			     strlen(jbt_state_names[i]))) {
 +			jbt6k74_enter_state(jbt, i);
 +			return count;
 +		}
@@ -570,10 +573,10 @@
 +
 +module_init(jbt_init);
 +module_exit(jbt_exit);
-Index: linux-2.6.21-moko/arch/arm/mach-s3c2410/Kconfig
+Index: linux-2.6.21.3-moko/arch/arm/mach-s3c2410/Kconfig
 ===================================================================
---- linux-2.6.21-moko.orig/arch/arm/mach-s3c2410/Kconfig
-+++ linux-2.6.21-moko/arch/arm/mach-s3c2410/Kconfig
+--- linux-2.6.21.3-moko.orig/arch/arm/mach-s3c2410/Kconfig
++++ linux-2.6.21.3-moko/arch/arm/mach-s3c2410/Kconfig
 @@ -106,6 +106,7 @@
  config MACH_QT2410
  	bool "QT2410"





More information about the commitlog mailing list