mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 10:11:26 +03:00
ufs: Remove ufshcd_vops_reinit_notify
In Linux v6.13, commit 7bac65687510 ("scsi: ufs: qcom: Power off the PHY
if it was already powered on in ufs_qcom_power_up_sequence()") removed
the 'reinit_notify' function pointer from the 'ufs_hba_variant_ops'
structure. This breaks the build for the Tegra UFS driver because we
maintain a copy of the upstream header file 'ufshcd-priv.h' in order to
build the Tegra UFS driver as an out-of-tree driver.
It is possible to fix this by using conftest to detect if the
'reinit_notify' function pointer is defined in the kernel's
'ufs_hba_variant_ops' structure. However, given that the Tegra UFS
driver does not use the 'ufshcd_vops_reinit_notify' where this
function pointer is referenced, it is simpler to remove the function
ufshcd_vops_reinit_notify completely.
Bug 4991705
Change-Id: I2228f2a26640e13f61721e82856cc32b8d570809
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3283377
Reviewed-by: Brad Griffis <bgriffis@nvidia.com>
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
@@ -241,12 +241,6 @@ static inline void ufshcd_vops_config_scaling_param(struct ufs_hba *hba,
|
||||
hba->vops->config_scaling_param(hba, p, data);
|
||||
}
|
||||
|
||||
static inline void ufshcd_vops_reinit_notify(struct ufs_hba *hba)
|
||||
{
|
||||
if (hba->vops && hba->vops->reinit_notify)
|
||||
hba->vops->reinit_notify(hba);
|
||||
}
|
||||
|
||||
static inline int ufshcd_vops_mcq_config_resource(struct ufs_hba *hba)
|
||||
{
|
||||
if (hba->vops && hba->vops->mcq_config_resource)
|
||||
|
||||
Reference in New Issue
Block a user