]> git.ipfire.org Git - thirdparty/u-boot.git/commit
drivers: ufs: ufs-mediatek: fix phy handling
authorJulien Stephan <jstephan@baylibre.com>
Wed, 18 Mar 2026 16:50:58 +0000 (17:50 +0100)
committerDavid Lechner <dlechner@baylibre.com>
Fri, 17 Apr 2026 22:05:54 +0000 (17:05 -0500)
commitac6e41ee6e6596c17e7a7ebbd15723f82c4fd20f
tree14836125e558fd30ae827941da596733ec605ea3
parente13229b66a43867e3c13b24da6bde7a2fe265ce6
drivers: ufs: ufs-mediatek: fix phy handling

Currently mphy is declared as a pointer inside ufs_mtk_host struct, but
it is never initialized.

Fix this by using a struct phy directly in ufs_mtk_host struct instead
of a struct phy*. Update all call to mphy accordingly.

Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Julien Stephan <jstephan@baylibre.com>
Link: https://patch.msgid.link/20260318-mt8195-add-ufs-support-v2-6-f18eeeeb0e72@baylibre.com
Signed-off-by: David Lechner <dlechner@baylibre.com>
drivers/ufs/ufs-mediatek.c
drivers/ufs/ufs-mediatek.h