Re: [PATCH v6 8/9] pmdomain: imx93-blk-ctrl: mask DSI and PXP PD domain register on i.MX91

From: Fabio Estevam
Date: Mon Jun 23 2025 - 08:59:46 EST


On Mon, Jun 23, 2025 at 7:00 AM Joy Zou <joy.zou@xxxxxxx> wrote:

> +static const struct imx93_blk_ctrl_data imx91_media_blk_ctl_dev_data = {
> + .domains = imx93_media_blk_ctl_domain_data,
> + .skip_mask = BIT(IMX93_MEDIABLK_PD_MIPI_DSI) | BIT(IMX93_MEDIABLK_PD_PXP),
> + .num_domains = ARRAY_SIZE(imx93_media_blk_ctl_domain_data),
> + .clk_names = (const char *[]){ "axi", "apb", "nic", },
> + .num_clks = 3,

Instead of hardcoding the number of clocks, what about using
ARRAY_SIZE() instead?

Like it was done here:

https://lore.kernel.org/linux-arm-kernel/20250619062108.2016511-1-xiaolei.wang@xxxxxxxxxxxxx/