Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Jeff Garzik <jgarzik@pobox.com>
To: Finn Thain <fthain@telegraphics.com.au>
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>,
	Ralf Baechle <ralf@linux-mips.org>,
	Geert Uytterhoeven <geert@linux-m68k.org>,
	Linux/m68k <linux-m68k@vger.kernel.org>,
	Linux/m68k on Mac <linux-mac68k@mac.linux-m68k.org>,
	Linux MIPS <linux-mips@linux-mips.org>,
	Linux net <linux-net@vger.kernel.org>
Subject: Re: [PATCH] macsonic/jazzsonic drivers update
Date: Sun, 26 Jun 2005 13:56:02 -0400	[thread overview]
Message-ID: <42BEEC32.7040807@pobox.com> (raw)
In-Reply-To: <Pine.LNX.4.61.0506270227510.1015@loopy.telegraphics.com.au>

Finn Thain wrote:
> Here is the latest sonic driver update, which I've been rattling on about 
> for some time now. There are several reasons for this patch,
> 
> - Adopt the DMA API (jazzsonic, macsonic & core driver)
> 
> - Adopt the driver model (macsonic)
> 
>   This part was cribbed from jazzsonic. As a consequence, macsonic once 
>   again works as a module. Driver model is also used by the DMA calls.
> 
> - Support 16 bit cards (macsonic & core driver, also affects jazzsonic)
> 
>   This code was adapted from the mac68k linux 2.2 kernel, where it has 
>   languished for a long time.
> 
> - Support more mac cards (macsonic)
> 
>   Also from mac68k repo.
> 
> - Zero-copy buffer handling (core driver)
> 
>   Provides a nice performance improvement. The new algorithm incidentally 
>   helped to replace the old Jazz DMA code.
> 
> A nice consequence of this patch is that one can now diff jazzsonic.c and 
> macsonic.c and get a comprehensible result. Maybe that will make them 
> easier to maintain.
> 
> The patch has been tested on a variety of macs (several 32-bit quadra 
> built-in NICs, a 16-bit LC PDS NIC and a 16-bit comm-slot NIC), but only 
> compile tested for MIPS Jazz.
> 
> The DMA API has been implemented for m68k by Roman Zippel, and his patch 
> is now required for macsonic to function. There is also a patch available 
> which implements that API for Jazz machines (by Thomas I believe).
> 
> It would be nice if someone could test this on a little endian Jazz 
> machine.
> 
> Comments and criticism welcomed.
> 
> -f
> 
> 
> Signed-off-by: Finn Thain <fthain@telegraphics.com.au>

Patch looks OK to me.  Comments:

1) Either Geert or Ralf can merge this, with my ACK.

2) Would be nice to get it tested on the machines you list as untested.

3) [possible problem in driver, not your changes] I wonder if 
IRQ_HANDLED is ever returned for shared interrupts?  I don't know enough 
about the platform interrupt architecture to answer this question.

4) Remove casts to/from void.  This is especially noticable in all the 
casts of the netdev_priv() return value.

5) If it doesn't cause too much patch noise, consider using enums rather 
than #defines, for numeric constants.  This gives the compiler more type 
information and makes the symbols visible in a debugger.  This is a 
-maintainer preference- issue overall, so don't sweat it if you disagree.

  reply	other threads:[~2005-06-26 17:57 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200503070210.j272ARii023023@hera.kernel.org>
     [not found] ` <Pine.LNX.4.62.0503221807160.20753@numbat.sonytel.be>
     [not found]   ` <20050323100139.GB8813@linux-mips.org>
     [not found]     ` <Pine.LNX.4.61.0506121454410.1470@loopy.telegraphics.com.au>
     [not found]       ` <20050615114158.GA9411@linux-mips.org>
     [not found]         ` <Pine.LNX.4.61.0506152220460.22046@loopy.telegraphics.com.au>
     [not found]           ` <20050615142717.GD9411@linux-mips.org>
     [not found]             ` <Pine.LNX.4.61.0506160218310.24328@loopy.telegraphics.com.au>
     [not found]               ` <Pine.LNX.4.61.0506160336410.24908@loopy.telegraphics.com.au>
     [not found]                 ` <20050616092257.GE5202@linux-mips.org>
     [not found]                   ` <Pine.LNX.4.61.0506162129450.31164@loopy.telegraphics.com.au>
2005-06-26 17:27                     ` [PATCH] macsonic/jazzsonic drivers update Finn Thain
2005-06-26 17:56                       ` Jeff Garzik [this message]
2005-06-27 12:59                         ` Finn Thain
2005-07-12 15:31                         ` [PATCH] macsonic/jazzsonic drivers update (part 2) Finn Thain
2005-08-20  4:30                           ` Finn Thain
2005-08-20  4:50                             ` Jeff Garzik
2005-08-20  5:53                               ` [PATCH 1/1 RESEND] macsonic/jazzsonic network drivers update Finn Thain
2005-08-23  5:32                                 ` Jeff Garzik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42BEEC32.7040807@pobox.com \
    --to=jgarzik@pobox.com \
    --cc=fthain@telegraphics.com.au \
    --cc=geert@linux-m68k.org \
    --cc=linux-m68k@vger.kernel.org \
    --cc=linux-mac68k@mac.linux-m68k.org \
    --cc=linux-mips@linux-mips.org \
    --cc=linux-net@vger.kernel.org \
    --cc=ralf@linux-mips.org \
    --cc=tsbogend@alpha.franken.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox