get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2224169,
    "url": "http://patchwork.ozlabs.org/api/patches/2224169/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-pci/patch/1776392767-83668-3-git-send-email-shawn.lin@rock-chips.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": "<1776392767-83668-3-git-send-email-shawn.lin@rock-chips.com>",
    "list_archive_url": null,
    "date": "2026-04-17T02:26:06",
    "name": "[v2,2/3] PCI: switchtec: Replace pci_alloc_irq_vectors() with pcim_alloc_irq_vectors()",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "79c0e66d63958fdf59b67b111934c5179894d57c",
    "submitter": {
        "id": 66993,
        "url": "http://patchwork.ozlabs.org/api/people/66993/?format=api",
        "name": "Shawn Lin",
        "email": "shawn.lin@rock-chips.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-pci/patch/1776392767-83668-3-git-send-email-shawn.lin@rock-chips.com/mbox/",
    "series": [
        {
            "id": 500223,
            "url": "http://patchwork.ozlabs.org/api/series/500223/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-pci/list/?series=500223",
            "date": "2026-04-17T02:26:06",
            "name": "Add Devres managed IRQ vectors allocation",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/500223/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2224169/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2224169/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <linux-pci+bounces-52674-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=rock-chips.com header.i=@rock-chips.com\n header.a=rsa-sha256 header.s=default header.b=baC0Z33/;\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-52674-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)",
            "smtp.subspace.kernel.org;\n\tdkim=pass (1024-bit key) header.d=rock-chips.com header.i=@rock-chips.com\n header.b=\"baC0Z33/\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=156.224.82.231",
            "smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=rock-chips.com",
            "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=rock-chips.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 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fxf0M1rRRz1yDF\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 17 Apr 2026 12:26:59 +1000 (AEST)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sin.lore.kernel.org (Postfix) with ESMTP id DB2663011D7A\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 17 Apr 2026 02:26:56 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 233071E1DE5;\n\tFri, 17 Apr 2026 02:26:54 +0000 (UTC)",
            "from mail-m82231.xmail.ntesmail.com (mail-m82231.xmail.ntesmail.com\n [156.224.82.231])\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 C1DE31714AA\n\tfor <linux-pci@vger.kernel.org>; Fri, 17 Apr 2026 02:26:49 +0000 (UTC)",
            "from localhost.localdomain (unknown [58.22.7.114])\n\tby smtp.qiye.163.com (Hmail) with ESMTP id 3b1199b42;\n\tFri, 17 Apr 2026 10:26:45 +0800 (GMT+08:00)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1776392814; cv=none;\n b=BGnhKRf/w0cGlcnKcjTK4oRIe+PVh/LJpo5B22DeE9e7XMZP9h50DSdGettZivyINAA8/1OJ0UfN8w8HDkI93b8pbgHxhlxmKvIzda4//xKbS8F55byHD3eF1TKXH9/0GFJSUsT8y0Gba+BL0ZDEefRatUmC6OHRL3HcFQ8FLCs=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1776392814; c=relaxed/simple;\n\tbh=6S6Oe/atfYqVm9DLF7txsw/V/XhYsftEzxVfJf+SnHo=;\n\th=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References;\n b=Woox1kkRwPy4fp6VooDpBgIYda0WwKhbmSLqlXI3NTHEjTHgAhte6ZiSIqy8B5wvvnIIJY/ZNqHQAnYJ1InrcqCVIrvrtOGjhcsPzWt0CPL5u37s8f6clk9CxBgVj4UoTCGWUV9SwP+lwntrSdA2DRkpkgb5FSMn0O6V+oRpXpw=",
        "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=rock-chips.com;\n spf=pass smtp.mailfrom=rock-chips.com;\n dkim=pass (1024-bit key) header.d=rock-chips.com header.i=@rock-chips.com\n header.b=baC0Z33/; arc=none smtp.client-ip=156.224.82.231",
        "From": "Shawn Lin <shawn.lin@rock-chips.com>",
        "To": "Bjorn Helgaas <bhelgaas@google.com>",
        "Cc": "Nirmal Patel <nirmal.patel@linux.intel.com>,\n\tJonathan Derrick <jonathan.derrick@linux.dev>,\n\tKurt Schwemmer <kurt.schwemmer@microsemi.com>,\n\tLogan Gunthorpe <logang@deltatee.com>,\n\tPhilipp Stanner <phasta@kernel.org>,\n\tlinux-pci@vger.kernel.org,\n\tShawn Lin <shawn.lin@rock-chips.com>",
        "Subject": "[PATCH v2 2/3] PCI: switchtec: Replace pci_alloc_irq_vectors() with\n pcim_alloc_irq_vectors()",
        "Date": "Fri, 17 Apr 2026 10:26:06 +0800",
        "Message-Id": "<1776392767-83668-3-git-send-email-shawn.lin@rock-chips.com>",
        "X-Mailer": "git-send-email 2.7.4",
        "In-Reply-To": "<1776392767-83668-1-git-send-email-shawn.lin@rock-chips.com>",
        "References": "<1776392767-83668-1-git-send-email-shawn.lin@rock-chips.com>",
        "X-HM-Tid": "0a9d99431af309cckunm63489ccb2f7457",
        "X-HM-MType": "1",
        "X-HM-Spam-Status": "e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly\n\ttZV1koWUFDSUNOT01LS0k3V1ktWUFJV1kPCRoVCBIfWUFZGU9KTlYdTh9OQk8aHxkfGUlWFRQJFh\n\toXVRMBExYaEhckFA4PWVdZGBILWUFZTkNVSUlVTFVKSk9ZV1kWGg8SFR0UWUFZT0tIVUpLSU9PT0\n\thVSktLVUpCS0tZBg++",
        "DKIM-Signature": "a=rsa-sha256;\n\tb=baC0Z33/xL09Zdj7E2n6A/TTW6TkGOnJtJ77aTRPEBPrLucczbETSgIGqTp0DEuav5ny4kQ0zvhksNG72kVmg7G7qZLd0jDJvqP/wl+qu5tq+jcZisNED+hG5pBqnQhQnw06GycoxnLMG6jLi5YELwYKrHP24VtSUmY+FHrsKeo=;\n c=relaxed/relaxed; s=default; d=rock-chips.com; v=1;\n\tbh=NMGF09aAgpd4DqT/E+zRbGs16YasgNWF9veMal2X+Oc=;\n\th=date:mime-version:subject:message-id:from;",
        "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>"
    },
    "content": "Replace pci_alloc_irq_vectors() with pcim_alloc_irq_vectors() to\nexplicitly request devres-managed interrupt vectors. This makes the\ndriver's intention clear and avoids the ambiguous implicit management\npreviously provided by pcim_enable_device().\n\nThe change prepares the driver for the eventual removal of the hybrid\nIRQ management pattern from pcim_enable_device(), ensuring consistent\nresource management through devres.\n\nSigned-off-by: Shawn Lin <shawn.lin@rock-chips.com>\n---\n\nChanges in v2: None\n\n drivers/pci/switch/switchtec.c | 6 +++---\n 1 file changed, 3 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/drivers/pci/switch/switchtec.c b/drivers/pci/switch/switchtec.c\nindex 93ebec9..ed42661 100644\n--- a/drivers/pci/switch/switchtec.c\n+++ b/drivers/pci/switch/switchtec.c\n@@ -1493,9 +1493,9 @@ static int switchtec_init_isr(struct switchtec_dev *stdev)\n \tif (nirqs < 4)\n \t\tnirqs = 4;\n \n-\tnvecs = pci_alloc_irq_vectors(stdev->pdev, 1, nirqs,\n-\t\t\t\t      PCI_IRQ_MSIX | PCI_IRQ_MSI |\n-\t\t\t\t      PCI_IRQ_VIRTUAL);\n+\tnvecs = pcim_alloc_irq_vectors(stdev->pdev, 1, nirqs,\n+\t\t\t\t       PCI_IRQ_MSIX | PCI_IRQ_MSI |\n+\t\t\t\t       PCI_IRQ_VIRTUAL);\n \tif (nvecs < 0)\n \t\treturn nvecs;\n \n",
    "prefixes": [
        "v2",
        "2/3"
    ]
}