* [RFC][PATCH V2] b43: drop Kconfig option of forcing PIO mode
@ 2011-08-16 10:14 Rafał Miłecki
2011-08-24 18:31 ` John W. Linville
0 siblings, 1 reply; 4+ messages in thread
From: Rafał Miłecki @ 2011-08-16 10:14 UTC (permalink / raw)
To: linux-wireless, John W. Linville
Cc: b43-dev, Rafał Miłecki, Larry Finger
We have module param called use_pio which is much easier to use.
Cc: Larry Finger <larry.finger@lwfinger.net>
Signed-off-by: Rafa? Mi?ecki <zajec5@gmail.com>
---
V2: include b43.h change
Larry introduced use_pio with:
b43: Allow PIO mode to be selected at module load
I believe we can leave this simple module param and drop
CONFIG_B43_FORCE_PIO instead.
---
drivers/net/wireless/b43/Kconfig | 10 ----------
drivers/net/wireless/b43/b43.h | 6 ------
drivers/net/wireless/b43/main.c | 2 +-
3 files changed, 1 insertions(+), 17 deletions(-)
diff --git a/drivers/net/wireless/b43/Kconfig b/drivers/net/wireless/b43/Kconfig
index 3c5e571..bfc1cb4 100644
--- a/drivers/net/wireless/b43/Kconfig
+++ b/drivers/net/wireless/b43/Kconfig
@@ -169,13 +169,3 @@ config B43_DEBUG
Say N, if you are a distributor or user building a release kernel
for production use.
Only say Y, if you are debugging a problem in the b43 driver sourcecode.
-
-config B43_FORCE_PIO
- bool "Force usage of PIO instead of DMA"
- depends on B43 && B43_DEBUG
- ---help---
- This will disable DMA and always enable PIO instead.
-
- Say N!
- This is only for debugging the PIO engine code. You do
- _NOT_ want to enable this.
diff --git a/drivers/net/wireless/b43/b43.h b/drivers/net/wireless/b43/b43.h
index 9e5974b..2597062 100644
--- a/drivers/net/wireless/b43/b43.h
+++ b/drivers/net/wireless/b43/b43.h
@@ -975,12 +975,6 @@ static inline bool b43_using_pio_transfers(struct b43_wldev *dev)
return dev->__using_pio_transfers;
}
-#ifdef CONFIG_B43_FORCE_PIO
-# define B43_PIO_DEFAULT 1
-#else
-# define B43_PIO_DEFAULT 0
-#endif
-
/* Message printing */
void b43info(struct b43_wl *wl, const char *fmt, ...)
__attribute__ ((format(printf, 2, 3)));
diff --git a/drivers/net/wireless/b43/main.c b/drivers/net/wireless/b43/main.c
index e0b1156..7c4cab0 100644
--- a/drivers/net/wireless/b43/main.c
+++ b/drivers/net/wireless/b43/main.c
@@ -108,7 +108,7 @@ int b43_modparam_verbose = B43_VERBOSITY_DEFAULT;
module_param_named(verbose, b43_modparam_verbose, int, 0644);
MODULE_PARM_DESC(verbose, "Log message verbosity: 0=error, 1=warn, 2=info(default), 3=debug");
-static int b43_modparam_pio = B43_PIO_DEFAULT;
+static int b43_modparam_pio = 0;
module_param_named(pio, b43_modparam_pio, int, 0644);
MODULE_PARM_DESC(pio, "Use PIO accesses by default: 0=DMA, 1=PIO");
--
1.7.3.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [RFC][PATCH V2] b43: drop Kconfig option of forcing PIO mode
2011-08-16 10:14 [RFC][PATCH V2] b43: drop Kconfig option of forcing PIO mode Rafał Miłecki
@ 2011-08-24 18:31 ` John W. Linville
2011-08-24 19:13 ` Michael Büsch
2011-08-24 21:12 ` Rafał Miłecki
0 siblings, 2 replies; 4+ messages in thread
From: John W. Linville @ 2011-08-24 18:31 UTC (permalink / raw)
To: Rafał Miłecki; +Cc: linux-wireless, b43-dev, Larry Finger
On Tue, Aug 16, 2011 at 12:14:07PM +0200, Rafa? Mi?ecki wrote:
> We have module param called use_pio which is much easier to use.
>
> Cc: Larry Finger <larry.finger@lwfinger.net>
> Signed-off-by: Rafa? Mi?ecki <zajec5@gmail.com>
> ---
> V2: include b43.h change
>
> Larry introduced use_pio with:
> b43: Allow PIO mode to be selected at module load
> I believe we can leave this simple module param and drop
> CONFIG_B43_FORCE_PIO instead.
Seems reasonable to me...any objections?
--
John W. Linville Someday the world will need a hero, and you
linville at tuxdriver.com might be all we have. Be ready.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [RFC][PATCH V2] b43: drop Kconfig option of forcing PIO mode
2011-08-24 18:31 ` John W. Linville
@ 2011-08-24 19:13 ` Michael Büsch
2011-08-24 21:12 ` Rafał Miłecki
1 sibling, 0 replies; 4+ messages in thread
From: Michael Büsch @ 2011-08-24 19:13 UTC (permalink / raw)
To: John W. Linville
Cc: Rafał Miłecki, linux-wireless, b43-dev, Larry Finger
On Wed, 24 Aug 2011 14:31:28 -0400
"John W. Linville" <linville@tuxdriver.com> wrote:
> > Larry introduced use_pio with:
> > b43: Allow PIO mode to be selected at module load
> > I believe we can leave this simple module param and drop
> > CONFIG_B43_FORCE_PIO instead.
>
> Seems reasonable to me...any objections?
>
acked by me.
--
Greetings, Michael.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [RFC][PATCH V2] b43: drop Kconfig option of forcing PIO mode
2011-08-24 18:31 ` John W. Linville
2011-08-24 19:13 ` Michael Büsch
@ 2011-08-24 21:12 ` Rafał Miłecki
1 sibling, 0 replies; 4+ messages in thread
From: Rafał Miłecki @ 2011-08-24 21:12 UTC (permalink / raw)
To: John W. Linville; +Cc: linux-wireless, b43-dev, Larry Finger
W dniu 24 sierpnia 2011 20:31 u?ytkownik John W. Linville
<linville@tuxdriver.com> napisa?:
> On Tue, Aug 16, 2011 at 12:14:07PM +0200, Rafa? Mi?ecki wrote:
>> We have module param called use_pio which is much easier to use.
>>
>> Cc: Larry Finger <larry.finger@lwfinger.net>
>> Signed-off-by: Rafa? Mi?ecki <zajec5@gmail.com>
>> ---
>> V2: include b43.h change
>>
>> Larry introduced use_pio with:
>> ? ? b43: Allow PIO mode to be selected at module load
>> I believe we can leave this simple module param and drop
>> CONFIG_B43_FORCE_PIO instead.
>
> Seems reasonable to me...any objections?
Thank you for taking care of this John. I hope to get patches straight
in the future (now, when I understand the way you treat RFC/RFT).
--
Rafa?
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-08-24 21:12 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-16 10:14 [RFC][PATCH V2] b43: drop Kconfig option of forcing PIO mode Rafał Miłecki
2011-08-24 18:31 ` John W. Linville
2011-08-24 19:13 ` Michael Büsch
2011-08-24 21:12 ` Rafał Miłecki
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).