r4753 - developers/werner/wlan-spi/patches
werner at docs.openmoko.org
werner at docs.openmoko.org
Wed Nov 5 18:59:57 CET 2008
Author: werner
Date: 2008-11-05 18:59:56 +0100 (Wed, 05 Nov 2008)
New Revision: 4753
Added:
developers/werner/wlan-spi/patches/hack-disable-ecc.patch
Modified:
developers/werner/wlan-spi/patches/hif-linux-sdio.patch
developers/werner/wlan-spi/patches/series
Log:
Resurrected from the dead for performance comparison of direct
interrupt vs. SDIO interrupt.
Added: developers/werner/wlan-spi/patches/hack-disable-ecc.patch
===================================================================
--- developers/werner/wlan-spi/patches/hack-disable-ecc.patch (rev 0)
+++ developers/werner/wlan-spi/patches/hack-disable-ecc.patch 2008-11-05 17:59:56 UTC (rev 4753)
@@ -0,0 +1,32 @@
+Index: kretro/drivers/mtd/nand/nand_base.c
+===================================================================
+--- kretro.orig/drivers/mtd/nand/nand_base.c 2008-11-05 15:24:27.000000000 -0200
++++ kretro/drivers/mtd/nand/nand_base.c 2008-11-05 15:47:06.000000000 -0200
+@@ -775,6 +775,7 @@
+ uint32_t *eccpos = chip->ecc.layout->eccpos;
+
+ chip->ecc.read_page_raw(mtd, chip, buf);
++ return 0;
+
+ for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize)
+ chip->ecc.calculate(mtd, p, &ecc_calc[i]);
+@@ -822,6 +823,7 @@
+ chip->ecc.calculate(mtd, p, &ecc_calc[i]);
+ }
+ chip->read_buf(mtd, chip->oob_poi, mtd->oobsize);
++return 0;
+
+ for (i = 0; i < chip->ecc.total; i++)
+ ecc_code[i] = chip->oob_poi[eccpos[i]];
+Index: kretro/drivers/mtd/nand/nand_ecc.c
+===================================================================
+--- kretro.orig/drivers/mtd/nand/nand_ecc.c 2008-11-05 15:24:27.000000000 -0200
++++ kretro/drivers/mtd/nand/nand_ecc.c 2008-11-05 15:45:15.000000000 -0200
+@@ -148,6 +148,7 @@
+ {
+ uint8_t s0, s1, s2;
+
++return 0;
+ #ifdef CONFIG_MTD_NAND_ECC_SMC
+ s0 = calc_ecc[0] ^ read_ecc[0];
+ s1 = calc_ecc[1] ^ read_ecc[1];
Modified: developers/werner/wlan-spi/patches/hif-linux-sdio.patch
===================================================================
--- developers/werner/wlan-spi/patches/hif-linux-sdio.patch 2008-11-04 22:12:24 UTC (rev 4752)
+++ developers/werner/wlan-spi/patches/hif-linux-sdio.patch 2008-11-05 17:59:56 UTC (rev 4753)
@@ -11,10 +11,10 @@
Not-Yet-Signed-off-by: Werner Almesberger <werner at openmoko.org>
-Index: korig/drivers/ar6000/Makefile
+Index: kretro/drivers/ar6000/Makefile
===================================================================
---- korig.orig/drivers/ar6000/Makefile 2008-10-07 13:00:30.000000000 -0200
-+++ korig/drivers/ar6000/Makefile 2008-10-07 13:00:32.000000000 -0200
+--- kretro.orig/drivers/ar6000/Makefile 2008-11-05 15:37:15.000000000 -0200
++++ kretro/drivers/ar6000/Makefile 2008-11-05 15:37:17.000000000 -0200
@@ -21,7 +21,7 @@
htc/htc_recv.o \
htc/htc_services.o \
@@ -24,11 +24,11 @@
bmi/bmi.o \
ar6000/ar6000_drv.o \
ar6000/ar6000_raw_if.o \
-Index: korig/drivers/ar6000/hif/hif2.c
+Index: kretro/drivers/ar6000/hif/hif2.c
===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ korig/drivers/ar6000/hif/hif2.c 2008-10-07 13:00:43.000000000 -0200
-@@ -0,0 +1,625 @@
++++ kretro/drivers/ar6000/hif/hif2.c 2008-11-05 15:37:30.000000000 -0200
+@@ -0,0 +1,626 @@
+/*
+ * hif2.c - HIF layer re-implementation for the Linux SDIO stack
+ *
@@ -545,6 +545,7 @@
+ hif_device.func = func;
+ INIT_LIST_HEAD(&hif_device.queue);
+ init_waitqueue_head(&hif_device.wait);
++ spin_lock_init(&hif_device.queue_lock);
+
+ ret = sdio_set_block_size(func, HIF_MBOX_BLOCK_SIZE);
+ if (ret < 0) {
Modified: developers/werner/wlan-spi/patches/series
===================================================================
--- developers/werner/wlan-spi/patches/series 2008-11-04 22:12:24 UTC (rev 4752)
+++ developers/werner/wlan-spi/patches/series 2008-11-05 17:59:56 UTC (rev 4753)
@@ -2,6 +2,9 @@
# This series of patches gets rid of the Atheros SDIO stack and makes the
# AR6000 driver work directly with the Linux SDIO stack.
#
+# Based on
+# git checkout 1b6ea684646a9a793543ca54c8d937d5fa25cc3f
+#
# Before applying these patches, do this:
#
# cd drivers
@@ -12,6 +15,7 @@
# rm -rf sdio ../include/linux/sdio
#
+hack-disable-ecc.patch
hif-linux-sdio.patch
ar6k-without-sdio.patch
sdio-f0-unrestrict.patch
More information about the commitlog
mailing list