Re: CONFIG_IBM_BAY

Kristen Carlson Accardi
2007-03-19T18:00:42Z

On Mon, 19 Mar 2007 13:22:43 +0000
Matthew Garrett <mjg59@srcf.ucam.org> wrote:

> On Sun, Mar 18, 2007 at 09:27:51AM +0100, Holger Macht wrote:
>
> > I don't prefer any solution, whether doing it inside the kernel, or doing
> > it in userspace. What would be good would be to know what's the 'right'
> > way to go, or at least what both kernel people and userspace people can
> > agree on so that we can find a solution across distributions, whatever.
> > I'm currently just looking how to integrate the generic dock and bay
> > driver into the openSUSE distribution, and this seems to be quite hard,
> > especially because of the above mentioned already working solution ;-)
>
> If the kernel knows that a bay device has just been added or removed, it
> makes sense for the device removal to take place in the kernel rather
> than bouncing it out to userspace and then back into the kernel. Pulling
> out a cardbus card doesn't require us to run a userspace helper to
> detach the hardware.
>
> --
> Matthew Garrett | mjg59@srcf.ucam.org
>

Not to mention, with dock stations some laptops don't actually lock the
laptop into the dock station, so when the user decides to press the button
and undock, it just does it instantly. And same with some bay devices -
they don't actually give you an event until the bay is physically removed.
Because of this, I think we should handle things in kernel space.