summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Hunter <adrian.hunter@intel.com>2025-07-23 19:58:56 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2025-07-24 22:37:30 -0400
commit22b246e3fc5eb450fffad1eb322e08e3af0e6e3d (patch)
treeb7388eb16d46c2e7121ca4855c6be9d0590f5b7c
parentd402b20f9c31e477f3cf3512be22c7943dbb0ee4 (diff)
scsi: ufs: ufs-pci: Remove control of UIC Completion interrupt for Intel MTL
Now that UFS core enables the UIC Completion interrupt only when needed, Intel MTL driver no longer needs to control the interrupt itself. So remove the associated code. Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Link: https://lore.kernel.org/r/20250723165856.145750-9-adrian.hunter@intel.com Reviewed-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
-rw-r--r--drivers/ufs/host/ufshcd-pci.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/drivers/ufs/host/ufshcd-pci.c b/drivers/ufs/host/ufshcd-pci.c
index b29ec1904482..b39239f641f2 100644
--- a/drivers/ufs/host/ufshcd-pci.c
+++ b/drivers/ufs/host/ufshcd-pci.c
@@ -211,32 +211,6 @@ out:
return ret;
}
-static void ufs_intel_ctrl_uic_compl(struct ufs_hba *hba, bool enable)
-{
- u32 set = ufshcd_readl(hba, REG_INTERRUPT_ENABLE);
-
- if (enable)
- set |= UIC_COMMAND_COMPL;
- else
- set &= ~UIC_COMMAND_COMPL;
- ufshcd_writel(hba, set, REG_INTERRUPT_ENABLE);
-}
-
-static void ufs_intel_mtl_h8_notify(struct ufs_hba *hba,
- enum uic_cmd_dme cmd,
- enum ufs_notify_change_status status)
-{
- /*
- * Disable UIC COMPL INTR to prevent access to UFSHCI after
- * checking HCS.UPMCRS
- */
- if (status == PRE_CHANGE && cmd == UIC_CMD_DME_HIBER_ENTER)
- ufs_intel_ctrl_uic_compl(hba, false);
-
- if (status == POST_CHANGE && cmd == UIC_CMD_DME_HIBER_EXIT)
- ufs_intel_ctrl_uic_compl(hba, true);
-}
-
#define INTEL_ACTIVELTR 0x804
#define INTEL_IDLELTR 0x808
@@ -549,7 +523,6 @@ static struct ufs_hba_variant_ops ufs_intel_mtl_hba_vops = {
.init = ufs_intel_mtl_init,
.exit = ufs_intel_common_exit,
.hce_enable_notify = ufs_intel_hce_enable_notify,
- .hibern8_notify = ufs_intel_mtl_h8_notify,
.link_startup_notify = ufs_intel_link_startup_notify,
.resume = ufs_intel_resume,
.device_reset = ufs_intel_device_reset,