scsi: Remove all children of SCSI devices before rescanning
authorSimon Glass <sjg@chromium.org>
Tue, 17 Jan 2023 17:47:44 +0000 (10:47 -0700)
committerTom Rini <trini@konsulko.com>
Mon, 23 Jan 2023 23:11:40 +0000 (18:11 -0500)
commit6febc264711cbebcd91cb06c2d1bf0b181178fcc
treec57e84cf775858ea2e0382e4d590684a2b041bfd
parentca93d281717acb121960b50e6e9d7eebab3d950d
scsi: Remove all children of SCSI devices before rescanning

At present this only unbinds block devices of a certain type. But SCSI
device can have different types of children, including bootdevs.

Unbind all children so tht everything is clean and ready for a new scan.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/scsi/scsi.c