From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934621AbaH0Nug (ORCPT ); Wed, 27 Aug 2014 09:50:36 -0400 Received: from mail-qg0-f43.google.com ([209.85.192.43]:43520 "EHLO mail-qg0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934253AbaH0Nue (ORCPT ); Wed, 27 Aug 2014 09:50:34 -0400 Date: Wed, 27 Aug 2014 14:50:27 +0100 From: Lee Jones To: Krzysztof Kozlowski Cc: Sebastian Reichel , Dmitry Eremin-Solenikov , David Woodhouse , linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, linux-pm@vger.kernel.org, Samuel Ortiz , Liam Girdwood , Mark Brown , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Kyungmin Park , Marek Szyprowski , Bartlomiej Zolnierkiewicz , Jenny Tc Subject: Re: [RESEND PATCH v3 3/6] charger: max14577: Configure battery-dependent settings from DTS and sysfs Message-ID: <20140827135027.GF6364@lee--X1> References: <1409146282-25075-1-git-send-email-k.kozlowski@samsung.com> <1409146282-25075-4-git-send-email-k.kozlowski@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1409146282-25075-4-git-send-email-k.kozlowski@samsung.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > Cc: Kyungmin Park > Cc: Dmitry Eremin-Solenikov > Cc: David Woodhouse > Cc: Jenny Tc > Cc: Mark Rutland > Acked-by: Lee Jones > --- > 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