From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752575AbdFLObb (ORCPT ); Mon, 12 Jun 2017 10:31:31 -0400 Received: from lelnx194.ext.ti.com ([198.47.27.80]:35675 "EHLO lelnx194.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752317AbdFLOb3 (ORCPT ); Mon, 12 Jun 2017 10:31:29 -0400 Subject: Re: [PATCH] gpio: lp87565: Add support for GPIO To: Linus Walleij References: <1496286631-6295-1-git-send-email-j-keerthy@ti.com> <74fd6c53-7801-73eb-5236-d7a72c93d715@ti.com> CC: Lee Jones , "linux-gpio@vger.kernel.org" , Tero Kristo , Linux-OMAP , "linux-kernel@vger.kernel.org" , "Andrew F. Davis" From: Keerthy Message-ID: <167f263d-b339-10e0-8ae2-3dea11874894@ti.com> Date: Mon, 12 Jun 2017 20:01:15 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Monday 12 June 2017 07:34 PM, Linus Walleij wrote: > On Sun, Jun 11, 2017 at 6:27 AM, Keerthy wrote: >> On Friday 09 June 2017 02:06 PM, Linus Walleij wrote: > >>> If this IC has several function modes for the pins it should also >>> be a pin controller... I know it is a lot of upfront code, but... it will >>> benefit you in the long run. Is it really just these three pins? >>> >>> Maybe we should merge it into >>> drivers/pinctrl/pinctrl-lp87565.c so that at least file placement does >>> not become a problem later? >> >> No Linus. Only 2 modes. So went along the lines of >> drivers/gpio/gpio-lp873x.c. If you are not okay with this. I can as well >> remove this part. > > It's fine. Sometimes implementing things strictly in very generic frameworks > will become a burden because of unnecessary complexities. > > Can you just document it with some comments so it is clear what > is happening here and what the two modes are? And keep it like this > otherwise. Okay sure. I will do that in v2. Thanks, Keerthy > > Yours, > Linus Walleij >