]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commitda91fa5b81c089f490142b9559668a843fabe54e
treec57e84cf775858ea2e0382e4d590684a2b041bfd
parentaa7c0f1e895d7e6256724a82f913c788ef9a8862
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