[PATCH] pmdomain: fix collision in names when registering
Ahmad Fatoum
a.fatoum at pengutronix.de
Tue Dec 16 02:43:44 PST 2025
Hi,
On 12/16/25 11:39 AM, Maud Spierings wrote:
> On 12/16/25 11:35, Ahmad Fatoum wrote:
>> Hello Maud,
>>
>> On 12/16/25 11:24 AM, Maud Spierings via B4 Relay wrote:
>>> From: Maud Spierings <maudspierings at gocontroll.com>
>>>
>>> After adding the imx8m-blk-ctrl driver errors started appearing about
>>> the genpd device already being registered.
>>>
>>> incorperate some extra device details in the device name so this
>>> possible collision goes away.
>>>
>>> Signed-off-by: Maud Spierings <maudspierings at gocontroll.com>
>>
>> Thanks for your patch. Did you check what the device is called now?
>>
>> Do we need to change virt_dev->id = DEVICE_ID_SINGLE; just after the
>> context to get rid of a trailing 0?
>
> `-- genpd:0:32ec0000.blk-ctrl at 32ec0000.of0
> `-- genpd:1:32ec0000.blk-ctrl at 32ec0000.of1
> `-- genpd:2:32ec0000.blk-ctrl at 32ec0000.of2
> `-- genpd:3:32ec0000.blk-ctrl at 32ec0000.of3
> `-- genpd:4:32ec0000.blk-ctrl at 32ec0000.of4
> `-- genpd:5:32ec0000.blk-ctrl at 32ec0000.of5
> `-- genpd:6:32ec0000.blk-ctrl at 32ec0000.of6
> `-- genpd:7:32ec0000.blk-ctrl at 32ec0000.of7
> `-- genpd:8:32ec0000.blk-ctrl at 32ec0000.of8
> `-- genpd:9:32ec0000.blk-ctrl at 32ec0000.of9
>
> `-- genpd:0:32f10000.blk-ctrl at 32f10000.of0
> `-- genpd:1:32f10000.blk-ctrl at 32f10000.of1
> `-- genpd:2:32f10000.blk-ctrl at 32f10000.of2
> `-- genpd:3:32f10000.blk-ctrl at 32f10000.of3
> `-- genpd:4:32f10000.blk-ctrl at 32f10000.of4
> `-- genpd:5:32f10000.blk-ctrl at 32f10000.of5
>
> I guess that means .of#
> So I should set that option?
Yes, please replace the existing virt_dev->id = index; with that.
Thanks,
Ahmad
>
> Kind regards,
> Maud
>
>
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox
mailing list