linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Matthew Wilcox <matthew@wil.cx>
To: Kars de Jong <jongk@linux-m68k.org>
Cc: Richard Hirst <rhirst@levanta.com>,
	Christoph Hellwig <hch@infradead.org>,
	Ingo Juergensmann <ij@2005.bluespice.org>,
	Andi Kleen <ak@suse.de>,
	linux-scsi@vger.kernel.org, linux-m68k@vger.kernel.org,
	Geert Uytterhoeven <geert@linux-m68k.org>
Subject: Re: Removing BROKEN scsi drivers
Date: Tue, 15 Nov 2005 06:05:40 -0700	[thread overview]
Message-ID: <20051115130540.GA32158@parisc-linux.org> (raw)
In-Reply-To: <1132056707.6134.11.camel@localhost.localdomain>

On Tue, Nov 15, 2005 at 01:11:47PM +0100, Kars de Jong wrote:
> With all m68k 53c700 implementations currently supported there should be
> no byteswapping done in io{read,write}32(), but that doesn't hold for
> each bus.
> 
> So until we can specify in some way how the io{read,write}{16,32}()
> function should behave on a certain memory region, I see no way to
> integrate this cleanly. For now I am inclined to do something like this
> in 53c700.h:
> 
> #ifdef CONFIG_M68K
>         iowrite32be(bS_to_io(value), hostdata->base + reg);
> #else
>         iowrite32(bS_to_io(value), hostdata->base + reg);
> #endif
> 
> etc.
> 
> IMHO that's cleaner than hardcoding these functions to do no
> byteswapping at all in include/asm-m68k/io.h. Plus that breaks when a
> multi-config kernel is built (like one with PCMCIA and this SCSI driver,
> because the Amiga PCMCIA implementation does need byteswapping). Much
> like what you get now when you build a kernel with APNE and ZORRO8390
> drivers for instance.

I thought that was what the bS_to_io() and friends were for.

In any case, I agree with you.  The iomap call should let you specify
whether this is a big-endian or little-endian region.  Unfortunately,
James Bottomley disagreed and we now have the ioread16be family of
functions.

  reply	other threads:[~2005-11-15 13:05 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-05 11:14 Removing BROKEN scsi drivers Andi Kleen
2005-10-05 11:22 ` Arjan van de Ven
2005-10-05 11:31 ` Matthew Wilcox
2005-10-05 11:39   ` Christoph Hellwig
2005-10-05 12:32     ` Richard Hirst
2005-10-05 13:30       ` Kars de Jong
2005-10-05 14:00         ` Richard Hirst
2005-10-05 14:03         ` James Bottomley
2005-10-05 14:35           ` Rolf Eike Beer
2005-10-07  8:27         ` Geert Uytterhoeven
2005-10-07 13:42           ` Richard Hirst
2005-10-07 13:53             ` Kars de Jong
2005-11-15  9:51               ` Christoph Hellwig
2005-11-15 10:17                 ` Ingo Juergensmann
2005-11-15 10:30                   ` Christoph Hellwig
2005-11-15 11:32                     ` Richard Hirst
2005-11-15 12:08                       ` Roman Zippel
2005-11-15 12:11                       ` Kars de Jong
2005-11-15 13:05                         ` Matthew Wilcox [this message]
2005-11-22  8:36                         ` Christoph Hellwig
2005-11-22 21:43                           ` Kars de Jong
2005-11-22 22:20                             ` Matthew Wilcox
2005-11-27 16:47                             ` James Bottomley
2005-11-29 22:24                               ` James Bottomley
2005-11-30  8:31                                 ` Kars de Jong
2005-11-30  8:45                                   ` Ingo Juergensmann
2005-12-01 20:43                                 ` Kars de Jong
2005-12-01 20:47                                   ` James Bottomley
2005-12-01 23:29                                   ` Richard Hirst
2005-12-02 15:03                                   ` Ingo Juergensmann
2005-12-07 21:25                                   ` Ingo Juergensmann
2006-07-07 12:44                       ` Christoph Hellwig
2006-07-09 11:16                         ` Richard Hirst
2006-07-09 11:25                           ` Kars de Jong
2006-10-30 11:13                             ` Christoph Hellwig
2006-10-30 12:34                               ` Kars de Jong
2006-10-31 21:47                               ` [RFC PATCH] m68k: switch to 53c700 driver Kars de Jong
2006-11-02 21:34                                 ` Geert Uytterhoeven
2006-12-17 22:28                                 ` James Bottomley
2006-12-18  9:34                                   ` Geert Uytterhoeven
2006-12-19  3:09                                     ` Al Viro
2006-12-22 21:21                                       ` Kars de Jong
2007-04-29 21:43                                         ` Christoph Hellwig
2005-10-05 11:43 ` Removing BROKEN scsi drivers Christoph Hellwig
2005-10-05 22:36 ` Douglas Gilbert
2005-10-06 10:23   ` Andi Kleen

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=20051115130540.GA32158@parisc-linux.org \
    --to=matthew@wil.cx \
    --cc=ak@suse.de \
    --cc=geert@linux-m68k.org \
    --cc=hch@infradead.org \
    --cc=ij@2005.bluespice.org \
    --cc=jongk@linux-m68k.org \
    --cc=linux-m68k@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=rhirst@levanta.com \
    /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;
as well as URLs for NNTP newsgroup(s).