Skip to content

Commit 7dc9fb4

Browse files
ahunter6martinkpetersen
authored andcommitted
scsi: ufs: ufs-pci: Add support for Intel ADL
Add PCI ID and callbacks to support Intel Alder Lake. Link: https://lore.kernel.org/r/[email protected] Cc: [email protected] # v5.15+ Reviewed-by: Bart Van Assche <[email protected]> Signed-off-by: Adrian Hunter <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 0956ba6 commit 7dc9fb4

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

drivers/scsi/ufs/ufshcd-pci.c

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,13 @@ static int ufs_intel_lkf_init(struct ufs_hba *hba)
421421
return err;
422422
}
423423

424+
static int ufs_intel_adl_init(struct ufs_hba *hba)
425+
{
426+
hba->nop_out_timeout = 200;
427+
hba->quirks |= UFSHCD_QUIRK_BROKEN_AUTO_HIBERN8;
428+
return ufs_intel_common_init(hba);
429+
}
430+
424431
static struct ufs_hba_variant_ops ufs_intel_cnl_hba_vops = {
425432
.name = "intel-pci",
426433
.init = ufs_intel_common_init,
@@ -449,6 +456,15 @@ static struct ufs_hba_variant_ops ufs_intel_lkf_hba_vops = {
449456
.device_reset = ufs_intel_device_reset,
450457
};
451458

459+
static struct ufs_hba_variant_ops ufs_intel_adl_hba_vops = {
460+
.name = "intel-pci",
461+
.init = ufs_intel_adl_init,
462+
.exit = ufs_intel_common_exit,
463+
.link_startup_notify = ufs_intel_link_startup_notify,
464+
.resume = ufs_intel_resume,
465+
.device_reset = ufs_intel_device_reset,
466+
};
467+
452468
#ifdef CONFIG_PM_SLEEP
453469
static int ufshcd_pci_restore(struct device *dev)
454470
{
@@ -563,6 +579,8 @@ static const struct pci_device_id ufshcd_pci_tbl[] = {
563579
{ PCI_VDEVICE(INTEL, 0x4B41), (kernel_ulong_t)&ufs_intel_ehl_hba_vops },
564580
{ PCI_VDEVICE(INTEL, 0x4B43), (kernel_ulong_t)&ufs_intel_ehl_hba_vops },
565581
{ PCI_VDEVICE(INTEL, 0x98FA), (kernel_ulong_t)&ufs_intel_lkf_hba_vops },
582+
{ PCI_VDEVICE(INTEL, 0x51FF), (kernel_ulong_t)&ufs_intel_adl_hba_vops },
583+
{ PCI_VDEVICE(INTEL, 0x54FF), (kernel_ulong_t)&ufs_intel_adl_hba_vops },
566584
{ } /* terminate list */
567585
};
568586

0 commit comments

Comments
 (0)