From: Paul Mackerras <paulus@samba.org>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Linus Torvalds <torvalds@transmeta.com>
Subject: Re: [PATCH] fix powerbook media bay
Date: Mon, 24 Mar 2003 08:34:55 +1100 (EST) [thread overview]
Message-ID: <15998.10367.608276.488022@nanango.paulus.ozlabs.org> (raw)
In-Reply-To: <1048433932.10727.18.camel@irongate.swansea.linux.org.uk>
Alan Cox writes:
> IDE supports dynamic addition of interfaces so it should be possible
> to make this work either way around.
Yes, it should be possible with some tweaks to the media bay driver.
It gets a bit complicated though because at the moment there is no way
to say "here's a new interface and by the way it's a pmac IDE
interface so please use the pmac driver on it". (Come to that there
doesn't appear to be any way to dynamically add an interface that uses
MMIO.)
Consequently the pmac IDE driver needs to know about the mediabay IDE
interface at pmac_ide_probe time and reserve a slot for it (which it
does). At that point the pmac IDE driver tells the mediabay driver
the ioremapped base address of the interface so that the mediabay
driver can pass that back in to ide_register_hw. Which is all a bit
backwards.
Of course, if you happened to plug in a CF card while you didn't have
the CD drive in the media bay, the CF card would get the media bay's
hwif structure and it would blow up in your face.
Is the IDE stuff still in the middle of open-heart surgery? I'm happy
to hack on it and send you patches if it isn't all going to change
dramatically in the next week anyway.
Paul.
next prev parent reply other threads:[~2003-03-23 21:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-23 5:19 Paul Mackerras
2003-03-23 15:38 ` Alan Cox
2003-03-23 21:34 ` Paul Mackerras [this message]
2003-03-23 23:08 ` Alan Cox
2003-03-24 1:49 ` Benjamin Herrenschmidt
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=15998.10367.608276.488022@nanango.paulus.ozlabs.org \
--to=paulus@samba.org \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.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
all inboxes | Powered by JetHome®