Commit 8004d63
Revert "media: uvcvideo: Require entities to have a non-zero unique ID"
This reverts commit 3dd075f.
Tomasz has reported that his device, Generalplus Technology Inc. 808 Camera,
with ID 1b3f:2002, stopped being detected:
$ ls -l /dev/video*
zsh: no matches found: /dev/video*
[ 7.230599] usb 3-2: Found multiple Units with ID 5
This particular device is non-compliant, having both the Output Terminal
and Processing Unit with ID 5. uvc_scan_fallback, though, is able to build
a chain. However, when media elements are added and uvc_mc_create_links
call uvc_entity_by_id, it will get the incorrect entity,
media_create_pad_link will WARN, and it will fail to register the entities.
In order to reinstate support for such devices in a timely fashion,
reverting the fix for these warnings is appropriate. A proper fix that
considers the existence of such non-compliant devices will be submitted in
a later development cycle.
Reported-by: Tomasz Sikora <sikora.tomus@gmail.com>
Fixes: 3dd075f ("media: uvcvideo: Require entities to have a non-zero unique ID")
Cc: stable@vger.kernel.org
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@igalia.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Ricardo Ribalda <ribalda@chromium.org>
Link: https://lore.kernel.org/r/20250114200045.1401644-1-cascardo@igalia.com
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>1 parent c4b7779 commit 8004d63
1 file changed
+27
-43
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
790 | 790 | | |
791 | 791 | | |
792 | 792 | | |
793 | | - | |
794 | | - | |
795 | | - | |
| 793 | + | |
| 794 | + | |
796 | 795 | | |
797 | 796 | | |
798 | 797 | | |
799 | 798 | | |
800 | 799 | | |
801 | 800 | | |
802 | | - | |
803 | | - | |
804 | | - | |
805 | | - | |
806 | | - | |
807 | | - | |
808 | | - | |
809 | | - | |
810 | | - | |
811 | | - | |
812 | | - | |
813 | | - | |
814 | 801 | | |
815 | 802 | | |
816 | 803 | | |
| |||
820 | 807 | | |
821 | 808 | | |
822 | 809 | | |
823 | | - | |
| 810 | + | |
824 | 811 | | |
825 | 812 | | |
826 | 813 | | |
| |||
932 | 919 | | |
933 | 920 | | |
934 | 921 | | |
935 | | - | |
936 | | - | |
937 | | - | |
938 | | - | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
939 | 926 | | |
940 | 927 | | |
941 | 928 | | |
| |||
1044 | 1031 | | |
1045 | 1032 | | |
1046 | 1033 | | |
1047 | | - | |
1048 | | - | |
1049 | | - | |
1050 | | - | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
1051 | 1038 | | |
1052 | 1039 | | |
1053 | 1040 | | |
| |||
1103 | 1090 | | |
1104 | 1091 | | |
1105 | 1092 | | |
1106 | | - | |
1107 | | - | |
1108 | | - | |
1109 | | - | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
| 1096 | + | |
1110 | 1097 | | |
1111 | 1098 | | |
1112 | 1099 | | |
| |||
1125 | 1112 | | |
1126 | 1113 | | |
1127 | 1114 | | |
1128 | | - | |
1129 | | - | |
1130 | | - | |
1131 | | - | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
1132 | 1118 | | |
1133 | 1119 | | |
1134 | 1120 | | |
| |||
1148 | 1134 | | |
1149 | 1135 | | |
1150 | 1136 | | |
1151 | | - | |
1152 | | - | |
1153 | | - | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
1154 | 1140 | | |
1155 | 1141 | | |
1156 | 1142 | | |
| |||
1177 | 1163 | | |
1178 | 1164 | | |
1179 | 1165 | | |
1180 | | - | |
1181 | | - | |
1182 | | - | |
1183 | | - | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
1184 | 1169 | | |
1185 | 1170 | | |
1186 | 1171 | | |
| |||
1320 | 1305 | | |
1321 | 1306 | | |
1322 | 1307 | | |
1323 | | - | |
1324 | | - | |
1325 | | - | |
1326 | | - | |
| 1308 | + | |
| 1309 | + | |
| 1310 | + | |
1327 | 1311 | | |
1328 | 1312 | | |
1329 | 1313 | | |
| |||
0 commit comments