I know this API, but it can't be used. We need to control clocks individually in reset procedure.+ for (i = 0; i < CLK_NUM; i++) {The clk API has devm_clk_bulk_ versions. Please take a look at them, and see
+ priv->clks[i] = devm_clk_get_enabled(&pdev->dev, clk_strs[i]);
+ if (IS_ERR(priv->clks[i])) {
+ dev_err(dev, "failed to get enabled clk %s: %ld\n", clk_strs[i],
+ PTR_ERR(priv->clks[i]));
+ ret = -ENODEV;
+ goto out_free_netdev;
+ }
if it will simplify the code.
Andrew