commit | fdd3d842b9fe84130b3cf09ff1bf0c5eb2afb945 | [log] [tgz] |
---|---|---|
author | Bhupesh Sharma <bhupesh.linux@gmail.com> | Mon Sep 30 14:44:32 2024 +0200 |
committer | Neil Armstrong <neil.armstrong@linaro.org> | Mon Oct 14 08:55:28 2024 +0200 |
tree | 64ffc1281577db82f0359d8e96d3eba1d15f8614 | |
parent | 6da82898d6820cd990011d2b099623c311c8e593 [diff] |
ufs: Add missing memory barriers Add missing wmb() and mb() barriers in the u-boot UFS core framework driver to allow registers updates to happen before follow-up read operations. This makes the barrier placement similar to the Linux UFS driver, synced from the Linux v6.9 release. Starting from the v6.10 release, the barriers were replaced with a register read-back in [1], this will ported to u-boot in a second time. [1] https://lore.kernel.org/all/20240329-ufs-reset-ensure-effect-before-delay-v5-0-181252004586@redhat.com/ Signed-off-by: Bhupesh Sharma <bhupesh.sharma@linaro.org> Tested-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com> Tested-by: Julius Lehmann <lehmanju@devpi.de> Link: https://lore.kernel.org/r/20240930-topic-ufs-enhancements-v3-10-58234f84ab89@linaro.org Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>