summaryrefslogtreecommitdiffstats
path: root/target/device/jp/q5/kernel-patches-2.4.32/006-cfi
diff options
context:
space:
mode:
authorDavid Anders <dave123@abcsinc.com>2006-02-10 18:00:56 +0000
committerDavid Anders <dave123@abcsinc.com>2006-02-10 18:00:56 +0000
commit88671dd3586caaac97d091f7faef63fb44757d55 (patch)
treec2d7929a9e3f7c847fb53beff9c7fa13ee28d3d5 /target/device/jp/q5/kernel-patches-2.4.32/006-cfi
parent32fa323b895141e70e705ac6791e62c7376289bc (diff)
downloadbuildroot-novena-88671dd3586caaac97d091f7faef63fb44757d55.tar.gz
buildroot-novena-88671dd3586caaac97d091f7faef63fb44757d55.zip
add linux-2.4.32 kernel support for the q5 board per case 0000715
Diffstat (limited to 'target/device/jp/q5/kernel-patches-2.4.32/006-cfi')
-rw-r--r--target/device/jp/q5/kernel-patches-2.4.32/006-cfi27
1 files changed, 27 insertions, 0 deletions
diff --git a/target/device/jp/q5/kernel-patches-2.4.32/006-cfi b/target/device/jp/q5/kernel-patches-2.4.32/006-cfi
new file mode 100644
index 000000000..5a28bd93f
--- /dev/null
+++ b/target/device/jp/q5/kernel-patches-2.4.32/006-cfi
@@ -0,0 +1,27 @@
+diff -Naur linux-2.4.31.org/drivers/mtd/chips/cfi_cmdset_0002.c linux-2.4.31/drivers/mtd/chips/cfi_cmdset_0002.c
+--- linux-2.4.31.org/drivers/mtd/chips/cfi_cmdset_0002.c 2004-11-17 06:54:21.000000000 -0500
++++ linux-2.4.31/drivers/mtd/chips/cfi_cmdset_0002.c 2005-08-22 12:14:17.000000000 -0400
+@@ -510,7 +510,7 @@
+ or tells us why it failed. */
+ dq6 = CMD(1<<6);
+ dq5 = CMD(1<<5);
+- timeo = jiffies + (HZ/1000); /* setting timeout to 1ms for now */
++ timeo = jiffies + (HZ); /* setting timeout to 1s for now */
+
+ oldstatus = cfi_read(map, adr);
+ status = cfi_read(map, adr);
+@@ -950,12 +950,8 @@
+ oldstatus = cfi_read( map, adr );
+ status = cfi_read( map, adr );
+
+- if( ( oldstatus & 0x00FF ) == ( status & 0x00FF ) )
++ if( ( oldstatus & 0x00FF ) != ( status & 0x00FF ) )
+ {
+- printk( "Warning: DQ5 raised while erase operation was in progress, but erase completed OK\n" );
+- }
+- else
+- {
+ /* DQ5 is active so we can do a reset and stop the erase */
+ cfi_write(map, CMD(0xF0), chip->start);
+ printk( KERN_WARNING "Internal flash device timeout occured or write operation was performed while flash was erasing\n" );
+