Re: Comments about commit 'PCI: docking station: remove dock uevents'?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Nov 13, 2006 at 08:43:27PM +0100, Holger Macht wrote:

> What I'm doing at the moment (for about a week ;-) is to echo "- - -" to
> /sys/class/scsi_host/host*/scan for all unoccupied hosts on a dock
> event. And this works pretty good. But it's of course only a workaround if
> the scsi bus generates an event.

That's just about workable for adding a device, but it loses badly for 
removing one.

> With recent kernel I have to unregister from the drive from userspace to
> prevent confusion about if the drive is still there or not.

Right. And that doesn't help in the case where the user undocks without 
waiting for everything to stop flashing first. Of course, in that case 
it's probably reasonable to tell the user that they lose, but we can do 
better than leaving a random drive lying around and a partially wedged 
sata bus...

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

[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux