All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kars de Jong <jongk@linux-m68k.org>
To: Christoph Hellwig <hch@infradead.org>
Cc: James Bottomley <James.Bottomley@SteelEye.com>,
	Geert Uytterhoeven <geert@linux-m68k.org>,
	linux-m68k@vger.kernel.org, linux-scsi@vger.kernel.org,
	Andi Kleen <ak@suse.de>, Matthew Wilcox <matthew@wil.cx>,
	Ingo Juergensmann <ij@2005.bluespice.org>,
	Richard Hirst <rhirst@levanta.com>
Subject: Re: Removing BROKEN scsi drivers
Date: Tue, 22 Nov 2005 22:43:56 +0100	[thread overview]
Message-ID: <1132695837.8928.11.camel@localhost.localdomain> (raw)
In-Reply-To: <20051122083631.GA21523@infradead.org>

On di, 2005-11-22 at 08:36 +0000, Christoph Hellwig wrote: 
> The 53c700 already has a rather awkward mechanism to deal with different
> bus byte orders, I'd suggest you use that now and switch the driver to
> use ioread*be later, without introducing arch-specific config symbols.

I don't really understand the current mechanism. It seems to result in
different behaviour for BE systems depending on the definition of
CONFIG_53C700_LE_ON_BE.

I would have expected the behaviour on BE systems without defining
CONFIG_53C700_LE_ON_BE to be the same as on BE systems with
CONFIG_53C700_LE_ON_BE defined but with hostdata->force_le_on_be set to
0.

Was this driver ever used on BE systems without CONFIG_53C700_LE_ON_BE
being defined?

For reference:

BE with CONFIG_53C700_LE_ON_BE defined but hostdata->force_le_on_be set
to 0:

/* This is terrible, but there's no raw version of ioread32.  That means
 * that on a be board we swap twice (once in ioread32 and once again to
 * get the value correct) */
#define bS_to_io(x)     ((hostdata->force_le_on_be) ? (x) : cpu_to_le32(x))

evaluates to
                                      0   ---------->       cpu_to_le32(x)

And without CONFIG_53C700_LE_ON_BE defined:

#define bS_to_io(x)     (x)

I think this last define should be cpu_to_le32() as well, then the
driver would work on m68k out-of-the-box.

James, can you comment on this?

> Anyway, could you folks please submit what you have now? The 53c7xx hasn't
> worked ever in 2.6.x, and we're gonna remove it for 2.6.16.  It would be
> nice to keep the m68k glue drivers switched over to use 53c700 even if there's
> still some odd hacks required to actually make it work - we'll surely sort
> them out once the basics are in.

They wouldn't compile, because I'm not going to submit Romans DMA patch
myself.


Kind regards,

Kars.



  reply	other threads:[~2005-11-22 21:44 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
2005-11-22  8:36                         ` Christoph Hellwig
2005-11-22 21:43                           ` Kars de Jong [this message]
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=1132695837.8928.11.camel@localhost.localdomain \
    --to=jongk@linux-m68k.org \
    --cc=James.Bottomley@SteelEye.com \
    --cc=ak@suse.de \
    --cc=geert@linux-m68k.org \
    --cc=hch@infradead.org \
    --cc=ij@2005.bluespice.org \
    --cc=linux-m68k@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=matthew@wil.cx \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.