Re: [PATCH 4/5] staging: nvec: fix pm_power_off teardown in tegra_nvec_remove()

From: Dan Carpenter

Date: Mon Apr 13 2026 - 06:45:53 EST


I haven't looked at if you can actually power off a system while an rmmod
is in progress... I feel like a real old grandpa when I say things like,
"Back in my day you weren't supposed to call rmmod on a production
system, the rmmod feature was only for debugging."

But the bigger picture is that linux power off is a mess. There are a
dozen different ways to power off a system. Here we have a driver
which just takes over the power off process by assigning a function
pointer. Shouldn't we instead have a list of ways to shut down the
system and have a standard way to pick which is the correct one?

Instead of worrying too much about this one driver it would be better
focus on the larger picture.

regards,
dan carpenter