All of lore.kernel.org
 help / color / mirror / Atom feed
From: Linus Walleij <linus.walleij@linaro.org>
To: Marc Zyngier <maz@kernel.org>
Cc: Johan Hovold <johan@kernel.org>, linux-usb <linux-usb@vger.kernel.org>
Subject: Re: [PATCH] USB: serial: ftdi_sio: Helpful error on GPIO attempt
Date: Tue, 8 Dec 2020 09:39:25 +0100	[thread overview]
Message-ID: <CACRpkdaNQ_JgHX=1aEDBR5dpF-1b2Zwx-z8qG5F6VhRW_Au_Qg@mail.gmail.com> (raw)
In-Reply-To: <76a8c528f98df0797c79d870bb6587a4@kernel.org>

On Wed, Dec 2, 2020 at 7:13 PM Marc Zyngier <maz@kernel.org> wrote:

> And to clarify what I mean, here's a patchlet that does the trick.
>
> maz@tiger-roach:~$ sudo gpioinfo gpiochip3
> gpiochip3 - 4 lines:
>         line   0:      unnamed       unused  output  active-high
>         line   1:      "AltFunc"     kernel  input   active-high [used]
>         line   2:      "AltFunc"     kernel  input   active-high [used]
>         line   3:      "AltFunc"     kernel  input   active-high [used]
>
> It at least make clear that you can't grab the GPIO. Of course, you
> don't get the message that you just added...

I think this looks good.

> +#include "../../gpio/gpiolib.h"

I suppose I can live with this because it's for a noble cause.

> Thoughts?

Could you combine it with a patch similar to min giving some probe() time
information that some GPIO lines are altfunc and where to get the tool
and send a proper patch?

Yours,
Linus Walleij

  reply	other threads:[~2020-12-08  8:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-01 14:10 [PATCH] USB: serial: ftdi_sio: Helpful error on GPIO attempt Linus Walleij
2020-12-01 15:01 ` Marc Zyngier
2020-12-02 18:13   ` Marc Zyngier
2020-12-08  8:39     ` Linus Walleij [this message]
2020-12-08  9:02       ` Johan Hovold

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CACRpkdaNQ_JgHX=1aEDBR5dpF-1b2Zwx-z8qG5F6VhRW_Au_Qg@mail.gmail.com' \
    --to=linus.walleij@linaro.org \
    --cc=johan@kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=maz@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.