* [PATCH] compat-2.6: Add AR9170 driver
@ 2009-03-24 0:19 Hauke Mehrtens
2009-03-24 0:40 ` Luis R. Rodriguez
0 siblings, 1 reply; 3+ messages in thread
From: Hauke Mehrtens @ 2009-03-24 0:19 UTC (permalink / raw)
To: Luis R. Rodriguez; +Cc: linux-wireless
[-- Attachment #1.1: Type: text/plain, Size: 58 bytes --]
This adds the AR9170 driver to compat-wireless.
Hauke
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: 0001-Add-AR9170-driver.patch --]
[-- Type: text/x-diff; name="0001-Add-AR9170-driver.patch", Size: 1557 bytes --]
From 7e9fb52516801f4dcc0c200ce8911d24ec472bc7 Mon Sep 17 00:00:00 2001
From: Hauke Mehrtens <hauke@hauke-m.de>
Date: Tue, 24 Mar 2009 01:14:41 +0100
Subject: [PATCH] Add AR9170 driver.
The AR9170 configuration is only activated on kernel 2.6.28 and later, because the older kernel misses some needed functions.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
---
config.mk | 8 ++++++++
scripts/admin-update.sh | 1 +
2 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/config.mk b/config.mk
index 84bf609..d8b705a 100644
--- a/config.mk
+++ b/config.mk
@@ -259,6 +259,14 @@ CONFIG_RTL8187=m
CONFIG_AT76C50X_USB=m
+# Activate AR9170 support only on kernel >= 2.6.28.
+# The needed USB poison feature was added in this kernel release.
+ifeq ($(shell test $(KERNEL_SUBLEVEL) -ge 28 && echo yes),yes)
+CONFIG_AR9170_COMMON=m
+CONFIG_AR9170_USB=m
+CONFIG_AR9170_LEDS=y
+endif
+
# RT2500USB does not require firmware
CONFIG_RT2500USB=m
CONFIG_RT2800USB=m
diff --git a/scripts/admin-update.sh b/scripts/admin-update.sh
index 0226053..881db66 100755
--- a/scripts/admin-update.sh
+++ b/scripts/admin-update.sh
@@ -59,6 +59,7 @@ DRIVERS="$DRIVERS drivers/net/wireless/p54"
DRIVERS="$DRIVERS drivers/net/wireless/rtl818x"
DRIVERS="$DRIVERS drivers/net/wireless/libertas_tf"
DRIVERS="$DRIVERS drivers/net/wireless/ipw2x00"
+DRIVERS="$DRIVERS drivers/net/wireless/ar9170"
# Drivers that belong the the wireless directory
DRIVER_FILES="adm8211.c adm8211.h"
--
1.5.6.3
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 898 bytes --]
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] compat-2.6: Add AR9170 driver
2009-03-24 0:19 [PATCH] compat-2.6: Add AR9170 driver Hauke Mehrtens
@ 2009-03-24 0:40 ` Luis R. Rodriguez
2009-03-24 1:11 ` Luis R. Rodriguez
0 siblings, 1 reply; 3+ messages in thread
From: Luis R. Rodriguez @ 2009-03-24 0:40 UTC (permalink / raw)
To: Hauke Mehrtens; +Cc: linux-wireless
On Mon, Mar 23, 2009 at 5:19 PM, Hauke Mehrtens <hauke@hauke-m.de> wrote:
> This adds the AR9170 driver to compat-wireless.
Thanks applied and new tarball regenerated.
The patch commit log (which cannot be seen as the patch was attached)
only enables ar9170 for >= 2.6.28. If someone wants to get this on
2.6.27 you'll just have to backport the routines which fail to
compile. Patches welcomed of course.
v2.6.29-rc8-18695-g8fe80c6
wireless-testing latest tag:
master-2009-03-23
This is compat-release:
master-2009-03-23
One small note, Hauke, can you send these patches inline moving
forward? In this case it proved useful as the commit log had
information useful.
This may help, it has some example git send-email stuff:
http://wireless.kernel.org/en/developers/Documentation/git-guide
Luis
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] compat-2.6: Add AR9170 driver
2009-03-24 0:40 ` Luis R. Rodriguez
@ 2009-03-24 1:11 ` Luis R. Rodriguez
0 siblings, 0 replies; 3+ messages in thread
From: Luis R. Rodriguez @ 2009-03-24 1:11 UTC (permalink / raw)
To: Hauke Mehrtens; +Cc: linux-wireless
On Mon, Mar 23, 2009 at 5:40 PM, Luis R. Rodriguez <mcgrof@gmail.com> wrote:
> On Mon, Mar 23, 2009 at 5:19 PM, Hauke Mehrtens <hauke@hauke-m.de> wrote:
>> This adds the AR9170 driver to compat-wireless.
>
> Thanks applied and new tarball regenerated.
>
> The patch commit log (which cannot be seen as the patch was attached)
> only enables ar9170 for >= 2.6.28. If someone wants to get this on
> 2.6.27 you'll just have to backport the routines which fail to
> compile. Patches welcomed of course.
I did some quick review on this. One of the routines I had heard fails
on 2.6.27 is usb_poison_anchored_urbs. This was added via 6a2839b.
This just adds the routine, the users are the drivers themselves. To
poison a URB it makes use of the extends the struct usb_anchor, so
directly porting it doesn't seem to make sense. Best bet seems to be
just backporting to not poison and do a replacement call.
Fun enough ar9170 is currently the only driver using this.
Hm, not sure if a no-op would do it.
Luis
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-03-24 1:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-24 0:19 [PATCH] compat-2.6: Add AR9170 driver Hauke Mehrtens
2009-03-24 0:40 ` Luis R. Rodriguez
2009-03-24 1:11 ` Luis R. Rodriguez
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).