Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1382687

Re: [PATCH V2 3/3] gpio: tegra: Add support for gpio debounce

From Laxman Dewangan <ldewangan@nvidia.com>
Newsgroups linux.kernel
Subject Re: [PATCH V2 3/3] gpio: tegra: Add support for gpio debounce
Date 2016-04-19 18:40 +0200
Message-ID <rpGQV-1kO-7@gated-at.bofh.it> (permalink)
References <rpABQ-4Lu-5@gated-at.bofh.it> <rpABS-4Lu-47@gated-at.bofh.it> <rpGxA-1bm-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tuesday 19 April 2016 09:41 PM, Stephen Warren wrote:
> On 04/19/2016 03:43 AM, Laxman Dewangan wrote:
>> NVIDIA's Tegra210 support the HW debounce in the GPIO
>> controller for all its GPIO pins.
>>
>> Add support for setting debounce timing by implementing the
>> set_debounce callback of gpiochip.
>
>> diff --git a/drivers/gpio/gpio-tegra.c b/drivers/gpio/gpio-tegra.c
>
>> @@ -327,6 +360,9 @@ static int tegra_gpio_resume(struct device *dev)
>>               tegra_gpio_writel(bank->oe[p], GPIO_OE(gpio));
>>               tegra_gpio_writel(bank->int_lvl[p], GPIO_INT_LVL(gpio));
>>               tegra_gpio_writel(bank->int_enb[p], GPIO_INT_ENB(gpio));
>> +            tegra_gpio_writel(bank->dbc_cnt[p], GPIO_DBC_CNT(gpio));
>> +            tegra_gpio_writel(bank->dbc_enb[p],
>> +                      GPIO_MSK_DBC_EN(gpio));
>
> Why not just write to the "regular" register rather than the mask 
> register here...

There is no regular register for enabling debounce. Only masked register 
exist.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH V2 1/3] gpio: tegra: Don't open code of_device_get_match_data() Laxman Dewangan <ldewangan@nvidia.com> - 2016-04-19 12:00 +0200
  [PATCH V2 2/3] gpio: tegra: Remove the need of keeping device handle for gpio driver Laxman Dewangan <ldewangan@nvidia.com> - 2016-04-19 12:00 +0200
    Re: [PATCH V2 2/3] gpio: tegra: Remove the need of keeping device  handle for gpio driver Thierry Reding <thierry.reding@gmail.com> - 2016-04-19 14:40 +0200
      Re: [PATCH V2 2/3] gpio: tegra: Remove the need of keeping device  handle for gpio driver Laxman Dewangan <ldewangan@nvidia.com> - 2016-04-19 15:00 +0200
        Re: [PATCH V2 2/3] gpio: tegra: Remove the need of keeping device  handle for gpio driver Stephen Warren <swarren@wwwdotorg.org> - 2016-04-19 18:10 +0200
  [PATCH V2 3/3] gpio: tegra: Add support for gpio debounce Laxman Dewangan <ldewangan@nvidia.com> - 2016-04-19 12:00 +0200
    Re: [PATCH V2 3/3] gpio: tegra: Add support for gpio debounce Jon Hunter <jonathanh@nvidia.com> - 2016-04-19 12:50 +0200
      Re: [PATCH V2 3/3] gpio: tegra: Add support for gpio debounce Thierry Reding <thierry.reding@gmail.com> - 2016-04-19 14:40 +0200
    Re: [PATCH V2 3/3] gpio: tegra: Add support for gpio debounce Thierry Reding <thierry.reding@gmail.com> - 2016-04-19 14:40 +0200
      Re: [PATCH V2 3/3] gpio: tegra: Add support for gpio debounce Laxman Dewangan <ldewangan@nvidia.com> - 2016-04-19 15:00 +0200
    Re: [PATCH V2 3/3] gpio: tegra: Add support for gpio debounce Stephen Warren <swarren@wwwdotorg.org> - 2016-04-19 18:20 +0200
      Re: [PATCH V2 3/3] gpio: tegra: Add support for gpio debounce Laxman Dewangan <ldewangan@nvidia.com> - 2016-04-19 18:40 +0200
        Re: [PATCH V2 3/3] gpio: tegra: Add support for gpio debounce Stephen Warren <swarren@wwwdotorg.org> - 2016-04-19 18:40 +0200
  Re: [PATCH V2 1/3] gpio: tegra: Don't open code  of_device_get_match_data() Thierry Reding <thierry.reding@gmail.com> - 2016-04-19 14:10 +0200

csiph-web