{"id":15297,"url":"https://patchwork.libcamera.org/api/covers/15297/?format=json","web_url":"https://patchwork.libcamera.org/cover/15297/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/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":"<20220130235821.48076-1-djrscally@gmail.com>","date":"2022-01-30T23:58:15","name":"[libcamera-devel,v2,0/6] Introduce ancillary links","submitter":{"id":90,"url":"https://patchwork.libcamera.org/api/people/90/?format=json","name":"Daniel Scally","email":"djrscally@gmail.com"},"mbox":"https://patchwork.libcamera.org/cover/15297/mbox/","series":[{"id":2904,"url":"https://patchwork.libcamera.org/api/series/2904/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=2904","date":"2022-01-30T23:58:15","name":"Introduce ancillary links","version":2,"mbox":"https://patchwork.libcamera.org/series/2904/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/15297/comments/","headers":{"Return-Path":"<libcamera-devel-bounces@lists.libcamera.org>","X-Original-To":"parsemail@patchwork.libcamera.org","Delivered-To":"parsemail@patchwork.libcamera.org","Received":["from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id 370AFBDCBF\n\tfor <parsemail@patchwork.libcamera.org>;\n\tSun, 30 Jan 2022 23:59:10 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 38231609DB;\n\tMon, 31 Jan 2022 00:59:09 +0100 (CET)","from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com\n\t[IPv6:2a00:1450:4864:20::42e])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id B2FF96017A\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 31 Jan 2022 00:59:06 +0100 (CET)","by mail-wr1-x42e.google.com with SMTP id c23so22070430wrb.5\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tSun, 30 Jan 2022 15:59:06 -0800 (PST)","from localhost.localdomain\n\t(cpc141996-chfd3-2-0-cust928.12-3.cable.virginm.net. [86.13.91.161])\n\tby smtp.gmail.com with ESMTPSA id\n\t11sm11993663wrb.30.2022.01.30.15.59.05\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tSun, 30 Jan 2022 15:59:05 -0800 (PST)"],"Authentication-Results":"lancelot.ideasonboard.com;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"fXFZPEaN\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;\n\th=from:to:cc:subject:date:message-id:mime-version\n\t:content-transfer-encoding;\n\tbh=gLOEgQy+6fnYykIS57HacmY2euW9Rqx5gnDk9sWPE3o=;\n\tb=fXFZPEaNqLykfj+IbzSldxb5HanlEQkH3SirkncG/5jloq7+4t+VeXQO/JhHtpeR58\n\tV405WXSER17CofiwqzAF/ECcaIllW82tF8JWk40C6mtCeID+L82RfLHhDCy0pMQKOZ7M\n\t6qk+TWd72t0BlM4C+ZyisvlGiWnXJKo7Ap31dd2yscGT3w2XE6nKsYcYRRi6RQYHs9ET\n\tVhnhYIlWRQMMmQLs1ebzEfQZ3Zq4DhOiiGTOYK3Nb7mggmUbbBCSq7Fjas3OG/WcZuhf\n\tbORBJMBj4fBp7eX0jeJ2q3SiTBhbyAX+RUcsqHi0TnbQmobrsxltUVO4GcuMG745ln8K\n\tvFnw==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20210112;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version\n\t:content-transfer-encoding;\n\tbh=gLOEgQy+6fnYykIS57HacmY2euW9Rqx5gnDk9sWPE3o=;\n\tb=bsZuLYHr9B/oyhqMTmMiv12rb0xs04057Mohj+ZoePy5YK53mCYl/GHJdw6w4lq6QE\n\tEJ3H9FFBo8nvreI02nA1zoCZIgVRWa7HLeQFw2a4uPYv0MMu2ycYi2wlQ1PXqGobci3U\n\tB6myDNtYgvTq5xyTpuzRTkeGW9JPHHKHSmX7kxQ4FUDzHD+/8sfUcXYsoQGM87dKqgv7\n\tkaGmmpJ8ZvY9e1Vey5BS8ZeDODfhbbxdEtSsMmCh9OaJzDueFXBnGeBqThYZ6juLY3qL\n\tuNrM/9N90JB0C1dyeeIVgHitu4jLcoQSJhEc2MySW5VtWxoqDL+xNXc5yUqJicqcQOjY\n\tyQlA==","X-Gm-Message-State":"AOAM530gDhRQnVN7svYQjZNeq1iAeSQJFhGcibBnJM/0dDWXze27vE/T\n\tWJ7R69L8y2ZM6xvY7dZF0yk=","X-Google-Smtp-Source":"ABdhPJwhWAN27A+oReR/o+9UM+QyaKv2W+gvqUCQFSTn1tBteihZLvqm2spcIWz95bJ/ZNRNe7sKMA==","X-Received":"by 2002:a05:6000:18f:: with SMTP id\n\tp15mr15039180wrx.436.1643587146282; \n\tSun, 30 Jan 2022 15:59:06 -0800 (PST)","From":"Daniel Scally <djrscally@gmail.com>","To":"linux-media@vger.kernel.org,\n\tlibcamera-devel@lists.libcamera.org","Date":"Sun, 30 Jan 2022 23:58:15 +0000","Message-Id":"<20220130235821.48076-1-djrscally@gmail.com>","X-Mailer":"git-send-email 2.25.1","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH v2 0/6] Introduce ancillary links","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","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>","Cc":"sakari.ailus@linux.intel.com","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"Hello all\n\nAt present there's no means in the kernel of describing the supporting\nrelationship between subdevices that work together to form an effective single\nunit - the type example in this case being a camera sensor and its\ncorresponding vcm. To attempt to solve that, this series adds a new type of\nmedia link called MEDIA_LNK_FL_ANCILLARY_LINK, which connects two instances of\nstruct media_entity.\n\nThe mechanism of connection I have modelled as a notifier and async subdev,\nwhich seemed the best route since sensor drivers already typically will call\nv4l2_async_register_subdev_sensor() on probe, and that function already looks\nfor a reference to a firmware node with the reference named \"lens-focus\". To\navoid boilerplate in the sensor drivers, I added some new functions in\nv4l2-async that are called in v4l2_async_match_notify() to create the ancillary\nlinks - checking the entity.function of both notifier and subdev to make sure\nthat's appropriate. I haven't gone further than that yet, but I suspect we could\ncut down on code elsewhere by, for example, also creating pad-to-pad links in\nthe same place.\n\nSeries-level changes since v1:\n\n\t- New patch adding some documentation to the uAPI pages.\n\nDan\n\nDaniel Scally (6):\n  media: entity: Skip non-data links in graph iteration\n  media: media.h: Add new media link type\n  media: docs: Add entries documenting ancillary links\n  media: entity: Add link_type_name() helper\n  media: entity: Add support for ancillary links\n  media: v4l2-async: Create links during v4l2_async_match_notify()\n\n .../media/mediactl/media-controller-model.rst |  6 ++\n .../media/mediactl/media-types.rst            |  9 ++-\n drivers/media/mc/mc-entity.c                  | 46 ++++++++++++++-\n drivers/media/v4l2-core/v4l2-async.c          | 56 +++++++++++++++++++\n include/media/media-entity.h                  | 21 +++++++\n include/uapi/linux/media.h                    |  1 +\n 6 files changed, 135 insertions(+), 4 deletions(-)"}