From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Boyd Subject: Re: [PATCH 13/21] usb: chipidea: msm: Allow core to get usb phy Date: Wed, 29 Jun 2016 12:31:18 -0700 Message-ID: <146722867837.16253.5338887948471498730@sboyd-linaro> References: <20160626072838.28082-1-stephen.boyd@linaro.org> <20160626072838.28082-14-stephen.boyd@linaro.org> <20160629064811.GH25236@shlinux2> <20160629113411.GO25236@shlinux2> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20160629113411.GO25236@shlinux2> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org To: Peter Chen Cc: Felipe Balbi , Arnd Bergmann , Neil Armstrong , linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Bjorn Andersson , Peter Chen , Greg Kroah-Hartman , Andy Gross , linux-arm-kernel@lists.infradead.org List-Id: linux-arm-msm@vger.kernel.org Quoting Peter Chen (2016-06-29 04:34:11) > On Wed, Jun 29, 2016 at 02:48:11PM +0800, Peter Chen wrote: > > On Sun, Jun 26, 2016 at 12:28:30AM -0700, Stephen Boyd wrote: > > > @@ -53,21 +44,9 @@ static struct ci_hdrc_platform_data ci_hdrc_msm_platdata = { > > > static int ci_hdrc_msm_probe(struct platform_device *pdev) > > > { > > > struct platform_device *plat_ci; > > > - struct usb_phy *phy; > > > > > > dev_dbg(&pdev->dev, "ci_hdrc_msm_probe\n"); > > > > > > - /* > > > - * OTG(PHY) driver takes care of PHY initialization, clock management, > > > - * powering up VBUS, mapping of registers address space and power > > > - * management. > > > - */ > > > - phy = devm_usb_get_phy_by_phandle(&pdev->dev, "usb-phy", 0); > > > - if (IS_ERR(phy)) > > > - return PTR_ERR(phy); > > > - > > > - ci_hdrc_msm_platdata.usb_phy = phy; > > > - > > > plat_ci = ci_hdrc_add_device(&pdev->dev, > > > pdev->resource, pdev->num_resources, > > > &ci_hdrc_msm_platdata); > > > -- > > > > Wait, how about the UTMI PHY? You don't have a platform which needs > to get PHY through the phandle? Sorry I don't understand the question. What is the UTMI PHY? We need to get the phy through phandles. The only boards that are using ci_hdrc_msm are DT enabled boards. From mboxrd@z Thu Jan 1 00:00:00 1970 From: stephen.boyd@linaro.org (Stephen Boyd) Date: Wed, 29 Jun 2016 12:31:18 -0700 Subject: [PATCH 13/21] usb: chipidea: msm: Allow core to get usb phy In-Reply-To: <20160629113411.GO25236@shlinux2> References: <20160626072838.28082-1-stephen.boyd@linaro.org> <20160626072838.28082-14-stephen.boyd@linaro.org> <20160629064811.GH25236@shlinux2> <20160629113411.GO25236@shlinux2> Message-ID: <146722867837.16253.5338887948471498730@sboyd-linaro> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Quoting Peter Chen (2016-06-29 04:34:11) > On Wed, Jun 29, 2016 at 02:48:11PM +0800, Peter Chen wrote: > > On Sun, Jun 26, 2016 at 12:28:30AM -0700, Stephen Boyd wrote: > > > @@ -53,21 +44,9 @@ static struct ci_hdrc_platform_data ci_hdrc_msm_platdata = { > > > static int ci_hdrc_msm_probe(struct platform_device *pdev) > > > { > > > struct platform_device *plat_ci; > > > - struct usb_phy *phy; > > > > > > dev_dbg(&pdev->dev, "ci_hdrc_msm_probe\n"); > > > > > > - /* > > > - * OTG(PHY) driver takes care of PHY initialization, clock management, > > > - * powering up VBUS, mapping of registers address space and power > > > - * management. > > > - */ > > > - phy = devm_usb_get_phy_by_phandle(&pdev->dev, "usb-phy", 0); > > > - if (IS_ERR(phy)) > > > - return PTR_ERR(phy); > > > - > > > - ci_hdrc_msm_platdata.usb_phy = phy; > > > - > > > plat_ci = ci_hdrc_add_device(&pdev->dev, > > > pdev->resource, pdev->num_resources, > > > &ci_hdrc_msm_platdata); > > > -- > > > > Wait, how about the UTMI PHY? You don't have a platform which needs > to get PHY through the phandle? Sorry I don't understand the question. What is the UTMI PHY? We need to get the phy through phandles. The only boards that are using ci_hdrc_msm are DT enabled boards.