[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <201202241253.52336.arnd@arndb.de>
Date: Fri, 24 Feb 2012 12:53:52 +0000
From: Arnd Bergmann <arnd@...db.de>
To: MyungJoo Ham <myungjoo.ham@...il.com>
Cc: Mark Brown <broonie@...nsource.wolfsonmicro.com>,
linux-kernel@...r.kernel.org, NeilBrown <neilb@...e.de>,
Randy Dunlap <rdunlap@...otime.net>,
Mike Lockwood <lockwood@...roid.com>,
Arve Hjønnevag <arve@...roid.com>,
Kyungmin Park <kyungmin.park@...sung.com>,
Donggeun Kim <dg77.kim@...sung.com>,
gregkh@...uxfoundation.org,
Linus Walleij <linus.walleij@...aro.org>,
Dmitry Torokhov <dmitry.torokhov@...il.com>,
Morten CHRISTIANSEN <morten.christiansen@...ricsson.com>,
John Stultz <john.stultz@...aro.org>,
Joerg Roedel <joerg.roedel@....com>
Subject: Re: [PATCH v5 4/5] Extcon: support mutually exclusive relation between cables.
On Friday 24 February 2012, MyungJoo Ham wrote:
> Ok, here goes an example how it would look like in the next revision of Extcon.
> I think this addresses your comments on multistate-support patch (3/5)
>
> /sys/class/extcon/max8997-muic.0/
> name: "max8997-muic.0"
> state: 0x00000009 /* RW. 0xblahblah format
> for both read and write */
> mutually_exclusive/
> rule.0: 0x3
> rule.1: 0x5
> rule.2: 0xC
> cable.0/
> name: "VGA"
> state: 1 /* RW: 0 or 1 */
> mutually_exclusive/
> cable.1
> cable.2
> cable.1/
> ...
>
>
> How about this?
>
I would leave out the global mutually_exclusive/ directory because that
is redundant and I see no benefit in it. Having the redundant "state"
files is probably a good idea because the global one lets you make
atomic changes of multiple cables and the other are very convenient.
What kind of object is /sys/class/extcon/max8997-muic.0/cable.0/mutually_exclusive?
Is that a file with two lines, a directory with two empty files or
a directory with symlinks to the other directories?
Arnd
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists