[PATCH] extcon : register for cable interest by cable name

2012-10-09 Thread Jenny TC
for the charger driver to know which extcon device it should use. This patch enables the support for registering interest for a cable just by cable name wihtout specifying the extcon device name Signed-off-by: Jenny TC jenny...@intel.com --- drivers/extcon/extcon-class.c | 52

[PATCH] extcon : add charger supported as per spec

2012-10-09 Thread Jenny TC
Add support for cable names as per USB charging spec 1.2 Also add cable name for AC adapter. This standardises the cable names Signed-off-by: Jenny TC jenny...@intel.com --- drivers/extcon/extcon-class.c |5 + include/linux/extcon.h|5 + 2 files changed, 10 insertions

[PATCH] extcon : callback function to read cable property

2012-10-09 Thread Jenny TC
the properties of the cable may vary based on the state. FOr example in SUSPENDED state platforms can support 0/100/500/950(USB 3.0) mA based on the HW. To initiate charging the consumer should be able to get the charger properties dynamically. Signed-off-by: Jenny TC jenny...@intel.com

[PATCH V2] power_supply : Introduce battery identification framework

2012-10-12 Thread Jenny TC
management drivers) can register for notification from the battery id drivers using the APIs from this framework Signed-off-by: Jenny TC jenny...@intel.com Signed-off-by: adavidra ajay.thomas.david.rajamanic...@intel.com --- V1: Submitted the initialcode V2: Added file headers drivers/power/Kconfig

[PATCH V2] extcon : register for cable interest by cable name

2012-10-17 Thread Jenny TC
for the charger driver to know which extcon device it should use. This patch enables the support for registering interest for a cable just by cable name wihtout specifying the extcon device name Signed-off-by: Jenny TC jenny...@intel.com --- v1: Initial submit V2: Removed the new API and modified

[PATCH 0/7] power_supply: Introduce charging Framework

2012-10-18 Thread Jenny TC
and set a specific set of power supply properties. The driver can convert these values to the hardware configurations to setup charging. Jenny TC (7): power_supply : Introduce battery identification framework power_supply: Add charger control properties power_supply : add supported charger

[PATCH 1/7] power_supply : Introduce battery identification framework

2012-10-18 Thread Jenny TC
management drivers) can register for notification from the battery id drivers using the APIs from this framework Signed-off-by: Jenny TC jenny...@intel.com Signed-off-by: adavidra ajay.thomas.david.rajamanic...@intel.com --- drivers/power/Kconfig|8 drivers/power/Makefile

[PATCH 2/7] power_supply: Add charger control properties

2012-10-18 Thread Jenny TC
this patch adds/modify the power supply properties to meet the requirements for charger control Signed-off-by: Jenny TC jenny...@intel.com --- drivers/power/power_supply_sysfs.c | 16 include/linux/power_supply.h | 24 2 files changed, 28 insertions

[PATCH 3/7] power_supply : add supported charger cable feature

2012-10-18 Thread Jenny TC
for each cable types Signed-off-by: Jenny TC jenny...@intel.com --- include/linux/power_supply.h | 16 1 file changed, 16 insertions(+) diff --git a/include/linux/power_supply.h b/include/linux/power_supply.h index 7c06956..eea1709 100644 --- a/include/linux/power_supply.h +++ b

[PATCH 4/7] power_supply: add throttle state

2012-10-18 Thread Jenny TC
a structure to define the charger throttle actions. Also this patch adds a throttle_states field to the struct power_supply which can be used by the charger driver to define it's throttle actions for different states Signed-off-by: Jenny TC jenny...@intel.com --- include/linux/power_supply.h

[PATCH 5/7] power_supply: Introduce Power Supply charging framework

2012-10-18 Thread Jenny TC
be implemented by exposing get_property and set property callbacks. Signed-off-by: Jenny TC jenny...@intel.com --- drivers/power/Kconfig|8 + drivers/power/Makefile |1 + drivers/power/power_supply_charger.c | 634 ++ drivers/power

[PATCH 6/7] power_supply: enable charger framework callbacks

2012-10-18 Thread Jenny TC
The charger framework needs to be notified on registering a new charger, on power supply changed event or on a thermal throttle request. This patch enables support for the same Signed-off-by: Jenny TC jenny...@intel.com --- drivers/power/power_supply.h | 20 drivers

[PATCH 7/7] power_supply: Introduce PSE compliant algorithm

2012-10-18 Thread Jenny TC
of the battery charging profile. Signed-off-by: Jenny TC jenny...@intel.com --- drivers/power/Kconfig | 12 ++ drivers/power/Makefile|1 + drivers/power/charging_algo_pse.c | 79 + include/linux/power/battery_id.h | 47

[PATCH] kernel_notifier: register conditional raw notifier

2012-08-07 Thread Jenny TC
Introduce a new API raw_notifier_chain_cond_register to add a notifier to a raw notifier chain, only if notifier not already present in the chain. Signed-off-by: Jenny TC jenny...@intel.com --- kernel/notifier.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/kernel

[PATCH v2] kernel_notifier: register conditional raw notifier

2012-08-08 Thread Jenny TC
Introduce a new API raw_notifier_chain_cond_register to add a notifier to a raw notifier chain, only if notifier not already present in the chain. Signed-off-by: Jenny TC jenny...@intel.com --- v1 * Added API definition v2 * Added API decalarion include/linux/notifier.h |2 ++ kernel

[PATCH] EXTCON: Get and set cable properties

2012-11-27 Thread Jenny TC
the extcon_cable_get_data() to get the cable properties irrespective of who provides the cable data. This gives a single interface for setting and getting the cable properties. Signed-off-by: Jenny TC jenny...@intel.com --- drivers/extcon/extcon-class.c | 30

[PATCH] power_supply: Add power_supply notifier

2013-07-25 Thread Jenny TC
-by: Jenny TC jenny...@intel.com --- drivers/power/power_supply_core.c | 18 ++ include/linux/power_supply.h |7 +++ 2 files changed, 25 insertions(+) diff --git a/drivers/power/power_supply_core.c b/drivers/power/power_supply_core.c index 3b2d5df..a5779b3 100644

[PATCH 1/3] power_supply: Add charger control properties

2013-07-14 Thread Jenny TC
-by: Jenny TC jenny...@intel.com --- drivers/power/power_supply_sysfs.c |8 include/linux/power_supply.h |8 2 files changed, 16 insertions(+) diff --git a/drivers/power/power_supply_sysfs.c b/drivers/power/power_supply_sysfs.c index 29178f7..643971c 100644

[PATCH 3/3] power_supply: add throttle state

2013-07-14 Thread Jenny TC
a structure to define the charger throttle actions. Also this patch adds a throttle_states field to the struct power_supply which can be used by the charger driver to define it's throttle actions for different states Signed-off-by: Jenny TC jenny...@intel.com --- include/linux/power_supply.h

[PATCH 2/3] power_supply : add charger cable properties

2013-07-14 Thread Jenny TC
way to do define, it's good to have a enum which has the bitmask definition for each cable types Signed-off-by: Jenny TC jenny...@intel.com --- include/linux/power_supply.h | 38 ++ 1 file changed, 38 insertions(+) diff --git a/include/linux/power_supply.h b

Re: [PATCH 3.14] power_supply: don't export power_supply_notifier

2014-02-25 Thread Jenny Tc
On Fri, Feb 21, 2014 at 02:19:28PM +0100, Johannes Berg wrote: From: Johannes Berg johannes.b...@intel.com Since there are registration/unregistration functions and the invocation is in the core code, there's no need to export the notifier chain head, make it static instead. This is a

Re: [PATCH 4/4] power_supply: bq24261 charger driver

2014-02-25 Thread Jenny Tc
On Fri, Feb 21, 2014 at 03:44:00PM +0100, Pavel Machek wrote: Hi! +static inline int bq24261_set_cv(struct bq24261_charger *chip, int cv) +{ + int bat_volt; + int ret; + u8 reg_val; + u8 vindpm_val = 0x0; + + /* + * Setting

Re: [PATCH 3/4] power_supply: Introduce PSE compliant algorithm

2014-02-25 Thread Jenny Tc
On Fri, Feb 21, 2014 at 03:45:29PM +0100, Pavel Machek wrote: On Thu 2014-02-20 10:46:55, Jenny Tc wrote: On Tue, Feb 04, 2014 at 12:36:40PM +0100, Pavel Machek wrote: --- a/drivers/power/Kconfig +++ b/drivers/power/Kconfig @@ -22,6 +22,19 @@ config POWER_SUPPLY_CHARGER

Re: [PATCH 3/4] power_supply: Introduce PSE compliant algorithm

2014-02-27 Thread Jenny Tc
On Thu, Feb 27, 2014 at 08:47:07PM +0100, Linus Walleij wrote: On Wed, Feb 26, 2014 at 3:54 AM, Jenny Tc jenny...@intel.com wrote: The idea is to allow pluggable charging algorithms. Currently we have only one charging algorithm proposed, but can have other charging algorithms (like

Re: [PATCH 3/4] power_supply: Introduce PSE compliant algorithm

2014-02-27 Thread Jenny Tc
On Thu, Feb 27, 2014 at 09:18:57PM +0100, Linus Walleij wrote: On Tue, Feb 4, 2014 at 6:12 AM, Jenny TC jenny...@intel.com wrote: +static inline bool __is_battery_full + (long volt, long cur, long iterm, unsigned long cv) Overall I wonder if you've run checkpatch on these patches

Re: [PATCH 2/4] power_supply: Introduce generic psy charging driver

2014-02-27 Thread Jenny Tc
On Thu, Feb 27, 2014 at 09:08:01PM +0100, Linus Walleij wrote: On Thu, Feb 20, 2014 at 6:53 AM, Jenny TC jenny...@intel.com wrote: +++ b/include/linux/power/power_supply_charger.h +#define MAX_CUR_VOLT_SAMPLES 3 +#define DEF_CUR_VOLT_SAMPLE_JIFF (30*HZ) Why are things defined

Re: [PATCH 3/4] power_supply: Introduce PSE compliant algorithm

2014-03-02 Thread Jenny Tc
On Fri, Feb 28, 2014 at 11:08:16AM +0100, Pavel Machek wrote: On Fri 2014-02-28 08:37:27, Jenny Tc wrote: On Thu, Feb 27, 2014 at 09:18:57PM +0100, Linus Walleij wrote: On Tue, Feb 4, 2014 at 6:12 AM, Jenny TC jenny...@intel.com wrote: +static inline bool __is_battery_full

[PATCH v7 1/4] power_supply: Add inlmt,iterm, min/max temp props

2014-03-03 Thread Jenny TC
. Indicates the input current for a charging source. POWER_SUPPLY_PROP_CHARGE_TERM_CUR - Charge termination current used to detect the end of charge condition Signed-off-by: Jenny TC jenny...@intel.com --- Documentation/power/power_supply_class.txt |6 ++ drivers/power/power_supply_sysfs.c

[PATCHv7 0/4] power_supply: Introduce power supply charging driver

2014-03-03 Thread Jenny TC
logic out of the charger chip driver and the charger chip driver can just listen to the request from the power supply charging driver to set the charger properties. This can be implemented by exposing get_property and set property callbacks. Jenny TC (4): power_supply: Add inlmt,iterm, min/max

[PATCHv7 3/4] power_supply: Introduce PSE compliant algorithm

2014-03-03 Thread Jenny TC
by the power supply charging driver based on the type of the battery charging profile. Signed-off-by: Jenny TC jenny...@intel.com --- drivers/power/Kconfig | 13 ++ drivers/power/Makefile |1 + drivers/power/charging_algo_pse.c | 204

[PATCHv7 4/4] power_supply: bq24261 charger driver

2014-03-03 Thread Jenny TC
This patch introduces BQ24261 charger driver. The driver makes use of power supply charging driver to setup charging. So the driver does hardware abstraction and handles h/w specific corner cases. The charging logic resides with power supply charging driver Signed-off-by: Jenny TC jenny

Re: [PATCH 3/4] power_supply: Introduce PSE compliant algorithm

2014-03-06 Thread Jenny Tc
On Fri, Mar 07, 2014 at 11:34:14AM +0800, Linus Walleij wrote: On Fri, Feb 28, 2014 at 11:07 AM, Jenny Tc jenny...@intel.com wrote: On Thu, Feb 27, 2014 at 09:18:57PM +0100, Linus Walleij wrote: On Tue, Feb 4, 2014 at 6:12 AM, Jenny TC jenny...@intel.com wrote: +static inline bool

Re: [PATCH 2/4] power_supply: Introduce generic psy charging driver

2014-03-06 Thread Jenny Tc
On Fri, Mar 07, 2014 at 11:03:02AM +0800, Linus Walleij wrote: On Fri, Feb 28, 2014 at 12:27 PM, Jenny Tc jenny...@intel.com wrote: On Thu, Feb 27, 2014 at 09:08:01PM +0100, Linus Walleij wrote: On Thu, Feb 20, 2014 at 6:53 AM, Jenny TC jenny...@intel.com wrote: +++ b/include/linux/power

[PATCHv8 3/4] power_supply: Introduce PSE compliant algorithm

2014-03-06 Thread Jenny TC
by the power supply charging driver based on the type of the battery charging profile. Signed-off-by: Jenny TC jenny...@intel.com --- drivers/power/Kconfig | 15 ++ drivers/power/Makefile |1 + drivers/power/charging_algo_pse.c | 204

[PATCHv8 1/4] power_supply: Add inlmt,iterm, min/max temp props

2014-03-06 Thread Jenny TC
. Indicates the input current for a charging source. POWER_SUPPLY_PROP_CHARGE_TERM_CUR - Charge termination current used to detect the end of charge condition Signed-off-by: Jenny TC jenny...@intel.com --- Documentation/power/power_supply_class.txt |6 ++ drivers/power/power_supply_sysfs.c

[PATCHv8 0/4] power_supply: Introduce power supply charging driver

2014-03-06 Thread Jenny TC
be implemented by exposing get_property and set property callbacks. Jenny TC (4): power_supply: Add inlmt,iterm, min/max temp props power_supply: Introduce generic psy charging driver power_supply: Introduce PSE compliant algorithm power_supply: bq24261 charger driver Documentation/power

[PATCHv8 4/4] power_supply: bq24261 charger driver

2014-03-06 Thread Jenny TC
This patch introduces BQ24261 charger driver. The driver makes use of power supply charging driver to setup charging. So the driver does hardware abstraction and handles h/w specific corner cases. The charging logic resides with power supply charging driver Signed-off-by: Jenny TC jenny

Re: power_supply mailing list

2014-03-06 Thread Jenny Tc
On Sat, Feb 01, 2014 at 09:06:48AM -0700, Dmitry Eremin-Solenikov wrote: Hello, On Thu, Jan 30, 2014 at 10:46 PM, Jenny Tc jenny...@intel.com wrote: Do we have any mailing list for power_supply subsystem? If not what about having one - linux-power-sup...@vger.kernel.org? I'm

Re: [PATCHv8 1/4] power_supply: Add inlmt,iterm, min/max temp props

2014-03-09 Thread Jenny Tc
On Fri, Mar 07, 2014 at 09:12:40PM +0100, Pavel Machek wrote: On Fri 2014-03-07 10:59:31, Jenny TC wrote: Add new power supply properties for input current, charge termination current, min and max temperature POWER_SUPPLY_PROP_TEMP_MIN - minimum operatable temperature

Re: [PATCHv8 2/4] power_supply: Introduce generic psy charging driver

2014-03-09 Thread Jenny Tc
On Fri, Mar 07, 2014 at 09:25:20PM +0100, Pavel Machek wrote: Hi, The Power Supply charging driver connects multiple subsystems to do charging in a generic way. The subsystems involves power_supply, thermal and battery communication subsystems (1wire).With this the charging is handled

Re: [PATCH 4/4] power_supply: bq24261 charger driver

2014-02-19 Thread Jenny Tc
On Tue, Feb 04, 2014 at 12:36:21PM +0100, Pavel Machek wrote: +#define BQ24261_MIN_CV 3500 +#define BQ24261_MAX_CV 4440 Other defines use uV as an unit :-(. uV is used if the value is read from psy class. For register configurations uses mV. Will change the name to reflect mV + /* If

Re: [PATCH 3/4] power_supply: Introduce PSE compliant algorithm

2014-02-19 Thread Jenny Tc
On Tue, Feb 04, 2014 at 12:36:40PM +0100, Pavel Machek wrote: --- a/drivers/power/Kconfig +++ b/drivers/power/Kconfig @@ -22,6 +22,19 @@ config POWER_SUPPLY_CHARGER drivers to keep the charging logic outside and the charger driver just need to abstract the charger hardware.

[PATCH 1/4] power_supply: Add inlmt,iterm, min/max temp props

2014-02-19 Thread Jenny TC
. Indicates the input current for a charging source. POWER_SUPPLY_PROP_CHARGE_TERM_CUR - Charge termination current used to detect the end of charge condition Signed-off-by: Jenny TC jenny...@intel.com --- Documentation/power/power_supply_class.txt |6 ++ drivers/power/power_supply_sysfs.c

[PATCH v6 0/4] power_supply: Introduce power supply charging driver

2014-02-19 Thread Jenny TC
and the charger chip driver can just listen to the request from the power supply charging driver to set the charger properties. This can be implemented by exposing get_property and set property callbacks. Jenny TC (4): power_supply: Add inlmt,iterm, min/max temp props power_supply: Introduce generic psy

[PATCH 4/4] power_supply: bq24261 charger driver

2014-02-19 Thread Jenny TC
This patch introduces BQ24261 charger driver. The driver makes use of power supply charging driver to setup charging. So the driver does hardware abstraction and handles h/w specific corner cases. The charging logic resides with power supply charging driver Signed-off-by: Jenny TC jenny

[PATCH 3/4] power_supply: Introduce PSE compliant algorithm

2014-02-19 Thread Jenny TC
by the power supply charging driver based on the type of the battery charging profile. Signed-off-by: Jenny TC jenny...@intel.com --- drivers/power/Kconfig | 13 ++ drivers/power/Makefile |1 + drivers/power/charging_algo_pse.c | 204

Re: [PATCH v3 14/15] charger: max14577: Configure battery-dependent settings from DTS

2014-02-19 Thread Jenny Tc
On Mon, Feb 17, 2014 at 10:05:49AM +0100, Krzysztof Kozlowski wrote: +static inline int max14577_init_eoc(struct max14577_charger *chg, + unsigned int uamp) +{ + unsigned int current_bits = 0xf; + u8 reg_data; + + switch (chg-maxim_core-dev_type) { + case

[PATCH 0/7] power_supply: Introduce Power Supply Charging Framework

2013-09-23 Thread Jenny TC
configurations to setup charging. Jenny TC (7): power_supply: Add charger control properties power_supply : add charger cable properties power_supply: add throttle state power_supply: Add power_supply notifier power_supply : Introduce battery identification framework power_supply: Introduce Power

[PATCH 7/7] power_supply: Introduce PSE compliant algorithm

2013-09-23 Thread Jenny TC
of the battery charging profile. Change-Id: I85149c49b3eb3e259fba72f1d066ba2b020717cd Signed-off-by: Jenny TC jenny...@intel.com --- drivers/power/Kconfig| 12 ++ drivers/power/Makefile |1 + drivers/power/charging_algo_pse.c| 202

[PATCH 5/7] power_supply : Introduce battery identification framework

2013-09-23 Thread Jenny TC
management drivers) can register for notification from the battery id drivers using the APIs from this framework Change-Id: I3f77f5fd63e050eba13d7e98fcb6bfbbe817621f Signed-off-by: Jenny TC jenny...@intel.com Signed-off-by: adavidra ajay.thomas.david.rajamanic...@intel.com --- Documentation/power

[PATCH 4/7] power_supply: Add power_supply notifier

2013-09-23 Thread Jenny TC
: Ic05aa85491e73c60dbb80a479974c8a128bc3aa5 Signed-off-by: Jenny TC jenny...@intel.com --- drivers/power/power_supply_core.c | 17 + include/linux/power_supply.h | 10 ++ 2 files changed, 27 insertions(+) diff --git a/drivers/power/power_supply_core.c b/drivers/power

[PATCH 6/7] power_supply: Introduce Power Supply charging framework

2013-09-23 Thread Jenny TC
be implemented by exposing get_property and set property callbacks. Change-Id: I800770a11bb3a9f7a0a7d8d743604fc0daf0a5a8 Signed-off-by: Jenny TC jenny...@intel.com --- Documentation/power/power_supply_class.txt | 174 + drivers/power/Kconfig | 10 + drivers/power/Makefile

[PATCH 2/7] power_supply : add charger cable properties

2013-09-23 Thread Jenny TC
way to do define, it's good to have a enum which has the bitmask definition for each cable types Change-Id: Ia655c0924b7a5a845121342aa8f5d3840cccfbc4 Signed-off-by: Jenny TC jenny...@intel.com --- include/linux/power_supply.h | 38 ++ 1 file changed, 38

[PATCH 1/7] power_supply: Add charger control properties

2013-09-23 Thread Jenny TC
-by: Jenny TC jenny...@intel.com Change-Id: Id91dbbd8f34499afa97b7d8f11ecf5467847f6a8 --- Documentation/power/power_supply_class.txt | 16 drivers/power/power_supply_sysfs.c |8 include/linux/power_supply.h |8 3 files changed, 32

[PATCH 0/7] power_supply: Introduce Power Supply Charging Framework

2013-09-23 Thread Jenny TC
configurations to setup charging. Jenny TC (7): power_supply: Add charger control properties power_supply : add charger cable properties power_supply: add throttle state power_supply: Add power_supply notifier power_supply : Introduce battery identification framework power_supply: Introduce Power

[PATCH 3/7] power_supply: add throttle state

2013-09-23 Thread Jenny TC
a structure to define the charger throttle actions. Also this patch adds a throttle_states field to the struct power_supply which can be used by the charger driver to define it's throttle actions for different states Change-Id: I390a4c7479df4a7e17f73682802e4be05ea58541 Signed-off-by: Jenny TC

Re: [jenny...@intel.com: [RFC] power_supply: Introduce generic psy charging driver]

2014-05-07 Thread Jenny Tc
+static struct charger_cable cable_list[] = { + { +.psy_cable_type = PSY_CHARGER_CABLE_TYPE_USB_SDP, +}, + { +.psy_cable_type = PSY_CHARGER_CABLE_TYPE_USB_CDP, +}, + { +.psy_cable_type = PSY_CHARGER_CABLE_TYPE_USB_DCP, +}, + { +

Re: [PATCH 16/18] charger: max14577: Add support for MAX77836 charger

2014-02-03 Thread Jenny Tc
On Tue, Jan 28, 2014 at 01:18:40PM +0100, Krzysztof Kozlowski wrote: - /* Battery-Charger Constant Voltage (CV) Mode, from SM-V700: 4.35V */ + /* Battery-Charger Constant Voltage (CV) Mode, set to: 4.35V */ Does this charger chip support only 4.35V batteries? If the CV is hard coded to

[PATCH v5 0/4] power_supply: Introduce power supply charging driver

2014-02-03 Thread Jenny TC
to the request from the power supply charging driver to set the charger properties. This can be implemented by exposing get_property and set property callbacks. Jenny TC (4): power_supply: Add inlmt,iterm, min/max temp props power_supply: Introduce generic psy charging driver power_supply: Introduce

[PATCH 1/4] power_supply: Add inlmt,iterm, min/max temp props

2014-02-03 Thread Jenny TC
. Indicates the input current for a charging source. POWER_SUPPLY_PROP_CHARGE_TERM_CUR - Charge termination current used to detect the end of charge condition Signed-off-by: Jenny TC jenny...@intel.com --- Documentation/power/power_supply_class.txt |6 ++ drivers/power/power_supply_sysfs.c

[PATCH 4/4] power_supply: bq24261 charger driver

2014-02-03 Thread Jenny TC
This patch introduces BQ24261 charger driver. The driver makes use of power supply charging driver to setup charging. So the driver does hardware abstraction and handles h/w specific corner cases. The charging logic resides with power supply charging driver Signed-off-by: Jenny TC jenny

[PATCH 3/4] power_supply: Introduce PSE compliant algorithm

2014-02-03 Thread Jenny TC
by the power supply charging driver based on the type of the battery charging profile. Signed-off-by: Jenny TC jenny...@intel.com --- drivers/power/Kconfig | 13 ++ drivers/power/Makefile |1 + drivers/power/charging_algo_pse.c | 198

Re: [PATCH 2/4] power_supply: Introduce generic psy charging driver

2014-02-05 Thread Jenny Tc
On Tue, Feb 04, 2014 at 12:36:30PM +0100, Pavel Machek wrote: +struct psy_charger_context { + bool is_usb_cable_evt_reg; + int psyc_cnt; + int batt_status; + /*cache battery and charger properties */ Comment coding style. Please run you patches through checkpatch. checkpatch

[PATCH v3 0/4] power_supply: Introduce power supply charging driver

2014-01-22 Thread Jenny TC
of the charger chip driver and the charger chip driver can just listen to the request from the power supply charging driver to set the charger properties. This can be implemented by exposing get_property and set property callbacks. Jenny TC (4): power_supply: Add inlmt,iterm, min/max temp props

[PATCH 4/4] power_supply: bq24261 charger driver

2014-01-22 Thread Jenny TC
This patch introduces BQ24261 charger driver. The driver makes use of power supply charging driver to setup charging. So the driver does hardware abstraction and handles h/w specific corner cases. The charging logic resides with power supply charging driver Signed-off-by: Jenny TC jenny

[PATCH 3/4] power_supply: Introduce PSE compliant algorithm

2014-01-22 Thread Jenny TC
by the power supply charging driver based on the type of the battery charging profile. Signed-off-by: Jenny TC jenny...@intel.com --- drivers/power/Kconfig | 12 ++ drivers/power/Makefile |1 + drivers/power/charging_algo_pse.c | 198

[PATCH 1/4] power_supply: Add inlmt,iterm, min/max temp props

2014-01-22 Thread Jenny TC
. Indicates the input current for a charging source. POWER_SUPPLY_PROP_CHARGE_TERM_CUR - Charge termination current used to detect the end of charge condition Change-Id: Ifb40662bbfa24387ac7493ffa7ce01c6fae7e800 Signed-off-by: Jenny TC jenny...@intel.com --- Documentation/power/power_supply_class.txt

Re: [PATCH 1/4] power_supply: Add inlmt,iterm, min/max temp props

2014-01-28 Thread Jenny Tc
On Fri, Jan 24, 2014 at 08:25:19AM -0700, Dmitry Eremin-Solenikov wrote: On 22/01/14 21:19, Jenny TC wrote: Add new power supply properties for input current, charge termination current, min and max temperature POWER_SUPPLY_PROP_TEMP_MIN - minimum operatable temperature

Re: [PATCH 4/4] power_supply: bq24261 charger driver

2014-01-28 Thread Jenny Tc
On Tue, Jan 28, 2014 at 07:14:45AM -0700, Pavel Machek wrote: +#define BQ24261_ICHRG_MASK (0x1F 3) +#define BQ24261_ICHRG_100ma(0x01 3) +#define BQ24261_ICHRG_200ma(0x01 4) +#define BQ24261_ICHRG_400ma(0x01 5) +#define

Re: [PATCH 2/4] power_supply: Introduce Generic Power Supply charging driver

2014-01-29 Thread Jenny Tc
On Sat, Jan 25, 2014 at 10:04:03AM -0700, Pavel Machek wrote: + * Write access using set_property + * Set Maximum charging current + * Action: Configure safety charging registers if any. If not no + actions expected for this. Having property

[PATCH v4 0/4] power_supply: Introduce power supply charging driver

2014-01-30 Thread Jenny TC
properties. This can be implemented by exposing get_property and set property callbacks. Jenny TC (4): power_supply: Add inlmt,iterm, min/max temp props power_supply: Introduce generic psy charging driver power_supply: Introduce PSE compliant algorithm power_supply: bq24261 charger driver

[PATCH 4/4] power_supply: bq24261 charger driver

2014-01-30 Thread Jenny TC
This patch introduces BQ24261 charger driver. The driver makes use of power supply charging driver to setup charging. So the driver does hardware abstraction and handles h/w specific corner cases. The charging logic resides with power supply charging driver Signed-off-by: Jenny TC jenny

[PATCH 3/4] power_supply: Introduce PSE compliant algorithm

2014-01-30 Thread Jenny TC
by the power supply charging driver based on the type of the battery charging profile. Signed-off-by: Jenny TC jenny...@intel.com --- drivers/power/Kconfig | 13 ++ drivers/power/Makefile |1 + drivers/power/charging_algo_pse.c | 198

[PATCH 1/4] power_supply: Add inlmt,iterm, min/max temp props

2014-01-30 Thread Jenny TC
. Indicates the input current for a charging source. POWER_SUPPLY_PROP_CHARGE_TERM_CUR - Charge termination current used to detect the end of charge condition Signed-off-by: Jenny TC jenny...@intel.com --- Documentation/power/power_supply_class.txt |6 ++ drivers/power/power_supply_sysfs.c

power_supply mailing list

2014-01-30 Thread Jenny Tc
Hi, Do we have any mailing list for power_supply subsystem? If not what about having one - linux-power-sup...@vger.kernel.org? Thanks Jenny -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at

Re: [PATCH 4/4] power_supply: bq24261 charger driver

2014-01-30 Thread Jenny Tc
On Thu, Jan 30, 2014 at 06:01:54PM +0100, Pavel Machek wrote: Hi! diff --git a/drivers/power/Makefile b/drivers/power/Makefile index 77535fd..6d184c8 100644 --- a/drivers/power/Makefile +++ b/drivers/power/Makefile @@ -59,4 +59,5 @@ obj-$(CONFIG_CHARGER_BQ24735) +=

[PATCH v2 1/3] power_supply: Add charger control properties

2013-08-11 Thread Jenny TC
-by: Jenny TC jenny...@intel.com --- Documentation/power/power_supply_class.txt | 16 drivers/power/power_supply_sysfs.c |8 include/linux/power_supply.h |8 3 files changed, 32 insertions(+) diff --git a/Documentation/power

Re: [RFC] power_supply: Introduce generic psy charging driver

2014-04-28 Thread Jenny Tc
On Mon, Apr 28, 2014 at 07:56:06PM +0200, Pavel Machek wrote: On Mon 2014-04-28 22:24:36, Jenny Tc wrote: Dmitry/Pavel, Request your feedback on this. Fixed the comments from Pavel and waiting for your feedback on the changes IIRC, my latest comments were this is completely

[PATCHv9 0/4] power_supply: Introduce power supply charging driver

2014-06-19 Thread Jenny TC
: used msecs_to_jiffies instead of HZ directly, modified Kconfig help text for POWER_SUPPLY_CHARGING_ALGO_PSE v9: Removed string lookups, static cable initialization Jenny TC (4): power_supply: Add inlmt,iterm, min/max temp props power_supply: Introduce generic psy charging driver

[PATCH 3/4] power_supply: Introduce PSE compliant algorithm

2014-06-19 Thread Jenny TC
by the power supply charging driver based on the type of the battery charging profile. Signed-off-by: Jenny TC jenny...@intel.com --- drivers/power/Kconfig | 15 ++ drivers/power/Makefile |1 + drivers/power/charging_algo_pse.c | 211

[PATCH 1/4] power_supply: Add inlmt,iterm, min/max temp props

2014-06-19 Thread Jenny TC
. Indicates the input current for a charging source. POWER_SUPPLY_PROP_CHARGE_TERM_CUR - Charge termination current used to detect the end of charge condition Signed-off-by: Jenny TC jenny...@intel.com --- Documentation/power/power_supply_class.txt |6 ++ drivers/power/power_supply_sysfs.c

[PATCH 4/4] power_supply: bq24261 charger driver

2014-06-19 Thread Jenny TC
This patch introduces BQ24261 charger driver. The driver makes use of power supply charging driver to setup charging. So the driver does hardware abstraction and handles h/w specific corner cases. The charging logic resides with power supply charging driver Signed-off-by: Jenny TC jenny

[PATCH 1/4] power_supply: Add inlmt,iterm, min/max temp props

2014-06-30 Thread Jenny TC
. Indicates the input current for a charging source. POWER_SUPPLY_PROP_CHARGE_TERM_CUR - Charge termination current used to detect the end of charge condition Signed-off-by: Jenny TC jenny...@intel.com --- Documentation/power/power_supply_class.txt |6 ++ drivers/power/power_supply_sysfs.c

[PATCHv10 0/4] power_supply: Introduce power supply charging driver

2014-06-30 Thread Jenny TC
: used msecs_to_jiffies instead of HZ directly, modified Kconfig help text for POWER_SUPPLY_CHARGING_ALGO_PSE v9: Removed string lookups, static cable initialization v10: Fixed bug in algorithm lookup Jenny TC (4): power_supply: Add inlmt,iterm, min/max temp props power_supply: Introduce

[PATCH 4/4] power_supply: bq24261 charger driver

2014-06-30 Thread Jenny TC
This patch introduces BQ24261 charger driver. The driver makes use of power supply charging driver to setup charging. So the driver does hardware abstraction and handles h/w specific corner cases. The charging logic resides with power supply charging driver Signed-off-by: Jenny TC jenny

[PATCH 3/4] power_supply: Introduce PSE compliant algorithm

2014-06-30 Thread Jenny TC
by the power supply charging driver based on the type of the battery charging profile. Signed-off-by: Jenny TC jenny...@intel.com --- drivers/power/Kconfig | 15 +++ drivers/power/Makefile |1 + drivers/power/charging_algo_pse.c | 202

Power Supply Subsystem Maintainer

2014-06-30 Thread Jenny Tc
Hi all, I have few pending patches on power supply subsystem. So far I haven't seen any response from the power supply maintainers. As per the MAINTAINERS entry, the susbsystem is owned by Dmitry Eremin-Solenikov dbarysh...@gmail.com. But not sure he still maintains the susbsystem, as I don't

[PATCH 4/4] power_supply: bq24261 charger driver

2014-07-08 Thread Jenny TC
This patch introduces BQ24261 charger driver. The driver makes use of power supply charging driver to setup charging. So the driver does hardware abstraction and handles h/w specific corner cases. The charging logic resides with power supply charging driver Signed-off-by: Jenny TC jenny

[PATCH 1/4] power_supply: Add inlmt,iterm, min/max temp props

2014-07-08 Thread Jenny TC
by charger. Indicates the input current for a charging source. POWER_SUPPLY_PROP_CHARGE_TERM_CURRENT - Charge termination current used to detect the end of charge condition Signed-off-by: Jenny TC jenny...@intel.com --- Documentation/power/power_supply_class.txt |6 ++ drivers/power

[PATCHv11 0/4] power_supply: Introduce power supply charging driver

2014-07-08 Thread Jenny TC
: used msecs_to_jiffies instead of HZ directly, modified Kconfig help text for POWER_SUPPLY_CHARGING_ALGO_PSE v9: Removed string lookups, static cable initialization v10: Fixed bug in algorithm lookup v11: Few variable name changes for better readability Jenny TC (4): power_supply: Add inlmt

[PATCH 3/4] power_supply: Introduce PSE compliant algorithm

2014-07-08 Thread Jenny TC
by the power supply charging driver based on the type of the battery charging profile. Signed-off-by: Jenny TC jenny...@intel.com --- drivers/power/Kconfig | 15 ++ drivers/power/Makefile |1 + drivers/power/charging_algo_pse.c | 203

Re: Power Supply Subsystem Maintainer

2014-07-01 Thread Jenny Tc
:26:46PM +0200, Belisko Marek wrote: Same on my side (some pending patches) but there was already discussion: https://lkml.org/lkml/2014/5/16/504 On Mon, Jun 30, 2014 at 1:16 PM, Jenny Tc jenny...@intel.com wrote: Hi all, I have few pending patches on power supply subsystem. So far I

[PATCHv12 0/3] power_supply: Introduce power supply charging driver

2014-08-13 Thread Jenny TC
is supported in charger-manager as suggested by Sebastian. Fixed review comments from Sebastian and Pavel Jenny TC (3): power_supply: Introduce generic psy charging driver power_supply: Introduce PSE compliant algorithm power_supply: bq24261 charger driver Documentation/power

[PATCH 1/3] power_supply: Introduce generic psy charging driver

2014-08-13 Thread Jenny TC
the charging logic out of the charger chip driver and the charger chip driver can just listen to the request from the power supply charging driver to set the charger properties. This can be implemented by exposing get_property and set_property callbacks. Signed-off-by: Jenny TC jenny...@intel.com

[PATCH 3/3] power_supply: bq24261 charger driver

2014-08-13 Thread Jenny TC
This patch introduces BQ24261 charger driver. The driver makes use of power supply charging driver to setup charging. So the driver does hardware abstraction and handles h/w specific corner cases. The charging logic resides with power supply charging driver Signed-off-by: Jenny TC jenny

[PATCH 2/3] power_supply: Introduce PSE compliant algorithm

2014-08-13 Thread Jenny TC
by the power supply charging driver based on the type of the battery charging profile. Signed-off-by: Jenny TC jenny...@intel.com --- drivers/power/Kconfig | 15 ++ drivers/power/Makefile |1 + drivers/power/charging_algo_pse.c | 216

[RFC 0/4] Enable power supply charging control

2015-03-06 Thread Jenny TC
introduced in https://lkml.org/lkml/2014/8/13/355 to charger manager. Jenny TC (4): power_supply: Introduce charging object table power: core: Add generic interface to get battery specification. power_supply: Introduce charger control interface charger-manager: Enable psy based charge control

[RFC 3/4] power_supply: Introduce charger control interface

2015-03-06 Thread Jenny TC
properties which exposed in sysfs Signed-off-by: Jenny TC jenny...@intel.com --- include/linux/power_supply.h | 28 1 file changed, 28 insertions(+) diff --git a/include/linux/power_supply.h b/include/linux/power_supply.h index 30145d8e..a80a3ef 100644 --- a/include

[RFC 4/4] charger-manager: Enable psy based charge control

2015-03-06 Thread Jenny TC
either using power supply interface or with regulator interface. The charging is setup based on battery parameters received through the battery info handlers. Signed-off-by: Jenny TC jenny...@intel.com --- drivers/power/charger-manager.c | 486 + include

[RFC 2/4] power: core: Add generic interface to get battery specification.

2015-03-06 Thread Jenny TC
functions to manager the battery specification. Signed-off-by: Jonghwa Lee jonghwa3@samsung.com Signed-off-by: Jenny TC jenny...@intel.com --- drivers/power/power_supply_core.c | 86 + include/linux/power_supply.h | 12 ++ 2 files changed, 98

  1   2   3   >