Commit 1a66107
Desnes Nunes
Revert "media: uvcvideo: Require entities to have a non-zero unique ID"
JIRA: https://issues.redhat.com/browse/RHEL-78828
commit 8004d63
Author: Thadeu Lima de Souza Cascardo <cascardo@igalia.com>
Date: Tue, 14 Jan 2025 17:00:45 -0300
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>
Signed-off-by: Desnes Nunes <desnesn@redhat.com>1 parent 7979d32 commit 1a66107
1 file changed
+27
-43
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
775 | 775 | | |
776 | 776 | | |
777 | 777 | | |
778 | | - | |
779 | | - | |
780 | | - | |
| 778 | + | |
| 779 | + | |
781 | 780 | | |
782 | 781 | | |
783 | 782 | | |
784 | 783 | | |
785 | 784 | | |
786 | 785 | | |
787 | | - | |
788 | | - | |
789 | | - | |
790 | | - | |
791 | | - | |
792 | | - | |
793 | | - | |
794 | | - | |
795 | | - | |
796 | | - | |
797 | | - | |
798 | | - | |
799 | 786 | | |
800 | 787 | | |
801 | 788 | | |
| |||
805 | 792 | | |
806 | 793 | | |
807 | 794 | | |
808 | | - | |
| 795 | + | |
809 | 796 | | |
810 | 797 | | |
811 | 798 | | |
| |||
917 | 904 | | |
918 | 905 | | |
919 | 906 | | |
920 | | - | |
921 | | - | |
922 | | - | |
923 | | - | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
924 | 911 | | |
925 | 912 | | |
926 | 913 | | |
| |||
1029 | 1016 | | |
1030 | 1017 | | |
1031 | 1018 | | |
1032 | | - | |
1033 | | - | |
1034 | | - | |
1035 | | - | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
1036 | 1023 | | |
1037 | 1024 | | |
1038 | 1025 | | |
| |||
1088 | 1075 | | |
1089 | 1076 | | |
1090 | 1077 | | |
1091 | | - | |
1092 | | - | |
1093 | | - | |
1094 | | - | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
1095 | 1082 | | |
1096 | 1083 | | |
1097 | 1084 | | |
| |||
1110 | 1097 | | |
1111 | 1098 | | |
1112 | 1099 | | |
1113 | | - | |
1114 | | - | |
1115 | | - | |
1116 | | - | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
1117 | 1103 | | |
1118 | 1104 | | |
1119 | 1105 | | |
| |||
1133 | 1119 | | |
1134 | 1120 | | |
1135 | 1121 | | |
1136 | | - | |
1137 | | - | |
1138 | | - | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
1139 | 1125 | | |
1140 | 1126 | | |
1141 | 1127 | | |
| |||
1162 | 1148 | | |
1163 | 1149 | | |
1164 | 1150 | | |
1165 | | - | |
1166 | | - | |
1167 | | - | |
1168 | | - | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
1169 | 1154 | | |
1170 | 1155 | | |
1171 | 1156 | | |
| |||
1305 | 1290 | | |
1306 | 1291 | | |
1307 | 1292 | | |
1308 | | - | |
1309 | | - | |
1310 | | - | |
1311 | | - | |
| 1293 | + | |
| 1294 | + | |
| 1295 | + | |
1312 | 1296 | | |
1313 | 1297 | | |
1314 | 1298 | | |
| |||
0 commit comments