History

csiostor:Use firmware version from cxgb4/t4fw_version.h

This patch is to use firmware version macros from t4fw_version.h and also enables 40g T5 adapter.

Praveen Madhavan committed 11 years ago

Commit 541c5711 parent b5057dd3 files · +7 −8Browse files

Unified · Split

3 files
  1. drivers/scsi/csiostor/csio_hw.c +4 −2
  2. drivers/scsi/csiostor/csio_hw_chip.h +1 −5
  3. drivers/scsi/csiostor/csio_mb.c +2 −1
drivers/scsi/csiostor/csio_hw.c+4−2
@@ -1372,7 +1372,8 @@ csio_config_device_caps(struct csio_hw *hw) · 1371 unmodified lines
13721372 }
13731373
13741374 /* Validate device capabilities */
1375− if (csio_hw_validate_caps(hw, mbp))
1375+ rv = csio_hw_validate_caps(hw, mbp);
1376+ if (rv != 0)
13761377 goto out;
13771378
13781379 /* Don't config device capabilities if already configured */
@@ -1776,7 +1777,8 @@ csio_hw_use_fwconfig(struct csio_hw *hw, int reset, u32 *fw_cfg_param) · 397 unmodified lines
17761777 }
17771778
17781779 /* Validate device capabilities */
1779− if (csio_hw_validate_caps(hw, mbp))
1780+ rv = csio_hw_validate_caps(hw, mbp);
1781+ if (rv != 0)
17801782 goto bye;
17811783 /*
17821784 * Note that we're operating with parameters
drivers/scsi/csiostor/csio_hw_chip.h+1−5
@@ -45,11 +45,6 @@ · 44 unmodified lines
4545 #define FW_FNAME_T5 "cxgb4/t5fw.bin"
4646 #define FW_CFG_NAME_T5 "cxgb4/t5-config.txt"
4747
48−#define T5FW_VERSION_MAJOR 0x01
49−#define T5FW_VERSION_MINOR 0x0B
50−#define T5FW_VERSION_MICRO 0x1B
51−#define T5FW_VERSION_BUILD 0x00
52−
5348 #define CHELSIO_CHIP_CODE(version, revision) (((version) << 4) | (revision))
5449 #define CHELSIO_CHIP_FPGA 0x100
5550 #define CHELSIO_CHIP_VERSION(code) (((code) >> 12) & 0xf)
@@ -74,6 +69,7 @@ static inline int csio_is_t5(uint16_t chip) · 18 unmodified lines
7469 { PCI_VENDOR_ID_CHELSIO, (devid), PCI_ANY_ID, PCI_ANY_ID, 0, 0, (idx) }
7570
7671 #include "t4fw_api.h"
72+#include "t4fw_version.h"
7773
7874 #define FW_VERSION(chip) ( \
7975 FW_HDR_FW_VER_MAJOR_G(chip##FW_VERSION_MAJOR) | \
drivers/scsi/csiostor/csio_mb.c+2−1
@@ -327,7 +327,8 @@ csio_mb_caps_config(struct csio_hw *hw, struct csio_mb *mbp, uint32_t tmo, · 326 unmodified lines
327327 }
328328
329329 #define CSIO_ADVERT_MASK (FW_PORT_CAP_SPEED_100M | FW_PORT_CAP_SPEED_1G |\
330− FW_PORT_CAP_SPEED_10G | FW_PORT_CAP_ANEG)
330+ FW_PORT_CAP_SPEED_10G | FW_PORT_CAP_SPEED_40G |\
331+ FW_PORT_CAP_ANEG)
331332
332333 /*
333334 * csio_mb_port- FW PORT command helper