{"id":15397,"url":"https://patchwork.libcamera.org/api/covers/15397/?format=json","web_url":"https://patchwork.libcamera.org/cover/15397/","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":"<20220302220304.1327896-1-djrscally@gmail.com>","date":"2022-03-02T22:02:59","name":"[libcamera-devel,v3,0/5] 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/15397/mbox/","series":[{"id":2946,"url":"https://patchwork.libcamera.org/api/series/2946/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=2946","date":"2022-03-02T22:02:59","name":"Introduce ancillary links","version":3,"mbox":"https://patchwork.libcamera.org/series/2946/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/15397/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 749B8BE08A\n\tfor <parsemail@patchwork.libcamera.org>;\n\tWed,  2 Mar 2022 22:03:16 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id CB96F61166;\n\tWed,  2 Mar 2022 23:03:15 +0100 (CET)","from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com\n\t[IPv6:2a00:1450:4864:20::42d])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 3D48D601F2\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed,  2 Mar 2022 23:03:14 +0100 (CET)","by mail-wr1-x42d.google.com with SMTP id u1so4882475wrg.11\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 02 Mar 2022 14:03:14 -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\tl16-20020a05600c4f1000b0033383cdeea1sm229258wmq.10.2022.03.02.14.03.12\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tWed, 02 Mar 2022 14:03:13 -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=\"WDQzRXrN\"; 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=SkCBctUs8JfByOI5AquYb2jZIIcNNXfx8mnbNeZyZnU=;\n\tb=WDQzRXrN85g6mwz3tIqkHAG0hcDYZVxyc8vF8+pXinCAuJsq9JLN2LQsQX/2TvPrrU\n\tEdY3KD+ZbezHtJGUgkQxkINCqnmkJV7OdJGGQWE69c+8AbzNGy1/fdgN9+UrCTL3YZs0\n\tnxvfwcLaGqWvmG+L4mKvhYWxYMqJdXiHVqFhoXBMymVd+u97UpS//iPRbBHfWUVgGwKr\n\tv7oFTeAJ3mluG6GU5pogXi9fu2LVKwyuIpl77Dwnoevef2Te3j/fdlQKhwd0imjxyQZb\n\twO7Rmus9AtMWYzE7d1bGf/uI5iZ3ockcr0dGH6xt6hIEWPqVrSlBbhY/4nIZ21n991Zr\n\te3Iw==","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=SkCBctUs8JfByOI5AquYb2jZIIcNNXfx8mnbNeZyZnU=;\n\tb=7q022p/1JDlgepAKRENViepw+31L/UVzg4vNk9BOl6eJKNUn/KXiMWpZ67roW2F3ZD\n\te7FCYNCijSyMxHOFvgXtonN+qNHsklOLog3xNVWfpHvefFlgTy7jvQIC9ai8+teX9QE/\n\tjgaHnXbKPNDInSduHwUh5R26K6bFeNZECCvralq+focVLr/s22/ewsZAHr/ap1O2MtGv\n\tc9xwOBrVAnN8QwAMvkoCIpqSxnD1KC7jWG6pb8HNtaDegkfhvjyrJoqe+pzVIIdkz5H0\n\tvLgqk+jILI3y7YJPw62orbxPeDZiCJMJwhsVbSITgmOP9eal/zr4km+VQNZ/ATmCmfT6\n\tdAqQ==","X-Gm-Message-State":"AOAM531wlx85t/XOzaCFMrlmep3ZNAwD78LYmVT7deLkBZsm+lO0XcIx\n\t7WEJdtHz8o33Dl+XcdV6RTQ=","X-Google-Smtp-Source":"ABdhPJzDwjeA47SG87rvfvl42EjBHeb+TOX3Ic7MZOYrnT612yka5DFntyEpPAy7XKDifIvJDGNliA==","X-Received":"by 2002:a5d:64ed:0:b0:1ef:e1e2:1fcb with SMTP id\n\tg13-20020a5d64ed000000b001efe1e21fcbmr11446154wri.37.1646258593772; \n\tWed, 02 Mar 2022 14:03:13 -0800 (PST)","From":"Daniel Scally <djrscally@gmail.com>","To":"linux-media@vger.kernel.org,\n\tlibcamera-devel@lists.libcamera.org","Date":"Wed,  2 Mar 2022 22:02:59 +0000","Message-Id":"<20220302220304.1327896-1-djrscally@gmail.com>","X-Mailer":"git-send-email 2.25.1","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH v3 0/5] 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. I haven't gone further than that yet, but I suspect we could cut down on\ncode elsewhere by, for example, also creating pad-to-pad links in the same place\n\nSeries level changes since v2:\n\n  - Squashed #2 and #3\n\nSeries-level changes since v1:\n\n\t- New patch adding some documentation to the uAPI pages.\n\nDan\n\n\nDaniel Scally (5):\n  media: entity: Skip non-data links in graph iteration\n  media: media.h: Add new media link type\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            | 17 +++++--\n drivers/media/mc/mc-entity.c                  | 46 +++++++++++++++++--\n drivers/media/v4l2-core/v4l2-async.c          | 31 +++++++++++++\n include/media/media-entity.h                  | 19 ++++++++\n include/uapi/linux/media.h                    |  1 +\n 6 files changed, 112 insertions(+), 8 deletions(-)"}