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] [day] [month] [year] [list]
Date:   Tue, 5 May 2020 18:27:42 +0200
From:   Bartosz Golaszewski <bgolaszewski@...libre.com>
To:     Kent Gibson <warthog618@...il.com>
Cc:     LKML <linux-kernel@...r.kernel.org>,
        linux-gpio <linux-gpio@...r.kernel.org>,
        Linus Walleij <linus.walleij@...aro.org>
Subject: Re: [PATCH] tools/gpio: add bias flags to lsgpio

czw., 30 kwi 2020 o 02:10 Kent Gibson <warthog618@...il.com> napisaƂ(a):
>
> Add display of the bias flags.
>
> Signed-off-by: Kent Gibson <warthog618@...il.com>
> ---
>  tools/gpio/lsgpio.c | 12 ++++++++++++
>  1 file changed, 12 insertions(+)
>
> diff --git a/tools/gpio/lsgpio.c b/tools/gpio/lsgpio.c
> index e1430f504c13..8a71ad36f83b 100644
> --- a/tools/gpio/lsgpio.c
> +++ b/tools/gpio/lsgpio.c
> @@ -49,6 +49,18 @@ struct gpio_flag flagnames[] = {
>                 .name = "open-source",
>                 .mask = GPIOLINE_FLAG_OPEN_SOURCE,
>         },
> +       {
> +               .name = "pull-up",
> +               .mask = GPIOLINE_FLAG_BIAS_PULL_UP,
> +       },
> +       {
> +               .name = "pull-down",
> +               .mask = GPIOLINE_FLAG_BIAS_PULL_DOWN,
> +       },
> +       {
> +               .name = "bias-disabled",
> +               .mask = GPIOLINE_FLAG_BIAS_DISABLE,
> +       },
>  };
>
>  void print_flags(unsigned long flags)
> --
> 2.26.2
>

Patch applied, thanks!

Bart

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ