Re: [ibm-acpi-devel] CONFIG_IBM_BAY

Shem Multinymous
2007-03-15T20:31:35Z

On 3/15/07, Henrique de Moraes Holschuh <hmh@hmh.eng.br> wrote:
> 2. It will do the right thing on plug and unplug. This means telling the
> rest of the kernel to disable the device in the bay, for example. Right now
> we shutdown one end of the PATA/SATA link on ThinkPads eletrically, and
> leave libata to scream blood murder until it disables its end due to too
> many retries, for example;

I'm not sure which stage of the unplug you're referring to, but after
a "lever released" event on ThinkPads there must remain a way for
userspace code to run before the kernel does anything irreversible to
the drivers or hardware (e.g., in order to try unmounting filesystems
and, if that failed, tell the user to not pull the lever). The
two-stage mechanical eject mechanisms on ThinkPad is pretty useful in
this respect.

Shem