diff options
author | Bin Meng <bmeng@tinylab.org> | 2023-10-11 21:15:51 +0800 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-11-27 16:18:59 -0500 |
commit | 5b2d25a2e3c303515f6ce3b0ea7e984e1e6312da (patch) | |
tree | 7959935dac3f752a47281cf392d767bd69a0f34f /drivers/ufs/ufs.c | |
parent | 2ec7d657c03dd583b4638bff6352ac3b88742c09 (diff) | |
download | u-boot-5b2d25a2e3c303515f6ce3b0ea7e984e1e6312da.zip u-boot-5b2d25a2e3c303515f6ce3b0ea7e984e1e6312da.tar.gz u-boot-5b2d25a2e3c303515f6ce3b0ea7e984e1e6312da.tar.bz2 |
ufs: Handle UFS 3.1 controllers
Extend the version check to handle UFS 3.1 controllers as well.
Tested on QEMU emulated UFS 3.1 controller.
Signed-off-by: Bin Meng <bmeng@tinylab.org>
Reviewed-by: Neha Malcom Francis <n-francis@ti.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/ufs/ufs.c')
-rw-r--r-- | drivers/ufs/ufs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/ufs/ufs.c b/drivers/ufs/ufs.c index fb2a607..6287ce9 100644 --- a/drivers/ufs/ufs.c +++ b/drivers/ufs/ufs.c @@ -1953,7 +1953,8 @@ int ufshcd_probe(struct udevice *ufs_dev, struct ufs_hba_ops *hba_ops) hba->version != UFSHCI_VERSION_11 && hba->version != UFSHCI_VERSION_20 && hba->version != UFSHCI_VERSION_21 && - hba->version != UFSHCI_VERSION_30) + hba->version != UFSHCI_VERSION_30 && + hba->version != UFSHCI_VERSION_31) dev_err(hba->dev, "invalid UFS version 0x%x\n", hba->version); |