From: Anton Vorontsov <cbouatmailru@gmail.com>
To: "Tc, Jenny" <jenny.tc@intel.com>
Cc: "myungjoo.ham@samsung.com" <myungjoo.ham@samsung.com>,
??? <cw00.choi@samsung.com>,
anish singh <anish198519851985@gmail.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"myunjoo.ham@gmail.com" <myunjoo.ham@gmail.com>,
"lockwood@android.com" <lockwood@android.com>,
"peterhuewe@gmx.de" <peterhuewe@gmx.de>,
"broonie@opensource.wolfsonmicro.com"
<broonie@opensource.wolfsonmicro.com>,
"gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org>,
"lars@metafoo.de" <lars@metafoo.de>,
"jic23@kernel.org" <jic23@kernel.org>,
"Pallala, Ramakrishna" <ramakrishna.pallala@intel.com>
Subject: Re: Re: [PATCH] extcon : callback function to read cable property
Date: Thu, 22 Nov 2012 12:03:55 -0800 [thread overview]
Message-ID: <20121122200355.GA12397@lizard> (raw)
In-Reply-To: <20ADAB092842284E95860F279283C564452531@BGSMSX101.gar.corp.intel.com>
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=utf-8, Size: 2552 bytes --]
On Thu, Nov 22, 2012 at 01:00:52PM +0000, Tc, Jenny wrote:
[...]
> For this solution to work, the cable provider itself
> need to register with any of these subsystems - power_supply/regulator/charger manager
> IMHO a cable provider shouldn't register itself with any of the subsystem.
>
> For example it cannot register with power_supply subsystem
> since it's not a power_supply. It's just source for a power_supply.
> We register either charger/battery with power supply. I couldn't find a way
> to register the cable with power supply subsystem.
Yes, I guess that doesn't make much sense.
> Anton,
> Do you have any suggestion here?
>
> I think the same case with regulator framework also. A cable doesn¡¯t belong
> to a regulator framework. A cable doesn¡¯t expose any control attribute (current control/voltage
> control). It just have properties (eg current) controlled by external agents (Host machine/wall charger)
>
> And charger manager is a consumer and not a provider. It cannot decide the charger cable capabilities.
>
> I have a modified version of the above patch which uses properties directly.
> https://gitorious.org/linux-charging-framework/linux-charging-framework/commit/ff358373dcb32027ebe1a267fc8b8999a3bd37e4
(Please, always inline the patches.)
I spent some time trying to understand what exactly you're trying to
accomplish and I failed, and that's why:
1. I see only some small snippets of the code, sometimes by means of URLs
and references to another patches, which is hard to follow when you
have like tens of emails in the thread;
2. I believe I still didn't see a user of this callback.
So, basically you're trying to force me to read your mind and guess your
ideas, but as it appears, I'm not good at it. :)
So, please do the following:
- Prepare a complete, but minimal workable solution, a patchset that shows
how exactly you use the new features that you introduce;
- The series must be an all-in-1 patchset, so people won't need to go back
and forth trying to understand how things depend on each other;
- Briefly describe how things work, a typical use-case and how drivers
interact with each other. E.g. which driver registers extcon_device,
which driver reads mA field, which driver sets mA field (and based on
what information), which driver listens for the extcon events, which
driver produces the extcon events, etc. No need for lengthy explanations
about why you made the decisions, just a brief explanation of how things
currently work and interact.
Thanks,
Anton.
next prev parent reply other threads:[~2012-11-22 20:07 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-20 11:05 Re: [PATCH] extcon : callback function to read cable property MyungJoo Ham
2012-11-22 13:00 ` Tc, Jenny
2012-11-22 20:03 ` Anton Vorontsov [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-11-20 3:45 MyungJoo Ham
2012-10-25 8:37 MyungJoo Ham
2012-10-25 9:24 ` Tc, Jenny
2012-11-03 2:57 ` Tc, Jenny
2012-10-17 7:08 MyungJoo Ham
2012-10-19 3:13 ` 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=20121122200355.GA12397@lizard \
--to=cbouatmailru@gmail.com \
--cc=anish198519851985@gmail.com \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=cw00.choi@samsung.com \
--cc=gregkh@linuxfoundation.org \
--cc=jenny.tc@intel.com \
--cc=jic23@kernel.org \
--cc=lars@metafoo.de \
--cc=linux-kernel@vger.kernel.org \
--cc=lockwood@android.com \
--cc=myungjoo.ham@samsung.com \
--cc=myunjoo.ham@gmail.com \
--cc=peterhuewe@gmx.de \
--cc=ramakrishna.pallala@intel.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