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.
Bay driver is merged upstream