Commit 87eb3cb
usb: typec: ucsi: Fix cable registration
The Cable PD Revision field in GET_CABLE_PROPERTY was
introduced in UCSI v2.1, so adding check for that.
The cable properties are also not used anywhere after the
cable is registered, so removing the cable_prop member
from struct ucsi_connector while at it.
Fixes: 38ca416 ("usb: typec: ucsi: Register cables based on GET_CABLE_PROPERTY")
Cc: [email protected]
Signed-off-by: Heikki Krogerus <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>1 parent de3d796 commit 87eb3cb
2 files changed
+15
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
965 | 965 | | |
966 | 966 | | |
967 | 967 | | |
| 968 | + | |
968 | 969 | | |
969 | 970 | | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
970 | 980 | | |
971 | | - | |
| 981 | + | |
972 | 982 | | |
973 | 983 | | |
974 | 984 | | |
| |||
984 | 994 | | |
985 | 995 | | |
986 | 996 | | |
987 | | - | |
988 | | - | |
989 | | - | |
990 | | - | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
991 | 1001 | | |
992 | 1002 | | |
993 | 1003 | | |
| |||
1193 | 1203 | | |
1194 | 1204 | | |
1195 | 1205 | | |
1196 | | - | |
1197 | 1206 | | |
1198 | 1207 | | |
1199 | 1208 | | |
1200 | 1209 | | |
1201 | 1210 | | |
1202 | | - | |
1203 | | - | |
1204 | | - | |
1205 | | - | |
1206 | | - | |
1207 | | - | |
1208 | | - | |
1209 | | - | |
1210 | | - | |
1211 | 1211 | | |
1212 | 1212 | | |
1213 | 1213 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
465 | 465 | | |
466 | 466 | | |
467 | 467 | | |
468 | | - | |
469 | 468 | | |
470 | 469 | | |
471 | 470 | | |
| |||
0 commit comments