From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Bartlomiej Zolnierkiewicz <B.Zolnierkiewicz@elka.pw.edu.pl>
Cc: Thibaut VARENE <T-Bone@parisc-linux.org>, linux-ide@vger.kernel.org
Subject: Re: [RFC PATCH] pmac ide doesn't properly cleanup hwif when releasing controller
Date: Sun, 30 Oct 2005 09:09:55 +1100 [thread overview]
Message-ID: <1130623795.29054.179.camel@gaston> (raw)
In-Reply-To: <20051029044852.1a518908@Tatooine.r3z0>
On Sat, 2005-10-29 at 04:48 +0200, Thibaut VARENE wrote:
> I've been investigating the IDE code a bit, and it seems that it generally
> assumes that an interface cannot be released once claimed. Cleaning up the
> hwif without knowing its previous state in pmac.c is a big and potentially
> dangerous job, and there seems to be no generic code interface that would
> provide either a way to properly release an hwif or to clean it up.
>
> The rationale behind this is related to the value of MAX_HWIFS, which is
> usually pretty low (usually between 2 and 10).
>
> So the question is "what should be done (and how)"?
Bart, the problem here is indeed the code in pmac IDE that tries to
"release" HWIFs to the core if they are probed empty. For some reason,
it used to work (I think ide-dma used to unconditionally override the
callbacks) but not any more.
Thus my question: Should I
- Manually in ide-pmac clean up all callbacks & revert everything in
the HWIF when I want to hand it back
- Call init_hwif_data() despite the nasty comment on top
- Just don't release the interface...
Ben.
next prev parent reply other threads:[~2005-10-29 22:10 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-29 2:48 [RFC PATCH] pmac ide doesn't properly cleanup hwif when releasing controller Thibaut VARENE
2005-10-29 22:09 ` Benjamin Herrenschmidt [this message]
2005-11-01 16:20 ` Bartlomiej Zolnierkiewicz
2005-11-01 21:00 ` Benjamin Herrenschmidt
2005-11-02 8:05 ` Bartlomiej Zolnierkiewicz
2005-11-02 10:21 ` Benjamin Herrenschmidt
2005-11-10 10:56 ` Bartlomiej Zolnierkiewicz
2005-11-10 11:13 ` Benjamin Herrenschmidt
2005-11-18 20:56 ` Bartlomiej Zolnierkiewicz
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=1130623795.29054.179.camel@gaston \
--to=benh@kernel.crashing.org \
--cc=B.Zolnierkiewicz@elka.pw.edu.pl \
--cc=T-Bone@parisc-linux.org \
--cc=linux-ide@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox