From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Felipe Balbi <balbi@kernel.org>,
linux-usb <linux-usb@vger.kernel.org>
Subject: Re: [PATCH] usb: gadget: pch_udc: Convert to use GPIO descriptors
Date: Sun, 19 Jul 2020 14:29:52 +0300 [thread overview]
Message-ID: <20200719112952.GK3703480@smile.fi.intel.com> (raw)
In-Reply-To: <CAHp75VdmiZy_h4TUHVqp9o2Ghay5A9r6BqQEHxDG0Xm+tOP-gw@mail.gmail.com>
On Thu, Jul 16, 2020 at 01:19:32PM +0300, Andy Shevchenko wrote:
> On Thu, Jul 16, 2020 at 11:49 AM Linus Walleij <linus.walleij@linaro.org> wrote:
> > On Thu, Jul 2, 2020 at 4:57 PM Andy Shevchenko
> > <andriy.shevchenko@linux.intel.com> wrote:
> >
> > > > Andy: your input would be appreciated, this kind of code
> > > > customizing random embedded Intel systems is deep water for
> > > > me, so this is just a rough guess on how it should be done.
> > >
> > > Linus, I have set up the device (it's actually available as Minnowboard v1) and
> > > will look at this.
> >
> > OK whenever you have time, there is no hurry.
> >
> > > For time being there is a patch you need to fold into this (sorry, it's mangled):
> > >
> > > (Explanation: GPIO will be locked with request_irq() call)
> >
> > I do not understand this, sadly. gpiod_lock_as_irq() will be called
> > indeed, but we are requesting it as input and keeping it as such
> > so this should be fine?
>
> When you clean up GPIO at the same time you don't need to carry this
> memory and resource for the entire lifetime of the driver. When you
> lock it as IRQ the resource is not available to use by others anyway
> and will be requested whenever IRQ is requested. That's how I
> understand it. And to me it makes sense from a flexibility point of
> view and debugging perspective.
I looked closer to the code, it's using it as IRQ and as a GPIO (to know was it
rising or falling). Easier to leave as in your patch. Meanwhile I'm trying to
find some information about actual presence / use of VBUS on Intel Galileo Gen
2 and / or Minnowboard v1.0.
--
With Best Regards,
Andy Shevchenko
next prev parent reply other threads:[~2020-07-19 11:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-27 11:10 [PATCH] usb: gadget: pch_udc: Convert to use GPIO descriptors Linus Walleij
2020-07-02 14:57 ` Andy Shevchenko
2020-07-16 8:44 ` Linus Walleij
2020-07-16 10:19 ` Andy Shevchenko
2020-07-19 11:29 ` Andy Shevchenko [this message]
2020-07-20 10:46 ` Andy Shevchenko
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=20200719112952.GK3703480@smile.fi.intel.com \
--to=andriy.shevchenko@linux.intel.com \
--cc=balbi@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=linus.walleij@linaro.org \
--cc=linux-usb@vger.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).