Patch Detail
Show a patch.
GET /api/1.1/patches/3406/?format=api
{ "id": 3406, "url": "https://patchwork.libcamera.org/api/1.1/patches/3406/?format=api", "web_url": "https://patchwork.libcamera.org/patch/3406/", "project": { "id": 1, "url": "https://patchwork.libcamera.org/api/1.1/projects/1/?format=api", "name": "libcamera", "link_name": "libcamera", "list_id": "libcamera_core", "list_email": "libcamera-devel@lists.libcamera.org", "web_url": "", "scm_url": "", "webscm_url": "" }, "msgid": "<20200407152157.1686474-2-jacopo@jmondi.org>", "date": "2020-04-07T15:21:55", "name": "[libcamera-devel,v3,1/3] Documentation: media: Update sub-device API intro", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "34dac45ba6ce31a4861077965cafd6584a3fa7e0", "submitter": { "id": 3, "url": "https://patchwork.libcamera.org/api/1.1/people/3/?format=api", "name": "Jacopo Mondi", "email": "jacopo@jmondi.org" }, "delegate": null, "mbox": "https://patchwork.libcamera.org/patch/3406/mbox/", "series": [ { "id": 800, "url": "https://patchwork.libcamera.org/api/1.1/series/800/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=800", "date": "2020-04-07T15:21:54", "name": "media: Register read-only sub-dev devnode", "version": 3, "mbox": "https://patchwork.libcamera.org/series/800/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/3406/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/3406/checks/", "tags": {}, "headers": { "Return-Path": "<jacopo@jmondi.org>", "Received": [ "from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net\n\t[217.70.183.199])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id D3357600F3\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 7 Apr 2020 17:19:07 +0200 (CEST)", "from localhost.localdomain (2-224-242-101.ip172.fastwebnet.it\n\t[2.224.242.101]) (Authenticated sender: jacopo@jmondi.org)\n\tby relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 38EB7FF803;\n\tTue, 7 Apr 2020 15:19:05 +0000 (UTC)" ], "X-Originating-IP": "2.224.242.101", "From": "Jacopo Mondi <jacopo@jmondi.org>", "To": "linux-media@vger.kernel.org,\n\tlibcamera-devel@lists.libcamera.org", "Cc": "Jacopo Mondi <jacopo@jmondi.org>, mchehab@kernel.org,\n\thverkuil-cisco@xs4all.nl, sakari.ailus@linux.intel.com,\n\tandrey.konovalov@linaro.org, laurent.pinchart@ideasonboard.com", "Date": "Tue, 7 Apr 2020 17:21:55 +0200", "Message-Id": "<20200407152157.1686474-2-jacopo@jmondi.org>", "X-Mailer": "git-send-email 2.26.0", "In-Reply-To": "<20200407152157.1686474-1-jacopo@jmondi.org>", "References": "<20200407152157.1686474-1-jacopo@jmondi.org>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[libcamera-devel] [PATCH v3 1/3] Documentation: media: Update\n\tsub-device API intro", "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>", "X-List-Received-Date": "Tue, 07 Apr 2020 15:19:08 -0000" }, "content": "Update the V4L2 sub-device userspace API introduction to provide more\ndetails on why complex devices might want to register devnodes for the\nconnected subdevices.\n\nAcked-by: Sakari Ailus <sakari.ailus@linux.intel.com>\nSuggested-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\nSigned-off-by: Jacopo Mondi <jacopo@jmondi.org>\n---\n Documentation/media/kapi/v4l2-subdev.rst | 9 +++++++--\n 1 file changed, 7 insertions(+), 2 deletions(-)", "diff": "diff --git a/Documentation/media/kapi/v4l2-subdev.rst b/Documentation/media/kapi/v4l2-subdev.rst\nindex 29e07e23f888..41ccb3e5c707 100644\n--- a/Documentation/media/kapi/v4l2-subdev.rst\n+++ b/Documentation/media/kapi/v4l2-subdev.rst\n@@ -275,8 +275,13 @@ system the .unbind() method is called. All three callbacks are optional.\n V4L2 sub-device userspace API\n -----------------------------\n \n-Beside exposing a kernel API through the :c:type:`v4l2_subdev_ops` structure,\n-V4L2 sub-devices can also be controlled directly by userspace applications.\n+Bridge drivers traditionally expose one or multiple video nodes to userspace,\n+and control subdevices through the :c:type:`v4l2_subdev_ops` operations in\n+response to video node operations. This hides the complexity of the underlying\n+hardware from applications. For complex devices, finer-grained control of the\n+device than what the video nodes offer may be required. In those cases, bridge\n+drivers that implement :ref:`the media controller API <media_controller>` may\n+opt for making the subdevice operations directly accessible from userpace.\n \n Device nodes named ``v4l-subdev``\\ *X* can be created in ``/dev`` to access\n sub-devices directly. If a sub-device supports direct userspace configuration\n", "prefixes": [ "libcamera-devel", "v3", "1/3" ] }