Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp912211ybj; Tue, 5 May 2020 09:32:09 -0700 (PDT) X-Google-Smtp-Source: APiQypIMcf3H5o0q+ud0xkzGZA+DYBHUTcUjSOzVSDYkhnaT0+Ft4k4Jh1eBWWEL7OdUMno646hc X-Received: by 2002:a17:906:3291:: with SMTP id 17mr3370258ejw.343.1588696328935; Tue, 05 May 2020 09:32:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588696328; cv=none; d=google.com; s=arc-20160816; b=BMzrPDSkftP109NgqHMA/OpYHiFFa6bopG5LRYo69przboZJ8xLZqeK96mavEdLmCS +88FWy7v4HuX/2lCh0RqFcldNqq1C7wLSruLU8rkVSqMG4Q9Agsv5YlgF/6MJ6fwpptN YLPt5jih7r4yRsnmwLd6h9tAc3uErwwyWf+4KM4VnRJh7siRG1mnW7uQDnGw0gj8EsY4 OYUEw1pN4x4LEa7SoIJNFqqUj48zI+5D3ikmHVeGy/o2PlrEePNsD4JaqUFN9SKr0s96 F3lUuUhrfdAimEZCS4mLMCX+KUMjURHNLF5ElbmFp2hExTR6yi+cwh+cAj5fpMfg9Wcc VMCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=qEFIrk8I4x+Pe/UX6dmyNmgUh3ccSPdNfMqmW/bFJxY=; b=OgFOLDFGyS48Hg7Dlt8GZhdCUeiYw+xrRtGC/ndQsZjS22A1mDfRWxFQ+Q3xsEWqmR PJ49IC5C1kV0ApdPnKdqc7rHOT8PwXw98iRi5l/B5BxbuszD37LQz6fNurkx7MUpFu2T eb/9oQG40qvQL+vYfFZGkKH2lh1G96nI24LoMqHgleU9J1p7ahQL+Z3pEIdlY3y9cR/+ VHJhYjdbtkXqrxtls4CQ2G0AU6rVlJh5cBoMPKh7ouLiaQR7tva4CCmYSbamd5gE3Adx r6A91kipfQSdLsJotkrcvssQS20dfSVN9s1JyAPot0NwifHU/eNTD6RIinvphDzZX9O2 y3BQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=sk4Waohl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y9si1453778edr.281.2020.05.05.09.31.41; Tue, 05 May 2020 09:32:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=sk4Waohl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730242AbgEEQ1y (ORCPT + 99 others); Tue, 5 May 2020 12:27:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729970AbgEEQ1y (ORCPT ); Tue, 5 May 2020 12:27:54 -0400 Received: from mail-qt1-x844.google.com (mail-qt1-x844.google.com [IPv6:2607:f8b0:4864:20::844]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF295C061A0F for ; Tue, 5 May 2020 09:27:53 -0700 (PDT) Received: by mail-qt1-x844.google.com with SMTP id i68so2456705qtb.5 for ; Tue, 05 May 2020 09:27:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=qEFIrk8I4x+Pe/UX6dmyNmgUh3ccSPdNfMqmW/bFJxY=; b=sk4WaohlKQtyYNrc6QHMgyHesOEY6lH9TMMmiBdrnAwFt1Wzv8LHqXzRwY632/F/st oVWWyF+7UeCucrHKMA4uvADq/Zdjnq9q0n+YTsLYRJ5bEaKr0nTjbHclZgSl/zNhahTc lrUpYQNR3z60hinHazOAPzNScS0hJ2fVJx7hJ6oHy/jf3gvgl23BRc5GDx9gJsK5/bwX pduBBIxWLIi4J0M5ovRTM14SGgzhuE7ZvurfFJ3IuQgY8HvWwKT75ItzgiDUEXkZXva5 K48L3rHysP0gP3bAfjYM+gmh3s+ewgOt/R03WmJL1mcV4kPQ/Zf8Q+pqgFFNmlkIbh2V 59Kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=qEFIrk8I4x+Pe/UX6dmyNmgUh3ccSPdNfMqmW/bFJxY=; b=WXnfy+rn+FDBAdnpGVX/5QvZN8D9I5J6LodpHC/jyt79B8tGCKzFHf+JxhH4CxYH/C 4FLIcf4uMlEL8ErtmzMNQGKtzMsVsEX9vKG1A/NFF8fbFxT+/U8IANqWqbrpUQ83gFz6 J7ZvfFNuGgQKSdFADBhEAy25+nCtOsGbw15UBIf5dbWg+QkryOGrx5EwTMjlj5h5LaFt ts4EHgFlbZ/3lNloxF2ioCnPoQv1KWJmfwQ1e0ybs0pU+DIWEk/V4Zu0XwYWNydaFu7V bX61KUOswVYibRcwrX2D0/V+HaiV8OteL/vzYt3pCe6eHJUoAFYgE5qIVqbxL0IT1del QPLA== X-Gm-Message-State: AGi0PuZSxvn/5mIv9nuuCx7pLJJtepWJrj670HDoMpi0l4kUgDgqeHOO NtY0Id406TAk1BDoF9HOuZT7bH9aksYegR4oHZLfjg== X-Received: by 2002:ac8:7b8b:: with SMTP id p11mr3528956qtu.131.1588696072959; Tue, 05 May 2020 09:27:52 -0700 (PDT) MIME-Version: 1.0 References: <20200430000916.8880-1-warthog618@gmail.com> In-Reply-To: <20200430000916.8880-1-warthog618@gmail.com> From: Bartosz Golaszewski Date: Tue, 5 May 2020 18:27:42 +0200 Message-ID: Subject: Re: [PATCH] tools/gpio: add bias flags to lsgpio To: Kent Gibson Cc: LKML , linux-gpio , Linus Walleij Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org czw., 30 kwi 2020 o 02:10 Kent Gibson napisa=C5=82(a= ): > > Add display of the bias flags. > > Signed-off-by: Kent Gibson > --- > 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[] =3D { > .name =3D "open-source", > .mask =3D GPIOLINE_FLAG_OPEN_SOURCE, > }, > + { > + .name =3D "pull-up", > + .mask =3D GPIOLINE_FLAG_BIAS_PULL_UP, > + }, > + { > + .name =3D "pull-down", > + .mask =3D GPIOLINE_FLAG_BIAS_PULL_DOWN, > + }, > + { > + .name =3D "bias-disabled", > + .mask =3D GPIOLINE_FLAG_BIAS_DISABLE, > + }, > }; > > void print_flags(unsigned long flags) > -- > 2.26.2 > Patch applied, thanks! Bart