[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200507064316.GC777100@kroah.com>
Date: Thu, 7 May 2020 08:43:16 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: Alan Cooper <alcooperx@...il.com>
Cc: ": Linux Kernel Mailing List" <linux-kernel@...r.kernel.org>,
Alan Stern <stern@...land.harvard.edu>,
Andy Shevchenko <andy.shevchenko@...il.com>,
BCM Kernel Feedback <bcm-kernel-feedback-list@...adcom.com>,
DTML <devicetree@...r.kernel.org>,
Krzysztof Kozlowski <krzk@...nel.org>,
USB list <linux-usb@...r.kernel.org>,
Mathias Nyman <mathias.nyman@...el.com>,
Rob Herring <robh+dt@...nel.org>,
Yoshihiro Shimoda <yoshihiro.shimoda.uh@...esas.com>,
Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
Subject: Re: [PATCH v6 3/4] usb: ehci: Add new EHCI driver for Broadcom STB
SoC's
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
Powered by blists - more mailing lists