]> git.ipfire.org Git - thirdparty/u-boot.git/commit
drivers: ufs: handle return values of ufs_hba_ops callbacks
authorJulien Stephan <jstephan@baylibre.com>
Thu, 5 Mar 2026 08:49:02 +0000 (09:49 +0100)
committerNeil Armstrong <neil.armstrong@linaro.org>
Thu, 5 Mar 2026 15:51:51 +0000 (16:51 +0100)
commit0bb1d511e4f5deb4e8426ba2c8fc8f4859999341
treea8d309ca5352a8824609b513d26fc522fad04d64
parentc0ca147ac6228949a6d6497531c9f2f4a0dc6c67
drivers: ufs: handle return values of ufs_hba_ops callbacks

The return values of ufshcd_ops_link_startup_notify(),
ufshcd_ops_hce_enable_notify(), ufshcd_ops_init(), and
ufshcd_device_reset() are currently ignored.

Check and propagate these return values properly and emit appropriate
error messages on error.

While at it, remove the ufshcd_device_reset() wrapper, which just call
ufshcd_device_reset().

Signed-off-by: Julien Stephan <jstephan@baylibre.com>
Reviewed-by: Macpaul Lin <macpaul.lin@mediatek.com>
Link: https://patch.msgid.link/20260305-ufs-ufs_hba_ops-cleanup-v3-1-e153ffab98f5@baylibre.com
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
drivers/ufs/ufs-uclass.c