lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20111125150049.GB15008@game.jcrosoft.org>
Date:	Fri, 25 Nov 2011 16:00:49 +0100
From:	Jean-Christophe PLAGNIOL-VILLARD <plagnioj@...osoft.com>
To:	Felipe Balbi <balbi@...com>
Cc:	linux-kernel@...r.kernel.org,
	Nicolas Ferre <nicolas.ferre@...el.com>,
	Grant Likely <grant.likely@...retlab.ca>
Subject: Re: [PATCH 2/2] gpiolib: introduce gpio_set_deglitch

On 16:14 Fri 25 Nov     , Felipe Balbi wrote:
> Hi,
> 
> On Fri, Nov 25, 2011 at 03:08:40PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote:
> > this will allow to manage the Glitch Input Filter
> > as present on AT91 as example
> > 
> > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@...osoft.com>
> > Cc: Nicolas Ferre <nicolas.ferre@...el.com>
> > Cc: Grant Likely <grant.likely@...retlab.ca>
> > ---
> >  drivers/gpio/gpiolib.c     |   44 ++++++++++++++++++++++++++++++++++++++++++++
> >  include/asm-generic/gpio.h |    4 ++++
> >  include/linux/gpio.h       |    5 +++++
> >  3 files changed, 53 insertions(+), 0 deletions(-)
> > 
> > diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c
> > index b7e5e75..d2b1833 100644
> > --- a/drivers/gpio/gpiolib.c
> > +++ b/drivers/gpio/gpiolib.c
> > @@ -1563,6 +1563,50 @@ fail:
> >  }
> >  EXPORT_SYMBOL_GPL(gpio_set_pullup);
> >  
> > +/**
> > + * gpio_set_deglitch - sets @deglitch for a @gpio
> > + * @gpio: the gpio to set deglitch
> > + * @deglitch: deglitch level
> > + */
> > +int gpio_set_deglitch(unsigned gpio, unsigned deglitch)
> 
> sounds a lot like debounce, what's the difference ?
deglitch allow you to filter the fact that the line take time to be stable
go to 1 and 0

debounce will set 2 different threshold for changing the state from 0 to 1 and
invertly

Best Regards,
J.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ