diff options
author | Simon Glass <sjg@chromium.org> | 2024-07-26 06:36:09 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-07-31 11:20:57 -0600 |
commit | 59ca3a2f20f37fd45e4ccf266ae2df9379c7af91 (patch) | |
tree | 00a99b897f720b4c9279a0c9076fec109bfa722d /net/tftp.c | |
parent | c502d7ada25ab21cc04e1df62fd22af5c8360275 (diff) | |
download | u-boot-59ca3a2f20f37fd45e4ccf266ae2df9379c7af91.tar.gz u-boot-59ca3a2f20f37fd45e4ccf266ae2df9379c7af91.tar.bz2 u-boot-59ca3a2f20f37fd45e4ccf266ae2df9379c7af91.zip |
usb: bootm: Drop old USB-device-removal code
USB is stopped using driver model now, in dm_remove_devices_flags() in
announce_and_cleanup() at the top of this file.
The usb_stop() call actually unbinds devices.
When a USB device is unbound, it causes any bootflows attached to it to
be removed, via a call to bootdev_clear_bootflows() from
bootdev_pre_unbind(). This obviously makes it impossible to boot the
bootflow.
However, when booting a bootflow that relies on USB, usb_stop() is
called, which unbinds the device. At that point any information
attached to the bootflow is dropped.
This is quite risky since the contents of freed memory are not
guaranteed to remain unchanged. Depending on what other options are
done before boot, a hard-to-find bug may crop up.
Drop the call to this old function.
Leave the netconsole call there, since this needs conversion to
driver model.
Signed-off-by: Simon Glass <sjg@chromium.org>
Suggested-by: Shantur Rathore <i@shantur.com>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Diffstat (limited to 'net/tftp.c')
0 files changed, 0 insertions, 0 deletions