diff options
author | Vikas Chaudhary <vikas.chaudhary@qlogic.com> | 2010-10-07 01:51:09 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-10-25 15:54:16 -0400 |
commit | d64eab764aaf1455d4cd790e3651a2d65b69e661 (patch) | |
tree | cd48c552c788c31da19694a70f648b4682b0cc62 /drivers | |
parent | 7b3595df0e064c8d85ddb6836aaa2af3956fb2ba (diff) |
[SCSI] qla4xxx: remove unwanted check for bad spd
Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com>
Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
Signed-off-by: Ravi Anand <ravi.anand@qlogic.com>
Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/qla4xxx/ql4_nx.c | 17 | ||||
-rw-r--r-- | drivers/scsi/qla4xxx/ql4_nx.h | 3 |
2 files changed, 0 insertions, 20 deletions
diff --git a/drivers/scsi/qla4xxx/ql4_nx.c b/drivers/scsi/qla4xxx/ql4_nx.c index 74582cb46a28..474b10d71364 100644 --- a/drivers/scsi/qla4xxx/ql4_nx.c +++ b/drivers/scsi/qla4xxx/ql4_nx.c | |||
@@ -1081,21 +1081,6 @@ qla4_8xxx_pinit_from_rom(struct scsi_qla_host *ha, int verbose) | |||
1081 | return 0; | 1081 | return 0; |
1082 | } | 1082 | } |
1083 | 1083 | ||
1084 | static int qla4_8xxx_check_for_bad_spd(struct scsi_qla_host *ha) | ||
1085 | { | ||
1086 | u32 val = 0; | ||
1087 | val = qla4_8xxx_rd_32(ha, BOOT_LOADER_DIMM_STATUS) ; | ||
1088 | val &= QLA82XX_BOOT_LOADER_MN_ISSUE; | ||
1089 | if (val & QLA82XX_PEG_TUNE_MN_SPD_ZEROED) { | ||
1090 | printk("Memory DIMM SPD not programmed. Assumed valid.\n"); | ||
1091 | return 1; | ||
1092 | } else if (val) { | ||
1093 | printk("Memory DIMM type incorrect. Info:%08X.\n", val); | ||
1094 | return 2; | ||
1095 | } | ||
1096 | return 0; | ||
1097 | } | ||
1098 | |||
1099 | static int | 1084 | static int |
1100 | qla4_8xxx_load_from_flash(struct scsi_qla_host *ha, uint32_t image_start) | 1085 | qla4_8xxx_load_from_flash(struct scsi_qla_host *ha, uint32_t image_start) |
1101 | { | 1086 | { |
@@ -1380,8 +1365,6 @@ static int qla4_8xxx_cmdpeg_ready(struct scsi_qla_host *ha, int pegtune_val) | |||
1380 | 1365 | ||
1381 | } while (--retries); | 1366 | } while (--retries); |
1382 | 1367 | ||
1383 | qla4_8xxx_check_for_bad_spd(ha); | ||
1384 | |||
1385 | if (!retries) { | 1368 | if (!retries) { |
1386 | pegtune_val = qla4_8xxx_rd_32(ha, | 1369 | pegtune_val = qla4_8xxx_rd_32(ha, |
1387 | QLA82XX_ROMUSB_GLB_PEGTUNE_DONE); | 1370 | QLA82XX_ROMUSB_GLB_PEGTUNE_DONE); |
diff --git a/drivers/scsi/qla4xxx/ql4_nx.h b/drivers/scsi/qla4xxx/ql4_nx.h index 95f3060ad027..ff689bf53007 100644 --- a/drivers/scsi/qla4xxx/ql4_nx.h +++ b/drivers/scsi/qla4xxx/ql4_nx.h | |||
@@ -24,7 +24,6 @@ | |||
24 | 24 | ||
25 | #define CRB_CMDPEG_STATE QLA82XX_REG(0x50) | 25 | #define CRB_CMDPEG_STATE QLA82XX_REG(0x50) |
26 | #define CRB_RCVPEG_STATE QLA82XX_REG(0x13c) | 26 | #define CRB_RCVPEG_STATE QLA82XX_REG(0x13c) |
27 | #define BOOT_LOADER_DIMM_STATUS QLA82XX_REG(0x54) | ||
28 | #define CRB_DMA_SHIFT QLA82XX_REG(0xcc) | 27 | #define CRB_DMA_SHIFT QLA82XX_REG(0xcc) |
29 | 28 | ||
30 | #define QLA82XX_HW_H0_CH_HUB_ADR 0x05 | 29 | #define QLA82XX_HW_H0_CH_HUB_ADR 0x05 |
@@ -529,8 +528,6 @@ | |||
529 | # define QLA82XX_CAM_RAM_BASE (QLA82XX_CRB_CAM + 0x02000) | 528 | # define QLA82XX_CAM_RAM_BASE (QLA82XX_CRB_CAM + 0x02000) |
530 | # define QLA82XX_CAM_RAM(reg) (QLA82XX_CAM_RAM_BASE + (reg)) | 529 | # define QLA82XX_CAM_RAM(reg) (QLA82XX_CAM_RAM_BASE + (reg)) |
531 | 530 | ||
532 | #define QLA82XX_PEG_TUNE_MN_SPD_ZEROED 0x80000000 | ||
533 | #define QLA82XX_BOOT_LOADER_MN_ISSUE 0xff00ffff | ||
534 | #define QLA82XX_PORT_MODE_ADDR (QLA82XX_CAM_RAM(0x24)) | 531 | #define QLA82XX_PORT_MODE_ADDR (QLA82XX_CAM_RAM(0x24)) |
535 | #define QLA82XX_PEG_HALT_STATUS1 (QLA82XX_CAM_RAM(0xa8)) | 532 | #define QLA82XX_PEG_HALT_STATUS1 (QLA82XX_CAM_RAM(0xa8)) |
536 | #define QLA82XX_PEG_HALT_STATUS2 (QLA82XX_CAM_RAM(0xac)) | 533 | #define QLA82XX_PEG_HALT_STATUS2 (QLA82XX_CAM_RAM(0xac)) |