get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2217094,
    "url": "http://patchwork.ozlabs.org/api/patches/2217094/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-pci/patch/20260327160132.2946114-32-yilun.xu@linux.intel.com/",
    "project": {
        "id": 28,
        "url": "http://patchwork.ozlabs.org/api/projects/28/?format=api",
        "name": "Linux PCI development",
        "link_name": "linux-pci",
        "list_id": "linux-pci.vger.kernel.org",
        "list_email": "linux-pci@vger.kernel.org",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260327160132.2946114-32-yilun.xu@linux.intel.com>",
    "list_archive_url": null,
    "date": "2026-03-27T16:01:32",
    "name": "[v2,31/31] coco/tdx-host: Finally enable SPDM session and IDE Establishment",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "ae609996a4c5065c9c98fbfe85d1d15a8c2f5243",
    "submitter": {
        "id": 87470,
        "url": "http://patchwork.ozlabs.org/api/people/87470/?format=api",
        "name": "Xu Yilun",
        "email": "yilun.xu@linux.intel.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-pci/patch/20260327160132.2946114-32-yilun.xu@linux.intel.com/mbox/",
    "series": [
        {
            "id": 497793,
            "url": "http://patchwork.ozlabs.org/api/series/497793/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-pci/list/?series=497793",
            "date": "2026-03-27T16:01:02",
            "name": "PCI/TSM: PCIe Link Encryption Establishment via TDX platform services",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/497793/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2217094/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2217094/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <linux-pci+bounces-51317-incoming=patchwork.ozlabs.org@vger.kernel.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "linux-pci@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=intel.com header.i=@intel.com header.a=rsa-sha256\n header.s=Intel header.b=Lv+Qd+VV;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c15:e001:75::12fc:5321; helo=sin.lore.kernel.org;\n envelope-from=linux-pci+bounces-51317-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)",
            "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com\n header.b=\"Lv+Qd+VV\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=198.175.65.14",
            "smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=linux.intel.com",
            "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=linux.intel.com"
        ],
        "Received": [
            "from sin.lore.kernel.org (sin.lore.kernel.org\n [IPv6:2600:3c15:e001:75::12fc:5321])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fj67b361Xz1y1P\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 28 Mar 2026 03:49:47 +1100 (AEDT)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sin.lore.kernel.org (Postfix) with ESMTP id E8C8831506A4\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 27 Mar 2026 16:31:12 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 2AC9340B6F6;\n\tFri, 27 Mar 2026 16:24:29 +0000 (UTC)",
            "from mgamail.intel.com (mgamail.intel.com [198.175.65.14])\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 E460740F8C1;\n\tFri, 27 Mar 2026 16:24:27 +0000 (UTC)",
            "from fmviesa006.fm.intel.com ([10.60.135.146])\n  by orvoesa106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 27 Mar 2026 09:24:27 -0700",
            "from yilunxu-optiplex-7050.sh.intel.com ([10.239.159.165])\n  by fmviesa006.fm.intel.com with ESMTP; 27 Mar 2026 09:24:24 -0700"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1774628669; cv=none;\n b=R14YfbR3KWHXxGpqQQhBy2gDzN841fUVjPvBPCByl5I0/paod0XnJBLXpdbBCwGEqu4CXgtDFnTSVUQRm2hFy3nBcxPY8seeJSF/ivct95lEKhqucRA5KtHS40ZHKEEW1uDvUPZSCKOu0MY/vl/h2wzvCFgVfvs8OuYRLNnITCw=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1774628669; c=relaxed/simple;\n\tbh=e3F8B2xO+pmyAcCvVmFZ6e91fRtjUozwO9dyL7DqLVo=;\n\th=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:\n\t MIME-Version;\n b=CNj4hqYR2aO6L1O4wm9gBHQI0DigiFYnawLYNryn0da8iig3QQOHJn1pglQK2YpbbIGFqd3tVHpbfy6DXKskD3u0UWq47M4McsBGsxnzkRCqNkAmR3qgX+ehcK3g49psBSA5O/G1oFEYsLBRtTRr2nEocMUFz4BRmlgCHXGJ0aE=",
        "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=linux.intel.com;\n spf=pass smtp.mailfrom=linux.intel.com;\n dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com\n header.b=Lv+Qd+VV; arc=none smtp.client-ip=198.175.65.14",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n  d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n  t=1774628667; x=1806164667;\n  h=from:to:cc:subject:date:message-id:in-reply-to:\n   references:mime-version:content-transfer-encoding;\n  bh=e3F8B2xO+pmyAcCvVmFZ6e91fRtjUozwO9dyL7DqLVo=;\n  b=Lv+Qd+VVAu3CACoOokdFASpm7L3B+FcNOQT6JCXyNoWVOxIzr3DOqmsP\n   vf5A6dIRi5dJJoeUeiunQukfGcR5U5lDz/1vubvaJ8t6+kEMBpi1+PVAA\n   6ERXbVzIA89VEcuAsr4EVIeK+V0XpAl9oV9o0Zi0/x6n6DGnCAnVZntuJ\n   0g7CyMbVjQfM77/1nLMLCR6SXzFK6cgOqffWA8Fp4DxYZmwXFObfI5CNW\n   PJ3CfJujuRCdPz8yeQYPTc4MiD1NRXO71aDHRdww6NEPKYA623A60mLS5\n   PzgrqZbITiYy97F8JP1xwbEVOWQknFMaRU+6lgSBxZhpCYtGToeIruGNq\n   A==;",
        "X-CSE-ConnectionGUID": [
            "9cFhp+/pQNKnNRsWp19vJQ==",
            "D42qXb8nS2GqNB9VSReytw=="
        ],
        "X-CSE-MsgGUID": [
            "plzuFNNHT9+Q6MN90Ju/GA==",
            "frmzYPmVQ62s1CJ9Wz5V5w=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6800,10657,11741\"; a=\"79565712\"",
            "E=Sophos;i=\"6.23,144,1770624000\";\n   d=\"scan'208\";a=\"79565712\"",
            "E=Sophos;i=\"6.23,144,1770624000\";\n   d=\"scan'208\";a=\"220516409\""
        ],
        "X-ExtLoop1": "1",
        "From": "Xu Yilun <yilun.xu@linux.intel.com>",
        "To": "linux-coco@lists.linux.dev,\n\tlinux-pci@vger.kernel.org,\n\tdan.j.williams@intel.com,\n\tx86@kernel.org",
        "Cc": "chao.gao@intel.com,\n\tdave.jiang@intel.com,\n\tbaolu.lu@linux.intel.com,\n\tyilun.xu@linux.intel.com,\n\tyilun.xu@intel.com,\n\tzhenzhong.duan@intel.com,\n\tkvm@vger.kernel.org,\n\trick.p.edgecombe@intel.com,\n\tdave.hansen@linux.intel.com,\n\tkas@kernel.org,\n\txiaoyao.li@intel.com,\n\tvishal.l.verma@intel.com,\n\tlinux-kernel@vger.kernel.org",
        "Subject": "[PATCH v2 31/31] coco/tdx-host: Finally enable SPDM session and IDE\n Establishment",
        "Date": "Sat, 28 Mar 2026 00:01:32 +0800",
        "Message-Id": "<20260327160132.2946114-32-yilun.xu@linux.intel.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20260327160132.2946114-1-yilun.xu@linux.intel.com>",
        "References": "<20260327160132.2946114-1-yilun.xu@linux.intel.com>",
        "Precedence": "bulk",
        "X-Mailing-List": "linux-pci@vger.kernel.org",
        "List-Id": "<linux-pci.vger.kernel.org>",
        "List-Subscribe": "<mailto:linux-pci+subscribe@vger.kernel.org>",
        "List-Unsubscribe": "<mailto:linux-pci+unsubscribe@vger.kernel.org>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit"
    },
    "content": "The basic SPDM session and IDE functionalities are all implemented,\nenable them.\n\nReviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>\nSigned-off-by: Xu Yilun <yilun.xu@linux.intel.com>\n---\n drivers/virt/coco/tdx-host/tdx-host.c | 5 ++---\n 1 file changed, 2 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/drivers/virt/coco/tdx-host/tdx-host.c b/drivers/virt/coco/tdx-host/tdx-host.c\nindex 0f6056945788..7800afb0893d 100644\n--- a/drivers/virt/coco/tdx-host/tdx-host.c\n+++ b/drivers/virt/coco/tdx-host/tdx-host.c\n@@ -883,7 +883,7 @@ static int tdx_iommu_enable_all(void)\n \treturn ret;\n }\n \n-static int __maybe_unused tdx_connect_init(struct device *dev)\n+static int tdx_connect_init(struct device *dev)\n {\n \tstruct tsm_dev *link;\n \tint ret;\n@@ -914,8 +914,7 @@ static int __maybe_unused tdx_connect_init(struct device *dev)\n \n static int tdx_host_probe(struct faux_device *fdev)\n {\n-\t/* TODO: do tdx_connect_init() when it is fully implemented. */\n-\treturn 0;\n+\treturn tdx_connect_init(&fdev->dev);\n }\n \n static struct faux_device_ops tdx_host_ops = {\n",
    "prefixes": [
        "v2",
        "31/31"
    ]
}