Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 77139
b: refs/heads/master
c: 6f13fd5
h: refs/heads/master
i:
  77137: 13a05df
  77135: d0514f9
v: v3
  • Loading branch information
Andrew Vasquez authored and James Bottomley committed Jan 23, 2008
1 parent ce830df commit 7ceebe2
Show file tree
Hide file tree
Showing 2 changed files with 9 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: 3776541d8a46347a4924353a192c6ce4a3d04e2e
refs/heads/master: 6f13fd57cd84c06cea6c4b6d61517a4350820a9f
10 changes: 8 additions & 2 deletions trunk/drivers/scsi/qla2xxx/qla_sup.c
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ qla24xx_write_flash_data(scsi_qla_host_t *ha, uint32_t *dwptr, uint32_t faddr,
int ret;
uint32_t liter, miter;
uint32_t sec_mask, rest_addr, conf_addr;
uint32_t fdata, findex ;
uint32_t fdata, findex, cnt;
uint8_t man_id, flash_id;
struct device_reg_24xx __iomem *reg = &ha->iobase->isp24;
dma_addr_t optrom_dma;
Expand Down Expand Up @@ -690,8 +690,14 @@ qla24xx_write_flash_data(scsi_qla_host_t *ha, uint32_t *dwptr, uint32_t faddr,
0xff0000) | ((fdata >> 16) & 0xff));
}

/* Enable flash write-protection. */
/* Enable flash write-protection and wait for completion. */
qla24xx_write_flash_dword(ha, flash_conf_to_access_addr(0x101), 0x9c);
for (cnt = 300; cnt &&
qla24xx_read_flash_dword(ha,
flash_conf_to_access_addr(0x005)) & BIT_0;
cnt--) {
udelay(10);
}

/* Disable flash write. */
WRT_REG_DWORD(&reg->ctrl_status,
Expand Down

0 comments on commit 7ceebe2

Please sign in to comment.