From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935243AbaH0RFO (ORCPT ); Wed, 27 Aug 2014 13:05:14 -0400 Received: from mail-qc0-f174.google.com ([209.85.216.174]:58027 "EHLO mail-qc0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755563AbaH0RFM (ORCPT ); Wed, 27 Aug 2014 13:05:12 -0400 Date: Wed, 27 Aug 2014 18:05:03 +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: <20140827170503.GD24579@lee--X1> References: <1409146282-25075-1-git-send-email-k.kozlowski@samsung.com> <1409146282-25075-4-git-send-email-k.kozlowski@samsung.com> <20140827135027.GF6364@lee--X1> <1409147725.25748.1.camel@AMDC1943> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1409147725.25748.1.camel@AMDC1943> 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: > On śro, 2014-08-27 at 14:50 +0100, Lee Jones wrote: > > 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. > > Sure, I'll split it however the compatible here in mfd_cell makes sense > only with this patch. That's completely fine. -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog