[{"id":35127,"web_url":"https://patchwork.libcamera.org/comment/35127/","msgid":"<41a496a1a1c94f7680ffad7b406d55f231fc0d31.camel@ideasonboard.com>","date":"2025-07-25T10:54:11","subject":"Re: [PATCH 3/9] include: linux: v4l2-subdev: Add SUBDEV_BIND_CONTEXT","submitter":{"id":215,"url":"https://patchwork.libcamera.org/api/people/215/","name":"Isaac Scott","email":"isaac.scott@ideasonboard.com"},"content":"Hi Jacopo,\n\nOn Fri, 2025-07-25 at 12:33 +0200, Jacopo Mondi wrote:\n> Temporary update the media.h header from Linux kernel using the flags\n> introduced by:\n> https://patchwork.linuxtv.org/project/linux-media/patch/20250724-multicontext-mainline-2025-v2-13-c9b316773486@ideasonboard.com/\n> \n> Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>\n> ---\n>  include/linux/v4l2-subdev.h | 11 +++++++++++\n>  1 file changed, 11 insertions(+)\n> \n> diff --git a/include/linux/v4l2-subdev.h b/include/linux/v4l2-\n> subdev.h\n> index\n> 839b1329afb259c96551cf76e9186bcb3229554a..9234a4cfc20a866840348224425\n> 948f3aa6d5d63 100644\n> --- a/include/linux/v4l2-subdev.h\n> +++ b/include/linux/v4l2-subdev.h\n> @@ -248,6 +248,16 @@ struct v4l2_subdev_routing {\n>  \t__u32 reserved[11];\n>  };\n>  \n> +/**\n> + * struct v4l2_subdev_bind_context - Subdev context information\n> + *\n> + * @context_fd: The file descriptor of the media_device instance the\n> subdevice\n> + *\t\thas to be bound to\n> + */\n> +struct v4l2_subdev_bind_context {\n> +\t__u32 context_fd;\n> +};\n> +\n>  /*\n>   * The client is aware of streams. Setting this flag enables the use\n> of 'stream'\n>   * fields (referring to the stream number) with various ioctls. If\n> this is not\n> @@ -290,6 +300,7 @@ struct v4l2_subdev_client_capability {\n>  #define VIDIOC_SUBDEV_S_SELECTION\t\t_IOWR('V', 62,\n> struct v4l2_subdev_selection)\n>  #define VIDIOC_SUBDEV_G_ROUTING\t\t\t_IOWR('V',\n> 38, struct v4l2_subdev_routing)\n>  #define VIDIOC_SUBDEV_S_ROUTING\t\t\t_IOWR('V',\n> 39, struct v4l2_subdev_routing)\n> +#define VIDIOC_SUBDEV_BIND_CONTEXT\t\t_IOWR('V', 50,\n> struct v4l2_subdev_bind_context)\n\nReviewed-by: Isaac Scott <isaac.scott@ideasonboard.com>\n\n>  #define VIDIOC_SUBDEV_G_CLIENT_CAP\t\t_IOR('V',  101,\n> struct v4l2_subdev_client_capability)\n>  #define VIDIOC_SUBDEV_S_CLIENT_CAP\t\t_IOWR('V',  102,\n> struct v4l2_subdev_client_capability)\n>","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 4E0E1BDCC1\n\tfor <parsemail@patchwork.libcamera.org>;\n\tFri, 25 Jul 2025 10:54:16 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id C18C4690BC;\n\tFri, 25 Jul 2025 12:54:15 +0200 (CEST)","from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id DAA68690A6\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 25 Jul 2025 12:54:13 +0200 (CEST)","from isaac-ThinkPad-T16-Gen-2.lan\n\t(cpc89244-aztw30-2-0-cust6594.18-1.cable.virginm.net [86.31.185.195])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 43929C73;\n\tFri, 25 Jul 2025 12:53:34 +0200 (CEST)"],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (1024-bit key;\n\tunprotected) header.d=ideasonboard.com header.i=@ideasonboard.com\n\theader.b=\"H1AC2JYV\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1753440814;\n\tbh=1Q64nIyQ3ekk21kMQXgODVVZTQMiT6BQ57+WjSR8/ZA=;\n\th=Subject:From:To:Date:In-Reply-To:References:From;\n\tb=H1AC2JYVjs6v8AnVvAgiAkcC9kWFWZlUBWv1b/lRfbdRrTQKbYVWOKHDWW97ZNjFa\n\tUR7yuGwupRKmlE7mp7RHTcu16OhgjCKGPjewn65vM/2eLVPPcR07pkinGolhUZQKs4\n\tVlKriFOirLjI2ryqHlx8xb3q1cXi2sava65sKedQ=","Message-ID":"<41a496a1a1c94f7680ffad7b406d55f231fc0d31.camel@ideasonboard.com>","Subject":"Re: [PATCH 3/9] include: linux: v4l2-subdev: Add SUBDEV_BIND_CONTEXT","From":"Isaac Scott <isaac.scott@ideasonboard.com>","To":"Jacopo Mondi <jacopo.mondi@ideasonboard.com>, \n\tlibcamera-devel@lists.libcamera.org","Date":"Fri, 25 Jul 2025 11:54:11 +0100","In-Reply-To":"<20250725-multicontext-v1-3-ea558291e101@ideasonboard.com>","References":"<20250725-multicontext-v1-0-ea558291e101@ideasonboard.com>\n\t<20250725-multicontext-v1-3-ea558291e101@ideasonboard.com>","Content-Type":"text/plain; charset=\"UTF-8\"","Content-Transfer-Encoding":"quoted-printable","User-Agent":"Evolution 3.56.2 (by Flathub.org) ","MIME-Version":"1.0","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>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"}}]