]> git.baikalelectronics.ru Git - kernel.git/commit
libata: Integrate ACPI-based PATA/SATA hotplug - version 5
authorMatthew Garrett <mjg59@srcf.ucam.org>
Wed, 3 Oct 2007 00:24:16 +0000 (01:24 +0100)
committerJeff Garzik <jeff@garzik.org>
Fri, 12 Oct 2007 18:55:45 +0000 (14:55 -0400)
commit18598c6db55c9ca1cbd3ab40357604d472a7ee90
tree1199f27b0858c67f2f327c70be108ec5b03448fb
parent152215a5cd83fa42104c8382516f1ccb4d2e30bf
libata: Integrate ACPI-based PATA/SATA hotplug - version 5

Modern laptops with hotswap bays still tend to utilise a PATA interface
on a SATA bridge, generally with the host controller in some legacy
emulation mode rather than AHCI. This means that the existing hotplug
code in libata is unable to work. The ACPI specification states that
these devices can send notifications when hotswapped, which avoids the
need to obtain notification from the controller. This patch uses the
existing libata-acpi code and simply registers a notification in order
to trigger a rescan whenever the firmware signals an event.

Signed-off-by: Matthew Garrett <mjg59@srcf.ucam.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/libata-acpi.c