Re: [RFC PATCH 0/3] introduce: Multistate Switch Class

From: Mark Brown
Date: Wed Nov 30 2011 - 04:46:15 EST


On Wed, Nov 30, 2011 at 03:58:54PM +0900, MyungJoo Ham wrote:
> On Wed, Nov 30, 2011 at 3:35 PM, Greg KH <gregkh@xxxxxxx> wrote:

> > Actually, why can't we just use gpio as-is here and just treat these
> > devices as "generic" i/o "pins"?

> For userspace, GPIO should work.

> For device drivers, I'm not sure.

> In order to work for device drives, a GPIO event (GPIO Input goes L->H
> or H->L) should trigger events in other device drivers. The GPIO value
> can be set by the external-connector/multistate-switch driver
> (notifier) based on its own interrupts.

We also need some way to group things together so that we can understand
that we've got a single connector that can detect multiple things (eg,
understanding that a cable hsa audio and video capability).
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/