[RFC 07/22] block: ide: call device_probe() after scanning

Simon Glass sjg at chromium.org
Sun Oct 10 16:14:13 CEST 2021

On Thu, 30 Sept 2021 at 23:03, AKASHI Takahiro
<takahiro.akashi at linaro.org> wrote:
> 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 at linaro.org>
> ---
>  drivers/block/ide.c | 6 ++++++
>  1 file changed, 6 insertions(+)

Reviewed-by: Simon Glass <sjg at chromium.org>

I'm starting to wonder if you can create a function that does the
probe and unbind? Something in the blk interface, perhaps? It would
reduce the duplicated code and provide a standard way of bringing up a
new device.

Perhaps blk_device_complete() ?


More information about the U-Boot mailing list