wl12xx: tired of the sdio_test module
Hi,
Again, I've made some changes in the main wl12xx modules and the sdio_test module broke. Now I'm getting tired of it. Whenever we make changes in the main modules, we need to change it accordingly. My current changes in the way the bus modules work, has broken it completely and I don't want to spend too much time fixing it.
So there are two options:
1) remove the sdio_test module completely;
2) copy the header files it uses so that changes in the real headers won't break it;
I'll send one patch for each option and, tomorrow when I continue my integration round, depending on my mood, I'll choose one to apply. :)
Maybe if I do 2) the driver should be moved to staging? ;)
Signature · 2 lines
Cheers, Luca.
PATCH 1/1 wl12xx: remove sdio_test module
This module has been causing more trouble than being useful. It only tests the SDIO speed by connecting to the wl12xx chip and does some throughput calculations. It is an ugly quick hack and, if we really want to have it as part of wl12xx we need to clean it up and implement it properly.
--- drivers/net/wireless/wl12xx/Kconfig | 10 - drivers/net/wireless/wl12xx/Makefile | 3 - drivers/net/wireless/wl12xx/sdio_test.c | 543 ------------------------------- 3 files changed, 0 insertions(+), 556 deletions(-) delete mode 100644 drivers/net/wireless/wl12xx/sdio_test.c
drivers/net/wireless/wl12xx/Kconfig +0 -10
@@ -42,16 +42,6 @@ config WL12XX_SDIO If you choose to build a module, it'll be called wl12xx_sdio. Say N if unsure. -config WL12XX_SDIO_TEST - tristate "TI wl12xx SDIO testing support" - depends on WL12XX && MMC && WL12XX_SDIO - default n - ---help--- - This module adds support for the SDIO bus testing with the - TI wl12xx chipsets. You probably don't want this unless you are - testing a new hardware platform. Select this if you want to test the - SDIO bus which is connected to the wl12xx chip. - config WL12XX_PLATFORM_DATA bool depends on WL12XX_SDIO != n || WL1251_SDIO != n
drivers/net/wireless/wl12xx/Makefile +0 -3
@@ -3,14 +3,11 @@ wl12xx-objs = main.o cmd.o io.o event.o tx.o rx.o ps.o acx.o \ wl12xx_spi-objs = spi.o wl12xx_sdio-objs = sdio.o -wl12xx_sdio_test-objs = sdio_test.o wl12xx-$(CONFIG_NL80211_TESTMODE) += testmode.o obj-$(CONFIG_WL12XX) += wl12xx.o obj-$(CONFIG_WL12XX_SPI) += wl12xx_spi.o obj-$(CONFIG_WL12XX_SDIO) += wl12xx_sdio.o -obj-$(CONFIG_WL12XX_SDIO_TEST) += wl12xx_sdio_test.o - # small builtin driver bit obj-$(CONFIG_WL12XX_PLATFORM_DATA) += wl12xx_platform_data.o
drivers/net/wireless/wl12xx/sdio_test.c deleted +0 -543
543 lines not on this page · raw message
Signature · 1 line
1.7.1
PATCH 1/1 wl12xx: sdio_test: create copies of the header files used
In reply to Luciano CoelhoThis patch just adds copies of old header files used by the sdio_test module. This will prevent breakage when things change in the other drivers while still keeping this test driver working.
This module was created as a dirty hack to use the wl12xx chip to test the throughput that SDIO can handle. It is not worth keeping it running according to the changes in the main drivers, unless it gets cleaned up properly.
--- drivers/net/wireless/wl12xx/sdio_test.c | 7 +- drivers/net/wireless/wl12xx/sdio_test.h | 685 ++++++++++++++++++++++++++ drivers/net/wireless/wl12xx/sdio_test_boot.h | 130 +++++ drivers/net/wireless/wl12xx/sdio_test_io.h | 190 +++++++ 4 files changed, 1008 insertions(+), 4 deletions(-) create mode 100644 drivers/net/wireless/wl12xx/sdio_test.h create mode 100644 drivers/net/wireless/wl12xx/sdio_test_boot.h create mode 100644 drivers/net/wireless/wl12xx/sdio_test_io.h
drivers/net/wireless/wl12xx/sdio_test.c +3 -4
@@ -37,9 +37,9 @@#include <linux/firmware.h> #include <linux/pm_runtime.h> -#include "wl12xx.h" -#include "io.h" -#include "boot.h" +#include "sdio_test.h" +#include "sdio_test_io.h" +#include "sdio_test_boot.h" #ifndef SDIO_VENDOR_ID_TI #define SDIO_VENDOR_ID_TI 0x0097
@@ -176,7 +176,6 @@ static void wl1271_sdio_enable_interrupts(struct wl1271 *wl) { } -static struct wl1271_if_operations sdio_ops = { .read = wl1271_sdio_raw_read, .write = wl1271_sdio_raw_write,
drivers/net/wireless/wl12xx/sdio_test.h new file +685 -0
685 lines not on this page · raw message
drivers/net/wireless/wl12xx/sdio_test_boot.h new file +130 -0
130 lines not on this page · raw message
drivers/net/wireless/wl12xx/sdio_test_io.h new file +190 -0
190 lines not on this page · raw message
Signature · 1 line
1.7.1
Re: [PATCH] wl12xx: remove sdio_test module
In reply to Luciano CoelhoQuoted 5 lines · Luciano Coelho
This module has been causing more trouble than being useful. It only tests the SDIO speed by connecting to the wl12xx chip and does some throughput calculations. It is an ugly quick hack and, if we really want to have it as part of wl12xx we need to clean it up and implement it properly.
IMHO just get rid of the thing. I'm sure you can count the users with one hand so the maintenance effort is not worth it. Just put it to wiki or somewhere else and anyone who needs it can apply (and fix) the patch themselves.
Signature · 1 line
Kalle Valo
Re: [PATCH] wl12xx: remove sdio_test module
Hi Kalle,
Quoted 8 lines · Kalle Valo
Quoted 5 lines · Luciano Coelho
This module has been causing more trouble than being useful. It only tests the SDIO speed by connecting to the wl12xx chip and does some throughput calculations. It is an ugly quick hack and, if we really want to have it as part of wl12xx we need to clean it up and implement it properly.
Quoted 4 lines
IMHO just get rid of the thing. I'm sure you can count the users with one hand so the maintenance effort is not worth it. Just put it to wiki or somewhere else and anyone who needs it can apply (and fix) the patch themselves.
Yeah, I'm very inclined to that. I can actually count the number of users in its whole lifetime in half a hand and the number of times each one used it in the other half.
Good idea about the wiki. If I remove it (which I probably will), I will put a tarball with the code in out wiki for anyone to grab.
Thanks!
Signature · 2 lines
Cheers, Luca.
Luciano Coelho
AppliedRe: [PATCH] wl12xx: remove sdio_test module
In reply to Luciano CoelhoQuoted 8 lines · Luciano Coelho
This module has been causing more trouble than being useful. It only tests the SDIO speed by connecting to the wl12xx chip and does some throughput calculations. It is an ugly quick hack and, if we really want to have it as part of wl12xx we need to clean it up and implement it properly.
Signed-off-by Luciano Coelho <[email protected]>---
Okay, my mood today, influenced by Kalle's opinion, was to remove this module from the kernel. So I applied this patch and added a URL that points to the wikipage were information (and a tarball) can be found in case someone wants to use it.
Applied.
Signature · 2 lines
Cheers, Luca.