Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 204085
b: refs/heads/master
c: 0547fb3
h: refs/heads/master
i:
  204083: 638cf90
v: v3
  • Loading branch information
Lalit Chandivade authored and James Bottomley committed Jul 27, 2010
1 parent 80c9ba6 commit fc0747f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: cdbb0a4f31c486e4f6fb6e673a892f4f5205f91c
refs/heads/master: 0547fb37ca1f8da18e65b7452f99e9784f026be2
7 changes: 4 additions & 3 deletions trunk/drivers/scsi/qla2xxx/qla_nx.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#define QLA82XX_PCI_OCM0_2M (0xc0000)
#define VALID_OCM_ADDR(addr) (((addr) & 0x3f800) != 0x3f800)
#define GET_MEM_OFFS_2M(addr) (addr & MASK(18))
#define BLOCK_PROTECT_BITS 0x0F

/* CRB window related */
#define CRB_BLK(off) ((off >> 20) & 0x3f)
Expand Down Expand Up @@ -3147,10 +3148,10 @@ qla82xx_unprotect_flash(struct qla_hw_data *ha)
if (ret < 0)
goto done_unprotect;

val &= ~(0x7 << 2);
val &= ~(BLOCK_PROTECT_BITS << 2);
ret = qla82xx_write_status_reg(ha, val);
if (ret < 0) {
val |= (0x7 << 2);
val |= (BLOCK_PROTECT_BITS << 2);
qla82xx_write_status_reg(ha, val);
}

Expand Down Expand Up @@ -3178,7 +3179,7 @@ qla82xx_protect_flash(struct qla_hw_data *ha)
if (ret < 0)
goto done_protect;

val |= (0x7 << 2);
val |= (BLOCK_PROTECT_BITS << 2);
/* LOCK all sectors */
ret = qla82xx_write_status_reg(ha, val);
if (ret < 0)
Expand Down

0 comments on commit fc0747f

Please sign in to comment.