diff options
author | AKASHI Takahiro <takahiro.akashi@linaro.org> | 2022-03-08 20:36:44 +0900 |
---|---|---|
committer | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2022-04-09 21:06:31 +0200 |
commit | 4c73b0344230129ec7493cf425922791e6132a30 (patch) | |
tree | 10c431836a299fda0b66cdb217fcd4dd97dea118 /drivers/block | |
parent | c662edd6de9002176f62c05c6fe71bd5b4e84c4c (diff) | |
download | u-boot-4c73b0344230129ec7493cf425922791e6132a30.zip u-boot-4c73b0344230129ec7493cf425922791e6132a30.tar.gz u-boot-4c73b0344230129ec7493cf425922791e6132a30.tar.bz2 |
block: ide: call device_probe() after scanning
Every time an ide bus/port is scanned and a new device is detected,
we want to call device_probe() as it will give us a chance to run
additional post-processings for some purposes.
In particular, support for creating partitions on a device will be added.
Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/ide.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/block/ide.c b/drivers/block/ide.c index 63c4cfd..e8518ff 100644 --- a/drivers/block/ide.c +++ b/drivers/block/ide.c @@ -1123,6 +1123,10 @@ static int ide_probe(struct udevice *udev) blksz, size, &blk_dev); if (ret) return ret; + + ret = blk_probe_or_unbind(blk_dev); + if (ret) + return ret; } } |