Changeset 2308


Ignore:
Timestamp:
06/20/07 16:27:40 (6 years ago)
Author:
laforge
Message:
  • actually transition to the new state, if state change was successful
  • fix parsing of state name if presented from userspace via sysfs
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/target/kernel/patches/gta01-jbt6k74.patch

    r1883 r2308  
    22as found on the FIC GTA01 hardware 
    33 
    4 Index: linux-2.6.21-moko/drivers/spi/Kconfig 
     4Index: linux-2.6.21.3-moko/drivers/spi/Kconfig 
    55=================================================================== 
    6 --- linux-2.6.21-moko.orig/drivers/spi/Kconfig 
    7 +++ linux-2.6.21-moko/drivers/spi/Kconfig 
     6--- linux-2.6.21.3-moko.orig/drivers/spi/Kconfig 
     7+++ linux-2.6.21.3-moko/drivers/spi/Kconfig 
    88@@ -160,5 +160,9 @@ 
    99  
     
    1616 endmenu # "SPI support" 
    1717  
    18 Index: linux-2.6.21-moko/drivers/spi/Makefile 
     18Index: linux-2.6.21.3-moko/drivers/spi/Makefile 
    1919=================================================================== 
    20 --- linux-2.6.21-moko.orig/drivers/spi/Makefile 
    21 +++ linux-2.6.21-moko/drivers/spi/Makefile 
     20--- linux-2.6.21.3-moko.orig/drivers/spi/Makefile 
     21+++ linux-2.6.21.3-moko/drivers/spi/Makefile 
    2222@@ -30,4 +30,5 @@ 
    2323 #      ... add above this line ... 
     
    2626+obj-$(CONFIG_SPI_SLAVE_JBT6K74)                += jbt6k74.o 
    2727 #      ... add above this line ... 
    28 Index: linux-2.6.21-moko/drivers/spi/jbt6k74.c 
     28Index: linux-2.6.21.3-moko/drivers/spi/jbt6k74.c 
    2929=================================================================== 
    3030--- /dev/null 
    31 +++ linux-2.6.21-moko/drivers/spi/jbt6k74.c 
    32 @@ -0,0 +1,540 @@ 
     31+++ linux-2.6.21.3-moko/drivers/spi/jbt6k74.c 
     32@@ -0,0 +1,543 @@ 
    3333+/* Linux kernel driver for the tpo JBT6K74-AS LCM ASIC 
    3434+ * 
     
    361361+               break; 
    362362+       } 
     363+       if (rc == 0) 
     364+               jbt->state = new_state; 
    363365+ 
    364366+       return rc; 
     
    394396+ 
    395397+       for (i = 0; i < ARRAY_SIZE(jbt_state_names); i++) { 
    396 +               if (!strcmp(buf, jbt_state_names[i])) { 
     398+               if (!strncmp(buf, jbt_state_names[i], 
     399+                            strlen(jbt_state_names[i]))) { 
    397400+                       jbt6k74_enter_state(jbt, i); 
    398401+                       return count; 
     
    571574+module_init(jbt_init); 
    572575+module_exit(jbt_exit); 
    573 Index: linux-2.6.21-moko/arch/arm/mach-s3c2410/Kconfig 
     576Index: linux-2.6.21.3-moko/arch/arm/mach-s3c2410/Kconfig 
    574577=================================================================== 
    575 --- linux-2.6.21-moko.orig/arch/arm/mach-s3c2410/Kconfig 
    576 +++ linux-2.6.21-moko/arch/arm/mach-s3c2410/Kconfig 
     578--- linux-2.6.21.3-moko.orig/arch/arm/mach-s3c2410/Kconfig 
     579+++ linux-2.6.21.3-moko/arch/arm/mach-s3c2410/Kconfig 
    577580@@ -106,6 +106,7 @@ 
    578581 config MACH_QT2410 
Note: See TracChangeset for help on using the changeset viewer.