Hi Shimoda-san

> R-Car Gen3 needs to enable clocks of both host and peripheral.
> Since [eo]hci-platform disables the reset(s) when the drivers are
> removed, renesas_usbhs driver doesn't work correctly. To fix this
> issue, this patch adds multiple clocks management on this
> renesas_usbhs driver.
> 
> Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda...@renesas.com>
> ---
(snip)
> +             /* enable clks if exist */
> +             if (priv->num_clks &&
> +                 clk_bulk_prepare_enable(priv->num_clks, priv->clks))
> +                     return;
(snip)
> +             /* disable clks if exist */
> +             if (priv->num_clks)
> +                     clk_bulk_disable_unprepare(priv->num_clks, priv->clks);

I think clk_bulk_xxx() will do nothing if priv->num_clks was 0.
priv->num_clks check is not neede, I think.

Best regards
---
Kuninori Morimoto

Reply via email to