From: Carsten Langgaard <carstenl@mips.com>
To: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>
Cc: Ralf Baechle <ralf@oss.sgi.com>, linux-mips@oss.sgi.com
Subject: Re: IDE driver broken in bigendian 2.4.17 kernel
Date: Thu, 17 Jan 2002 21:09:04 +0100 [thread overview]
Message-ID: <3C472F60.E5B62F0C@mips.com> (raw)
In-Reply-To: Pine.GSO.3.96.1020117155914.16712A-100000@delta.ds2.pg.gda.pl
"Maciej W. Rozycki" wrote:
> On Thu, 17 Jan 2002, Carsten Langgaard wrote:
>
> > One could argue that the IDE driver should use it's own special functions
> > (like ide_insl, etc ...) and not use the generic functions (insl, etc ...).
>
> If it's due to a problem with an IDE host adapter then it should be fixed
> within the IDE driver (or not at all and kept privately as needed). In no
> case the order of header inclusions may determine function or macro
> definitions.
The order of header inclusions doesn't matter, because the ide.h file include the
io.h file, and that way io.h always get include first.
The '#ifndef' in all header file makes sure it only get included once.
>
> > But all other architectures does it this way, so I'm just trying to follow
> > the trend.
>
> It does not mean other architectures are right here. Possibly they have
> not hit the problem so far.
>
> If the problem is generic to a chipset, then you indeed need to redefine
> I/O macros, but then in <asm/io.h>. If that's PCI-specific, for example,
> then you should probably make the redefinition conditional on CONFIG_PCI.
I'm not in a position, where I can fix and not at least test the changes, that it
needed in both the IDE driver as well as in all the other bigendian architectures
ide.h files.
I think my fix is the only one that doesn't break things for anyone else, you may
argue that it isn't the right one and I kind of agree, but at this point I think
it's the best solution.
>
> --
> + Maciej W. Rozycki, Technical University of Gdansk, Poland +
> +--------------------------------------------------------------+
> + e-mail: macro@ds2.pg.gda.pl, PGP key available +
next prev parent reply other threads:[~2002-01-17 21:09 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-17 11:11 IDE driver broken in bigendian 2.4.17 kernel Carsten Langgaard
2002-01-17 13:04 ` Maciej W. Rozycki
2002-01-17 13:31 ` Carsten Langgaard
2002-01-17 15:31 ` Maciej W. Rozycki
2002-01-17 20:09 ` Carsten Langgaard [this message]
2002-01-18 11:16 ` Maciej W. Rozycki
2002-01-18 10:38 ` Geert Uytterhoeven
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=3C472F60.E5B62F0C@mips.com \
--to=carstenl@mips.com \
--cc=linux-mips@oss.sgi.com \
--cc=macro@ds2.pg.gda.pl \
--cc=ralf@oss.sgi.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