diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2022-01-13 17:04:14 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2022-01-14 08:52:44 +0100 |
commit | 90244aef72993fb8771213f1a63b862ca8d8c695 (patch) | |
tree | 930f193ff7d65cf3419dbfe16d8f47572a393385 /commands/Kconfig | |
parent | 3f256724b98fb3784a6caf3cff77f957d46bead9 (diff) | |
download | barebox-90244aef72993fb8771213f1a63b862ca8d8c695.tar.gz barebox-90244aef72993fb8771213f1a63b862ca8d8c695.tar.xz |
commands: add new devunbind debugging command
Memory corruption around device removal may go unnoticed, because
barebox is shutting down anyway and doing no new allocations.
Add a new devunbind command that should help with debugging such issues
by allowing selective unbinding and removal of devices.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20220113160414.3943151-3-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/Kconfig')
-rw-r--r-- | commands/Kconfig | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/commands/Kconfig b/commands/Kconfig index 1c20ed036e..947bd3dada 100644 --- a/commands/Kconfig +++ b/commands/Kconfig @@ -73,6 +73,18 @@ config CMD_DEVINFO If called with a device path being the argument, devinfo shows more default information about this device and its parameters. +config CMD_DEVUNBIND + tristate + prompt "devunbind" + help + Debugging aid to unbind device(s) from driver at runtime + + devunbind [-fl] DEVICES.. + + Options: + -f unbind driver and force removal of device and children + -l list remove callbacks in shutdown order + config CMD_DMESG tristate prompt "dmesg" |