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