From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lee Jones Subject: Re: [PATCH v7 2/5] power: max77843_charger: Add Max77843 charger device driver Date: Fri, 27 Mar 2015 10:08:51 +0000 Message-ID: <20150327100851.GC15988@x1> References: <54FD880E.30903@samsung.com> <1425903199.13415.9.camel@AMDC1943> <54FEF541.6000305@samsung.com> <551119DE.2070402@samsung.com> <551408E0.3060901@samsung.com> <20150326135412.GJ5951@x1> <55149AFC.1080009@samsung.com> <20150327075758.GB15988@x1> <551518C6.9030804@samsung.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from mail-wg0-f48.google.com ([74.125.82.48]:34308 "EHLO mail-wg0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752275AbbC0KI5 (ORCPT ); Fri, 27 Mar 2015 06:08:57 -0400 Received: by wgs2 with SMTP id 2so93971638wgs.1 for ; Fri, 27 Mar 2015 03:08:55 -0700 (PDT) Content-Disposition: inline In-Reply-To: <551518C6.9030804@samsung.com> Sender: linux-input-owner@vger.kernel.org List-Id: linux-input@vger.kernel.org To: Beomho Seo Cc: Krzysztof Kozlowski , Sebastian Reichel , Jaewon Kim , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-pm@vger.kernel.org, linux-input@vger.kernel.org, Inki Dae , SangBae Lee , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Chanwoo Choi , Dmitry Torokhov On Fri, 27 Mar 2015, Beomho Seo wrote: > On 03/27/2015 04:57 PM, Lee Jones wrote: > > On Fri, 27 Mar 2015, Beomho Seo wrote: > >> On 03/26/2015 10:54 PM, Lee Jones wrote: > >>> On Thu, 26 Mar 2015, Beomho Seo wrote: > >>>> On 03/24/2015 05:38 PM, Krzysztof Kozlowski wrote: > >>>>> 2015-03-24 9:01 GMT+01:00 Beomho Seo : > >>>>>> On 03/10/2015 10:44 PM, Beomho Seo wrote: > >>>>>>> On 03/09/2015 09:13 PM, Krzysztof Kozlowski wrote: > >>>>>>>> On pon, 2015-03-09 at 20:46 +0900, Beomho Seo wrote: > >>>>>>>>> On 03/09/2015 08:02 PM, Krzysztof Kozlowski wrote: > >>>>>>>>>> 2015-03-09 1:35 GMT+01:00 Beomho Seo : > >>>>>>>>>>> On 03/08/2015 05:13 AM, Sebastian Reichel wrote: > >>>>>>>>>>>> On Mon, Mar 02, 2015 at 07:10:35PM +0900, Jaewon Kim wro= te: > >>>>>>>>>>>>> From: Beomho Seo > >>>>>>>>>>>>> > >>>>>>>>>>>>> This patch adds device driver of max77843 charger. This= driver provide > >>>>>>>>>>>>> initialize each charging mode(e.g. fast charge, top-off= mode and constant > >>>>>>>>>>>>> charging mode so on.). Additionally, control charging p= aramters to use > >>>>>>>>>>>>> i2c interface. > >>>>>>>>>>>>> > >>>>>>>>>>>>> Cc: Sebastian Reichel > >>>>>>>>>>>>> Signed-off-by: Beomho Seo > >>>>>>>>>>>> > >>>>>>>>>>>> Reviewed-By: Sebastian Reichel > >>>>>>>>>>>> > >>>>>>>>>>>> I can't take it as is, since it depends on the private h= eader file > >>>>>>>>>>>> of PATCHv1. > >>>>>>>>>>>> > >>>>>>>>>>>> -- Sebastian > >>>>>>>>>>>> > >>>>>>>>>>> > >>>>>>>>>>> This patch reviewed by Sebastian. > >>>>>>>>>>> Could you Please merge that your git tree ? > >>>>>>>>>> > >>>>>>>>>> Hi, > >>>>>>>>>> > >>>>>>>>>> ... and again we are adding a new driver for very similar = chipset to > >>>>>>>>>> already supported. I looked at spec and the charger's regi= sters are > >>>>>>>>>> almost the same as for max77693. Their layout and addresse= s are the > >>>>>>>>>> same. I see some minor differences, probably the most impo= rtant would > >>>>>>>>>> be different values current (fast-charge, top-off). But st= ill 90% of > >>>>>>>>>> registers are the same... Do we really have to add new dri= ver? > >>>>>>>>>> > >>>>>>>>>> Best regards, > >>>>>>>>>> Krzysztof > >>>>>>>>>> > >>>>>>>>> > >>>>>>>>> Hi, > >>>>>>>>> > >>>>>>>>> Thank you for your comment. As you say, both chip set are s= imilar. > >>>>>>>>> But new driver need for support max77843. It is support dif= ferent below > >>>>>>>>> - Provide Battery presence information. > >>>>>>>> > >>>>>>>> Another set of power supply properties could be added for th= at chip. > >>>>>>>> This way the get_property() function would be the same but a= ctually the > >>>>>>>> POWER_SUPPLY_PROP_PRESENT won't be called for max77693. > >>>>>>>> > >>>>>>>>> - Can OTG FET control. > >>>>>>>> > >>>>>>>> Where the OTG FET feature is it enabled in your driver? I co= uldn't find > >>>>>>>> it. > >>>>>>>> > >>>>>>> > >>>>>>> Sorry. This driver don't control OTG FET feature. > >>>>>>> > >>>>>>>>> - Bigger Fast charge current, Top Off current Threshold sel= ection. > >>>>>>>>> - Various and bigger OTG current limitation. > >>>>>>>>> - Bigger primary charger termination voltage setting. > >>>>>>>>> - Different maximum input current limit selection(Different= step). > >>>>>>>> > >>>>>>>> Yes, I mentioned some of these differences (the Fast/top-off > >>>>>>>> differences). These are differences in values so it does not= require new > >>>>>>>> driver. There is need to develop new driver just to support = different > >>>>>>>> current (3.0 A instead of 2.1 A) or voltage threshold. > >>>>>>>> > >>>>>>> > >>>>>>> They are different charging current, OTG current limitation, = top off current, > >>>>>>> charging limitation value. In case OTG current limitation dif= ferent not > >>>>>>> limitation value but using register bit(max77843 use[7:6] max= 77693 use[7] > >>>>>>> bit only). Even if this driver not support all feature, some = register > >>>>>>> different with max77693(support value, use register bit). > >>>>>>> > >>>>>>> If this driver will combined with max77693 may even be benefi= cial for > >>>>>>> new Maxim driver. But the present, this driver is related wit= h > >>>>>>> max77843 core driver and max77843-regulator. So I hope this d= river > >>>>>>> merge first. And then will extend two driver(max77843 charger= and max77693 charger). > >>>>> > >>>>> I still prefer merging common drivers into one instead of creat= ing > >>>>> some more of them. > >>>>> However I understand your point and I am not entirely opposed a= gainst. > >>>>> Especially that you invested quite a bit of time for developing= this > >>>>> and my feedback was quite late. To summarize I am fine with you= r > >>>>> approach. > >>>>> > >>>>> Best regards, > >>>>> Krzysztof > >>>>> > >>>> > >>>> Dear Lee Jones, > >>>> > >>>> Could you please merge that your git tree ? > >>> > >>> Sorry, I'm lost. Why am I taking this though the MFD tree? What > >>> patches are left? Where are they going? Am I taking any other > >>> patches? > >>> > >> > >> Max77843 charger driver is max77843 mfd core dependency. > >=20 > > What kind of dependancy? Runtime or build? Where is the patch tha= t > > it depends on? Is it in -next for in Mainline already? > >=20 >=20 > Build. Max77843 charger driver use max77843-private.h. It is in for-m= fd-next branch. >=20 > c7f585f mfd: max77843: Add max77843 MFD driver core driver If that's the case, then yes, I can take this patch through the MFD tree with the correct Acks applied. --=20 Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org =E2=94=82 Open source software for ARM SoCs =46ollow Linaro: Facebook | Twitter | Blog -- To unsubscribe from this list: send the line "unsubscribe linux-input" = in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html