From: Holger Macht <hmacht@suse.de>
To: Matthew Garrett <mjg59@srcf.ucam.org>
Cc: Tejun Heo <htejun@gmail.com>,
linux-ide@vger.kernel.org, Jeff Garzik <jeff@garzik.org>,
hmact@suse.de
Subject: Re: 2.6.25 semantic change in bay handling?
Date: Wed, 7 May 2008 00:06:34 +0200 [thread overview]
Message-ID: <20080506220634.GA3466@homac> (raw)
In-Reply-To: <20080506184828.GA22634@srcf.ucam.org>
On Di 06. Mai - 19:48:28, Matthew Garrett wrote:
> On Tue, May 06, 2008 at 08:36:12PM +0200, Holger Macht wrote:
> > Hi Matthew,
> >
> > ( Please TO or CC hmacht@suse.de ! )
>
> Then stop setting Mail-Followup-To: :)
>
> > > Hm. I'm not absolutely certain about this. Do we get a bus check
> > > notification after the dock has been removed? If so, I think it ought to
> > > be handled the same way as the internal bay (ie, signal userspace and
> > > let it clean up and destroy the device - if it fails to do so, then
> > > destroy the device when the dock is actually removed, by catching the
> > > bus/device check, calling the _STA method on the bay and destroying the
> > > device if it's present)
> >
> > libata is notified through the dock driver when a dock event occurs, just
> > before the dock driver undocks, giving no time to userspace to clean
> > up. libata doesn't receive an additional acpi bay event.
>
> That's the current situation, I'm not sure it's ideal. But I'll skip
What exactly do you think is not ideal?
> worrying about that until I've actually got some hardware to work out
> how to do it properly :)
Maybe this is what you're thinking of?:
http://marc.info/?l=linux-acpi&m=121009411900390&w=2
>
> > >> 2. Bay event: libata signals a BAY_EVENT through uevent, userspace writes
> > >> 1 to /sys/.../device/delete
> >
> > > In the case of an eject request, yes. In the case of a bus or device
> > > check, we should call _STA and then delete/hotplug the device as
> > > appropriate.
> >
> > Yes.
>
> Excellent. I /think/ the patch I sent earlier basically does this -
> you'll want to register a separate callback for the dock event in that
> case, though.
I'll take a look the following days, thanks.
Regards,
Holger
next prev parent reply other threads:[~2008-05-06 22:04 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-05 22:33 2.6.25 semantic change in bay handling? Matthew Garrett
2008-05-06 8:13 ` Holger Macht
2008-05-06 8:21 ` Matthew Garrett
2008-05-06 8:40 ` Tejun Heo
2008-05-06 8:46 ` Matthew Garrett
2008-05-06 8:53 ` Tejun Heo
2008-05-06 9:17 ` Matthew Garrett
2008-05-06 11:21 ` Holger Macht
2008-05-06 11:31 ` Matthew Garrett
2008-05-06 17:27 ` Holger Macht
2008-05-06 17:48 ` Matthew Garrett
2008-05-06 18:36 ` Holger Macht
2008-05-06 18:48 ` Matthew Garrett
2008-05-06 22:06 ` Holger Macht [this message]
2008-05-06 9:29 ` Holger Macht
2008-05-06 9:39 ` Matthew Garrett
2008-05-06 9:26 ` Holger Macht
2008-05-06 9:36 ` Matthew Garrett
2008-05-19 16:29 ` [PATCH] Fixups to ATA ACPI hotplug Matthew Garrett
2008-05-20 7:44 ` Holger Macht
2008-05-20 10:20 ` Matthew Garrett
2008-05-20 13:18 ` Holger Macht
2008-05-20 13:22 ` Matthew Garrett
2008-05-20 13:58 ` Holger Macht
2008-05-20 14:00 ` Matthew Garrett
2008-05-21 22:26 ` Andrew Morton
2008-05-20 8:49 ` Holger Macht
2008-05-06 8:40 ` 2.6.25 semantic change in bay handling? Holger Macht
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=20080506220634.GA3466@homac \
--to=hmacht@suse.de \
--cc=hmact@suse.de \
--cc=htejun@gmail.com \
--cc=jeff@garzik.org \
--cc=linux-ide@vger.kernel.org \
--cc=mjg59@srcf.ucam.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