Skip to content

Commit 4049f7a

Browse files
ahunter6martinkpetersen
authored andcommitted
scsi: ufs: ufs-pci: Add support for Intel MTL
Add PCI ID and callbacks to support Intel Meteor Lake (MTL). Link: https://lore.kernel.org/r/20220404055038.2208051-1-adrian.hunter@intel.com Cc: stable@vger.kernel.org # v5.15+ Reviewed-by: Avri Altman <avri.altman@wdc.com> Reviewed-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent 6eaa771 commit 4049f7a

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

drivers/scsi/ufs/ufshcd-pci.c

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,12 @@ static int ufs_intel_adl_init(struct ufs_hba *hba)
428428
return ufs_intel_common_init(hba);
429429
}
430430

431+
static int ufs_intel_mtl_init(struct ufs_hba *hba)
432+
{
433+
hba->caps |= UFSHCD_CAP_CRYPTO | UFSHCD_CAP_WB_EN;
434+
return ufs_intel_common_init(hba);
435+
}
436+
431437
static struct ufs_hba_variant_ops ufs_intel_cnl_hba_vops = {
432438
.name = "intel-pci",
433439
.init = ufs_intel_common_init,
@@ -465,6 +471,16 @@ static struct ufs_hba_variant_ops ufs_intel_adl_hba_vops = {
465471
.device_reset = ufs_intel_device_reset,
466472
};
467473

474+
static struct ufs_hba_variant_ops ufs_intel_mtl_hba_vops = {
475+
.name = "intel-pci",
476+
.init = ufs_intel_mtl_init,
477+
.exit = ufs_intel_common_exit,
478+
.hce_enable_notify = ufs_intel_hce_enable_notify,
479+
.link_startup_notify = ufs_intel_link_startup_notify,
480+
.resume = ufs_intel_resume,
481+
.device_reset = ufs_intel_device_reset,
482+
};
483+
468484
#ifdef CONFIG_PM_SLEEP
469485
static int ufshcd_pci_restore(struct device *dev)
470486
{
@@ -579,6 +595,7 @@ static const struct pci_device_id ufshcd_pci_tbl[] = {
579595
{ PCI_VDEVICE(INTEL, 0x98FA), (kernel_ulong_t)&ufs_intel_lkf_hba_vops },
580596
{ PCI_VDEVICE(INTEL, 0x51FF), (kernel_ulong_t)&ufs_intel_adl_hba_vops },
581597
{ PCI_VDEVICE(INTEL, 0x54FF), (kernel_ulong_t)&ufs_intel_adl_hba_vops },
598+
{ PCI_VDEVICE(INTEL, 0x7E47), (kernel_ulong_t)&ufs_intel_mtl_hba_vops },
582599
{ } /* terminate list */
583600
};
584601

0 commit comments

Comments
 (0)