Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752371AbcD2JcT (ORCPT ); Fri, 29 Apr 2016 05:32:19 -0400 Received: from hqemgate14.nvidia.com ([216.228.121.143]:1511 "EHLO hqemgate14.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751043AbcD2JcM (ORCPT ); Fri, 29 Apr 2016 05:32:12 -0400 X-PGP-Universal: processed; by hqnvupgp07.nvidia.com on Fri, 29 Apr 2016 02:31:29 -0700 Message-ID: <5723274B.3050209@nvidia.com> Date: Fri, 29 Apr 2016 14:50:11 +0530 From: Laxman Dewangan User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: Linus Walleij CC: Stephen Warren , Alexandre Courbot , Thierry Reding , "linux-gpio@vger.kernel.org" , "linux-tegra@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH V5 0/4] gpio: tegra: Cleanups and support for debounce References: <1461580714-22479-1-git-send-email-ldewangan@nvidia.com> In-Reply-To: X-Originating-IP: [10.19.65.30] X-ClientProxiedBy: DRHKMAIL102.nvidia.com (10.25.59.16) To bgmail102.nvidia.com (10.25.59.11) Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1114 Lines: 34 On Friday 29 April 2016 02:37 PM, Linus Walleij wrote: > On Mon, Apr 25, 2016 at 12:38 PM, Laxman Dewangan wrote: > >> Add support for the debounce as Tegra210 support debounce in HW. >> Also do the clenaups to remove all global variables. > OK this v5 is applied. > > Laxman does this GPIO also have open drain and/or open source > handling? Some of the pins support the open drain and these are part of pinmux register set. For that we have property for setting open drain. Is it possible to link the gpio APIs to pincontrol for setting that pin? > Then you might want to look into supporting that too as I just added > support for native single-endedness to gpiolib, c.f.: > http://marc.info/?l=linux-gpio&m=146011780301280&w=2 Yaah, Some of PMIC's (which I am handling) gpios support open drain and I think I can have changes for the PMIC gpio driver. > > It would be nice if you also implement .get_direction() which > makes debugfs and initial reading of the state of the lines > more accurate. Sure, this can be implemented. Will post the patch on top of the series soon.