{"id":1959,"url":"https://patchwork.libcamera.org/api/1.1/covers/1959/?format=json","web_url":"https://patchwork.libcamera.org/cover/1959/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/1.1/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20190912200330.19004-1-laurent.pinchart@ideasonboard.com>","date":"2019-09-12T20:03:26","name":"[libcamera-devel,0/4] Fix udev device enumerator with V4L2 M2M devices","submitter":{"id":2,"url":"https://patchwork.libcamera.org/api/1.1/people/2/?format=json","name":"Laurent Pinchart","email":"laurent.pinchart@ideasonboard.com"},"mbox":"https://patchwork.libcamera.org/cover/1959/mbox/","series":[{"id":487,"url":"https://patchwork.libcamera.org/api/1.1/series/487/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=487","date":"2019-09-12T20:03:26","name":"Fix udev device enumerator with V4L2 M2M devices","version":1,"mbox":"https://patchwork.libcamera.org/series/487/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/1959/comments/","headers":{"Return-Path":"<laurent.pinchart@ideasonboard.com>","Received":["from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 8A71B600E9\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 12 Sep 2019 22:03:44 +0200 (CEST)","from pendragon.lan (bl10-204-24.dsl.telepac.pt [85.243.204.24])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 326DD33A;\n\tThu, 12 Sep 2019 22:03:42 +0200 (CEST)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1568318624;\n\tbh=EwBRD/4/SNC/RQNwjRcU85xxmGiEf1NXGbYpjw9cIVE=;\n\th=From:To:Cc:Subject:Date:From;\n\tb=X5SjGmnhRH7R/vjBh4dNNMGq4dsvc5OuUOR8jpqcSGFkBLOhP8zUbb+ghBBtsgNhE\n\tCLHxS+4cLvCNaJAgxFCgz+jmLG5m5XcQMLAJqHOQHlERuPV2f2EY/eYjV3pFT5UUfS\n\tXQQmI9xYRI9VpmbiyVo2WHtnwx8V9+Jn26A5mOCY=","From":"Laurent Pinchart <laurent.pinchart@ideasonboard.com>","To":"libcamera-devel@lists.libcamera.org","Date":"Thu, 12 Sep 2019 23:03:26 +0300","Message-Id":"<20190912200330.19004-1-laurent.pinchart@ideasonboard.com>","X-Mailer":"git-send-email 2.21.0","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH 0/4] Fix udev device enumerator with V4L2\n\tM2M devices","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.23","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","X-List-Received-Date":"Thu, 12 Sep 2019 20:03:44 -0000"},"content":"Hello,\n\nThe latest rework of the udev device enumerator to support delayed\ndevice initialisation broke V4L2 M2M support, as it assumes that a\ndevice node belongs to a single entity. As I'm guilty of having missed\nthat during review, here's a patch series to fix it.\n\nThe first three patches are drive-by cleanups, while the real fix is in\npatch 4/4.\n\nLaurent Pinchart (4):\n  libcamera: device_enumerator: Move lookupDeviceNode() to child classes\n  libcamera: device_enumerator_udev: Delay device node lookup\n  libcamera: device_enumerator_udev: Avoid double list lookup\n  libcamera: device_enumerator_udev: Support entities sharing device\n    nodes\n\n src/libcamera/device_enumerator.cpp           |  13 --\n src/libcamera/device_enumerator_sysfs.cpp     |  11 ++\n src/libcamera/device_enumerator_udev.cpp      | 116 ++++++++++++------\n src/libcamera/include/device_enumerator.h     |   2 -\n .../include/device_enumerator_sysfs.h         |   2 +-\n .../include/device_enumerator_udev.h          |  27 +++-\n 6 files changed, 113 insertions(+), 58 deletions(-)"}