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 | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/drivers/scsi/bfa/bfa_defs.h b/drivers/scsi/bfa/bfa_defs.h index 7b3d235d20b..b5a1595cc0a 100644 --- a/drivers/scsi/bfa/bfa_defs.h +++ b/drivers/scsi/bfa/bfa_defs.h | |||
@@ -902,7 +902,7 @@ struct sfp_mem_s { | |||
902 | union sfp_xcvr_e10g_code_u { | 902 | union sfp_xcvr_e10g_code_u { |
903 | u8 b; | 903 | u8 b; |
904 | struct { | 904 | struct { |
905 | #ifdef __BIGENDIAN | 905 | #ifdef __BIG_ENDIAN |
906 | u8 e10g_unall:1; /* 10G Ethernet compliance */ | 906 | u8 e10g_unall:1; /* 10G Ethernet compliance */ |
907 | u8 e10g_lrm:1; | 907 | u8 e10g_lrm:1; |
908 | u8 e10g_lr:1; | 908 | u8 e10g_lr:1; |
@@ -982,7 +982,7 @@ union sfp_xcvr_fc2_code_u { | |||
982 | union sfp_xcvr_fc3_code_u { | 982 | union sfp_xcvr_fc3_code_u { |
983 | u8 b; | 983 | u8 b; |
984 | struct { | 984 | struct { |
985 | #ifdef __BIGENDIAN | 985 | #ifdef __BIG_ENDIAN |
986 | u8 rsv4:1; | 986 | u8 rsv4:1; |
987 | u8 mb800:1; /* 800 Mbytes/sec */ | 987 | u8 mb800:1; /* 800 Mbytes/sec */ |
988 | u8 mb1600:1; /* 1600 Mbytes/sec */ | 988 | u8 mb1600:1; /* 1600 Mbytes/sec */ |
diff --git a/drivers/scsi/bfa/bfa_ioc.c b/drivers/scsi/bfa/bfa_ioc.c index 1ac5aecf25a..eca7ab78085 100644 --- a/drivers/scsi/bfa/bfa_ioc.c +++ b/drivers/scsi/bfa/bfa_ioc.c | |||
@@ -3727,11 +3727,11 @@ bfa_sfp_media_get(struct bfa_sfp_s *sfp) | |||
3727 | (xmtr_tech & SFP_XMTR_TECH_SA)) | 3727 | (xmtr_tech & SFP_XMTR_TECH_SA)) |
3728 | *media = BFA_SFP_MEDIA_SW; | 3728 | *media = BFA_SFP_MEDIA_SW; |
3729 | /* Check 10G Ethernet Compilance code */ | 3729 | /* Check 10G Ethernet Compilance code */ |
3730 | else if (e10g.b & 0x10) | 3730 | else if (e10g.r.e10g_sr) |
3731 | *media = BFA_SFP_MEDIA_SW; | 3731 | *media = BFA_SFP_MEDIA_SW; |
3732 | else if (e10g.b & 0x60) | 3732 | else if (e10g.r.e10g_lrm && e10g.r.e10g_lr) |
3733 | *media = BFA_SFP_MEDIA_LW; | 3733 | *media = BFA_SFP_MEDIA_LW; |
3734 | else if (e10g.r.e10g_unall & 0x80) | 3734 | else if (e10g.r.e10g_unall) |
3735 | *media = BFA_SFP_MEDIA_UNKNOWN; | 3735 | *media = BFA_SFP_MEDIA_UNKNOWN; |
3736 | else | 3736 | else |
3737 | bfa_trc(sfp, 0); | 3737 | bfa_trc(sfp, 0); |