Commit c51ab83
ionic: extend the QSFP module sprom for more pages
Some QSFP modules have more eeprom to be read by ethtool than
the initial high and low page 0 that is currently available
in the DSC's ionic sprom[] buffer. Since the current sprom[]
is baked into the middle of an existing API struct, to make
the high end of page 1 and page 2 available a block is carved
from a reserved space of the existing port_info struct and the
ionic_get_module_eeprom() service is taught how to get there.
Newer firmware writes the additional QSFP page info here,
yet this remains backward compatible because older firmware
sets this space to all 0 and older ionic drivers do not use
the reserved space.
Reviewed-by: Brett Creeley <brett.creeley@amd.com>
Signed-off-by: Shannon Nelson <shannon.nelson@amd.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250415231317.40616-2-shannon.nelson@amd.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>1 parent 30af0cb commit c51ab83
File tree
2 files changed
+56
-17
lines changed- drivers/net/ethernet/pensando/ionic
2 files changed
+56
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
968 | 968 | | |
969 | 969 | | |
970 | 970 | | |
971 | | - | |
972 | 971 | | |
973 | 972 | | |
974 | 973 | | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
975 | 978 | | |
976 | 979 | | |
977 | 980 | | |
| |||
983 | 986 | | |
984 | 987 | | |
985 | 988 | | |
986 | | - | |
987 | | - | |
988 | | - | |
| 989 | + | |
989 | 990 | | |
990 | | - | |
991 | | - | |
992 | | - | |
993 | | - | |
| 991 | + | |
994 | 992 | | |
995 | | - | |
996 | 993 | | |
997 | 994 | | |
998 | 995 | | |
999 | 996 | | |
1000 | | - | |
1001 | | - | |
1002 | | - | |
1003 | 997 | | |
1004 | | - | |
1005 | | - | |
| 998 | + | |
| 999 | + | |
1006 | 1000 | | |
1007 | 1001 | | |
1008 | | - | |
| 1002 | + | |
1009 | 1003 | | |
1010 | 1004 | | |
1011 | 1005 | | |
| |||
1016 | 1010 | | |
1017 | 1011 | | |
1018 | 1012 | | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
1019 | 1055 | | |
1020 | 1056 | | |
1021 | 1057 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2839 | 2839 | | |
2840 | 2840 | | |
2841 | 2841 | | |
| 2842 | + | |
2842 | 2843 | | |
2843 | 2844 | | |
2844 | 2845 | | |
| |||
2849 | 2850 | | |
2850 | 2851 | | |
2851 | 2852 | | |
2852 | | - | |
2853 | | - | |
| 2853 | + | |
| 2854 | + | |
| 2855 | + | |
| 2856 | + | |
2854 | 2857 | | |
2855 | 2858 | | |
2856 | 2859 | | |
| |||
0 commit comments