Re: [PATCH 2/6] scsi: ufs: ufs-qcom: Add support for UFS device version detection

From: Konrad Dybcio
Date: Mon Sep 11 2023 - 17:37:29 EST


On 11.09.2023 07:59, Can Guo wrote:
> From: "Bao D. Nguyen" <quic_nguyenb@xxxxxxxxxxx>
>
> Retrieve UFS device version from UFS host controller's spare register
> which is populated by bootloader, and use the UFS device version together
> with host controller's HW version to decide the proper power modes which
> should be used to configure the UFS PHY.
That sounds a bit fishy.. is there no bootloader-independent
solution to that? Can't we bring in the code that the bootloader
uses to determine these values?

Konrad