Thread (13 messages) 13 messages, 2 authors, 2014-08-27

Re: [RESEND PATCH v3 3/6] charger: max14577: Configure battery-dependent settings from DTS and sysfs

flat view

From: Lee Jones <hidden>
Date: 2014-08-27 13:50:36
Also in: linux-pm, lkml

On Wed, 27 Aug 2014, Krzysztof Kozlowski wrote:
Remove hard-coded values for:
 - Fast Charge current,
 - End Of Charge current,
 - Fast Charge timer,
 - Overvoltage Protection Threshold,
 - Battery Constant Voltage,
and use DTS or sysfs to configure them. This allows using the max14577 charger
driver with different batteries.

Now the charger driver requires valid configuration data from DTS. In
case of wrong configuration data it fails during probe. Patch adds
of_compatible to the charger mfd cell in MFD driver core.

The fast charge timer is configured through sysfs entry.

Signed-off-by: Krzysztof Kozlowski <redacted>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Dmitry Eremin-Solenikov <redacted>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Jenny Tc <redacted>
Cc: Mark Rutland <mark.rutland@arm.com>
Acked-by: Lee Jones <redacted>
---
 drivers/mfd/max14577.c               |   5 +-
Hmm... not sure why I Acked this.  The code looks okay, but can you
break out the MFD changed into a separate patch please?  You can add
my Ack to the broken out patch though.

-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help