diff options
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_sup.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_sup.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/qla_sup.c b/drivers/scsi/qla2xxx/qla_sup.c index d54d2a99c3d3..f4d755a643e4 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, | |||
573 | } | 573 | } |
574 | } while (0); | 574 | } while (0); |
575 | 575 | ||
576 | /* Enable flash write-protection. */ | ||
577 | qla24xx_write_flash_dword(ha, flash_conf_to_access_addr(0x101), 0x9c); | ||
578 | |||
576 | /* Disable flash write. */ | 579 | /* Disable flash write. */ |
577 | WRT_REG_DWORD(®->ctrl_status, | 580 | WRT_REG_DWORD(®->ctrl_status, |
578 | RD_REG_DWORD(®->ctrl_status) & ~CSRX_FLASH_ENABLE); | 581 | RD_REG_DWORD(®->ctrl_status) & ~CSRX_FLASH_ENABLE); |