Skip to content

Commit e3b8bb4

Browse files
committed
Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
Pull SCSI fixes from James Bottomley: "Two patches, both in drivers. One is a fix to FC recovery (lpfc) and the other is an enhancement to support the Intel Alder Motherboard with the UFS driver which comes under the -rc exception process for hardware enabling" * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi: scsi: ufs: ufs-pci: Add support for Intel ADL scsi: lpfc: Fix non-recovery of remote ports following an unsolicited LOGO
2 parents 5c623c3 + 7dc9fb4 commit e3b8bb4

2 files changed

Lines changed: 20 additions & 7 deletions

File tree

drivers/scsi/lpfc/lpfc_els.c

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5095,14 +5095,9 @@ lpfc_cmpl_els_logo_acc(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocb,
50955095
/* NPort Recovery mode or node is just allocated */
50965096
if (!lpfc_nlp_not_used(ndlp)) {
50975097
/* A LOGO is completing and the node is in NPR state.
5098-
* If this a fabric node that cleared its transport
5099-
* registration, release the rpi.
5098+
* Just unregister the RPI because the node is still
5099+
* required.
51005100
*/
5101-
spin_lock_irq(&ndlp->lock);
5102-
ndlp->nlp_flag &= ~NLP_NPR_2B_DISC;
5103-
if (phba->sli_rev == LPFC_SLI_REV4)
5104-
ndlp->nlp_flag |= NLP_RELEASE_RPI;
5105-
spin_unlock_irq(&ndlp->lock);
51065101
lpfc_unreg_rpi(vport, ndlp);
51075102
} else {
51085103
/* Indicate the node has already released, should

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)