Commit 36b1235
xhci: sort out TRB Endpoint ID bitfield macros
xhci macros that read and write endpoint ID bitfields of TRBs are mixing
the 1-based Endpoint ID as described in the xHCI specification, and
0-based endpoint index used by driver as an array index.
Sort this out by naming macros that deal with 1 based Endpoint ID fields
to *_EP_ID_*, and 0 based endpoint index values to *_EP_INDEX_*.
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20240626124835.1023046-22-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent b4c87bc commit 36b1235
2 files changed
Lines changed: 17 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
715 | 715 | | |
716 | 716 | | |
717 | 717 | | |
718 | | - | |
| 718 | + | |
719 | 719 | | |
720 | 720 | | |
721 | 721 | | |
| |||
4379 | 4379 | | |
4380 | 4380 | | |
4381 | 4381 | | |
4382 | | - | |
| 4382 | + | |
4383 | 4383 | | |
4384 | 4384 | | |
4385 | 4385 | | |
| |||
4392 | 4392 | | |
4393 | 4393 | | |
4394 | 4394 | | |
4395 | | - | |
| 4395 | + | |
4396 | 4396 | | |
4397 | 4397 | | |
4398 | 4398 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
806 | 806 | | |
807 | 807 | | |
808 | 808 | | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
809 | 819 | | |
810 | | - | |
811 | 820 | | |
812 | 821 | | |
813 | | - | |
814 | | - | |
815 | | - | |
816 | 822 | | |
817 | 823 | | |
818 | 824 | | |
| |||
951 | 957 | | |
952 | 958 | | |
953 | 959 | | |
954 | | - | |
955 | | - | |
956 | 960 | | |
957 | 961 | | |
958 | 962 | | |
| |||
988 | 992 | | |
989 | 993 | | |
990 | 994 | | |
991 | | - | |
992 | | - | |
993 | 995 | | |
994 | 996 | | |
995 | | - | |
996 | | - | |
997 | | - | |
998 | 997 | | |
999 | 998 | | |
1000 | 999 | | |
| |||
2025 | 2024 | | |
2026 | 2025 | | |
2027 | 2026 | | |
2028 | | - | |
2029 | | - | |
| 2027 | + | |
2030 | 2028 | | |
2031 | 2029 | | |
2032 | 2030 | | |
| |||
2141 | 2139 | | |
2142 | 2140 | | |
2143 | 2141 | | |
2144 | | - | |
2145 | | - | |
| 2142 | + | |
2146 | 2143 | | |
2147 | 2144 | | |
2148 | 2145 | | |
| |||
2152 | 2149 | | |
2153 | 2150 | | |
2154 | 2151 | | |
2155 | | - | |
2156 | | - | |
| 2152 | + | |
2157 | 2153 | | |
2158 | 2154 | | |
2159 | 2155 | | |
| |||
2163 | 2159 | | |
2164 | 2160 | | |
2165 | 2161 | | |
2166 | | - | |
2167 | | - | |
| 2162 | + | |
2168 | 2163 | | |
2169 | 2164 | | |
2170 | 2165 | | |
| |||
0 commit comments