]> git.dujemihanovic.xyz Git - u-boot.git/commit
ata: sata_rescan must scan for block devices
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Wed, 14 Aug 2024 07:10:37 +0000 (09:10 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 27 Aug 2024 17:17:39 +0000 (11:17 -0600)
commit101d9a6a53cc05f62195f75792746ce3c9cce7b1
treecb4390e641a4b1389953294dc115e8cb67056bbc
parenta60c20bda8ad917af7952364b8159ea31c50f358
ata: sata_rescan must scan for block devices

A system may have multiple SATA controller. Removing the controller with
the lowest sequence number before probing all SATA controllers makes no
sense.

In sata_rescan we remove all block devices which are children of SATA
controllers. We also have to remove the bootdev devices as they will be
created when scanning for block devices.

After probing all SATA controllers we must scan for block devices otherwise
we end up without any SATA block device.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Tony Dinh <mibodhi@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/ata/sata.c