* [PATCH 0/4] Atheros IEEE 802.11n ath9k driver
@ 2008-08-04 7:16 Luis R. Rodriguez
2008-08-04 7:16 ` [PATCH 1/4] list.h: Add list_splice_tail() and list_splice_tail_init() Luis R. Rodriguez
0 siblings, 1 reply; 7+ messages in thread
From: Luis R. Rodriguez @ 2008-08-04 7:16 UTC (permalink / raw)
To: linville, linville; +Cc: Luis R. Rodriguez, linux-wireless, ath9k-devel
This series of patches adds the ath9k driver which adds support
for all Atheors IEEE 802.11n chipsets along some new linked list
helpers.
More information about this driver is available at:
http://wireless.kernel.org/en/users/Drivers/ath9k
Our mailing list for this driver is:
https://lists.ath9k.org/mailman/listinfo/ath9k-devel
Luis
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 1/4] list.h: Add list_splice_tail() and list_splice_tail_init()
2008-08-04 7:16 [PATCH 0/4] Atheros IEEE 802.11n ath9k driver Luis R. Rodriguez
@ 2008-08-04 7:16 ` Luis R. Rodriguez
2008-08-04 7:16 ` [PATCH 2/4] list.h: add list_cut_position() Luis R. Rodriguez
0 siblings, 1 reply; 7+ messages in thread
From: Luis R. Rodriguez @ 2008-08-04 7:16 UTC (permalink / raw)
To: linville, linville, torvalds
Cc: Luis R. Rodriguez, linux-wireless, ath9k-devel
If you are using linked lists for queues list_splice() will not do what
you would expect even if you use the elements passed reversed. We need
to handle these differently. We add list_splice_tail() and
list_splice_tail_init()
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
---
include/linux/list.h | 45 ++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 44 insertions(+), 1 deletions(-)
diff --git a/include/linux/list.h b/include/linux/list.h
index 453916b..594f67c 100644
--- a/include/linux/list.h
+++ b/include/linux/list.h
@@ -229,7 +229,7 @@ static inline void __list_splice(const struct list_head *list,
}
/**
- * list_splice - join two lists
+ * list_splice - join two lists, this is designed for stacks
* @list: the new list to add.
* @head: the place to add it in the first list.
*/
@@ -256,6 +256,49 @@ static inline void list_splice_init(struct list_head *list,
}
}
+static inline void __list_splice_tail(const struct list_head *list,
+ struct list_head *head)
+{
+ struct list_head *first = list->next;
+ struct list_head *last = list->prev;
+ struct list_head *current_tail = head->prev;
+
+ current_tail->next = first;
+ last->next = head;
+ head->prev = last;
+ first->prev = current_tail;
+}
+
+/**
+ * list_splice_tail - join two lists, each list being a queue
+ * @list: the new list to add.
+ * @head: the place to add it in the first list.
+ */
+static inline void list_splice_tail(const struct list_head *list,
+ struct list_head *head)
+{
+ if (!list_empty(list))
+ __list_splice_tail(list, head);
+}
+
+/**
+ * list_splice_tail_init - join two lists, each list being a queue, and
+ * reinitialise the emptied list.
+ * @list: the new list to add.
+ * @head: the place to add it in the first list.
+ *
+ * The list at @list is reinitialised
+ */
+static inline void list_splice_tail_init(struct list_head *list,
+ struct list_head *head)
+{
+ if (!list_empty(list)) {
+ __list_splice_tail(list, head);
+ INIT_LIST_HEAD(list);
+ }
+}
+
+
/**
* list_entry - get the struct for this entry
* @ptr: the &struct list_head pointer.
--
1.5.6.rc2.15.g457bb.dirty
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 2/4] list.h: add list_cut_position()
2008-08-04 7:16 ` [PATCH 1/4] list.h: Add list_splice_tail() and list_splice_tail_init() Luis R. Rodriguez
@ 2008-08-04 7:16 ` Luis R. Rodriguez
2008-08-04 7:16 ` [PATCH 3/4] ath5k: remove Atheros 11n devices from supported list Luis R. Rodriguez
0 siblings, 1 reply; 7+ messages in thread
From: Luis R. Rodriguez @ 2008-08-04 7:16 UTC (permalink / raw)
To: linville, linville, torvalds
Cc: Luis R. Rodriguez, linux-wireless, ath9k-devel
This adds list_cut_position() which lets you cut a list into
two lists given a pivot in the list.
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
---
include/linux/list.h | 32 ++++++++++++++++++++++++++++++++
1 files changed, 32 insertions(+), 0 deletions(-)
diff --git a/include/linux/list.h b/include/linux/list.h
index 594f67c..2999b0f 100644
--- a/include/linux/list.h
+++ b/include/linux/list.h
@@ -214,6 +214,38 @@ static inline int list_is_singular(const struct list_head *head)
return !list_empty(head) && (head->next == head->prev);
}
+static inline void __list_cut_position(struct list_head *list,
+ struct list_head *head, struct list_head *entry)
+{
+ struct list_head *new_first =
+ (entry->next != head) ? entry->next : head;
+ list->next = head->next;
+ list->next->prev = list;
+ list->prev = entry;
+ entry->next = list;
+ head->next = new_first;
+ new_first->prev = head;
+}
+
+/**
+ * list_cut_position - cut a list into two
+ * @list: a new list to add all removed entries
+ * @head: a list with entries
+ * @entry: an entry within head, could be the head itself
+ * and if so we won't won't cut the list
+ */
+static inline void list_cut_position(struct list_head *list,
+ struct list_head *head, struct list_head *entry)
+{
+ BUG_ON(list_empty(head));
+ if (list_is_singular(head))
+ BUG_ON(head->next != entry && head != entry);
+ if (entry == head)
+ INIT_LIST_HEAD(list);
+ else
+ __list_cut_position(list, head, entry);
+}
+
static inline void __list_splice(const struct list_head *list,
struct list_head *head)
{
--
1.5.6.rc2.15.g457bb.dirty
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 3/4] ath5k: remove Atheros 11n devices from supported list
2008-08-04 7:16 ` [PATCH 2/4] list.h: add list_cut_position() Luis R. Rodriguez
@ 2008-08-04 7:16 ` Luis R. Rodriguez
2008-08-04 12:39 ` Pavel Roskin
[not found] ` <1217834201-14680-5-git-send-email-lrodriguez@atheros.com>
0 siblings, 2 replies; 7+ messages in thread
From: Luis R. Rodriguez @ 2008-08-04 7:16 UTC (permalink / raw)
To: linville, linville; +Cc: Luis R. Rodriguez, linux-wireless, ath9k-devel
Remove Atheros 11n devices from being claimed by ath5k as its
now handled by ath9k.
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
---
drivers/net/wireless/ath5k/base.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/drivers/net/wireless/ath5k/base.c b/drivers/net/wireless/ath5k/base.c
index 0c948ca..b362c48 100644
--- a/drivers/net/wireless/ath5k/base.c
+++ b/drivers/net/wireless/ath5k/base.c
@@ -95,8 +95,6 @@ static struct pci_device_id ath5k_pci_id_table[] __devinitdata = {
{ PCI_VDEVICE(ATHEROS, 0x001a), .driver_data = AR5K_AR5212 }, /* 2413 Griffin-lite */
{ PCI_VDEVICE(ATHEROS, 0x001b), .driver_data = AR5K_AR5212 }, /* 5413 Eagle */
{ PCI_VDEVICE(ATHEROS, 0x001c), .driver_data = AR5K_AR5212 }, /* 5424 Condor (PCI-E)*/
- { PCI_VDEVICE(ATHEROS, 0x0023), .driver_data = AR5K_AR5212 }, /* 5416 */
- { PCI_VDEVICE(ATHEROS, 0x0024), .driver_data = AR5K_AR5212 }, /* 5418 */
{ 0 }
};
MODULE_DEVICE_TABLE(pci, ath5k_pci_id_table);
--
1.5.6.rc2.15.g457bb.dirty
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 3/4] ath5k: remove Atheros 11n devices from supported list
2008-08-04 7:16 ` [PATCH 3/4] ath5k: remove Atheros 11n devices from supported list Luis R. Rodriguez
@ 2008-08-04 12:39 ` Pavel Roskin
[not found] ` <1217834201-14680-5-git-send-email-lrodriguez@atheros.com>
1 sibling, 0 replies; 7+ messages in thread
From: Pavel Roskin @ 2008-08-04 12:39 UTC (permalink / raw)
To: Luis R. Rodriguez; +Cc: linville, linux-wireless, ath9k-devel
On Mon, 2008-08-04 at 00:16 -0700, Luis R. Rodriguez wrote:
> Remove Atheros 11n devices from being claimed by ath5k as its
> now handled by ath9k.
>
> Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Acked-by: Pavel Roskin <proski@gnu.org>
--
Regards,
Pavel Roskin
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 4/4] ath9k: Add new Atheros IEEE 802.11n driver
[not found] ` <1217834201-14680-5-git-send-email-lrodriguez@atheros.com>
@ 2008-08-04 14:23 ` Christoph Hellwig
2008-08-04 15:47 ` Luis R. Rodriguez
0 siblings, 1 reply; 7+ messages in thread
From: Christoph Hellwig @ 2008-08-04 14:23 UTC (permalink / raw)
To: Luis R. Rodriguez
Cc: linville, linux-wireless, ath9k-devel, Senthil Balasubramanian,
Felix Fietkau, Christoph Hellwig, Jack Howarth, Jouni Malinen,
Sujith Manoharan, Pavel Roskin, Vasanthakumar Thiagarajan
On Mon, Aug 04, 2008 at 12:16:41AM -0700, Luis R. Rodriguez wrote:
> This adds the new mac80211 11n ath9k Atheros driver. Only STA support
> is currently enabled and tested.
>
> Signed-off-by: Senthil Balasubramanian <senthilkumar@atheros.com>
> Signed-off-by: Felix Fietkau <nbd@openwrt.org>
> Signed-off-by: Christoph Hellwig <hch@lst.de>
No signed off yet, I haven't even read in detail through the whole
driver. Same is probably true for most other people on this
list.
That beeing said I'm not really in a position to sign off either as
I'm not the mainter nor a major contributor to the patch.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 4/4] ath9k: Add new Atheros IEEE 802.11n driver
2008-08-04 14:23 ` [PATCH 4/4] ath9k: Add new Atheros IEEE 802.11n driver Christoph Hellwig
@ 2008-08-04 15:47 ` Luis R. Rodriguez
0 siblings, 0 replies; 7+ messages in thread
From: Luis R. Rodriguez @ 2008-08-04 15:47 UTC (permalink / raw)
To: Christoph Hellwig
Cc: linville, linux-wireless, ath9k-devel, Senthil Balasubramanian,
Felix Fietkau, Jack Howarth, Jouni Malinen, Sujith Manoharan,
Pavel Roskin, Vasanthakumar Thiagarajan
On Mon, Aug 4, 2008 at 7:23 AM, Christoph Hellwig <hch@lst.de> wrote:
> On Mon, Aug 04, 2008 at 12:16:41AM -0700, Luis R. Rodriguez wrote:
>> This adds the new mac80211 11n ath9k Atheros driver. Only STA support
>> is currently enabled and tested.
>>
>> Signed-off-by: Senthil Balasubramanian <senthilkumar@atheros.com>
>> Signed-off-by: Felix Fietkau <nbd@openwrt.org>
>> Signed-off-by: Christoph Hellwig <hch@lst.de>
>
> No signed off yet, I haven't even read in detail through the whole
> driver. Same is probably true for most other people on this
> list.
>
> That beeing said I'm not really in a position to sign off either as
> I'm not the mainter nor a major contributor to the patch.
Sorry I had meant you had patches in with your name. Just wanted to
provide credit for that, that's all.
Luis
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2008-08-04 15:47 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-04 7:16 [PATCH 0/4] Atheros IEEE 802.11n ath9k driver Luis R. Rodriguez
2008-08-04 7:16 ` [PATCH 1/4] list.h: Add list_splice_tail() and list_splice_tail_init() Luis R. Rodriguez
2008-08-04 7:16 ` [PATCH 2/4] list.h: add list_cut_position() Luis R. Rodriguez
2008-08-04 7:16 ` [PATCH 3/4] ath5k: remove Atheros 11n devices from supported list Luis R. Rodriguez
2008-08-04 12:39 ` Pavel Roskin
[not found] ` <1217834201-14680-5-git-send-email-lrodriguez@atheros.com>
2008-08-04 14:23 ` [PATCH 4/4] ath9k: Add new Atheros IEEE 802.11n driver Christoph Hellwig
2008-08-04 15:47 ` 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).