Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756112Ab3HFLpk (ORCPT ); Tue, 6 Aug 2013 07:45:40 -0400 Received: from comal.ext.ti.com ([198.47.26.152]:60856 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755812Ab3HFLph (ORCPT ); Tue, 6 Aug 2013 07:45:37 -0400 Message-ID: <5200E1DB.8040006@ti.com> Date: Tue, 6 Aug 2013 17:15:31 +0530 From: Kishon Vijay Abraham I User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130510 Thunderbird/17.0.6 MIME-Version: 1.0 To: Roger Quadros CC: , , , , , , , Subject: Re: [PATCH 1/7] usb: phy: omap: Add new PHY types and remove omap_control_usb3_phy_power() References: <1375365915-21380-1-git-send-email-rogerq@ti.com> <1375365915-21380-2-git-send-email-rogerq@ti.com> In-Reply-To: <1375365915-21380-2-git-send-email-rogerq@ti.com> Content-Type: text/plain; charset="ISO-8859-1"; 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: 1970 Lines: 62 Hi, On Thursday 01 August 2013 07:35 PM, Roger Quadros wrote: > TYPE2 meaning has changed. It is now a USB2 phy with Power down bit in > control_dev_conf register. > > Introduce TYPE3 and TYPE4 PHY. TYPE3 is USB3 phy with DPLL and individual > TX/RX power control. TYPE4 is USB2 phy with power aux register. > > Update DT binding information to reflect these changes. > > Also get rid of omap_control_usb3_phy_power(). Just one function > i.e. omap_control_usb_phy_power() will now take care of all PHY types. > > Signed-off-by: Roger Quadros Tested-by: Kishon Vijay Abraham I but one minor comment below. > --- > Documentation/devicetree/bindings/usb/omap-usb.txt | 23 ++-- > drivers/usb/phy/phy-omap-control.c | 129 +++++++++++--------- > drivers/usb/phy/phy-omap-usb2.c | 4 + > drivers/usb/phy/phy-omap-usb3.c | 6 +- > include/linux/usb/omap_control_usb.h | 18 ++-- > 5 files changed, 100 insertions(+), 80 deletions(-) > . . . . > + omap_control_usb_phy_power(phy->control_dev, 0); > usb_add_phy_dev(&phy->phy); > > platform_set_drvdata(pdev, phy); > diff --git a/include/linux/usb/omap_control_usb.h b/include/linux/usb/omap_control_usb.h > index 27b5b8c..7f027d3 100644 > --- a/include/linux/usb/omap_control_usb.h > +++ b/include/linux/usb/omap_control_usb.h > @@ -22,9 +22,9 @@ > struct omap_control_usb { > struct device *dev; > > - u32 __iomem *dev_conf; > u32 __iomem *otghs_control; > - u32 __iomem *phy_power; > + u32 __iomem *power; > + u32 __iomem *power_aux; > > struct clk *sys_clk; > you can remove omap_control_usb_platform_data from here. Thanks Kishon -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/