Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 334120
b: refs/heads/master
c: 5402a31
h: refs/heads/master
v: v3
  • Loading branch information
James Smart authored and James Bottomley committed Oct 8, 2012
1 parent a85762d commit 50ca695
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 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: 82c3e9bafa25f287e20f097258a630ecd2877c5b
refs/heads/master: 5402a3158118ff3c67376f5fca7ad0da68e3ba0e
2 changes: 2 additions & 0 deletions trunk/drivers/scsi/lpfc/lpfc.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@

struct lpfc_sli2_slim;

#define ELX_MODEL_NAME_SIZE 80

#define LPFC_PCI_DEV_LP 0x1
#define LPFC_PCI_DEV_OC 0x2

Expand Down
5 changes: 3 additions & 2 deletions trunk/drivers/scsi/lpfc/lpfc_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -9428,7 +9428,7 @@ lpfc_pci_probe_one_s4(struct pci_dev *pdev, const struct pci_device_id *pid)
int mcnt;
int adjusted_fcp_io_channel;
const struct firmware *fw;
uint8_t file_name[16];
uint8_t file_name[ELX_MODEL_NAME_SIZE];

/* Allocate memory for HBA structure */
phba = lpfc_hba_alloc(pdev);
Expand Down Expand Up @@ -9574,7 +9574,8 @@ lpfc_pci_probe_one_s4(struct pci_dev *pdev, const struct pci_device_id *pid)
/* check for firmware upgrade or downgrade (if_type 2 only) */
if (bf_get(lpfc_sli_intf_if_type, &phba->sli4_hba.sli_intf) ==
LPFC_SLI_INTF_IF_TYPE_2) {
snprintf(file_name, 16, "%s.grp", phba->ModelName);
snprintf(file_name, ELX_MODEL_NAME_SIZE, "%s.grp",
phba->ModelName);
error = request_firmware(&fw, file_name, &phba->pcidev->dev);
if (!error) {
lpfc_write_firmware(phba, fw);
Expand Down

0 comments on commit 50ca695

Please sign in to comment.