Re: [PATCH v2 3/8] scsi: ufs: core: Add a vops to map clock frequency to gear speed

From: Bart Van Assche
Date: Wed Jan 22 2025 - 13:22:34 EST


On 1/22/25 2:02 AM, Ziqi Chen wrote:
From: Can Guo <quic_cang@xxxxxxxxxxx>

Add a vops to map UFS host controller clock frequencies to the maximum

Above and in the subject, please change "vops" into "vop" (variant
operation).

struct ufs_hba_variant_ops {
const char *name;
@@ -387,6 +388,8 @@ struct ufs_hba_variant_ops {
unsigned long *ocqs);
int (*config_esi)(struct ufs_hba *hba);
void (*config_scsi_dev)(struct scsi_device *sdev);
+ int (*freq_to_gear_speed)(struct ufs_hba *hba, unsigned long freq,
+ u32 *gear);
};

Please keep the indentation consistent.

Thanks,

Bart.