diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-05-24 15:42:27 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-05-31 12:32:05 +0200 |
commit | 95e7982f99c03806b640c2e98e3e8e29ecefa3f1 (patch) | |
tree | 9549784580f7a6924c276353754162f647d4b255 /commands/Kconfig | |
parent | 9897dec869bfc54f704fd07dc85800aad2e37250 (diff) | |
download | barebox-95e7982f99c03806b640c2e98e3e8e29ecefa3f1.tar.gz barebox-95e7982f99c03806b640c2e98e3e8e29ecefa3f1.tar.xz |
devices: add detect mechanism
We often encounter the situation where slow devices should not be
probed during startup since probing is slow and maybe unnecessary
for unused devices. With MMC we have the 'probe' device parameter,
for ata we have the same, for USB we have the 'usb' command. Overall
this is not very consistent.
With MMC there is the additional problem that the probe parameter
is attached to the logical device when we often have the information
which physical device we want to probe.
This patch adds a 'detect' callback for devices and adds a command
to detect devices and to list the devices which are actually detecable.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/Kconfig')
-rw-r--r-- | commands/Kconfig | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/commands/Kconfig b/commands/Kconfig index 6a759ce204..a62ed9823b 100644 --- a/commands/Kconfig +++ b/commands/Kconfig @@ -728,6 +728,15 @@ config CMD_CLK Say yes here to get clk_set_rate, clk_set_parent and clk_dump commands to manipulate clocks on your system. +config CMD_DETECT + tristate + prompt "detect" + help + say yes here to get the 'detect' command. Some devices take longer + time to probe, like slow disks or SD/MMC cards. These can defer the + actual probe of the client devices until they are needed. Use the + 'detect' command on the physical device to trigger probing. + menuconfig CMD_WD bool depends on WATCHDOG |