Skip to contentSkip to conversation

Of fsl_mc_allocator_driver_exit

DISCUSSION Dr. David Alan Gilbert 2 participants 6 messages Nov 15, 2024

lore
Share & tools
lore
#0 lore raw

Hi,
One of my scripts noticed that fsl_mc_allocator_driver_exit()
was added explicitly in
commit 1e8ac83b6caf ("bus: fsl-mc: add fsl_mc_allocator cleanup function")

but appears to be unused; given it's a cleanup function it feels like it should be wired up _somewhere_.

However, I know nothing of this driver, so it feels best to ask you.

Thanks in advance,

Dave

Signature · 4 lines
 -----Open up your eyes, open up your mind, open up your code -------   
/ Dr. David Alan Gilbert    |       Running GNU/Linux       | Happy  \ 
\        dave @ treblig.org |                               | In Hex /
 \ _________________________|_____ http://www.treblig.org   |_______/
#1 lore raw

Note Laurentiu's address bounses:

Final-Recipient: rfc822;[email protected]
Status: 5.0.0
Remote-MTA: dns; nxp-com.mail.protection.outlook.com
Diagnostic-Code: smtp; 550 5.4.1 Recipient address rejected: Access denied. +[DU2PEPF00028D04.eurprd03.prod.outlook.com 2024-11-15T13:49:57.944Z 08DD047932C9EF2B]

Quoted 20 lines · * Dr. David Alan Gilbert ([email protected]) wrote:

Hi,
One of my scripts noticed that fsl_mc_allocator_driver_exit()
was added explicitly in
commit 1e8ac83b6caf ("bus: fsl-mc: add fsl_mc_allocator cleanup function")

but appears to be unused; given it's a cleanup function it feels like it should be wired up _somewhere_.

However, I know nothing of this driver, so it feels best to ask you.

Thanks in advance,

Dave

Signature · 4 lines
 -----Open up your eyes, open up your mind, open up your code -------   
/ Dr. David Alan Gilbert    |       Running GNU/Linux       | Happy  \ 
\        dave @ treblig.org |                               | In Hex /
 \ _________________________|_____ http://www.treblig.org   |_______/
Signature · 4 lines
 -----Open up your eyes, open up your mind, open up your code -------   
/ Dr. David Alan Gilbert    |       Running GNU/Linux       | Happy  \ 
\        dave @ treblig.org |                               | In Hex /
 \ _________________________|_____ http://www.treblig.org   |_______/
#2 lore raw
Quoted 9 lines · * Dr. David Alan Gilbert ([email protected]) wrote:
Quoted 8 lines

Hi,
One of my scripts noticed that fsl_mc_allocator_driver_exit()
was added explicitly in
commit 1e8ac83b6caf ("bus: fsl-mc: add fsl_mc_allocator cleanup function")

but appears to be unused; given it's a cleanup function it feels like it should be wired up _somewhere_.

I don't think that fsl_mc_allocator_driver_exit() is of any use at this point. The entire FSL_MC_BUS can only be built-in which means that there is no module_exit() which references it.

The same thing is true about the dprc_driver_exit() function.

Ioana

#3 lore raw
Quoted 6 lines · * Ioana Ciornei ([email protected]) wrote:
Quoted 6 lines · * Dr. David Alan Gilbert ([email protected]) wrote:
Quoted 5 lines

Hi,
One of my scripts noticed that fsl_mc_allocator_driver_exit()
was added explicitly in
commit 1e8ac83b6caf ("bus: fsl-mc: add fsl_mc_allocator cleanup function")

Quoted 7 lines
Quoted 3 lines
Quoted 3 lines

but appears to be unused; given it's a cleanup function it feels like it should be wired up _somewhere_.

I don't think that fsl_mc_allocator_driver_exit() is of any use at this point. The entire FSL_MC_BUS can only be built-in which means that there is no module_exit() which references it.

OK, well I'm happy to send a patch to clean it out, I was also going to clean out fsl_mc_portal_reset().

Quoted 1 line

The same thing is true about the dprc_driver_exit() function.

Hmm, that's explicitly called from the error path of fsl_mc_bus_driver_init

Dave

Quoted 2 lines

Ioana

Signature · 4 lines
 -----Open up your eyes, open up your mind, open up your code -------   
/ Dr. David Alan Gilbert    |       Running GNU/Linux       | Happy  \ 
\        dave @ treblig.org |                               | In Hex /
 \ _________________________|_____ http://www.treblig.org   |_______/
#4 lore raw
Quoted 11 lines · Dr. David Alan Gilbert
Quoted 10 lines · * Ioana Ciornei ([email protected]) wrote:
Quoted 9 lines · * Dr. David Alan Gilbert ([email protected]) wrote:
Quoted 8 lines

Hi,
One of my scripts noticed that fsl_mc_allocator_driver_exit()
was added explicitly in
commit 1e8ac83b6caf ("bus: fsl-mc: add fsl_mc_allocator cleanup function")

but appears to be unused; given it's a cleanup function it feels like it should be wired up _somewhere_.

Quoted 6 lines
Quoted 3 lines

I don't think that fsl_mc_allocator_driver_exit() is of any use at this point. The entire FSL_MC_BUS can only be built-in which means that there is no module_exit() which references it.

OK, well I'm happy to send a patch to clean it out, I was also going to clean out fsl_mc_portal_reset().

Sure. Please keep me in cc so that I can give it a run.

Quoted 4 lines
Quoted 2 lines

The same thing is true about the dprc_driver_exit() function.

Hmm, that's explicitly called from the error path of fsl_mc_bus_driver_init

My bad. I missed that.

Thanks,
Ioana

#5 lore raw
Quoted 12 lines · * Ioana Ciornei ([email protected]) wrote:
Quoted 11 lines · Dr. David Alan Gilbert
Quoted 10 lines · * Ioana Ciornei ([email protected]) wrote:
Quoted 9 lines · * Dr. David Alan Gilbert ([email protected]) wrote:
Quoted 8 lines

Hi,
One of my scripts noticed that fsl_mc_allocator_driver_exit()
was added explicitly in
commit 1e8ac83b6caf ("bus: fsl-mc: add fsl_mc_allocator cleanup function")

but appears to be unused; given it's a cleanup function it feels like it should be wired up _somewhere_.

Quoted 8 lines
Quoted 6 lines
Quoted 3 lines

I don't think that fsl_mc_allocator_driver_exit() is of any use at this point. The entire FSL_MC_BUS can only be built-in which means that there is no module_exit() which references it.

OK, well I'm happy to send a patch to clean it out, I was also going to clean out fsl_mc_portal_reset().

Sure. Please keep me in cc so that I can give it a run.

No problem.

Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

The same thing is true about the dprc_driver_exit() function.

Hmm, that's explicitly called from the error path of fsl_mc_bus_driver_init

My bad. I missed that.

OK,

Dave

Quoted 5 lines

Thanks,
Ioana

Signature · 4 lines
 -----Open up your eyes, open up your mind, open up your code -------   
/ Dr. David Alan Gilbert    |       Running GNU/Linux       | Happy  \ 
\        dave @ treblig.org |                               | In Hex /
 \ _________________________|_____ http://www.treblig.org   |_______/