Bug 7053

Summary: No support for ejectable drive bays - Dell M65
Product: ACPI Reporter: Kristen (kristen.c.accardi)
Component: Config-HotplugAssignee: Kristen (kristen.c.accardi)
Status: CLOSED PATCH_ALREADY_AVAILABLE    
Severity: normal CC: acpi-bugzilla, shane.bryan
Priority: P2    
Hardware: i386   
OS: Linux   
Kernel Version: 2.6.18-rc4-git1 Subsystem:
Regression: --- Bisected commit-id:

Description Kristen 2006-08-24 14:30:12 UTC
Most recent kernel where this bug did not occur: n/a

Distribution:
SLE10 + kernel.org kernel

Hardware Environment:
Dell M65 laptop

Problem Description:
Although there is support for SATA hotplug in the 2.6.18-rc4-git1 kernel, there
is still not a way to safely remove the module bay from the laptop because the
dock driver does not currently support dockable drive bays.  When inserting and
removing a drive bay with the hotplug sata interface, it must be done manually
by the user:
(to remove)
# echo 1 > /sys/class/scsi_device/1\:0\:0\:0/device/delete

(to add)
# echo 0 0 0 >  /sys/class/scsi_host/host1/scan

On some platforms (IBM), there is a platform specific driver that will allow the
user then to call the ACPI _EJ0 method to safely eject the drive bay, however,
this approach is inadequate.  Not only does it not work for any platform but
ibm, it also does not handle the case where a laptop is booted without a drive
bay and a bay is inserted while the laptop is powered on.  

I believe that the dock driver should be modified to automatically call the sata
hotplug insert/delete functions and to execute _EJ0 when needed.  This would be
platform independent and require no userspace intervention.
Comment 1 Kristen 2007-11-27 10:00:26 UTC
Bay driver is merged upstream