From: Felipe Balbi <balbi@ti.com>
To: "Sören Brinkmann" <soren.brinkmann@xilinx.com>
Cc: "Felipe Balbi" <balbi@ti.com>,
"Andreas Färber" <afaerber@suse.de>,
"Michal Simek" <michal.simek@xilinx.com>,
devicetree@vger.kernel.org,
"Peter Crosthwaite" <peter.crosthwaite@xilinx.com>,
"Arnd Bergmann" <arnd@arndb.de>,
linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
"Ola Jeppson" <ola@adapteva.com>,
linux-gpio@vger.kernel.org, linux-usb@vger.kernel.org
Subject: Re: [PATCH] usb: phy-generic: Don't fail on missing gpio reset
Date: Tue, 27 Jan 2015 13:14:28 -0600 [thread overview]
Message-ID: <20150127191427.GN14878@saruman.tx.rr.com> (raw)
In-Reply-To: <19e48726b36942cfb0430fc625b41e1b@BY2FFO11FD043.protection.gbl>
[-- Attachment #1: Type: text/plain, Size: 1429 bytes --]
On Tue, Jan 27, 2015 at 11:13:08AM -0800, Sören Brinkmann wrote:
> On Tue, 2015-01-27 at 09:20AM -0600, Felipe Balbi wrote:
> > On Mon, Jan 26, 2015 at 05:45:29PM -0800, Soren Brinkmann wrote:
> > > A reset through a GPIO is optional. Don't fail probing when it is
> > > missing.
> > >
> > > Reported-by: Andreas Färber <afaerber@suse.de>
> > > Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
> > > ---
> > > Hi Andreas,
> > >
> > > does this do the trick?
> > >
> > > Thanks,
> > > Sören
> > >
> > > drivers/usb/phy/phy-generic.c | 6 ++----
> > > 1 file changed, 2 insertions(+), 4 deletions(-)
> > >
> > > diff --git a/drivers/usb/phy/phy-generic.c b/drivers/usb/phy/phy-generic.c
> > > index dd05254241fb..a73d4c738f0b 100644
> > > --- a/drivers/usb/phy/phy-generic.c
> > > +++ b/drivers/usb/phy/phy-generic.c
> > > @@ -241,10 +241,8 @@ int usb_phy_gen_create_phy(struct device *dev, struct usb_phy_generic *nop,
> > >
> > > if (err == -EPROBE_DEFER)
> > > return -EPROBE_DEFER;
> > > - if (err) {
> > > - dev_err(dev, "Error requesting RESET GPIO\n");
> > > - return err;
> > > - }
> > > + if (err)
> > > + nop->gpiod_reset = NULL;
> >
> > there's a better patch to use gpiod_get_optional(), instead.
>
> Great, apparently that wasn't in linux-next yesterday. I'll give it a
> shot once it arrives there.
It's still under discussion ;-)
--
balbi
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: balbi@ti.com (Felipe Balbi)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] usb: phy-generic: Don't fail on missing gpio reset
Date: Tue, 27 Jan 2015 13:14:28 -0600 [thread overview]
Message-ID: <20150127191427.GN14878@saruman.tx.rr.com> (raw)
In-Reply-To: <19e48726b36942cfb0430fc625b41e1b@BY2FFO11FD043.protection.gbl>
On Tue, Jan 27, 2015 at 11:13:08AM -0800, S?ren Brinkmann wrote:
> On Tue, 2015-01-27 at 09:20AM -0600, Felipe Balbi wrote:
> > On Mon, Jan 26, 2015 at 05:45:29PM -0800, Soren Brinkmann wrote:
> > > A reset through a GPIO is optional. Don't fail probing when it is
> > > missing.
> > >
> > > Reported-by: Andreas F?rber <afaerber@suse.de>
> > > Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
> > > ---
> > > Hi Andreas,
> > >
> > > does this do the trick?
> > >
> > > Thanks,
> > > S?ren
> > >
> > > drivers/usb/phy/phy-generic.c | 6 ++----
> > > 1 file changed, 2 insertions(+), 4 deletions(-)
> > >
> > > diff --git a/drivers/usb/phy/phy-generic.c b/drivers/usb/phy/phy-generic.c
> > > index dd05254241fb..a73d4c738f0b 100644
> > > --- a/drivers/usb/phy/phy-generic.c
> > > +++ b/drivers/usb/phy/phy-generic.c
> > > @@ -241,10 +241,8 @@ int usb_phy_gen_create_phy(struct device *dev, struct usb_phy_generic *nop,
> > >
> > > if (err == -EPROBE_DEFER)
> > > return -EPROBE_DEFER;
> > > - if (err) {
> > > - dev_err(dev, "Error requesting RESET GPIO\n");
> > > - return err;
> > > - }
> > > + if (err)
> > > + nop->gpiod_reset = NULL;
> >
> > there's a better patch to use gpiod_get_optional(), instead.
>
> Great, apparently that wasn't in linux-next yesterday. I'll give it a
> shot once it arrives there.
It's still under discussion ;-)
--
balbi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20150127/caea0929/attachment.sig>
next prev parent reply other threads:[~2015-01-27 19:15 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-27 1:45 [PATCH] usb: phy-generic: Don't fail on missing gpio reset Soren Brinkmann
2015-01-27 1:45 ` Soren Brinkmann
2015-01-27 15:20 ` Felipe Balbi
2015-01-27 15:20 ` Felipe Balbi
2015-01-27 19:13 ` Sören Brinkmann
2015-01-27 19:13 ` Sören Brinkmann
2015-01-27 19:13 ` Sören Brinkmann
2015-01-27 19:14 ` Felipe Balbi [this message]
2015-01-27 19:14 ` Felipe Balbi
2015-01-27 15:24 ` Arnd Bergmann
2015-01-27 15:24 ` Arnd Bergmann
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=20150127191427.GN14878@saruman.tx.rr.com \
--to=balbi@ti.com \
--cc=afaerber@suse.de \
--cc=arnd@arndb.de \
--cc=devicetree@vger.kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=michal.simek@xilinx.com \
--cc=ola@adapteva.com \
--cc=peter.crosthwaite@xilinx.com \
--cc=soren.brinkmann@xilinx.com \
/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.