From: Roger Quadros Subject: Re: [PATCH 2/4] usb: host: ohci-platform: Add support for omap3 and later Date: Thu, 18 May 2017 12:28:20 +0300 Message-ID: <304ef560-6dd7-e96f-74d6-99a143a1c6f1@ti.com> References: <20170517225922.17723-1-tony@atomide.com> <20170517225922.17723-3-tony@atomide.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20170517225922.17723-3-tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org> Content-Language: en-GB Sender: linux-usb-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Tony Lindgren , Alan Stern Cc: Greg Kroah-Hartman , linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Hans de Goede , Rob Herring , Yoshihiro Shimoda List-Id: linux-omap@vger.kernel.org On 18/05/17 01:59, 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. > > Cc: Hans de Goede > Cc: Rob Herring > Cc: Roger Quadros > Cc: Yoshihiro Shimoda > Signed-off-by: Tony Lindgren Acked-by: Roger Quadros > --- > Documentation/devicetree/bindings/usb/usb-ohci.txt | 1 + > drivers/usb/host/ohci-platform.c | 5 +++++ > 2 files changed, 6 insertions(+) > > diff --git a/Documentation/devicetree/bindings/usb/usb-ohci.txt b/Documentation/devicetree/bindings/usb/usb-ohci.txt > --- a/Documentation/devicetree/bindings/usb/usb-ohci.txt > +++ b/Documentation/devicetree/bindings/usb/usb-ohci.txt > @@ -10,6 +10,7 @@ Optional properties: > - big-endian-desc : boolean, set this for hcds with big-endian descriptors > - big-endian : boolean, for hcds with big-endian-regs + big-endian-desc > - no-big-frame-no : boolean, set if frame_no lives in bits [15:0] of HCCA > +- remote-wakeup-connected: remote wakeup is wired on the platform > - num-ports : u32, to override the detected port count > - clocks : a list of phandle + clock specifier pairs > - phys : phandle + phy specifier pair > 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); > -- cheers, -roger -- 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