Re: [PATCH 1/2] chipidea: ci_hdrc_imx: Allow handling the clock for an USB phy/hub

2013-12-02 Thread Mark Rutland
On Thu, Nov 14, 2013 at 02:09:46AM +, Fabio Estevam wrote: > From: Fabio Estevam > > When using external USB PHY or USB hub, it is common that they require a clock > input. > > Add a 'clk_phy' clock, so that it can be retrieved from the device tree and > enabled in the driver, so that the c

Re: [PATCH 1/2] chipidea: ci_hdrc_imx: Allow handling the clock for an USB phy/hub

2013-11-14 Thread Fabio Estevam
On Thu, Nov 14, 2013 at 7:56 AM, Russell King - ARM Linux wrote: > On Thu, Nov 14, 2013 at 12:09:46AM -0200, Fabio Estevam wrote: >> @@ -107,10 +108,22 @@ static int ci_hdrc_imx_probe(struct platform_device >> *pdev) >> return ret; >> } >> >> + data->clk_phy = devm_clk_get

Re: [PATCH 1/2] chipidea: ci_hdrc_imx: Allow handling the clock for an USB phy/hub

2013-11-14 Thread Russell King - ARM Linux
On Thu, Nov 14, 2013 at 12:09:46AM -0200, Fabio Estevam wrote: > @@ -107,10 +108,22 @@ static int ci_hdrc_imx_probe(struct platform_device > *pdev) > return ret; > } > > + data->clk_phy = devm_clk_get(&pdev->dev, "phy"); > + if (IS_ERR(data->clk_phy)) { > +

Re: [PATCH 1/2] chipidea: ci_hdrc_imx: Allow handling the clock for an USB phy/hub

2013-11-13 Thread Shawn Guo
This should be sent to USB folks. Copy Peter and Alex. Shawn On Thu, Nov 14, 2013 at 12:09:46AM -0200, Fabio Estevam wrote: > From: Fabio Estevam > > When using external USB PHY or USB hub, it is common that they require a clock > input. > > Add a 'clk_phy' clock, so that it can be retrieved

[PATCH 1/2] chipidea: ci_hdrc_imx: Allow handling the clock for an USB phy/hub

2013-11-13 Thread Fabio Estevam
From: Fabio Estevam When using external USB PHY or USB hub, it is common that they require a clock input. Add a 'clk_phy' clock, so that it can be retrieved from the device tree and enabled in the driver, so that the clock can properly drive the external USB phy/hub. Tested on a imx6q-udoo bo