[PATCH 0/2] ufs: Add support for setting bRefClkFreq attribute
Bryan Brattlof
bb at ti.com
Thu Aug 28 16:50:38 CEST 2025
On August 27, 2025 thus sayeth Jared McArthur:
> Currently, U-Boot doesn't set the bRefClkFreq attribute before
> changing power mode of the UFS device. If there is a difference
> between the UFS device and the host controller, all commands will fail
> after switching to high speed.
>
> This behavior is rarely observed, because Linux sets the bRefClkFreq
> attribute on probe, and the bRefClkFreq is a persistent attribute. In
> other words, once Linux has booted once, the issue will never be seen.
>
> If trying to provision and boot from an unprovisioned UFS device,
> U-Boot will fail. Fix this by adding support for setting the
> bRefClkFreq attribute.
>
> Jared McArthur (2):
> ufs: Add support for sending UFS attribute requests
> ufs: Add bRefClkFreq attribute setting
>
> drivers/ufs/ufs.c | 184 ++++++++++++++++++++++++++++++++++++++++++++++
> drivers/ufs/ufs.h | 10 +++
> 2 files changed, 194 insertions(+)
Reviewed-by: Bryan Brattlof <bb at ti.com>
~Bryan
More information about the U-Boot
mailing list