]> git.ipfire.org Git - thirdparty/u-boot.git/commit
Invalidate cached FAT device upon boot error
authorPrasad Kale <prasad.kale@live.com>
Thu, 30 Oct 2025 17:03:01 +0000 (22:33 +0530)
committerTom Rini <trini@konsulko.com>
Thu, 6 Nov 2025 14:31:34 +0000 (08:31 -0600)
commitc488907f91ec90bb6a93803b1db53e24b93b52ea
treea79f29bae35449948ce6ac4d92ec76a24a6dffea
parent77905c333e4fa1093154984cc65575b5cb7cc97d
Invalidate cached FAT device upon boot error

When spl boot device list has multiple FAT devices, any previousely
registered FAT device should be deregistered before registering
next FAT boot device, otherwise the function may not attempt boot
from next FAT device.One of the situations where this issue can be
observed is when the boot device list has two FAT partitions of a
memory device and if booting fails on first partition (because of
file or partition related errors), boot from next partition actually
gets attempted on previous boot device only, as the previous device
has remained marked as registered. Call the function that invalidates
cached boot device in case of failure in booting from current FAT
boot device.

Signed-off-by: Prasad Kale <prasad.kale@live.com>
Cc: Dan Murphy <dmurphy@ti.com>
Cc: Sean Anderson <seanga2@gmail.com>
common/spl/spl_fat.c