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

Simon Glass
2021-10-10T14:18:18Z

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

Reviewed-by: Simon Glass <sjg@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() ?

Regards,
Simon