commit | 0087ec094cc9186696428ecdf0e467bec6b81d36 | [log] [tgz] |
---|---|---|
author | Sean Anderson <seanga2@gmail.com> | Wed Nov 08 11:48:36 2023 -0500 |
committer | Tom Rini <trini@konsulko.com> | Thu Nov 16 13:49:13 2023 -0500 |
tree | 36bc7dd2672f8c7c7910a1e9ee8570010bb28eed | |
parent | 4d9e0f634b1f4a89580ee064cbeff1e288c71e84 [diff] |
spl: semihosting: Don't close fd before spl_load_simple_fit On real hardware, semihosting calls tend to have a large constant overhead (on the order of tens of milliseconds). Reduce the number of calls by one by reusing the existing fd in smh_fit_read, and closing it at the end of spl_smh_load_image. Signed-off-by: Sean Anderson <seanga2@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>