Re: [PATCH v3 05/20] usb: host: xhci-plat: Add clocks support

2014-05-07 Thread Thomas Petazzoni
Felipe, Gregory, On Tue, 6 May 2014 02:14:00 +0200, Gregory CLEMENT wrote: +struct xhci_plat_priv { + struct clk *clk; +}; + static void xhci_plat_quirks(struct device *dev, struct xhci_hcd *xhci) { /* @@ -38,7 +43,8 @@ static int xhci_plat_setup(struct usb_hcd *hcd)

Re: [PATCH v3 05/20] usb: host: xhci-plat: Add clocks support

2014-05-06 Thread Jason Cooper
On Tue, May 06, 2014 at 02:14:00AM +0200, Gregory CLEMENT wrote: Some platform (such as the Armada 38x ones) can gate the clock of their USB controller. This patch add the support for the clock, by enabling them during probe and disabling them on remove. As not all platforms have clock

[PATCH v3 05/20] usb: host: xhci-plat: Add clocks support

2014-05-05 Thread Gregory CLEMENT
Some platform (such as the Armada 38x ones) can gate the clock of their USB controller. This patch add the support for the clock, by enabling them during probe and disabling them on remove. As not all platforms have clock support then enabling and disabling the clocks have been placed in separate

Re: [PATCH v3 05/20] usb: host: xhci-plat: Add clocks support

2014-05-05 Thread Felipe Balbi
On Tue, May 06, 2014 at 02:14:00AM +0200, Gregory CLEMENT wrote: @@ -118,7 +158,7 @@ static int xhci_plat_probe(struct platform_device *pdev) hcd = usb_create_hcd(driver, pdev-dev, dev_name(pdev-dev)); if (!hcd) - return -ENOMEM; + ret = -ENOMEM;