All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Joseph P. Garcia" <jpgarcia@execpc.com>
To: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: linuxppc-dev@lists.linuxppc.org
Subject: Re: mediabay hotswap, tun naming patches (2.4)
Date: Sun, 20 Jan 2002 14:39:00 -0600	[thread overview]
Message-ID: <20020120143900.588a4949.jpgarcia@execpc.com> (raw)
In-Reply-To: <20020120202122.2637@smtp.wanadoo.fr>


On Sun, 20 Jan 2002 21:21:21 +0100
Benjamin Herrenschmidt <benh@kernel.crashing.org> wrote:
> I don't fully understand your patch here. What you do is exactly what
> ide_register() does, I see no difference between what your patch does
> and what the unpatched code does.

ide_register() calls the arch's preferred init_hwif_ports.  Until recently, we could set this according to ppc platform using a member of the ppc_md (IIRC) structure.  This member was eliminated.  When we had it, at one point it was changed to have a generic (PC?) init_hwif_ports rather than the pmac one that mediabay needed.  I rack this up to possibly people forgetting that some systems have hot swap, but no matter.  The assumption that the member stood for was that differing platforms /needed/ a custom call, which is not true.  There are a few chips on startup and only media bays in runtime that need it.  They are the exception, not the rule.  (PCMCIA i think needs the generic call)  Basically, I think that any old ide hardware driver should be able to call ide_register, and anyone who is unique hardware must work only a little harder to call their proper unique function.

Basically, ide_register() is for normal IDE interfaces, and that is just more correct for other drivers to be able to assume that.  We need to explicitly handle unique hardware than to assume that uniqueness is the norm.  all IDE busses are found at boot and those that need it are handled with the pmac function explicitly rather than relying on ide_register() anyway.

--
Joseph P. Garcia
http://www.lycestra.com/

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

  reply	other threads:[~2002-01-20 20:39 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-20 19:48 mediabay hotswap, tun naming patches (2.4) Joseph P. Garcia
2002-01-20 20:13 ` Benjamin Herrenschmidt
2002-01-20 20:21 ` Benjamin Herrenschmidt
2002-01-20 20:39   ` Joseph P. Garcia [this message]
2002-01-20 21:02     ` Benjamin Herrenschmidt
2002-01-22 21:22       ` ide-pmac module-ation Joseph P. Garcia

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=20020120143900.588a4949.jpgarcia@execpc.com \
    --to=jpgarcia@execpc.com \
    --cc=benh@kernel.crashing.org \
    --cc=linuxppc-dev@lists.linuxppc.org \
    /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.