aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_sup.c
diff options
context:
space:
mode:
authorandrew.vasquez@qlogic.com <andrew.vasquez@qlogic.com>2006-01-13 17:05:15 -0800
committerJames Bottomley <jejb@mulgrave.(none)>2006-01-14 10:55:29 -0600
commite978010cebcc0ac1be67caab8dfc7c1fa831406d (patch)
treeb54ed389bf05df811665389e08eb8f81242dc390 /drivers/scsi/qla2xxx/qla_sup.c
parent5998983113c1c9158c1ce66ff26a212aceaf7e5c (diff)
downloadkernel_samsung_espresso10-e978010cebcc0ac1be67caab8dfc7c1fa831406d.zip
kernel_samsung_espresso10-e978010cebcc0ac1be67caab8dfc7c1fa831406d.tar.gz
kernel_samsung_espresso10-e978010cebcc0ac1be67caab8dfc7c1fa831406d.tar.bz2
[SCSI] qla2xxx: Re-enable flash-part write protection on ISP24xx boards.
Driver would not correctly re-enable the write-protection bits of the flash part after updates. Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_sup.c')
-rw-r--r--drivers/scsi/qla2xxx/qla_sup.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/qla_sup.c b/drivers/scsi/qla2xxx/qla_sup.c
index d54d2a9..f4d755a 100644
--- a/drivers/scsi/qla2xxx/qla_sup.c
+++ b/drivers/scsi/qla2xxx/qla_sup.c
@@ -573,6 +573,9 @@ qla24xx_write_flash_data(scsi_qla_host_t *ha, uint32_t *dwptr, uint32_t faddr,
}
} while (0);
+ /* Enable flash write-protection. */
+ qla24xx_write_flash_dword(ha, flash_conf_to_access_addr(0x101), 0x9c);
+
/* Disable flash write. */
WRT_REG_DWORD(&reg->ctrl_status,
RD_REG_DWORD(&reg->ctrl_status) & ~CSRX_FLASH_ENABLE);