Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 271099
b: refs/heads/master
c: 14ed9cc
h: refs/heads/master
i:
  271097: 3b54425
  271095: 74526ef
v: v3
  • Loading branch information
Wayne Boyer authored and James Bottomley committed Oct 16, 2011
1 parent 82cc792 commit 8cfec5f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 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: 1a34c0640137eed8dabdac3a68a7a84116ac9e0d
refs/heads/master: 14ed9cc7e7b9a95d56c2bf91cab2f010968d6e73
10 changes: 2 additions & 8 deletions trunk/drivers/scsi/ipr.c
Original file line number Diff line number Diff line change
Expand Up @@ -3751,14 +3751,6 @@ static ssize_t ipr_store_update_fw(struct device *dev,

image_hdr = (struct ipr_ucode_image_header *)fw_entry->data;

if (be32_to_cpu(image_hdr->header_length) > fw_entry->size ||
(ioa_cfg->vpd_cbs->page3_data.card_type &&
ioa_cfg->vpd_cbs->page3_data.card_type != image_hdr->card_type)) {
dev_err(&ioa_cfg->pdev->dev, "Invalid microcode buffer\n");
release_firmware(fw_entry);
return -EINVAL;
}

src = (u8 *)image_hdr + be32_to_cpu(image_hdr->header_length);
dnld_size = fw_entry->size - be32_to_cpu(image_hdr->header_length);
sglist = ipr_alloc_ucode_buffer(dnld_size);
Expand All @@ -3777,6 +3769,8 @@ static ssize_t ipr_store_update_fw(struct device *dev,
goto out;
}

ipr_info("Updating microcode, please be patient. This may take up to 30 minutes.\n");

result = ipr_update_ioa_ucode(ioa_cfg, sglist);

if (!result)
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/scsi/ipr.h
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@
#define IPR_CANCEL_ALL_TIMEOUT (ipr_fastfail ? 10 * HZ : 30 * HZ)
#define IPR_ABORT_TASK_TIMEOUT (ipr_fastfail ? 10 * HZ : 30 * HZ)
#define IPR_INTERNAL_TIMEOUT (ipr_fastfail ? 10 * HZ : 30 * HZ)
#define IPR_WRITE_BUFFER_TIMEOUT (10 * 60 * HZ)
#define IPR_WRITE_BUFFER_TIMEOUT (30 * 60 * HZ)
#define IPR_SET_SUP_DEVICE_TIMEOUT (2 * 60 * HZ)
#define IPR_REQUEST_SENSE_TIMEOUT (10 * HZ)
#define IPR_OPERATIONAL_TIMEOUT (5 * 60)
Expand Down

0 comments on commit 8cfec5f

Please sign in to comment.