Commit aac91ae
media: uvcvideo: Fix deferred probing error
commit 387e893 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 6d2b12e commit aac91ae
1 file changed
+19
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2217 | 2217 | | |
2218 | 2218 | | |
2219 | 2219 | | |
2220 | | - | |
| 2220 | + | |
| 2221 | + | |
| 2222 | + | |
2221 | 2223 | | |
2222 | 2224 | | |
2223 | 2225 | | |
2224 | 2226 | | |
2225 | 2227 | | |
2226 | | - | |
| 2228 | + | |
| 2229 | + | |
2227 | 2230 | | |
2228 | 2231 | | |
2229 | 2232 | | |
| |||
2249 | 2252 | | |
2250 | 2253 | | |
2251 | 2254 | | |
2252 | | - | |
| 2255 | + | |
| 2256 | + | |
2253 | 2257 | | |
2254 | 2258 | | |
2255 | 2259 | | |
2256 | | - | |
| 2260 | + | |
| 2261 | + | |
2257 | 2262 | | |
| 2263 | + | |
2258 | 2264 | | |
2259 | 2265 | | |
2260 | | - | |
| 2266 | + | |
| 2267 | + | |
2261 | 2268 | | |
| 2269 | + | |
2262 | 2270 | | |
2263 | 2271 | | |
2264 | | - | |
| 2272 | + | |
| 2273 | + | |
2265 | 2274 | | |
| 2275 | + | |
2266 | 2276 | | |
2267 | 2277 | | |
2268 | 2278 | | |
2269 | | - | |
| 2279 | + | |
| 2280 | + | |
2270 | 2281 | | |
2271 | 2282 | | |
2272 | 2283 | | |
| |||
2300 | 2311 | | |
2301 | 2312 | | |
2302 | 2313 | | |
2303 | | - | |
| 2314 | + | |
2304 | 2315 | | |
2305 | 2316 | | |
2306 | 2317 | | |
| |||
0 commit comments