get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2230181,
    "url": "http://patchwork.ozlabs.org/api/1.2/patches/2230181/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20260429122617.7324-3-ilpo.jarvinen@linux.intel.com/",
    "project": {
        "id": 2,
        "url": "http://patchwork.ozlabs.org/api/1.2/projects/2/?format=api",
        "name": "Linux PPC development",
        "link_name": "linuxppc-dev",
        "list_id": "linuxppc-dev.lists.ozlabs.org",
        "list_email": "linuxppc-dev@lists.ozlabs.org",
        "web_url": "https://github.com/linuxppc/wiki/wiki",
        "scm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git",
        "webscm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/",
        "list_archive_url": "https://lore.kernel.org/linuxppc-dev/",
        "list_archive_url_format": "https://lore.kernel.org/linuxppc-dev/{}/",
        "commit_url_format": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?id={}"
    },
    "msgid": "<20260429122617.7324-3-ilpo.jarvinen@linux.intel.com>",
    "list_archive_url": "https://lore.kernel.org/linuxppc-dev/20260429122617.7324-3-ilpo.jarvinen@linux.intel.com/",
    "date": "2026-04-29T12:26:08",
    "name": "[02/11] PCI: Rename added to add_list",
    "commit_ref": null,
    "pull_url": null,
    "state": "handled-elsewhere",
    "archived": false,
    "hash": "410d54b01036c94553500372d993c467e2ca494b",
    "submitter": {
        "id": 83553,
        "url": "http://patchwork.ozlabs.org/api/1.2/people/83553/?format=api",
        "name": "Ilpo Järvinen",
        "email": "ilpo.jarvinen@linux.intel.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20260429122617.7324-3-ilpo.jarvinen@linux.intel.com/mbox/",
    "series": [
        {
            "id": 502049,
            "url": "http://patchwork.ozlabs.org/api/1.2/series/502049/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=502049",
            "date": "2026-04-29T12:26:06",
            "name": "PCI: pci_resource_alignment() improvement + cleanups",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/502049/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2230181/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2230181/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <linuxppc-dev+bounces-20278-incoming=patchwork.ozlabs.org@lists.ozlabs.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "linuxppc-dev@lists.ozlabs.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=eW9uXfRm;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org\n (client-ip=2404:9400:21b9:f100::1; helo=lists.ozlabs.org;\n envelope-from=linuxppc-dev+bounces-20278-incoming=patchwork.ozlabs.org@lists.ozlabs.org;\n receiver=patchwork.ozlabs.org)",
            "lists.ozlabs.org;\n arc=none smtp.remote-ip=192.198.163.18",
            "lists.ozlabs.org;\n dmarc=pass (p=none dis=none) header.from=linux.intel.com",
            "lists.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=eW9uXfRm;\n\tdkim-atps=neutral",
            "lists.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=linux.intel.com\n (client-ip=192.198.163.18; helo=mgamail.intel.com;\n envelope-from=ilpo.jarvinen@linux.intel.com; receiver=lists.ozlabs.org)"
        ],
        "Received": [
            "from lists.ozlabs.org (lists.ozlabs.org\n [IPv6:2404:9400:21b9:f100::1])\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 4g5Gl86mqYz1yHX\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 22:27:00 +1000 (AEST)",
            "from boromir.ozlabs.org (localhost [127.0.0.1])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 4g5Gl32QNbz2yjp;\n\tWed, 29 Apr 2026 22:26:55 +1000 (AEST)",
            "from mgamail.intel.com (mgamail.intel.com [192.198.163.18])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 4g5Gl16W37z2ySf\n\tfor <linuxppc-dev@lists.ozlabs.org>; Wed, 29 Apr 2026 22:26:53 +1000 (AEST)",
            "from fmviesa006.fm.intel.com ([10.60.135.146])\n  by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 29 Apr 2026 05:26:51 -0700",
            "from ijarvine-mobl1.ger.corp.intel.com (HELO localhost)\n ([10.245.245.212])\n  by fmviesa006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 29 Apr 2026 05:26:47 -0700"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1777465615;\n\tcv=none;\n b=dxdBrbD9eqUF30bffRpTWjO6z3gH7+FMuKyPmkB/rQ/h9Opv+DGo4Vsmx6TeFvroGvSHXtIkFVA9V4IZ2XDhc3ekUV8FSVZfi83gq8Kqxwl4PXWujtz4LC+sBSQlTtnaevruaPBnXE6R9tp+VmTq9PPqgTYQDqYE5HYbOJpPo8I/OQko4qEJnP/ZqJVFrw59HnhgVMtueGK/b0b+S3U6Otb/Yx3dv1KVkK9nNetH6b8qKKI8pouM/a/dlnAzY82HYev420kqOS+All5ucfBAmgSULkr53MQWCeHzJPz0YSJ43unTiFYNsWBXXnzxLbPeGgIq+HD2R+xrwjNYhHiiDw==",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707;\n\tt=1777465615; c=relaxed/relaxed;\n\tbh=eBtHP4oAj1u/Ahs/OdljwEkDkvZ2SwPYvOlmXCT6VyE=;\n\th=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:\n\t MIME-Version:Content-Type;\n b=boWevs7s9Vom0jyAfjKdKRo3AlbQUmYaf7klDCK5EFiEAdFMUfXzT6OZdq1qg9syklNdSLbCzWb1vdoPtnHDywuTOHYT9p7x4j0c9+1JEk3vJl2gGQYy88AgNODydU9A1oVQ7lsAdoUk0kLdhpmLLlGii4EegFz1hNwVYA2iSd9OVyhbyctSxhozY1mw6FoEWBFE1zgoDbm5ozLwlHgaCNe1bul9KbTLkaXkGMFZQflR3hrRYpgfi2yBlxnETArYp8cDs3DivIISzA6ALeSxtZmTyLNhJHQtXJXLrCimp4dfyGZKYxFN0EBIo1AkJ9LEhMdryxma92M/KwtX6MKxTw==",
        "ARC-Authentication-Results": "i=1; lists.ozlabs.org;\n dmarc=pass (p=none dis=none) header.from=linux.intel.com;\n dkim=pass (2048-bit key;\n unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256\n header.s=Intel header.b=eW9uXfRm; dkim-atps=neutral;\n spf=pass (client-ip=192.198.163.18; helo=mgamail.intel.com;\n envelope-from=ilpo.jarvinen@linux.intel.com;\n receiver=lists.ozlabs.org) smtp.mailfrom=linux.intel.com",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n  d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n  t=1777465614; x=1809001614;\n  h=from:to:cc:subject:date:message-id:in-reply-to:\n   references:mime-version:content-transfer-encoding;\n  bh=NlSw3DKYOjHOeHYh/0go2vSw53u8u6nznavTwXNw3m0=;\n  b=eW9uXfRmpeRfrK8kpx3Mk3/znr87uNJkM4ZrN9gPjWawfrJUVRPUXb8/\n   tG9IohBKFKODc1V0brmAqIwBCK+57ogj2GFQpdCLDhuaBqol4a0KioHAw\n   DiuI7PFJuvF3wNtISoeg2TI+BQS7GsTiOZsSFZ0wIII4WY9H/tJA0bYpf\n   R01S60k8pyoaeo/UwptAt9Xx8DKdN6xPVbnBRhi1et5VwEMrJC29I+QSC\n   flewdlCpIhplNkGTq9D0iGW3qLI5W1Rk157y/GUXBW6sAF0heupBl6sNG\n   3xxVSQhby2aeueSU6Z9WC6IgcSxRljTC9DimWsBd2w5RwfOemFT0bSwoC\n   A==;",
        "X-CSE-ConnectionGUID": [
            "evGXCz8CSv6izetZMT0mag==",
            "rb2ZCEBZRhq5Nh1Tx+QRvA=="
        ],
        "X-CSE-MsgGUID": [
            "ci/nuTxqQVmKsUdg+ZDKvA==",
            "XJYr1JnTROCPcbw42Lz3bw=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6800,10657,11770\"; a=\"77557693\"",
            "E=Sophos;i=\"6.23,206,1770624000\";\n   d=\"scan'208\";a=\"77557693\"",
            "E=Sophos;i=\"6.23,206,1770624000\";\n   d=\"scan'208\";a=\"229669702\""
        ],
        "X-ExtLoop1": "1",
        "From": "=?utf-8?q?Ilpo_J=C3=A4rvinen?= <ilpo.jarvinen@linux.intel.com>",
        "To": "linux-pci@vger.kernel.org,\n\tBjorn Helgaas <bhelgaas@google.com>,\n\tShawn Jin <shawn.jin@asteralabs.com>,\n\tlinuxppc-dev@lists.ozlabs.org,\n\tMadhavan Srinivasan <maddy@linux.ibm.com>,\n\tMichael Ellerman <mpe@ellerman.id.au>,\n\tNicholas Piggin <npiggin@gmail.com>,\n\tlinux-kernel@vger.kernel.org",
        "Cc": "=?utf-8?q?Ilpo_J=C3=A4rvinen?= <ilpo.jarvinen@linux.intel.com>",
        "Subject": "[PATCH 02/11] PCI: Rename added to add_list",
        "Date": "Wed, 29 Apr 2026 15:26:08 +0300",
        "Message-Id": "<20260429122617.7324-3-ilpo.jarvinen@linux.intel.com>",
        "X-Mailer": "git-send-email 2.39.5",
        "In-Reply-To": "<20260429122617.7324-1-ilpo.jarvinen@linux.intel.com>",
        "References": "<20260429122617.7324-1-ilpo.jarvinen@linux.intel.com>",
        "X-Mailing-List": "linuxppc-dev@lists.ozlabs.org",
        "List-Id": "<linuxppc-dev.lists.ozlabs.org>",
        "List-Help": "<mailto:linuxppc-dev+help@lists.ozlabs.org>",
        "List-Owner": "<mailto:linuxppc-dev+owner@lists.ozlabs.org>",
        "List-Post": "<mailto:linuxppc-dev@lists.ozlabs.org>",
        "List-Archive": "<https://lore.kernel.org/linuxppc-dev/>,\n  <https://lists.ozlabs.org/pipermail/linuxppc-dev/>",
        "List-Subscribe": "<mailto:linuxppc-dev+subscribe@lists.ozlabs.org>,\n  <mailto:linuxppc-dev+subscribe-digest@lists.ozlabs.org>,\n  <mailto:linuxppc-dev+subscribe-nomail@lists.ozlabs.org>",
        "List-Unsubscribe": "<mailto:linuxppc-dev+unsubscribe@lists.ozlabs.org>",
        "Precedence": "list",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=UTF-8",
        "Content-Transfer-Encoding": "8bit",
        "X-Spam-Status": "No, score=-2.3 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED,\n\tDKIM_VALID,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS autolearn=disabled\n\tversion=4.0.1 OzLabs 8",
        "X-Spam-Checker-Version": "SpamAssassin 4.0.1 (2024-03-25) on lists.ozlabs.org"
    },
    "content": "The resource fitting algorithm uses different names from the list\nholding the optional sizes: added, add_head, add_list, and\nrealloc_head. 'add_list' sounds the most natural and some of the\nrelated variables also use 'add' such as 'add_size'.\n\nTo reduce variation, rename 'added' and 'add_head' to 'add_list'.\nAlso rename some 'realloc_head' cases selectively to 'add_list'.\n\nWhile it would be nice to rename every 'realloc_head' to 'add_list' for\nconsistency, it might create a backport headache with all to work going\ninto this algorithm that may need to be eventually backported. Thus,\nit's better to leave 'realloc_head' as is for now.\n\nSigned-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>\n---\n drivers/pci/pci.h       |  2 +-\n drivers/pci/setup-bus.c | 26 +++++++++++++-------------\n 2 files changed, 14 insertions(+), 14 deletions(-)",
    "diff": "diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h\nindex 4a14f88e543a..4fcf5a25ad9e 100644\n--- a/drivers/pci/pci.h\n+++ b/drivers/pci/pci.h\n@@ -515,7 +515,7 @@ int pci_dev_res_add_to_list(struct list_head *head, struct pci_dev *dev,\n void __pci_bus_size_bridges(struct pci_bus *bus,\n \t\t\tstruct list_head *realloc_head);\n void __pci_bus_assign_resources(const struct pci_bus *bus,\n-\t\t\t\tstruct list_head *realloc_head,\n+\t\t\t\tstruct list_head *add_list,\n \t\t\t\tstruct list_head *fail_head);\n bool pci_bus_clip_resource(struct pci_dev *dev, int idx);\n void pci_walk_bus_locked(struct pci_bus *top,\ndiff --git a/drivers/pci/setup-bus.c b/drivers/pci/setup-bus.c\nindex 4cf120ebe5ad..3765693e95f0 100644\n--- a/drivers/pci/setup-bus.c\n+++ b/drivers/pci/setup-bus.c\n@@ -756,13 +756,13 @@ static void __assign_resources_sorted(struct list_head *head,\n }\n \n static void pdev_assign_resources_sorted(struct pci_dev *dev,\n-\t\t\t\t\t struct list_head *add_head,\n+\t\t\t\t\t struct list_head *add_list,\n \t\t\t\t\t struct list_head *fail_head)\n {\n \tLIST_HEAD(head);\n \n \tpdev_sort_resources(dev, &head);\n-\t__assign_resources_sorted(&head, add_head, fail_head);\n+\t__assign_resources_sorted(&head, add_list, fail_head);\n \n }\n \n@@ -1502,13 +1502,13 @@ static void pdev_assign_fixed_resources(struct pci_dev *dev)\n }\n \n void __pci_bus_assign_resources(const struct pci_bus *bus,\n-\t\t\t\tstruct list_head *realloc_head,\n+\t\t\t\tstruct list_head *add_list,\n \t\t\t\tstruct list_head *fail_head)\n {\n \tstruct pci_bus *b;\n \tstruct pci_dev *dev;\n \n-\tpbus_assign_resources_sorted(bus, realloc_head, fail_head);\n+\tpbus_assign_resources_sorted(bus, add_list, fail_head);\n \n \tlist_for_each_entry(dev, &bus->devices, bus_list) {\n \t\tpdev_assign_fixed_resources(dev);\n@@ -1517,7 +1517,7 @@ void __pci_bus_assign_resources(const struct pci_bus *bus,\n \t\tif (!b)\n \t\t\tcontinue;\n \n-\t\t__pci_bus_assign_resources(b, realloc_head, fail_head);\n+\t\t__pci_bus_assign_resources(b, add_list, fail_head);\n \n \t\tswitch (dev->hdr_type) {\n \t\tcase PCI_HEADER_TYPE_BRIDGE:\n@@ -1613,19 +1613,19 @@ void pci_bus_claim_resources(struct pci_bus *b)\n EXPORT_SYMBOL(pci_bus_claim_resources);\n \n static void __pci_bridge_assign_resources(const struct pci_dev *bridge,\n-\t\t\t\t\t  struct list_head *add_head,\n+\t\t\t\t\t  struct list_head *add_list,\n \t\t\t\t\t  struct list_head *fail_head)\n {\n \tstruct pci_bus *b;\n \n \tpdev_assign_resources_sorted((struct pci_dev *)bridge,\n-\t\t\t\t\t add_head, fail_head);\n+\t\t\t\t     add_list, fail_head);\n \n \tb = bridge->subordinate;\n \tif (!b)\n \t\treturn;\n \n-\t__pci_bus_assign_resources(b, add_head, fail_head);\n+\t__pci_bus_assign_resources(b, add_list, fail_head);\n \n \tswitch (bridge->class >> 8) {\n \tcase PCI_CLASS_BRIDGE_PCI:\n@@ -2303,7 +2303,7 @@ static int pbus_reassign_bridge_resources(struct pci_bus *bus, struct resource *\n \tunsigned long type = res->flags;\n \tstruct pci_dev_resource *dev_res;\n \tstruct pci_dev *bridge = NULL;\n-\tLIST_HEAD(added);\n+\tLIST_HEAD(add_list);\n \tLIST_HEAD(failed);\n \tunsigned int i;\n \tint ret = 0;\n@@ -2337,10 +2337,10 @@ static int pbus_reassign_bridge_resources(struct pci_bus *bus, struct resource *\n \tif (!bridge)\n \t\treturn -ENOENT;\n \n-\t__pci_bus_size_bridges(bridge->subordinate, &added);\n-\t__pci_bridge_assign_resources(bridge, &added, &failed);\n-\tif (WARN_ON_ONCE(!list_empty(&added)))\n-\t\tpci_dev_res_free_list(&added);\n+\t__pci_bus_size_bridges(bridge->subordinate, &add_list);\n+\t__pci_bridge_assign_resources(bridge, &add_list, &failed);\n+\tif (WARN_ON_ONCE(!list_empty(&add_list)))\n+\t\tpci_dev_res_free_list(&add_list);\n \n \tif (!list_empty(&failed)) {\n \t\tif (pci_required_resource_failed(&failed, type))\n",
    "prefixes": [
        "02/11"
    ]
}