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

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

 



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 ?

[...]



[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux