From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Alan Cooper <alcooperx@gmail.com>
Cc: ": Linux Kernel Mailing List" <linux-kernel@vger.kernel.org>,
Alan Stern <stern@rowland.harvard.edu>,
Andy Shevchenko <andy.shevchenko@gmail.com>,
BCM Kernel Feedback <bcm-kernel-feedback-list@broadcom.com>,
DTML <devicetree@vger.kernel.org>,
Krzysztof Kozlowski <krzk@kernel.org>,
USB list <linux-usb@vger.kernel.org>,
Mathias Nyman <mathias.nyman@intel.com>,
Rob Herring <robh+dt@kernel.org>,
Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>,
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Subject: Re: [PATCH v6 3/4] usb: ehci: Add new EHCI driver for Broadcom STB SoC's
Date: Thu, 7 May 2020 08:43:16 +0200 [thread overview]
Message-ID: <20200507064316.GC777100@kroah.com> (raw)
In-Reply-To: <CAOGqxeXboYz2OQhgJsYmH5_7qEwKeWR5AA4Ljq_iFdSX=H2fkA@mail.gmail.com>
On Wed, May 06, 2020 at 04:23:01PM -0400, Alan Cooper wrote:
> > > + irq = platform_get_irq(pdev, 0);
> > > + if (irq < 0)
> >
> > "<=" right?
>
> The example in the comment above platform_get_irq in platform.c says
> "if (irq < 0)"
There is work to fix that up on the mailing lists, 0 is not a valid irq :)
> > > +static int __init ehci_brcm_init(void)
> > > +{
> > > + if (usb_disabled())
> > > + return -ENODEV;
> >
> > You check this here, so why are you also checking it in the probe
> > function?
>
> Good point. I'll remove the one in probe. This was another thing that
> came from the ehci and ohci platform drivers. About a third of the
> drivers in this directory do this, probably because they started with
> the platform drivers. Do you think it's worth me submitting a patch to
> clean this up at some point?
Yes please.
>
> >
> > thanks,
> >
> > greg k-h
>
> I'll wait for your response before sending a V7.
Never wait for someone who you have no idea how much email they get :)
thanks,
greg k-h
next prev parent reply other threads:[~2020-05-07 6:43 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-30 11:12 [PATCH v6 0/4] Add XHCI, EHCI and OHCI support for Broadcom STB SoS's Al Cooper
2020-04-30 11:12 ` [PATCH v6 1/4] dt-bindings: Add Broadcom STB USB support Al Cooper
2020-04-30 11:12 ` [PATCH v6 2/4] usb: xhci: xhci-plat: Add support for Broadcom STB SoC's Al Cooper
2020-04-30 11:12 ` [PATCH v6 3/4] usb: ehci: Add new EHCI driver " Al Cooper
2020-05-05 11:00 ` Greg Kroah-Hartman
2020-05-06 20:23 ` Alan Cooper
2020-05-06 21:01 ` Andy Shevchenko
2020-05-07 6:41 ` Greg Kroah-Hartman
2020-05-07 9:06 ` Andy Shevchenko
2020-05-07 6:43 ` Greg Kroah-Hartman [this message]
2020-04-30 11:12 ` [PATCH v6 4/4] usb: host: Add ability to build new Broadcom STB USB drivers Al Cooper
2020-05-05 10:54 ` Greg Kroah-Hartman
2020-05-06 18:59 ` Alan Cooper
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=20200507064316.GC777100@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=alcooperx@gmail.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=andy.shevchenko@gmail.com \
--cc=bcm-kernel-feedback-list@broadcom.com \
--cc=devicetree@vger.kernel.org \
--cc=krzk@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=mathias.nyman@intel.com \
--cc=robh+dt@kernel.org \
--cc=stern@rowland.harvard.edu \
--cc=yoshihiro.shimoda.uh@renesas.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.