Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=e6e074f175879b1c1d700056aa0c32abefb92c1a
Commit:     e6e074f175879b1c1d700056aa0c32abefb92c1a
Parent:     da4541b63bbe9a945d7bbc1105f2deacc42ef195
Author:     Andrew Vasquez <[EMAIL PROTECTED]>
AuthorDate: Thu Jan 31 12:33:53 2008 -0800
Committer:  James Bottomley <[EMAIL PROTECTED]>
CommitDate: Thu Feb 7 18:02:40 2008 -0600

    [SCSI] qla2xxx: Correct issue where incorrect init-fw mailbox command was 
used on non-NPIV capable ISPs.
    
    BIT_2 of the firmware attributes is only valid on FW-interface-2
    type HBAs.  Code in commit
    c48339decceec8e011498b0fc4c7c7d8b2ea06c1 would cause the
    incorrect initialize-firmware mailbox command to be issued for
    non-NPIV capable ISPs.  Correct this by reverting to previously
    used (and correct) pre-condition 'if' check.
    
    Signed-off-by: Andrew Vasquez <[EMAIL PROTECTED]>
    Signed-off-by: James Bottomley <[EMAIL PROTECTED]>
---
 drivers/scsi/qla2xxx/qla_mbx.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/scsi/qla2xxx/qla_mbx.c b/drivers/scsi/qla2xxx/qla_mbx.c
index 0c10c0b..99d29ff 100644
--- a/drivers/scsi/qla2xxx/qla_mbx.c
+++ b/drivers/scsi/qla2xxx/qla_mbx.c
@@ -980,7 +980,7 @@ qla2x00_init_firmware(scsi_qla_host_t *ha, uint16_t size)
        DEBUG11(printk("qla2x00_init_firmware(%ld): entered.\n",
            ha->host_no));
 
-       if (ha->fw_attributes & BIT_2)
+       if (ha->flags.npiv_supported)
                mcp->mb[0] = MBC_MID_INITIALIZE_FIRMWARE;
        else
                mcp->mb[0] = MBC_INITIALIZE_FIRMWARE;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to