Re: [PATCH] Fixups to ATA ACPI hotplug

From: Matthew Garrett
Date: Tue May 20 2008 - 06:21:14 EST


On Tue, May 20, 2008 at 09:44:42AM +0200, Holger Macht wrote:

> * In case of an ACPI_NOTIFY_DEVICE/BUS_CHECK, evaluate _STA to check if
> the device has been plugged or unplugged. If plugged, hotplug it, if
> unplugged, just signal event to userspace
> (initial patch by Matthew Garrett <mjg59@xxxxxxxxxxxxx>)

The only issue I can see is that this one doesn't check _EJ0. Unless
that's done, you'll (on some hardware) evaluate _STA on the bay itself
rather than the device within the bay, which leads to confusion as to
whether the device has been inserted. Other than that, looks good.
Jeff's sent my patch to Linus, so can you redo this on top and I'll sign
it off?

Thanks,
--
Matthew Garrett | mjg59@xxxxxxxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/