9
0
Fork 0
barebox/drivers/base
Sascha Hauer 95e7982f99 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>
2013-05-31 12:32:05 +02:00
..
Makefile driver: register bus 2012-09-23 21:15:13 +02:00
bus.c bus: Make struct device a pointer 2013-03-14 08:42:24 +01:00
driver.c devices: add detect mechanism 2013-05-31 12:32:05 +02:00
platform.c correct simple typo, "plarform_init" 2012-12-03 11:13:50 +01:00
resource.c switch all platform_bus device/driver registering to platform_driver/device_register 2012-10-04 15:19:12 +02:00