All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arnd Bergmann <arnd@arndb.de>
To: MyungJoo Ham <myungjoo.ham@gmail.com>
Cc: "Mark Brown" <broonie@opensource.wolfsonmicro.com>,
	linux-kernel@vger.kernel.org, NeilBrown <neilb@suse.de>,
	"Randy Dunlap" <rdunlap@xenotime.net>,
	"Mike Lockwood" <lockwood@android.com>,
	"Arve Hjønnevag" <arve@android.com>,
	"Kyungmin Park" <kyungmin.park@samsung.com>,
	"Donggeun Kim" <dg77.kim@samsung.com>,
	gregkh@linuxfoundation.org,
	"Linus Walleij" <linus.walleij@linaro.org>,
	"Dmitry Torokhov" <dmitry.torokhov@gmail.com>,
	"Morten CHRISTIANSEN" <morten.christiansen@stericsson.com>,
	"John Stultz" <john.stultz@linaro.org>,
	"Joerg Roedel" <joerg.roedel@amd.com>
Subject: Re: [PATCH v5 4/5] Extcon: support mutually exclusive relation between cables.
Date: Fri, 24 Feb 2012 12:53:52 +0000	[thread overview]
Message-ID: <201202241253.52336.arnd@arndb.de> (raw)
In-Reply-To: <CAJ0PZbR+AEpfNcX0wMHdVQfseC+fMxJjyaM25378miLnnfV0+w@mail.gmail.com>

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

  reply	other threads:[~2012-02-24 12:54 UTC|newest]

Thread overview: 68+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-11  9:46 [PATCH v3 0/4] introduce External Connector Class (extcon) MyungJoo Ham
2012-01-11  9:46 ` [PATCH v3 1/4] Extcon (external connector): import Android's switch class and modify MyungJoo Ham
2012-01-11  9:46 ` [PATCH v3 2/4] Extcon: support notification based on the state changes MyungJoo Ham
2012-01-11  9:46 ` [PATCH v3 3/4] Extcon: support multiple states at a device MyungJoo Ham
2012-01-11  9:46 ` [PATCH v3 4/4] Extcon: support mutually exclusive relation between cables MyungJoo Ham
2012-01-20  1:01 ` [PATCH v4 0/4] introduce External Connector Class (extcon) MyungJoo Ham
2012-01-20  1:01   ` [PATCH v4 1/4] Extcon (external connector): import Android's switch class and modify MyungJoo Ham
2012-01-20  1:01   ` [PATCH v4 2/4] Extcon: support notification based on the state changes MyungJoo Ham
2012-01-20  1:01   ` [PATCH v4 3/4] Extcon: support multiple states at a device MyungJoo Ham
2012-01-20  1:01   ` [PATCH v4 4/4] Extcon: support mutually exclusive relation between cables MyungJoo Ham
2012-02-10  6:40   ` [PATCH v5 0/5] Introduce External Connector Class (extcon) MyungJoo Ham
2012-02-10  6:40     ` [PATCH v5 1/5] Extcon (external connector): import Android's switch class and modify MyungJoo Ham
2012-02-20  1:54       ` Mark Brown
2012-02-20  6:17         ` MyungJoo Ham
2012-02-20 15:45           ` Mark Brown
2012-02-10  6:40     ` [PATCH v5 2/5] Extcon: support notification based on the state changes MyungJoo Ham
2012-02-20  2:20       ` Mark Brown
2012-02-10  6:40     ` [PATCH v5 3/5] Extcon: support multiple states at a device MyungJoo Ham
2012-02-20  2:24       ` Mark Brown
2012-02-20  7:02         ` MyungJoo Ham
2012-02-22 10:07       ` Arnd Bergmann
2012-02-10  6:40     ` [PATCH v5 4/5] Extcon: support mutually exclusive relation between cables MyungJoo Ham
2012-02-20  2:27       ` Mark Brown
2012-02-22  8:23         ` MyungJoo Ham
2012-02-22 10:00           ` Arnd Bergmann
2012-02-24  4:56             ` MyungJoo Ham
2012-02-24 12:53               ` Arnd Bergmann [this message]
2012-02-27  6:47                 ` MyungJoo Ham
2012-02-10  6:40     ` [PATCH v5 5/5] Extcon: adc-jack driver to support 3.5 pi or simliar devices MyungJoo Ham
2012-02-10 16:25       ` Mark Brown
2012-02-14  2:22         ` MyungJoo Ham
2012-02-14  5:58           ` Mark Brown
2012-02-27 12:15     ` [PATCH v6 0/5] Introduce External Connector Class (extcon) MyungJoo Ham
2012-02-27 12:15       ` MyungJoo Ham
2012-02-27 12:15       ` [PATCH v6 1/5] Extcon (external connector): import Android's switch class and modify MyungJoo Ham
2012-02-27 12:15         ` MyungJoo Ham
2012-03-09 12:41         ` Mark Brown
2012-03-09 12:41           ` Mark Brown
2012-03-12  8:06           ` MyungJoo Ham
2012-03-12  8:06             ` MyungJoo Ham
2012-03-29 22:27           ` Erik Gilling
2012-03-29 22:27             ` Erik Gilling
2012-03-30  8:56             ` MyungJoo Ham
2012-03-30  8:56               ` MyungJoo Ham
2012-03-30 10:14               ` Mark Brown
2012-03-30 10:14                 ` Mark Brown
2012-03-30 10:07             ` Mark Brown
2012-03-30 10:07               ` Mark Brown
2012-03-30 17:29               ` Erik Gilling
2012-03-30 17:29                 ` Erik Gilling
2012-03-30 17:38                 ` Dima Zavin
2012-03-30 17:38                   ` Dima Zavin
2012-04-02  5:09                   ` MyungJoo Ham
2012-04-02  5:09                     ` MyungJoo Ham
2012-03-31 10:19                 ` Mark Brown
2012-03-31 10:19                   ` Mark Brown
2012-02-27 12:15       ` [PATCH v6 2/5] Extcon: support generic GPIO extcon driver MyungJoo Ham
2012-02-27 12:15         ` MyungJoo Ham
2012-03-29 22:37         ` Stephen Boyd
2012-03-29 22:37           ` Stephen Boyd
2012-03-30  8:33           ` MyungJoo Ham
2012-03-30  8:33             ` MyungJoo Ham
2012-02-27 12:15       ` [PATCH v6 3/5] Extcon: support notification based on the state changes MyungJoo Ham
2012-02-27 12:15         ` MyungJoo Ham
2012-02-27 12:15       ` [PATCH v6 4/5] Extcon: support multiple states at a device MyungJoo Ham
2012-02-27 12:15         ` MyungJoo Ham
2012-02-27 12:15       ` [PATCH v6 5/5] Extcon: support mutually exclusive relation between cables MyungJoo Ham
2012-02-27 12:15         ` MyungJoo Ham

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201202241253.52336.arnd@arndb.de \
    --to=arnd@arndb.de \
    --cc=arve@android.com \
    --cc=broonie@opensource.wolfsonmicro.com \
    --cc=dg77.kim@samsung.com \
    --cc=dmitry.torokhov@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=joerg.roedel@amd.com \
    --cc=john.stultz@linaro.org \
    --cc=kyungmin.park@samsung.com \
    --cc=linus.walleij@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lockwood@android.com \
    --cc=morten.christiansen@stericsson.com \
    --cc=myungjoo.ham@gmail.com \
    --cc=neilb@suse.de \
    --cc=rdunlap@xenotime.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.