Re: [PATCH] USB: ehci: ohci: Add clk_{un}prepare() support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, April 17, 2012 2:30 am, Viresh Kumar wrote:

>  static void spear_start_ehci(struct spear_ehci *ehci)
>  {
> +	clk_prepare(ehci->clk);

How about using clk_prepare_enable?

>  	clk_enable(ehci->clk);
>  }
>
>  static void spear_stop_ehci(struct spear_ehci *ehci)
>  {
>  	clk_disable(ehci->clk);
> +	clk_unprepare(ehci->clk);

clk_disable_unprepare ?
Similar comment for below usage.

>  }

>  static void spear_start_ohci(struct spear_ohci *ohci)
>  {
> +	clk_prepare(ohci->clk);
>  	clk_enable(ohci->clk);
>  }
>
>  static void spear_stop_ohci(struct spear_ohci *ohci)
>  {
>  	clk_disable(ohci->clk);
> +	clk_unprepare(ohci->clk);
>  }


-- 
 Sent by an employee of the Qualcomm Innovation Center, Inc.
 The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux