From: "Tc, Jenny" <jenny.tc@intel.com>
To: "myungjoo.ham@samsung.com" <myungjoo.ham@samsung.com>,
Anton Vorontsov <cbouatmailru@gmail.com>,
"Anton Vorontsov (anton.vorontsov@linaro.org)"
<anton.vorontsov@linaro.org>
Cc: ??? <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 13:00:52 +0000 [thread overview]
Message-ID: <20ADAB092842284E95860F279283C564452531@BGSMSX101.gar.corp.intel.com> (raw)
In-Reply-To: <32212704.282601353409543335.JavaMail.weblogic@epml17>
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="ks_c_5601-1987", Size: 2254 bytes --]
> The "RFC" patch for this feature is now shown at:
> http://git.kernel.org/?p=linux/kernel/git/mzx/extcon.git;a=commit;h=5655a
> eef83addaec77a3b9387a3dd18b6c146dd5
> (Note that "for-add-feature" branch is sort of "RFC" branch)
>
> I'm now considering relaying notifications of data updates possible via the
> notifier block of register-interest. Any inputs are welcomed.
>
>
> Anyway, for the USB issue of "suspend/resume at host-side and current-limit
> at device-side", we will need to 1. update regulator subsystem to have
> notification for current change (it does for enable/disable/voltage-changes)
> 2. let the charger use current-regulator 3. let the one who detects (usb
> driver?) changes at host-side change the current limit of that current-
> regulator 4. let the event from current-regulator relayed via extcon.
> We may use power-supply class as well for this issue. (may need to update if
> power-supply class does not have notifications and suspend/resume states)
>
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.
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
-jtc
ÿôèº{.nÇ+·®+%Ëÿ±éݶ\x17¥wÿº{.nÇ+·¥{±þG«éÿ{ayº\x1dÊÚë,j\a¢f£¢·hïêÿêçz_è®\x03(éÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?¨èÚ&£ø§~á¶iOæ¬z·vØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?I¥
next prev parent reply other threads:[~2012-11-22 18:30 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 [this message]
2012-11-22 20:03 ` Anton Vorontsov
-- 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=20ADAB092842284E95860F279283C564452531@BGSMSX101.gar.corp.intel.com \
--to=jenny.tc@intel.com \
--cc=anish198519851985@gmail.com \
--cc=anton.vorontsov@linaro.org \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=cbouatmailru@gmail.com \
--cc=cw00.choi@samsung.com \
--cc=gregkh@linuxfoundation.org \
--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;
as well as URLs for NNTP newsgroup(s).