From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757968AbcDELPA (ORCPT ); Tue, 5 Apr 2016 07:15:00 -0400 Received: from mga01.intel.com ([192.55.52.88]:53071 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757479AbcDELO7 (ORCPT ); Tue, 5 Apr 2016 07:14:59 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,443,1455004800"; d="scan'208";a="778374430" Subject: Re: [PATCH v4 6/6] pinctrl: baytrail: Add debounce configuration To: Linus Walleij References: <1459508407-22011-1-git-send-email-cristina.ciocan@intel.com> <1459508407-22011-7-git-send-email-cristina.ciocan@intel.com> Cc: Mathias Nyman , Mika Westerberg , Heikki Krogerus , "linux-gpio@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Irina Tirdea , Octavian Purdila From: Cristina Ciocan Message-ID: <57039EFB.4080508@intel.com> Date: Tue, 5 Apr 2016 14:18:19 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.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 04.04.2016 17:17, Linus Walleij wrote: > On Fri, Apr 1, 2016 at 1:00 PM, Cristina Ciocan > wrote: > >> Make debounce setting and getting functionality available when >> configurating a certain pin. >> >> Signed-off-by: Cristina Ciocan > > Patch applied. > > And as this is another case where GPIO has a debounce > setting call: gpiod_set_debounce() this is another case for > my suggested pinctrl_gpio_set_config() as that call is > currently not implemented in your corresponding .set_debounce() > callback for the GPIO chip, but could easily be handled > by calling back into the pinctrl back-end, right? > Yes, it can be easily handled by calling back byt_pin_config_set. I will look into what other options are often used and would make sense to be exported in the gpio layer as well and come back with a more detailed answer. Thanks