{"id":15155,"url":"https://patchwork.libcamera.org/api/1.1/covers/15155/?format=json","web_url":"https://patchwork.libcamera.org/cover/15155/","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":"<20211213232849.40071-1-djrscally@gmail.com>","date":"2021-12-13T23:28:44","name":"[libcamera-devel,0/5] Introduce ancillary links","submitter":{"id":90,"url":"https://patchwork.libcamera.org/api/1.1/people/90/?format=json","name":"Daniel Scally","email":"djrscally@gmail.com"},"mbox":"https://patchwork.libcamera.org/cover/15155/mbox/","series":[{"id":2843,"url":"https://patchwork.libcamera.org/api/1.1/series/2843/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=2843","date":"2021-12-13T23:28:44","name":"Introduce ancillary links","version":1,"mbox":"https://patchwork.libcamera.org/series/2843/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/15155/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 86EC6BF415\n\tfor <parsemail@patchwork.libcamera.org>;\n\tMon, 13 Dec 2021 23:29:08 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 2C91E60894;\n\tTue, 14 Dec 2021 00:29:07 +0100 (CET)","from mail-wr1-x430.google.com (mail-wr1-x430.google.com\n\t[IPv6:2a00:1450:4864:20::430])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 0D3DE60822\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 14 Dec 2021 00:29:05 +0100 (CET)","by mail-wr1-x430.google.com with SMTP id d9so29676181wrw.4\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 13 Dec 2021 15:29:05 -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\t38sm12551643wrc.1.2021.12.13.15.29.03\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tMon, 13 Dec 2021 15:29:04 -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=\"kgXIMqdv\"; 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=tBpQi8cixIriWZXygdYGQQ2YRLpWurHN+imQRdozMOI=;\n\tb=kgXIMqdv2RWUG4WccPY1SWXsXCYKuJNgQKNeFLu0394mYclDC+Xv3f9jY7p8/tbzAv\n\ts55fud/z8Erfdh2VZPVCuPzvJua4XHkEIF+Uso8cjss33M+yzS+FPb+d5F4axRdMznaT\n\tCK/W0FS1Dbz7qYpKi7ExOv3vLHaYZFiOHYA2glKOq1O3ihrpf2XIoKTGIFR3tsIhso5M\n\tBA0gmooThwhosRdGYTftjBWCFgb8P88Gz92eRlkjCOG5Kzvmi98gvYweNAa90Os1jWk9\n\tJgvCDhDbnTP/nfHrBTH14acF+Ve/XJpuBsg2Tlt7iikZSRAuw7HiSxf3x0bt1RGDy14n\n\tLS0w==","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=tBpQi8cixIriWZXygdYGQQ2YRLpWurHN+imQRdozMOI=;\n\tb=FNI8UPKufvTTjCUrlU9W8nEES74r4u+udNm58f9FlOget8d5dL3XcMt0NF78oZHJRO\n\tmCXxmpOYWFHnpjxWrrlBNdkRq0c4/cOxoPJOSCdCntCocdP5ohV4NdvpfwUgcKDl1xyb\n\t1SDM5Ime1kulqZSQQK8AojCo1s25NSOAeSONNUObv3ErVuPQF+T3ZqQsC+GdKMx0BJ3D\n\tlOFqlBVqd9gDzqadvnwyJtbdOoY5qyEAjwgvxdrega9nCVzDVNvQhteSZvGjysBhPMGH\n\t+U2B/2xwZNyUkRd1loteslQif6qJ+H3AIk7WKDe2UjA5CfwV/f9cfiwyybFtr9WMkys+\n\th6Aw==","X-Gm-Message-State":"AOAM530LQPweFdnuURisvs5W9a3K6k/gOc+4wuRCns2Zpza0EgARpMfi\n\t/LgaJrixiQvsXqnLllpvEYE=","X-Google-Smtp-Source":"ABdhPJxADSgDVQM2574ZSuDqBA+wHjAjUYG7xkxLWGEpVe2/nVa3wj8HXS0+CVx6tA/C7fB6BwzHCQ==","X-Received":"by 2002:adf:a193:: with SMTP id\n\tu19mr1692722wru.563.1639438144603; \n\tMon, 13 Dec 2021 15:29:04 -0800 (PST)","From":"Daniel Scally <djrscally@gmail.com>","To":"linux-media@vger.kernel.org,\n\tlibcamera-devel@lists.libcamera.org","Date":"Mon, 13 Dec 2021 23:28:44 +0000","Message-Id":"<20211213232849.40071-1-djrscally@gmail.com>","X-Mailer":"git-send-email 2.25.1","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH 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 - 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\nThoughts and comments very welcome \n\nDan\n\nDaniel Scally (5):\n  media: media.h: Add new media link type\n  media: entity: Add link_type() helper\n  media: entity: Skip non-data links in graph iteration\n  media: entity: Add support for ancillary links\n  media: v4l2-async: Create links during v4l2_async_match_notify()\n\n drivers/media/mc/mc-entity.c         | 56 ++++++++++++++++++++++++++--\n drivers/media/v4l2-core/v4l2-async.c | 51 +++++++++++++++++++++++++\n include/media/media-entity.h         | 29 ++++++++++++++\n include/uapi/linux/media.h           |  1 +\n 4 files changed, 134 insertions(+), 3 deletions(-)"}