Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/panthor: attach the driver's multiple power domains

Some platforms, such as i.MX95, utilize multiple power domains that need
to be attached explicitly. This patch ensures that the driver properly
attaches all available power domains using devm_pm_domain_attach_list().

Suggested-by: Boris Brezillon <boris.brezillon@collabora.com>
Suggested-by: Steven Price <steven.price@arm.com>
Signed-off-by: Prabhu Sundararaj <prabhu.sundararaj@nxp.com>
Signed-off-by: Rain Yang <jiyu.yang@nxp.com>
Reviewed-by: Liviu Dudau <liviu.dudau@arm.com>
Link: https://patch.msgid.link/20251022092604.181752-1-jiyu.yang@oss.nxp.com
Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>

authored by

Rain Yang and committed by
Liviu Dudau
858a7e41 98dd5143

+16
+16
drivers/gpu/drm/panthor/panthor_device.c
··· 66 66 return 0; 67 67 } 68 68 69 + static int panthor_init_power(struct device *dev) 70 + { 71 + struct dev_pm_domain_list *pd_list = NULL; 72 + 73 + if (dev->pm_domain) 74 + return 0; 75 + 76 + return devm_pm_domain_attach_list(dev, NULL, &pd_list); 77 + } 78 + 69 79 void panthor_device_unplug(struct panthor_device *ptdev) 70 80 { 71 81 /* This function can be called from two different path: the reset work ··· 231 221 ret = panthor_clk_init(ptdev); 232 222 if (ret) 233 223 return ret; 224 + 225 + ret = panthor_init_power(ptdev->base.dev); 226 + if (ret < 0) { 227 + drm_err(&ptdev->base, "init power domains failed, ret=%d", ret); 228 + return ret; 229 + } 234 230 235 231 ret = panthor_devfreq_init(ptdev); 236 232 if (ret)