[U-Boot] [PATCH v10 08/10] usb: host: ohci-generic: add CLOCK support

Simon Glass sjg at chromium.org
Fri Jul 7 03:57:18 UTC 2017


On 6 July 2017 at 01:42,  <patrice.chotard at st.com> wrote:
> From: Patrice Chotard <patrice.chotard at st.com>
>
> use array to save enabled clocks reference in order to
> disabled them in case of error during probe() or during
> driver removal.
>
> Signed-off-by: Patrice Chotard <patrice.chotard at st.com>
> ---
>
> v10:    _ replace ofnode_count_phandle_with_args() by dev_count_phandle_with_args()
>
> v9:     _ remove useless clk_free() when a clock is correctly requested and enabled
>         _ replace clk_disable_all() by clk_release_all()
>
> v8:     _ rework error path by propagating the initial error code until the end of probe()
>
> v7:     _ replace clk_count() by ofnode_count_phandle_with_args()
>
> v6:     _ none
>
> v5:     _ none
>
> v4:     _ use generic_phy_valid() before generic_phy_exit() call
>
> v3:     _ extract in this patch the CLOCK support add-on from previous patch 5
>         _ keep enabled clocks reference in list in order to
>           disable clocks in error path or in .remove callback
>
> v2:     _ add error path management
>         _ add .remove callback
>
>
>  drivers/usb/host/ohci-generic.c | 55 +++++++++++++++++++++++++++++++++++++++--
>  1 file changed, 53 insertions(+), 2 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list