From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tony Lindgren Subject: Re: [PATCH 2/4] usb: host: ohci-platform: Add support for omap3 and later Date: Thu, 18 May 2017 08:46:39 -0700 Message-ID: <20170518154639.GC10472@atomide.com> References: <20170517225922.17723-3-tony@atomide.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-usb-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Alan Stern Cc: Greg Kroah-Hartman , linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Hans de Goede , Rob Herring , Roger Quadros , Yoshihiro Shimoda List-Id: linux-omap@vger.kernel.org * Alan Stern [170518 08:41]: > On Wed, 17 May 2017, Tony Lindgren wrote: > > > With the runtime PM implemented for ohci-platform driver, we can > > now support omap3 and later OHCI by adding one device tree > > property. ... > > diff --git a/drivers/usb/host/ohci-platform.c b/drivers/usb/host/ohci-platform.c > > --- a/drivers/usb/host/ohci-platform.c > > +++ b/drivers/usb/host/ohci-platform.c > > @@ -170,6 +170,10 @@ static int ohci_platform_probe(struct platform_device *dev) > > if (of_property_read_bool(dev->dev.of_node, "no-big-frame-no")) > > ohci->flags |= OHCI_QUIRK_FRAME_NO; > > > > + if (of_property_read_bool(dev->dev.of_node, > > + "remote-wakeup-connected")) > > + ohci->hc_control = OHCI_CTRL_RWC; > > + > > of_property_read_u32(dev->dev.of_node, "num-ports", > > &ohci->num_ports); > > > > @@ -361,6 +365,7 @@ static int ohci_platform_resume(struct device *dev) > > static const struct of_device_id ohci_platform_ids[] = { > > { .compatible = "generic-ohci", }, > > { .compatible = "cavium,octeon-6335-ohci", }, > > + { .compatible = "ti,ohci-omap3", }, > > { } > > }; > > MODULE_DEVICE_TABLE(of, ohci_platform_ids); > > Acked-by: Alan Stern FYI, this depends on the patch1/4 PM runtime issue getting sorted out first as otherwise the USB controller is powered off on omaps. So let's not apply this yet. Regards, Tony -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html