scsi: Revert "scsi: ufs: core: Initialize devfreq synchronously"
authorAdrien Thierry <athierry@redhat.com>
Wed, 29 Mar 2023 20:54:25 +0000 (16:54 -0400)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 3 Apr 2023 01:12:34 +0000 (21:12 -0400)
commit86eb94bf8006a85738f0ccf49e3ce894e03922a6
tree17b9a94c95bde019dd010964f0da698e311f4d04
parentd684a7a26f7d2c7122a4581ac966ed64e88fb29c
scsi: Revert "scsi: ufs: core: Initialize devfreq synchronously"

This reverts commit 7dafc3e007918384c8693ff8d70381b5c1e9c247.

This patch introduced a regression [1] where hba->pwr_info is used before
being initialized, which could create issues in ufshcd_scale_gear(). Revert
it until a better solution is found.

[1] https://lore.kernel.org/all/CAGaU9a_PMZhqv+YJ0r3w-hJMsR922oxW6Kg59vw+oen-NZ6Otw@mail.gmail.com

Signed-off-by: Adrien Thierry <athierry@redhat.com>
Link: https://lore.kernel.org/r/20230329205426.46393-1-athierry@redhat.com
Reviewed-by: Stanley Chu <stanley.chu@mediatek.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/ufs/core/ufshcd.c
include/ufs/ufshcd.h