Re: [PATCH 22/32] rt2x00: Allocate ring structures in single array

2006-04-28 Thread Ivo van Doorn
On Friday 28 April 2006 16:30, Jiri Benc wrote: > On Fri, 28 Apr 2006 16:25:09 +0200, Ivo van Doorn wrote: > > I am not really fan on such messages. But when the control->queue is indeed > > invalid, it is a serious bug. Perhaps a BUG() should be used as well? > > If so, I'll put it into a new patc

Re: [PATCH 22/32] rt2x00: Allocate ring structures in single array

2006-04-28 Thread Jiri Benc
On Fri, 28 Apr 2006 16:25:09 +0200, Ivo van Doorn wrote: > I am not really fan on such messages. But when the control->queue is indeed > invalid, it is a serious bug. Perhaps a BUG() should be used as well? > If so, I'll put it into a new patch along with the fixes below. BUG() is not a good idea,

Re: [PATCH 22/32] rt2x00: Allocate ring structures in single array

2006-04-28 Thread Ivo van Doorn
On Friday 28 April 2006 12:52, Jiri Benc wrote: > On Fri, 28 Apr 2006 00:03:13 +0200, Ivo van Doorn wrote: > > Use seperate function to convert a dscape ring ID > > to the address of the actual ring. > > Just minor things: > > > [...] > > @@ -1386,20 +1412,19 @@ rt2400pci_tx(struct net_device *ne

Re: [PATCH 22/32] rt2x00: Allocate ring structures in single array

2006-04-28 Thread Jiri Benc
On Fri, 28 Apr 2006 00:03:13 +0200, Ivo van Doorn wrote: > Use seperate function to convert a dscape ring ID > to the address of the actual ring. Just minor things: > [...] > @@ -1386,20 +1412,19 @@ rt2400pci_tx(struct net_device *net_dev, > > rt2x00_register_read(rt2x00pci, TXCSR0, ®); >

[PATCH 22/32] rt2x00: Allocate ring structures in single array

2006-04-27 Thread Ivo van Doorn
From: Ivo van Doorn <[EMAIL PROTECTED]> Allocate all ring structures seperately and as an array of rings. This will make the rt2x00_pci and rt2x00_usb structures more generic for all rt2x00 modules. Use seperate function to convert a dscape ring ID to the address of the actual ring. Signed-off-by