get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/2216460/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2216460,
    "url": "http://patchwork.ozlabs.org/api/patches/2216460/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-tegra/patch/20260326135855.2795149-3-thierry.reding@kernel.org/",
    "project": {
        "id": 21,
        "url": "http://patchwork.ozlabs.org/api/projects/21/?format=api",
        "name": "Linux Tegra Development",
        "link_name": "linux-tegra",
        "list_id": "linux-tegra.vger.kernel.org",
        "list_email": "linux-tegra@vger.kernel.org",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260326135855.2795149-3-thierry.reding@kernel.org>",
    "list_archive_url": null,
    "date": "2026-03-26T13:58:49",
    "name": "[v3,2/6] firmware: tegra: bpmp: Add tegra_bpmp_get_with_id() function",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "583b8944b50cff4427fda4b884fb5371c290a367",
    "submitter": {
        "id": 92481,
        "url": "http://patchwork.ozlabs.org/api/people/92481/?format=api",
        "name": "Thierry Reding",
        "email": "thierry.reding@kernel.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-tegra/patch/20260326135855.2795149-3-thierry.reding@kernel.org/mbox/",
    "series": [
        {
            "id": 497592,
            "url": "http://patchwork.ozlabs.org/api/series/497592/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-tegra/list/?series=497592",
            "date": "2026-03-26T13:58:48",
            "name": "PCI: tegra: Add Tegra264 support",
            "version": 3,
            "mbox": "http://patchwork.ozlabs.org/series/497592/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2216460/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2216460/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <linux-tegra+bounces-13299-incoming=patchwork.ozlabs.org@vger.kernel.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "linux-tegra@vger.kernel.org"
        ],
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=OzhyPDIp;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c04:e001:36c::12fc:5321; helo=tor.lore.kernel.org;\n envelope-from=linux-tegra+bounces-13299-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)",
            "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org\n header.b=\"OzhyPDIp\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=10.30.226.201"
        ],
        "Received": [
            "from tor.lore.kernel.org (tor.lore.kernel.org\n [IPv6:2600:3c04:e001:36c::12fc:5321])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fhQbQ0VV4z1yGD\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 27 Mar 2026 01:08:02 +1100 (AEDT)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby tor.lore.kernel.org (Postfix) with ESMTP id 1CB4A3079A51\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 26 Mar 2026 13:59:05 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id D49C2339714;\n\tThu, 26 Mar 2026 13:59:04 +0000 (UTC)",
            "from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org\n [10.30.226.201])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 95D9830ACF0;\n\tThu, 26 Mar 2026 13:59:04 +0000 (UTC)",
            "by smtp.kernel.org (Postfix) with ESMTPSA id B8104C2BCB3;\n\tThu, 26 Mar 2026 13:59:03 +0000 (UTC)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1774533544; cv=none;\n b=MpI/pbFHLJWe9nFU670kFzdTL0MD+UykZsL9v/gMN+vz9G1BV5TJmLtnC/1EN2vYZiKS+MEJKSwXXDuRW02wUKOnXHr5AQlv/lO05hk3cB7nYcISBSWFeY60VTcqgoCJ8jJPZ/tR91hNLen32XzF4FMGn2+9CvJ02i2HVlTJrqk=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1774533544; c=relaxed/simple;\n\tbh=azslhyOrRd4bBRAEsZsm65h7MhY1jg32xe+pOuDKiN8=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=tYymo3grpSAanz3/E85UdpqwwQo4eUzxDCTricpZJiheREWdUMpeVkiEgp7Myr4fIjyhX7w12dhxjHdREZrfWTRcGKHUQYQrZ7uh3ywNIE3jMwD/ssmPkSw4ndascynwkOGbdc7ez0aJZc50MAv/62oif4YNEqi/aGzWwQSMbbM=",
        "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org\n header.b=OzhyPDIp; arc=none smtp.client-ip=10.30.226.201",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org;\n\ts=k20201202; t=1774533544;\n\tbh=azslhyOrRd4bBRAEsZsm65h7MhY1jg32xe+pOuDKiN8=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=OzhyPDIp/Ve4n/to/4nW3dhmMc74IYTJEetDluA9PfmTeASJDZf1rKXxNnfJDHPxk\n\t B04yMNF6Yuz2yZLEnJAlvsU7diet60vje00zN+jV1KojFjTMprX22nL69g8GzD5IPZ\n\t FcVRRfvZrZUH4lbJTuSCTdBJ5If0S5WWNAi1huaw16dWKb3EWZgiANeXCryWKhrTQt\n\t G0JKLNZnD0jg/jJJMblzZyEIccvuV2S7/LeLdT/SC8ydCT47fUCZm7xV3kWpGx7dhl\n\t zWe/ezpMVzHxSScGgXYT0hCDcxzWfG5buMY4WbP15x0M/Ou9IR5jA6w8QkRC8Ohh8j\n\t 2zgaQlTg34+1g==",
        "From": "Thierry Reding <thierry.reding@kernel.org>",
        "To": "Thierry Reding <thierry.reding@kernel.org>,\n Bjorn Helgaas <bhelgaas@google.com>,\n Lorenzo Pieralisi <lpieralisi@kernel.org>, =?utf-8?q?Krzysztof_Wilczy=C5=84?=\n\t=?utf-8?q?ski?= <kwilczynski@kernel.org>,\n Manivannan Sadhasivam <mani@kernel.org>, Rob Herring <robh@kernel.org>,\n Krzysztof Kozlowski <krzk+dt@kernel.org>, Conor Dooley <conor+dt@kernel.org>",
        "Cc": "Jon Hunter <jonathanh@nvidia.com>,\n\tMikko Perttunen <mperttunen@nvidia.com>,\n\tlinux-pci@vger.kernel.org,\n\tdevicetree@vger.kernel.org,\n\tlinux-tegra@vger.kernel.org",
        "Subject": "[PATCH v3 2/6] firmware: tegra: bpmp: Add tegra_bpmp_get_with_id()\n function",
        "Date": "Thu, 26 Mar 2026 14:58:49 +0100",
        "Message-ID": "<20260326135855.2795149-3-thierry.reding@kernel.org>",
        "X-Mailer": "git-send-email 2.52.0",
        "In-Reply-To": "<20260326135855.2795149-1-thierry.reding@kernel.org>",
        "References": "<20260326135855.2795149-1-thierry.reding@kernel.org>",
        "Precedence": "bulk",
        "X-Mailing-List": "linux-tegra@vger.kernel.org",
        "List-Id": "<linux-tegra.vger.kernel.org>",
        "List-Subscribe": "<mailto:linux-tegra+subscribe@vger.kernel.org>",
        "List-Unsubscribe": "<mailto:linux-tegra+unsubscribe@vger.kernel.org>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit"
    },
    "content": "From: Thierry Reding <treding@nvidia.com>\n\nSome device tree bindings need to specify a parameter along with a BPMP\nphandle reference to designate the ID associated with a given controller\nthat needs to interoperate with BPMP. Typically this is specified as an\nextra cell in the nvidia,bpmp property, so add a helper to parse this ID\nwhile resolving the phandle reference.\n\nSigned-off-by: Thierry Reding <treding@nvidia.com>\n---\nChanges in v3:\n- add stub for !BPMP configurations\n\n drivers/firmware/tegra/bpmp.c | 34 ++++++++++++++++++++++++++++++++++\n include/soc/tegra/bpmp.h      |  8 ++++++++\n 2 files changed, 42 insertions(+)",
    "diff": "diff --git a/drivers/firmware/tegra/bpmp.c b/drivers/firmware/tegra/bpmp.c\nindex e74bba7ccc44..753472b53bd8 100644\n--- a/drivers/firmware/tegra/bpmp.c\n+++ b/drivers/firmware/tegra/bpmp.c\n@@ -32,6 +32,40 @@ channel_to_ops(struct tegra_bpmp_channel *channel)\n \treturn bpmp->soc->ops;\n }\n \n+struct tegra_bpmp *tegra_bpmp_get_with_id(struct device *dev, unsigned int *id)\n+{\n+\tstruct platform_device *pdev;\n+\tstruct of_phandle_args args;\n+\tstruct tegra_bpmp *bpmp;\n+\tint err;\n+\n+\terr = __of_parse_phandle_with_args(dev->of_node, \"nvidia,bpmp\", NULL,\n+\t\t\t\t\t   1, 0, &args);\n+\tif (err < 0)\n+\t\treturn ERR_PTR(err);\n+\n+\tpdev = of_find_device_by_node(args.np);\n+\tif (!pdev) {\n+\t\tbpmp = ERR_PTR(-ENODEV);\n+\t\tgoto put;\n+\t}\n+\n+\tbpmp = platform_get_drvdata(pdev);\n+\tif (!bpmp) {\n+\t\tbpmp = ERR_PTR(-EPROBE_DEFER);\n+\t\tput_device(&pdev->dev);\n+\t\tgoto put;\n+\t}\n+\n+\tif (id)\n+\t\t*id = args.args[0];\n+\n+put:\n+\tof_node_put(args.np);\n+\treturn bpmp;\n+}\n+EXPORT_SYMBOL_GPL(tegra_bpmp_get_with_id);\n+\n struct tegra_bpmp *tegra_bpmp_get(struct device *dev)\n {\n \tstruct platform_device *pdev;\ndiff --git a/include/soc/tegra/bpmp.h b/include/soc/tegra/bpmp.h\nindex f5e4ac5b8cce..822851ef4bf8 100644\n--- a/include/soc/tegra/bpmp.h\n+++ b/include/soc/tegra/bpmp.h\n@@ -127,6 +127,7 @@ struct tegra_bpmp_message {\n \n #if IS_ENABLED(CONFIG_TEGRA_BPMP)\n struct tegra_bpmp *tegra_bpmp_get(struct device *dev);\n+struct tegra_bpmp *tegra_bpmp_get_with_id(struct device *dev, unsigned int *id);\n void tegra_bpmp_put(struct tegra_bpmp *bpmp);\n int tegra_bpmp_transfer_atomic(struct tegra_bpmp *bpmp,\n \t\t\t       struct tegra_bpmp_message *msg);\n@@ -145,6 +146,13 @@ static inline struct tegra_bpmp *tegra_bpmp_get(struct device *dev)\n {\n \treturn ERR_PTR(-ENOTSUPP);\n }\n+\n+static inline struct tegra_bpmp *tegra_bpmp_get_with_id(struct device *dev,\n+\t\t\t\t\t\t\tunsigned int *id)\n+{\n+\treturn ERR_PTR(-ENODEV);\n+}\n+\n static inline void tegra_bpmp_put(struct tegra_bpmp *bpmp)\n {\n }\n",
    "prefixes": [
        "v3",
        "2/6"
    ]
}