On Wed, 26 Mar 2025 at 19:41, Caleb Connolly <caleb.conno...@linaro.org> wrote: > > Calling scsi_scan() results in all the block devices (and EFI block > devices) being destroyed and re-created. This breaks the EFI filesystem > drivers during capsule update. > > Remove the call, since boards really should be calling scsi_scan() > themselves during board_init(). > > Signed-off-by: Caleb Connolly <caleb.conno...@linaro.org> > --- > drivers/dfu/dfu_scsi.c | 5 ----- > 1 file changed, 5 deletions(-) > > diff --git a/drivers/dfu/dfu_scsi.c b/drivers/dfu/dfu_scsi.c > index > 9f95194784c1de00458843276872b1d23d023444..a234548ae46dc2a6ae1ca5770accb58f43782239 > 100644 > --- a/drivers/dfu/dfu_scsi.c > +++ b/drivers/dfu/dfu_scsi.c > @@ -341,13 +341,8 @@ int dfu_fill_entity_scsi(struct dfu_entity *dfu, char > *devstr, char **argv, int > if (*s) > return -EINVAL; > } > > - if (scsi_scan(false)) { > - pr_err("Couldn't init scsi device.\n"); > - return -ENODEV; > - } > - > ret = find_scsi_device(dfu->data.scsi.lun, &scsi); > if (ret < 0) { > pr_err("Couldn't find scsi device no. %d.\n", > dfu->data.scsi.lun); > return -ENODEV; > > -- > 2.49.0 >
Reviewed-by: Ilias Apalodimas <ilias.apalodi...@linaro.org>