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>
1 parent 9897dec commit 95e7982f99c03806b640c2e98e3e8e29ecefa3f1
@Sascha Hauer Sascha Hauer authored on 24 May 2013
Showing 5 changed files
View
commands/Kconfig
View
commands/Makefile
View
commands/detect.c 0 → 100644
View
drivers/base/driver.c
View
include/driver.h