Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753365AbcCZOKm (ORCPT ); Sat, 26 Mar 2016 10:10:42 -0400 Received: from mail-lf0-f50.google.com ([209.85.215.50]:35439 "EHLO mail-lf0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752666AbcCZOKj (ORCPT ); Sat, 26 Mar 2016 10:10:39 -0400 Subject: Re: [PATCH] phy: da8xx-usb: new driver for DA8xx SoC USB PHY To: David Lechner References: <1458863503-31121-10-git-send-email-david@lechnology.com> <1458871024-21478-1-git-send-email-david@lechnology.com> Cc: petr@barix.com, David.Laight@ACULAB.COM, Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Russell King , Sekhar Nori , Kevin Hilman , Kishon Vijay Abraham I , Greg Kroah-Hartman , Alan Stern , Bin Liu , Lee Jones , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-usb@vger.kernel.org From: Sergei Shtylyov Message-ID: <56F6985B.2020902@cogentembedded.com> Date: Sat, 26 Mar 2016 17:10:35 +0300 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <1458871024-21478-1-git-send-email-david@lechnology.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1295 Lines: 47 Hello. On 3/25/2016 4:57 AM, David Lechner wrote: > This is a new phy driver for the SoC USB controllers on the TI DA8xx > family of microcontrollers. The USB 1.1 PHY is just a simple on/off. > The USB 2.0 PHY also allows overriding the VBUS and ID pins. > > Signed-off-by: David Lechner [...] Just some nit-picking. > diff --git a/drivers/phy/phy-da8xx-usb.c b/drivers/phy/phy-da8xx-usb.c > new file mode 100644 > index 0000000..ecfd607 > --- /dev/null > +++ b/drivers/phy/phy-da8xx-usb.c > @@ -0,0 +1,249 @@ [...] > +static int da8xx_usbphy_probe(struct platform_device *pdev) [...] > + if (node) { > + d_phy->phy_provider = devm_of_phy_provider_register(dev, > + da8xx_usbphy_of_xlate); > + if (IS_ERR(d_phy->phy_provider)) { > + dev_err(dev, "Failed to create phy provider.\n"); > + return PTR_ERR(d_phy->phy_provider); > + } > + } else { > + int ret; > + > + ret = phy_create_lookup(d_phy->usb11_phy, "usbphy", "ohci.0"); > + if (ret) > + dev_warn(dev, "Failed to create usb11 phy lookup .\n"); Space before period? I'd omit the periods altogether... > + ret = phy_create_lookup(d_phy->usb20_phy, "usbphy", "musb-da8xx"); > + if (ret) > + dev_warn(dev, "Failed to create usb20 phy lookup .\n"); Likewise. [...] MBR, Sergei