Re: [PATCH v2] usb: gadget: at91_udc: add usb_clk for transition to common clk framework

2013-08-02 Thread Felipe Balbi
Hi, On Thu, Aug 01, 2013 at 07:07:50PM +0200, Boris BREZILLON wrote: > @@ -1851,6 +1860,12 @@ fail3: > fail2: > free_irq(udc->udp_irq, udc); > fail1: > + if (IS_ENABLED(CONFIG_COMMON_CLK) && !IS_ERR(udc->uclk)) > + clk_put(udc->uclk); > + if (!IS_ERR(udc->fclk)) > +

Re: [PATCH v2] usb: gadget: at91_udc: add usb_clk for transition to common clk framework

2013-08-02 Thread Felipe Balbi
Hi, On Thu, Aug 01, 2013 at 07:07:50PM +0200, Boris BREZILLON wrote: @@ -1851,6 +1860,12 @@ fail3: fail2: free_irq(udc-udp_irq, udc); fail1: + if (IS_ENABLED(CONFIG_COMMON_CLK) !IS_ERR(udc-uclk)) + clk_put(udc-uclk); + if (!IS_ERR(udc-fclk)) +

[PATCH v2] usb: gadget: at91_udc: add usb_clk for transition to common clk framework

2013-08-01 Thread Boris BREZILLON
The AT91 PMC (Power Management Controller) provides an USB clock used by USB Full Speed host (ohci) and USB Full Speed device (udc). The usb drivers (ohci and udc) must configure this clock to 48Mhz. This configuration was formely done in mach-at91/clock.c, but this implementation will be removed

[PATCH v2] usb: gadget: at91_udc: add usb_clk for transition to common clk framework

2013-08-01 Thread Boris BREZILLON
The AT91 PMC (Power Management Controller) provides an USB clock used by USB Full Speed host (ohci) and USB Full Speed device (udc). The usb drivers (ohci and udc) must configure this clock to 48Mhz. This configuration was formely done in mach-at91/clock.c, but this implementation will be removed