get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2196321,
    "url": "http://patchwork.ozlabs.org/api/patches/2196321/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-pci/patch/20260213123603.420941-3-a-garg7@ti.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": "<20260213123603.420941-3-a-garg7@ti.com>",
    "list_archive_url": null,
    "date": "2026-02-13T12:36:01",
    "name": "[RFC,2/4] PCI/DOE: Move common definitions to the header file",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "ba12f67b7629711f0ba1238c7b7b2a8feb6aea01",
    "submitter": {
        "id": 92467,
        "url": "http://patchwork.ozlabs.org/api/people/92467/?format=api",
        "name": "Aksh Garg",
        "email": "a-garg7@ti.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-pci/patch/20260213123603.420941-3-a-garg7@ti.com/mbox/",
    "series": [
        {
            "id": 492090,
            "url": "http://patchwork.ozlabs.org/api/series/492090/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-pci/list/?series=492090",
            "date": "2026-02-13T12:35:59",
            "name": "PCI: Add DOE support for endpoint",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/492090/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2196321/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2196321/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <linux-pci+bounces-47268-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 (1024-bit key;\n unprotected) header.d=ti.com header.i=@ti.com header.a=rsa-sha256\n header.s=selector1 header.b=pr2qWklG;\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-pci+bounces-47268-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)",
            "smtp.subspace.kernel.org;\n\tdkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=\"pr2qWklG\"",
            "smtp.subspace.kernel.org;\n arc=fail smtp.client-ip=40.107.209.8",
            "smtp.subspace.kernel.org;\n dmarc=pass (p=quarantine dis=none) header.from=ti.com",
            "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=ti.com"
        ],
        "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 4fCBW84RDsz1xpl\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 13 Feb 2026 23:36:52 +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 05B413080F3C\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 13 Feb 2026 12:36:27 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 7D9A434F24A;\n\tFri, 13 Feb 2026 12:36:24 +0000 (UTC)",
            "from PH8PR06CU001.outbound.protection.outlook.com\n (mail-westus3azon11012008.outbound.protection.outlook.com [40.107.209.8])\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 DD7F3354AE7;\n\tFri, 13 Feb 2026 12:36:22 +0000 (UTC)",
            "from SJ0PR03CA0359.namprd03.prod.outlook.com (2603:10b6:a03:39c::34)\n by CH3PR10MB6739.namprd10.prod.outlook.com (2603:10b6:610:147::6) with\n Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9611.14; Fri, 13 Feb\n 2026 12:36:20 +0000",
            "from SJ1PEPF00001CE4.namprd03.prod.outlook.com\n (2603:10b6:a03:39c:cafe::e3) by SJ0PR03CA0359.outlook.office365.com\n (2603:10b6:a03:39c::34) with Microsoft SMTP Server (version=TLS1_3,\n cipher=TLS_AES_256_GCM_SHA384) id 15.20.9611.11 via Frontend Transport; Fri,\n 13 Feb 2026 12:36:19 +0000",
            "from lewvzet201.ext.ti.com (198.47.23.195) by\n SJ1PEPF00001CE4.mail.protection.outlook.com (10.167.242.20) with Microsoft\n SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n 15.20.9611.8 via Frontend Transport; Fri, 13 Feb 2026 12:36:19 +0000",
            "from DLEE210.ent.ti.com (157.170.170.112) by lewvzet201.ext.ti.com\n (10.4.14.104) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.20; Fri, 13 Feb\n 2026 06:36:17 -0600",
            "from DLEE208.ent.ti.com (157.170.170.97) by DLEE210.ent.ti.com\n (157.170.170.112) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.20; Fri, 13 Feb\n 2026 06:36:16 -0600",
            "from lelvem-mr06.itg.ti.com (10.180.75.8) by DLEE208.ent.ti.com\n (157.170.170.97) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.20 via Frontend\n Transport; Fri, 13 Feb 2026 06:36:16 -0600",
            "from a0507033-hp.dhcp.ti.com (a0507033-hp.dhcp.ti.com\n [172.24.231.225])\n\tby lelvem-mr06.itg.ti.com (8.18.1/8.18.1) with ESMTP id 61DCa6A8751418;\n\tFri, 13 Feb 2026 06:36:13 -0600"
        ],
        "ARC-Seal": [
            "i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1770986184; cv=fail;\n b=rjPiiOCLD9yG5ktacso7rTCm1f4rulEFy6h2S066OJYVtlBBo5lkexZJjiwLzbrpnvWBMb4gmxb7lcPggI7ze2+QsUJRlV7SRZl1KXM9/l2TgBp8Z4qfLq13fkxW1qta0FP1SI0w12YTG56gbzzFA7zfR2mqOIe8IW0iLoH5P4Y=",
            "i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none;\n b=PXyixvVZF2t3sTHLKHxxC9q8Ht2xC1tADSnijDr6FPgLBwlGHwSqXGb17yOSQ8qNsRcUFPCq7moGEaDACfqnvErpHly4XWXDeSSpd9///OIcL4dXF4htLf55rkGrpucRmyGMLmX1Oa/IBcxHqwO4qtiGgrUbEA3NjHEwUddCOyQfZT0st+Ygy2E4RvrP9ZrpNcfLq2OZ4cIMGC9txnv8wBHMb+Y/KeO2GuK/gTw/yJ/PrgmhZnEAahFCOBRrGO5N5IBqmq/NwvAyPEJnD693/wsyywP+gao2vRWdSPC399FHb6G19j2Pj0PriFWNkXQ/j5IdSrqWdlNOkzjtZcE7nw=="
        ],
        "ARC-Message-Signature": [
            "i=2; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1770986184; c=relaxed/simple;\n\tbh=SnHyJeeOUPKuu8StMejdYYv6lHTt2Vy9rGcIWxv1hWk=;\n\th=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version:Content-Type;\n b=hmqh2R8bxzww+aQG3RRgcAVEZRDztXNUYy7Lintgl+Fej6GtxB9vHxP7Q1zZihZX4smIrNMopCBtajOkKYc9fds15l+6U3/K9H7f/4zW+4PT2qXgg8M0xV6LACy9ZBkX2hrNT7olI17W0nKuu6Q8dDNw8Q90qyP9WLlztoZDU0w=",
            "i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;\n s=arcselector10001;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;\n bh=jh+mfC1wvKkKTWubSh2Q8+CqecpPrVQExyBW5vZyxzY=;\n b=sRJRpMv2d9c9MBOKH1Rvsg1/mnfT7Wcq+VizDOeyjz4xUiU8gO+FMZtZpwu7SKbYaQqsOg0Vt8VL7DAiAhhfdozA8PjFuu9XwK7LkeJGLaCbmM5EMbE7FE5jwXrno2lYane+0uGF/rpuobfVDfmp4CeMWdurvvc2VercDomHa1pEsCXU22xCsgJgaLmJGMae2F1Fq0/RDsJ9x66mf8Ue1UvVKjwp+MlP1Hsi3C8F98VgmE4AX+MMj4cI0U/DsrhltPfu23bqp+8Chd38EUYZ40COXOtGUUAP7CC03AiwyitocD4vJHAzxF0vwopzlZ7zB+XpMrImWlBnmBzqZBqi0w=="
        ],
        "ARC-Authentication-Results": [
            "i=2; smtp.subspace.kernel.org;\n dmarc=pass (p=quarantine dis=none) header.from=ti.com;\n spf=pass smtp.mailfrom=ti.com;\n dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=pr2qWklG;\n arc=fail smtp.client-ip=40.107.209.8",
            "i=1; mx.microsoft.com 1; spf=pass (sender ip is\n 198.47.23.195) smtp.rcpttodomain=lists.infradead.org smtp.mailfrom=ti.com;\n dmarc=pass (p=quarantine sp=none pct=100) action=none header.from=ti.com;\n dkim=none (message not signed); arc=none (0)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=selector1;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n bh=jh+mfC1wvKkKTWubSh2Q8+CqecpPrVQExyBW5vZyxzY=;\n b=pr2qWklGIgikfjfW0X22NLOcgOv11cPgIfv9QYVkRamgrR8o4gyqVML4wcm1rIr1c2vCyd6UeLKUCn7LUWdhk1dw8JIqVufvzck8VoM34ToUDvujdnXe42l6+fZb//IvaXhSzM2iXSBsau2Xj1DHd+Fl9ImvshSKtgfyQMB6/yw=",
        "X-MS-Exchange-Authentication-Results": "spf=pass (sender IP is 198.47.23.195)\n smtp.mailfrom=ti.com; dkim=none (message not signed) header.d=none;dmarc=pass\n action=none header.from=ti.com;",
        "Received-SPF": "Pass (protection.outlook.com: domain of ti.com designates\n 198.47.23.195 as permitted sender) receiver=protection.outlook.com;\n client-ip=198.47.23.195; helo=lewvzet201.ext.ti.com; pr=C",
        "From": "Aksh Garg <a-garg7@ti.com>",
        "To": "<linux-pci@vger.kernel.org>, <linux-doc@vger.kernel.org>,\n\t<bhelgaas@google.com>, <corbet@lwn.net>, <cassel@kernel.org>",
        "CC": "<linux-kernel@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>,\n\t<s-vadapalli@ti.com>, <danishanwar@ti.com>, <srk@ti.com>, <a-garg7@ti.com>",
        "Subject": "[RFC PATCH 2/4] PCI/DOE: Move common definitions to the header file",
        "Date": "Fri, 13 Feb 2026 18:06:01 +0530",
        "Message-ID": "<20260213123603.420941-3-a-garg7@ti.com>",
        "X-Mailer": "git-send-email 2.34.1",
        "In-Reply-To": "<20260213123603.420941-1-a-garg7@ti.com>",
        "References": "<20260213123603.420941-1-a-garg7@ti.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-Type": "text/plain",
        "X-C2ProcessedOrg": "333ef613-75bf-4e12-a4b1-8e3623f5dcea",
        "X-EOPAttributedMessage": "0",
        "X-MS-PublicTrafficType": "Email",
        "X-MS-TrafficTypeDiagnostic": "SJ1PEPF00001CE4:EE_|CH3PR10MB6739:EE_",
        "X-MS-Office365-Filtering-Correlation-Id": "e8514f98-8c1a-4bd9-0aa7-08de6afc7d48",
        "X-MS-Exchange-SenderADCheck": "1",
        "X-MS-Exchange-AntiSpam-Relay": "0",
        "X-Microsoft-Antispam": "\n\tBCL:0;ARA:13230040|376014|36860700013|82310400026|1800799024;",
        "X-Microsoft-Antispam-Message-Info": "\n CJ94M+g6C0pGgKStZz6ACTUtpEoQO1ra6iWvcVvKg0NEZZjISW9AuAq3+5YDiX23bNJ/iheAvtyg812e9765/pIBcezgjDHUmnBb+Q2SMknZd3Hvtt/NSVDCXkFJMNb6sM91qxWYQ0/WwYbyLJwvYexuLhlnIgtfzZilpCXvUMDYz4z9LsRHDRvcZ61bMoasMpmA0KtIIGCBspG+IJSIJ+g98ma2i3IEEDlxqy8V+KSnkqtnp4YfWLToss7UOhfNWDWPWh5UnJMJl0LMSFEAih22cMd3CKHdEr584fSSmH6CAYxJ6nGLAl1kqf2LrljJ8kN0dsqf4c+W6qxs6dtJymaaVYPShGOE/Ybiegs6yLfRgUNJcV8U0JSiklVPONz4TlYT2azgS15RuSzGSyLz1ZUXZ3YtkpfIYhlPTg9kJTVj+HhoxLNYTQwVxKwOr3UnYHT9JOEJqSUm2gNBN+MN/yvgZe9s1m0LYH3HtGzDAiGpzNcyQXY54U1KDd5u2h5lvWPtuTSTm62mGfg1STp5XArgllimHd9Lb556vOoiFWqTTdcgNetW5QlyYygY3sYrzqF1fCzLLxu2Tvo/hvKBEkkxQ5tAWYtAXusJIZsBNDubK+X9ouXny+2xaS0BMbMGOdEpuuY5TpjZ4d9DzNoXbm4lolGFY51t0AtvYcPJuCCkpA72VTQKGHmfiYKMzX3xAbb4Q1RlkVN8utz5NYS/ZzpgFA8TP5grR3qWeHcW02fQyXg53kgjdBjcAZ3yVoeYFtW7yrAoEoRXmXcjGNnuEWsKOGgIbUtA/eKwtgPeQKug/yzByYx0i+rQZbn1Ea5dAOUBDyAjyzkgKlSC1ZExY46m6+PGl6k7uCtXtpRtRF9BtLCNdWAXPf8akLCYUHoGzOoScC35UEB5n8CZ2JJGfMCUXEywXRsLreMhSVFjLlY+AFCjreHhYh3qQI5Wab6uMFfko6syN+yWJsBa7BuyiZJDHbCkP/2SsJRATjeWYSd/JBDqCorhLn2mxQCKm/y1L5LzUa8W3z7WmhEasIWOLqZnFe4JYjMCQKMoAgX2umWI/e1A/zf4fv/OIFBc/obAbxBFbxE9ENXJ4Mz+9fyPoszmID0aPtGaKiF9iekOfW7b0B1C13ByS2wTb5d/peBko/avnsVqjgDjf/1aOb8Su4uxfucIAfNomNJHG+eAYTLdmmxmPwE4uA9dFfo2vfFtmK6hkpiRH/WfXV4xSwZiGqQCaLGPY9vwuMOdsgqrAms+ij5Ib+vYnlISi68OQ/7h+IfKZqKpZIYR+oqwMprhqX5mljoptbFwSPT9hrEbTSXC+9kBXgMDra3sUrxlaCOe2VCnbJvYm8OpJY/mrnP4tDc1WLfcEGJDOKfng4KomKrNti0X3hSU90dUnWP+SY+RkvefI+vEJZ7WmarSB+PCewWQmEmBpyQgf/qwedrz9urbF418g0tlJvmkyV6bCBlIp0RQUDF1Gp4zcPO00S/NplwnewPs8yP1nfVjSvLqS71ePGt9kPUyWK7ikOafHmzZPyuAHZjXtcGpJ7e0WH2RVXe30A4gaBiJnxkcQ5m0kRh8zelgrbzVjKnwcmyE41PjXzulP5Tw9suUq1MWhM0gPiFz7cp+BKfoZZ6WJnaUybBxgoxjqFdXuesiiHXmeH3u1koSjjMGSMIv51YSrOovFw==",
        "X-Forefront-Antispam-Report": "\n\tCIP:198.47.23.195;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:lewvzet201.ext.ti.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(376014)(36860700013)(82310400026)(1800799024);DIR:OUT;SFP:1101;",
        "X-MS-Exchange-AntiSpam-MessageData-ChunkCount": "1",
        "X-MS-Exchange-AntiSpam-MessageData-0": "\n\the0cH4+sm+36IRSPJUGXsTLGX7cJxKueaNP0BtFrlltH9kE+Y87IZP4oMKwUuj5TL0+u6fD/SG5Xp1P2USjVqC8d0OMAfpVAxPKbYzSLVUOXnmSsVD0niMqLv5vSZS6i8F0xg3VFDM+Vit32+kCX6Br0XR6spgXqvJhH6nXcG3I9uz8xfUHcIC2qmKg75u+4cZUowrDnXrG2mDETc205Ijz/gXmB4hGy39J/REHY5b42k3RM5RJDeolTEq7+ZJYNCY+3lf2J6pnt+y97H2NRTvbiJrZXt0JQ4d/O95zUXvAfiZCO8h2E6V919tzIBq8izgl6iT0WYeOH7zwWJKDaji94iWTOSU84ECaaKcEqJ9LIeiw+3VftqRLMG86/NJlLBz2oTxIXEkFGSjwwHhbNwR0ehqHHDFijUoNJB9bIF4xpb5Ss21j4BRoBTiUSHbg6",
        "X-OriginatorOrg": "ti.com",
        "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "13 Feb 2026 12:36:19.8085\n (UTC)",
        "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n e8514f98-8c1a-4bd9-0aa7-08de6afc7d48",
        "X-MS-Exchange-CrossTenant-Id": "e5b49634-450b-4709-8abb-1e2b19b982b7",
        "X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp": "\n TenantId=e5b49634-450b-4709-8abb-1e2b19b982b7;Ip=[198.47.23.195];Helo=[lewvzet201.ext.ti.com]",
        "X-MS-Exchange-CrossTenant-AuthSource": "\n\tSJ1PEPF00001CE4.namprd03.prod.outlook.com",
        "X-MS-Exchange-CrossTenant-AuthAs": "Anonymous",
        "X-MS-Exchange-CrossTenant-FromEntityHeader": "HybridOnPrem",
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "CH3PR10MB6739"
    },
    "content": "From: Aksh Garg <a-garg7@ti.com>\n\nMove common macros and structures from drivers/pci/doe.c to\ninclude/linux/pci-doe.h to allow reuse across root complex and\nendpoint DOE implementations.\n\nAlso add CONFIG_PCI_DOE guards around the root complex DOE APIs to\nmaintain proper conditional compilation.\n\nThese changes prepare the groundwork for the DOE endpoint implementation\nthat will reuse these common definitions.\n\nCo-developed-by: Siddharth Vadapalli <s-vadapalli@ti.com>\nSigned-off-by: Siddharth Vadapalli <s-vadapalli@ti.com>\nSigned-off-by: Aksh Garg <a-garg7@ti.com>\n---\n drivers/pci/doe.c       | 11 -----------\n include/linux/pci-doe.h | 38 +++++++++++++++++++++++++++++++++-----\n 2 files changed, 33 insertions(+), 16 deletions(-)",
    "diff": "diff --git a/drivers/pci/doe.c b/drivers/pci/doe.c\nindex 62be9c8dbc52..0171ef3215a7 100644\n--- a/drivers/pci/doe.c\n+++ b/drivers/pci/doe.c\n@@ -28,12 +28,6 @@\n #define PCI_DOE_TIMEOUT HZ\n #define PCI_DOE_POLL_INTERVAL\t(PCI_DOE_TIMEOUT / 128)\n \n-#define PCI_DOE_FLAG_CANCEL\t0\n-#define PCI_DOE_FLAG_DEAD\t1\n-\n-/* Max data object length is 2^18 dwords */\n-#define PCI_DOE_MAX_LENGTH\t(1 << 18)\n-\n /**\n  * struct pci_doe_mb - State for a single DOE mailbox\n  *\n@@ -63,11 +57,6 @@ struct pci_doe_mb {\n #endif\n };\n \n-struct pci_doe_feature {\n-\tu16 vid;\n-\tu8 type;\n-};\n-\n /**\n  * struct pci_doe_task - represents a single query/response\n  *\ndiff --git a/include/linux/pci-doe.h b/include/linux/pci-doe.h\nindex bd4346a7c4e7..a966626c47f9 100644\n--- a/include/linux/pci-doe.h\n+++ b/include/linux/pci-doe.h\n@@ -13,12 +13,25 @@\n #ifndef LINUX_PCI_DOE_H\n #define LINUX_PCI_DOE_H\n \n-struct pci_doe_mb;\n+/* Mailbox state flags */\n+#define PCI_DOE_FLAG_CANCEL\t\t0\n+#define PCI_DOE_FLAG_DEAD\t\t1\n+\n+/* Max data object length is 2^18 dwords */\n+#define PCI_DOE_MAX_LENGTH\t\t(1 << 18)\n \n-#define PCI_DOE_FEATURE_DISCOVERY 0\n-#define PCI_DOE_FEATURE_CMA 1\n-#define PCI_DOE_FEATURE_SSESSION 2\n+#define PCI_DOE_FEATURE_DISCOVERY\t0\n+#define PCI_DOE_FEATURE_CMA\t\t1\n+#define PCI_DOE_FEATURE_SSESSION\t2\n \n+struct pci_doe_feature {\n+\tu16 vid;\n+\tu8 type;\n+};\n+\n+struct pci_doe_mb;\n+\n+#ifdef CONFIG_PCI_DOE\n struct pci_doe_mb *pci_find_doe_mailbox(struct pci_dev *pdev, u16 vendor,\n \t\t\t\t\tu8 type);\n \n@@ -26,4 +39,19 @@ int pci_doe(struct pci_doe_mb *doe_mb, u16 vendor, u8 type,\n \t    const void *request, size_t request_sz,\n \t    void *response, size_t response_sz);\n \n-#endif\n+#else\n+static inline struct pci_doe_mb *pci_find_doe_mailbox(struct pci_dev *pdev,\n+\t\t\t\t\t\t      u16 vendor, u8 type)\n+{\n+\treturn NULL;\n+}\n+\n+static inline int pci_doe(struct pci_doe_mb *doe_mb, u16 vendor, u8 type,\n+\t\t\t  const void *request, size_t request_sz,\n+\t\t\t  void *response, size_t response_sz)\n+{\n+\treturn -EOPNOTSUPP;\n+}\n+#endif /* CONFIG_PCI_DOE */\n+\n+#endif /* LINUX_PCI_DOE_H */\n",
    "prefixes": [
        "RFC",
        "2/4"
    ]
}