Commit 9c2e17d
ionic: support ethtool get_module_eeprom_by_page
Add support for the newer get_module_eeprom_by_page interface.
Only the upper half of the 256 byte page is available for
reading, and the firmware puts the two sections into the
extended sprom buffer, so a union is used over the extended
sprom buffer to make clear which page is to be accessed.
With get_module_eeprom_by_page implemented there is no need
for the older get_module_info or git_module_eeprom interfaces,
so remove them.
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-3-shannon.nelson@amd.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>1 parent c51ab83 commit 9c2e17d
File tree
2 files changed
+37
-71
lines changed- drivers/net/ethernet/pensando/ionic
2 files changed
+37
-71
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
948 | 948 | | |
949 | 949 | | |
950 | 950 | | |
951 | | - | |
952 | | - | |
953 | | - | |
954 | | - | |
955 | | - | |
956 | | - | |
957 | | - | |
958 | | - | |
959 | | - | |
960 | | - | |
961 | | - | |
962 | | - | |
963 | | - | |
964 | | - | |
965 | | - | |
966 | | - | |
967 | | - | |
968 | | - | |
969 | | - | |
970 | | - | |
971 | | - | |
972 | | - | |
973 | | - | |
974 | | - | |
975 | | - | |
976 | | - | |
977 | | - | |
978 | | - | |
979 | | - | |
980 | | - | |
981 | | - | |
982 | | - | |
983 | | - | |
984 | | - | |
985 | | - | |
986 | | - | |
987 | | - | |
988 | | - | |
989 | 951 | | |
990 | 952 | | |
991 | 953 | | |
| |||
1010 | 972 | | |
1011 | 973 | | |
1012 | 974 | | |
1013 | | - | |
1014 | | - | |
1015 | | - | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
1016 | 978 | | |
1017 | 979 | | |
1018 | 980 | | |
1019 | | - | |
1020 | 981 | | |
1021 | | - | |
1022 | 982 | | |
1023 | 983 | | |
1024 | | - | |
1025 | | - | |
1026 | | - | |
1027 | | - | |
1028 | | - | |
1029 | | - | |
1030 | | - | |
1031 | | - | |
1032 | | - | |
1033 | | - | |
| 984 | + | |
| 985 | + | |
1034 | 986 | | |
1035 | | - | |
1036 | | - | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
1037 | 990 | | |
1038 | 991 | | |
1039 | | - | |
1040 | | - | |
1041 | | - | |
1042 | | - | |
1043 | | - | |
1044 | | - | |
1045 | | - | |
1046 | | - | |
1047 | | - | |
1048 | | - | |
1049 | | - | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
1050 | 1004 | | |
1051 | 1005 | | |
1052 | | - | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
1053 | 1012 | | |
1054 | 1013 | | |
1055 | 1014 | | |
| |||
1197 | 1156 | | |
1198 | 1157 | | |
1199 | 1158 | | |
1200 | | - | |
1201 | | - | |
| 1159 | + | |
1202 | 1160 | | |
1203 | 1161 | | |
1204 | 1162 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2839 | 2839 | | |
2840 | 2840 | | |
2841 | 2841 | | |
2842 | | - | |
| 2842 | + | |
| 2843 | + | |
| 2844 | + | |
2843 | 2845 | | |
2844 | 2846 | | |
2845 | 2847 | | |
| |||
2850 | 2852 | | |
2851 | 2853 | | |
2852 | 2854 | | |
2853 | | - | |
| 2855 | + | |
| 2856 | + | |
| 2857 | + | |
| 2858 | + | |
| 2859 | + | |
| 2860 | + | |
| 2861 | + | |
2854 | 2862 | | |
2855 | 2863 | | |
2856 | 2864 | | |
| |||
0 commit comments