Commit 387e893
media: uvcvideo: Fix deferred probing error
uvc_gpio_parse() can return -EPROBE_DEFER when the GPIOs it depends on
have not yet been probed. This return code should be propagated to the
caller of uvc_probe() to ensure that probing is retried when the required
GPIOs become available.
Currently, this error code is incorrectly converted to -ENODEV,
causing some internal cameras to be ignored.
This commit fixes this issue by propagating the -EPROBE_DEFER error.
Cc: stable@vger.kernel.org
Fixes: 2886477 ("media: uvcvideo: Implement UVC_EXT_GPIO_UNIT")
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Message-ID: <20250313-uvc-eprobedefer-v3-1-a1d312708eef@chromium.org>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>1 parent a70705d commit 387e893
1 file changed
Lines changed: 19 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2232 | 2232 | | |
2233 | 2233 | | |
2234 | 2234 | | |
2235 | | - | |
| 2235 | + | |
| 2236 | + | |
| 2237 | + | |
2236 | 2238 | | |
2237 | 2239 | | |
2238 | 2240 | | |
2239 | 2241 | | |
2240 | 2242 | | |
2241 | | - | |
| 2243 | + | |
| 2244 | + | |
2242 | 2245 | | |
2243 | 2246 | | |
2244 | 2247 | | |
| |||
2264 | 2267 | | |
2265 | 2268 | | |
2266 | 2269 | | |
2267 | | - | |
| 2270 | + | |
| 2271 | + | |
2268 | 2272 | | |
2269 | 2273 | | |
2270 | 2274 | | |
2271 | | - | |
| 2275 | + | |
| 2276 | + | |
2272 | 2277 | | |
| 2278 | + | |
2273 | 2279 | | |
2274 | 2280 | | |
2275 | | - | |
| 2281 | + | |
| 2282 | + | |
2276 | 2283 | | |
| 2284 | + | |
2277 | 2285 | | |
2278 | 2286 | | |
2279 | | - | |
| 2287 | + | |
| 2288 | + | |
2280 | 2289 | | |
| 2290 | + | |
2281 | 2291 | | |
2282 | 2292 | | |
2283 | 2293 | | |
2284 | | - | |
| 2294 | + | |
| 2295 | + | |
2285 | 2296 | | |
2286 | 2297 | | |
2287 | 2298 | | |
| |||
2315 | 2326 | | |
2316 | 2327 | | |
2317 | 2328 | | |
2318 | | - | |
| 2329 | + | |
2319 | 2330 | | |
2320 | 2331 | | |
2321 | 2332 | | |
| |||
0 commit comments