Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 33573
b: refs/heads/master
c: 1c067a4
h: refs/heads/master
i:
  33571: 63ac024
v: v3
  • Loading branch information
James Smart authored and James Bottomley committed Aug 6, 2006
1 parent 12b44d5 commit af61b4f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a309a6b6e64b8147b7cfe7388237fb83834f58c9
refs/heads/master: 1c067a42413c4f39c907443b8f5979cd4d82f0ff
10 changes: 7 additions & 3 deletions trunk/drivers/scsi/lpfc/lpfc_sli.c
Original file line number Diff line number Diff line change
Expand Up @@ -1711,15 +1711,13 @@ lpfc_sli_brdreset(struct lpfc_hba * phba)
phba->fc_myDID = 0;
phba->fc_prevDID = 0;

psli->sli_flag = 0;

/* Turn off parity checking and serr during the physical reset */
pci_read_config_word(phba->pcidev, PCI_COMMAND, &cfg_value);
pci_write_config_word(phba->pcidev, PCI_COMMAND,
(cfg_value &
~(PCI_COMMAND_PARITY | PCI_COMMAND_SERR)));

psli->sli_flag &= ~LPFC_SLI2_ACTIVE;
psli->sli_flag &= ~(LPFC_SLI2_ACTIVE | LPFC_PROCESS_LA);
/* Now toggle INITFF bit in the Host Control Register */
writel(HC_INITFF, phba->HCregaddr);
mdelay(1);
Expand Down Expand Up @@ -1905,13 +1903,19 @@ lpfc_sli_hba_setup(struct lpfc_hba * phba)
}

while (resetcount < 2 && !done) {
spin_lock_irq(phba->host->host_lock);
phba->sli.sli_flag |= LPFC_SLI_MBOX_ACTIVE;
spin_unlock_irq(phba->host->host_lock);
phba->hba_state = LPFC_STATE_UNKNOWN;
lpfc_sli_brdrestart(phba);
msleep(2500);
rc = lpfc_sli_chipset_init(phba);
if (rc)
break;

spin_lock_irq(phba->host->host_lock);
phba->sli.sli_flag &= ~LPFC_SLI_MBOX_ACTIVE;
spin_unlock_irq(phba->host->host_lock);
resetcount++;

/* Call pre CONFIG_PORT mailbox command initialization. A value of 0
Expand Down

0 comments on commit af61b4f

Please sign in to comment.