mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: anish kumar <anish198519851985@gmail.com>
To: "Tc, Jenny" <jenny.tc@intel.com>
Cc: "myungjoo.ham@samsung.com" <myungjoo.ham@samsung.com>,
	"cw00.choi@samsung.com" <cw00.choi@samsung.com>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: RE: [PATCH] extcon : callback function to read cable property
Date: Thu, 11 Oct 2012 22:47:40 +0900	[thread overview]
Message-ID: <1349963260.8329.1.camel@anish-Inspiron-N5050> (raw)
In-Reply-To: <20ADAB092842284E95860F279283C56439BC4A@BGSMSX101.gar.corp.intel.com>

On Thu, 2012-10-11 at 01:20 +0000, Tc, Jenny wrote:
> > From: anish kumar [mailto:anish198519851985@gmail.com]
> > Sent: Wednesday, October 10, 2012 8:15 PM
> > To: Tc, Jenny
> > Cc: myungjoo.ham@samsung.com; cw00.choi@samsung.com; linux-
> > kernel@vger.kernel.org
> > Subject: Re: [PATCH] extcon : callback function to read cable property
> > 
> > I think the reason why we have extcon is in first place is to only notify the
> > clients of cable connection and disconnection and it is up to the client to
> > decide what else to do with the cable such as finding which state it is in and
> > other details.
> > So I feel this should not be handled in the extcon.
> > 
> > However it is up to the maintainer to decide.
> 
> Once the consumer gets the notification, it needs to take some action. 
> One of the action is to read the cable properties. This can be done 
> by proprietary calls which is known both to the consumer and the provider. 
> My intention is to avoid this proprietary calls. Since both the provider 
> and consumer are communicating with the extcon subsystem , I feel having a 
> callback function of this kind would help to avoid the use of proprietary 
> calls. Also I agree that extcon notifier chains are used to notify the cable 
> state (attach/detach). But if a cable has more than two states (like the 
> charger cable) how do we support it without having a callback function like this? 
> Let the maintainer take the final decision.
Well this use case will keep on growing if we start factor in this kind
of changes and that is why I am opposed to adding any other state.
Maintainer?
> 
> 



  reply	other threads:[~2012-10-11 13:47 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-10 10:23 Jenny TC
2012-10-10 14:45 ` anish kumar
2012-10-11  1:20   ` Tc, Jenny
2012-10-11 13:47     ` anish kumar [this message]
2012-10-17  6:34       ` Tc, Jenny
2012-11-08  1:25         ` Chanwoo Choi
2012-11-09 14:05           ` Tc, Jenny
2012-11-10  4:18             ` anish kumar
2012-11-15  4:05               ` Tc, Jenny
2012-11-15 19:31                 ` anish singh
2012-11-20  1:39                   ` Tc, Jenny
2012-11-20  2:29                     ` Chanwoo Choi
2012-11-20  2:42                       ` Tc, Jenny
2012-11-20  6:10                         ` Chanwoo Choi
2012-11-20  9:14                           ` Tc, Jenny
2012-11-20  9:24                             ` Anton Vorontsov
2012-11-20  9:32                               ` anish singh
2012-11-20 11:08                               ` Tc, Jenny
2012-11-20 11:21                                 ` Anton Vorontsov
2012-10-17  7:08 MyungJoo Ham
2012-10-19  3:13 ` Tc, Jenny
2012-10-20  1:40   ` Chanwoo Choi
2012-10-25  3:18     ` Tc, Jenny

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=1349963260.8329.1.camel@anish-Inspiron-N5050 \
    --to=anish198519851985@gmail.com \
    --cc=cw00.choi@samsung.com \
    --cc=jenny.tc@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=myungjoo.ham@samsung.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®