Thread (32 messages) read the whole thread 32 messages, 7 authors, 2008-06-09

Re: [PATCH] libata: Handle bay devices in dock stations

From: Jeff Garzik <hidden>
Date: 2008-06-03 18:55:08
Also in: linux-acpi, lkml

Matthew Garrett wrote:
On Tue, Jun 03, 2008 at 08:27:59PM +0200, Holger Macht wrote:
quoted
* Differentiate between bay devices in dock stations and others:

 - When an ACPI_NOTIFY_EJECT_REQUEST appears, just signal uevent to
   userspace (that is when the optional eject button on a bay device is
   pressed/pulled) giving the possibility to unmount file systems and to
   clean up. Also, only send uevent in case we get an EJECT_REQUEST
   without doing anything else. In other cases, you'll get an add/remove
   event because libata attaches/detaches the device.

 - In case of a dock event, which in turn signals an
   ACPI_NOTIFY_EJECT_REQUEST, immediately detach the device, because it
   may already have been gone

* 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 [off-list ref])

* Call ACPI _EJ0 for detached devices

Signed-off-by: Holger Macht <redacted>
Acked-by: Matthew Garrett <redacted>
thanks, both!

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help