Thread (21 messages) 21 messages, 5 authors, 2025-06-25

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

From: Fabio Estevam <festevam@gmail.com>
Date: 2025-06-23 12:56:45
Also in: imx, linux-arm-kernel, linux-devicetree, lkml

On Mon, Jun 23, 2025 at 7:00 AM Joy Zou [off-list ref] 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@windriver.com/ (local)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help