diff options
Diffstat (limited to 'drivers/scsi/bfa')
-rw-r--r-- | drivers/scsi/bfa/bfa_defs.h | 4 | ||||
-rw-r--r-- | drivers/scsi/bfa/bfa_ioc.c | 4 | ||||
-rw-r--r-- | drivers/scsi/bfa/bfi.h | 3 |
3 files changed, 11 insertions, 0 deletions
diff --git a/drivers/scsi/bfa/bfa_defs.h b/drivers/scsi/bfa/bfa_defs.h index f1c9314e86a3..4e7777682089 100644 --- a/drivers/scsi/bfa/bfa_defs.h +++ b/drivers/scsi/bfa/bfa_defs.h | |||
@@ -254,6 +254,10 @@ struct bfa_adapter_attr_s { | |||
254 | 254 | ||
255 | u8 is_mezz; | 255 | u8 is_mezz; |
256 | u8 trunk_capable; | 256 | u8 trunk_capable; |
257 | u8 mfg_day; /* manufacturing day */ | ||
258 | u8 mfg_month; /* manufacturing month */ | ||
259 | u16 mfg_year; /* manufacturing year */ | ||
260 | u16 rsvd; | ||
257 | }; | 261 | }; |
258 | 262 | ||
259 | /* | 263 | /* |
diff --git a/drivers/scsi/bfa/bfa_ioc.c b/drivers/scsi/bfa/bfa_ioc.c index ffc19ac5d721..4fbff0394985 100644 --- a/drivers/scsi/bfa/bfa_ioc.c +++ b/drivers/scsi/bfa/bfa_ioc.c | |||
@@ -1750,6 +1750,7 @@ bfa_ioc_getattr_reply(struct bfa_ioc_s *ioc) | |||
1750 | attr->card_type = be32_to_cpu(attr->card_type); | 1750 | attr->card_type = be32_to_cpu(attr->card_type); |
1751 | attr->maxfrsize = be16_to_cpu(attr->maxfrsize); | 1751 | attr->maxfrsize = be16_to_cpu(attr->maxfrsize); |
1752 | ioc->fcmode = (attr->port_mode == BFI_PORT_MODE_FC); | 1752 | ioc->fcmode = (attr->port_mode == BFI_PORT_MODE_FC); |
1753 | attr->mfg_year = be16_to_cpu(attr->mfg_year); | ||
1753 | 1754 | ||
1754 | bfa_fsm_send_event(ioc, IOC_E_FWRSP_GETATTR); | 1755 | bfa_fsm_send_event(ioc, IOC_E_FWRSP_GETATTR); |
1755 | } | 1756 | } |
@@ -2496,6 +2497,9 @@ bfa_ioc_get_adapter_attr(struct bfa_ioc_s *ioc, | |||
2496 | ad_attr->cna_capable = bfa_ioc_is_cna(ioc); | 2497 | ad_attr->cna_capable = bfa_ioc_is_cna(ioc); |
2497 | ad_attr->trunk_capable = (ad_attr->nports > 1) && | 2498 | ad_attr->trunk_capable = (ad_attr->nports > 1) && |
2498 | !bfa_ioc_is_cna(ioc) && !ad_attr->is_mezz; | 2499 | !bfa_ioc_is_cna(ioc) && !ad_attr->is_mezz; |
2500 | ad_attr->mfg_day = ioc_attr->mfg_day; | ||
2501 | ad_attr->mfg_month = ioc_attr->mfg_month; | ||
2502 | ad_attr->mfg_year = ioc_attr->mfg_year; | ||
2499 | } | 2503 | } |
2500 | 2504 | ||
2501 | enum bfa_ioc_type_e | 2505 | enum bfa_ioc_type_e |
diff --git a/drivers/scsi/bfa/bfi.h b/drivers/scsi/bfa/bfi.h index b2ba0b2e91b2..e6269c28eaa2 100644 --- a/drivers/scsi/bfa/bfi.h +++ b/drivers/scsi/bfa/bfi.h | |||
@@ -288,6 +288,9 @@ struct bfi_ioc_attr_s { | |||
288 | char optrom_version[BFA_VERSION_LEN]; | 288 | char optrom_version[BFA_VERSION_LEN]; |
289 | struct bfa_mfg_vpd_s vpd; | 289 | struct bfa_mfg_vpd_s vpd; |
290 | u32 card_type; /* card type */ | 290 | u32 card_type; /* card type */ |
291 | u8 mfg_day; /* manufacturing day */ | ||
292 | u8 mfg_month; /* manufacturing month */ | ||
293 | u16 mfg_year; /* manufacturing year */ | ||
291 | }; | 294 | }; |
292 | 295 | ||
293 | /* | 296 | /* |