From c06713b3021e31c9d3b1ee8be3396ca2331bf415 Mon Sep 17 00:00:00 2001 From: Denys Drozdov Date: Wed, 15 May 2024 18:30:24 +0300 Subject: [PATCH] pipeline: uvcvideo: Drop Contoller ID check USB camera might not support any specific of_node or devicetree. Drop Controller ID check for such cases Signed-off-by: Denys Drozdov --- src/libcamera/pipeline/uvcvideo/uvcvideo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libcamera/pipeline/uvcvideo/uvcvideo.cpp b/src/libcamera/pipeline/uvcvideo/uvcvideo.cpp index 8a7409fcd..24402d4d8 100644 --- a/src/libcamera/pipeline/uvcvideo/uvcvideo.cpp +++ b/src/libcamera/pipeline/uvcvideo/uvcvideo.cpp @@ -525,8 +525,8 @@ bool UVCCameraData::generateId() while (true) { std::string::size_type pos = searchPath.rfind('/'); if (pos <= 1) { - LOG(UVC, Error) << "Can not find controller ID"; - return false; + LOG(UVC, Debug) << "Controller ID was not detected"; + break; } searchPath = searchPath.substr(0, pos);