[PATCH 03/11] soc: imx: gpcv2: split power up and power down sequence control

Marek Vasut marex at denx.de
Wed Sep 30 12:10:11 EDT 2020


On 9/30/20 5:49 PM, Lucas Stach wrote:
[...]

> @@ -149,69 +148,111 @@ static int imx_gpc_pu_pgc_sw_pxx_req(struct generic_pm_domain *genpd,
>  	}
>  
>  	/* Enable reset clocks for all devices in the domain */
> +	for (i = 0; i < domain->num_clks; i++) {
> +		ret = clk_prepare_enable(domain->clk[i]);
> +		if (ret) {
> +			dev_err(domain->dev, "failed to enable clock %d\n", i);
> +			goto out_clk_disable;
> +		}
> +	}

Can we use clk_bulk functions here ?

[...]



More information about the linux-arm-kernel mailing list