get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2215467,
    "url": "http://patchwork.ozlabs.org/api/patches/2215467/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20260324165633.4583-8-ilpo.jarvinen@linux.intel.com/",
    "project": {
        "id": 2,
        "url": "http://patchwork.ozlabs.org/api/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": "<20260324165633.4583-8-ilpo.jarvinen@linux.intel.com>",
    "list_archive_url": "https://lore.kernel.org/linuxppc-dev/20260324165633.4583-8-ilpo.jarvinen@linux.intel.com/",
    "date": "2026-03-24T16:56:30",
    "name": "[07/10] parisc/PCI: Cleanup align handling",
    "commit_ref": null,
    "pull_url": null,
    "state": "handled-elsewhere",
    "archived": false,
    "hash": "34e0d47eda6a4c3cc3f6b0573bd37c6f907e3fe0",
    "submitter": {
        "id": 83553,
        "url": "http://patchwork.ozlabs.org/api/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/20260324165633.4583-8-ilpo.jarvinen@linux.intel.com/mbox/",
    "series": [
        {
            "id": 497317,
            "url": "http://patchwork.ozlabs.org/api/series/497317/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=497317",
            "date": "2026-03-24T16:56:23",
            "name": "PCI: Improve head free space usage",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/497317/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2215467/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2215467/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <linuxppc-dev+bounces-18733-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=L+zuEiYA;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org\n (client-ip=112.213.38.117; helo=lists.ozlabs.org;\n envelope-from=linuxppc-dev+bounces-18733-incoming=patchwork.ozlabs.org@lists.ozlabs.org;\n receiver=patchwork.ozlabs.org)",
            "lists.ozlabs.org;\n arc=none smtp.remote-ip=198.175.65.19",
            "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=L+zuEiYA;\n\tdkim-atps=neutral",
            "lists.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=linux.intel.com\n (client-ip=198.175.65.19; helo=mgamail.intel.com;\n envelope-from=ilpo.jarvinen@linux.intel.com; receiver=lists.ozlabs.org)"
        ],
        "Received": [
            "from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117])\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 4fgGWB3xkZz1xy1\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 25 Mar 2026 04:00:22 +1100 (AEDT)",
            "from boromir.ozlabs.org (localhost [127.0.0.1])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 4fgGWB2zPnz2yth;\n\tWed, 25 Mar 2026 04:00:22 +1100 (AEDT)",
            "from mgamail.intel.com (mgamail.intel.com [198.175.65.19])\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 4fgGW86g1dz2yng\n\tfor <linuxppc-dev@lists.ozlabs.org>; Wed, 25 Mar 2026 04:00:20 +1100 (AEDT)",
            "from fmviesa006.fm.intel.com ([10.60.135.146])\n  by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 24 Mar 2026 10:00:18 -0700",
            "from ijarvine-mobl1.ger.corp.intel.com (HELO localhost)\n ([10.245.244.217])\n  by fmviesa006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 24 Mar 2026 10:00:10 -0700"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1774371622;\n\tcv=none;\n b=BXvFcK+m7b0pDjmx4cJ/RQilePcEDPXkbux7MykGxe1DnWDaZv7c4lifuslDJide7nEs/vmRS5PkA0FSYauC2JcFwDp8QtlN5iRjCwZw2F5qL/0Jn4z2hbieooVBU4fhjI+GkELrq3xndp+ZAad3d8icSQbg6V5nLjsGgsp6fyoZ8su5xkqVEUD6RVyQAXG3lZAH00rt9vee87GjGgKq5pnI94WWpah0bLJSlAimlUyFWtOqtYdhyP8lFbai//VuQdeOPFCSVrWHWM2WW/BXD+Ll9KeJfReiEHb1l33kEEtYGYHKneF3YkxuG376qtqUvDyensOY7JFh7VKQXNdBeA==",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707;\n\tt=1774371622; c=relaxed/relaxed;\n\tbh=Xpg1OOHH7W5XsLN+rucSM2WsyuBL1ulEamOIabJEn3w=;\n\th=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:\n\t MIME-Version:Content-Type;\n b=BhUkW8XLzo648EViEgaGSfbEhufA46gWKFUWyFdJrxyr2FcB5XwXFbY9Z51jc+q6a/bx224+yz7IHrCoiFr4QeTCDpW+zPIzOMcUjnaQiSzYOG4Un4YStOP7cTM2UPIbaysCMWkr/RyMMwhkioUZ/39QFsGjqbvvPiRnjJejFOS1BGgnMb/IGzB6yCBkQ1/JFkaegikl2XddbuYbqhUJUUp7gyr2UJr7uKgYa0lmr46qmdUIloINZk0hNpqWmMfTOxilis4nLp/KGopb/3xRCafLt0APV6LSKOcT90yoros4TGMv/c8TOc7DO59PKtX2ppWWQl1/A5IYyqavrLLeVg==",
        "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=L+zuEiYA; dkim-atps=neutral;\n spf=pass (client-ip=198.175.65.19; 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=1774371621; x=1805907621;\n  h=from:to:cc:subject:date:message-id:in-reply-to:\n   references:mime-version:content-transfer-encoding;\n  bh=d6KLxSDgRcKiLzDY+NMiMRY2jmIC2rw/9NmZTIuAx/o=;\n  b=L+zuEiYAh5L+fX4jmY1MRMkSQKykixIPFGPFhgnwtIChw4Q5YR8fH7cX\n   r27dP5b65FhHWJPdRviW1nufFE2fuVTHAzwPawRSMsz8vvQ7Fnhl4dWIU\n   pvtptBp6jjJqyjdxEUfOI90SpcqItjUGAr9x2kYjitq/hl5uTegD6zXmW\n   QLyZP0LU27PLk7/M3FY6cxRaukG1SDTD2eK4zkyud9ap1wEqbE6p3Suuf\n   ZNXAkKgkohWhIisqe8BQ7NCFShVMlyZrFvyjMZQ8rET+qrryVnlJYtC3X\n   eM9sn36/I+1QxYlQUN+pR25Uk/UPH16cXhVXPSKiD6tWKlZgIzPUOonip\n   g==;",
        "X-CSE-ConnectionGUID": [
            "1k5XyRFjQCCxgR6tC3Lb3Q==",
            "ib4xzWKRSNm/cm3wyP1vbg=="
        ],
        "X-CSE-MsgGUID": [
            "eYQTcFxETLa1E7ZnBVGxDg==",
            "WCv5QcPyT7OGGuY23A4d9Q=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6800,10657,11739\"; a=\"75281424\"",
            "E=Sophos;i=\"6.23,138,1770624000\";\n   d=\"scan'208\";a=\"75281424\"",
            "E=Sophos;i=\"6.23,138,1770624000\";\n   d=\"scan'208\";a=\"219540242\""
        ],
        "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\tGuenter Roeck <linux@roeck-us.net>,\n\tlinux-alpha@vger.kernel.org,\n\tlinux-arm-kernel@lists.infradead.org,\n\tlinux-m68k@lists.linux-m68k.org,\n\tlinux-mips@vger.kernel.org,\n\tlinux-parisc@vger.kernel.org,\n\tlinuxppc-dev@lists.ozlabs.org,\n\tlinux-s390@vger.kernel.org,\n\tlinux-sh@vger.kernel.org,\n\tRussell King <linux@armlinux.org.uk>,\n\tGeert Uytterhoeven <geert@linux-m68k.org>,\n\tThomas Bogendoerfer <tsbogend@alpha.franken.de>,\n\t\"James E.J. Bottomley\" <James.Bottomley@HansenPartnership.com>,\n\tHelge Deller <deller@gmx.de>,\n\tMichael Ellerman <mpe@ellerman.id.au>,\n\tThomas Gleixner <tglx@kernel.org>,\n\tIngo Molnar <mingo@redhat.com>,\n\tBorislav Petkov <bp@alien8.de>,\n\tDave Hansen <dave.hansen@linux.intel.com>,\n\t\"H. Peter Anvin\" <hpa@zytor.com>,\n\tChris Zankel <chris@zankel.net>,\n\tMax Filippov <jcmvbkbc@gmail.com>,\n\tMadhavan Srinivasan <maddy@linux.ibm.com>,\n\tYoshinori Sato <ysato@users.sourceforge.jp>,\n\tRich Felker <dalias@libc.org>,\n\tJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>,\n\tlinux-kernel@vger.kernel.org",
        "Cc": "=?utf-8?q?Ilpo_J=C3=A4rvinen?= <ilpo.jarvinen@linux.intel.com>",
        "Subject": "[PATCH 07/10] parisc/PCI: Cleanup align handling",
        "Date": "Tue, 24 Mar 2026 18:56:30 +0200",
        "Message-Id": "<20260324165633.4583-8-ilpo.jarvinen@linux.intel.com>",
        "X-Mailer": "git-send-email 2.39.5",
        "In-Reply-To": "<20260324165633.4583-1-ilpo.jarvinen@linux.intel.com>",
        "References": "<20260324165633.4583-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": "Caller of pcibios_align_resource() (__find_resource_space()) already\naligns the start address by 'alignment' so aligning is only necessary\nif align > alignment.\n\nChange also to use ALIGN() instead of open-coding.\n\nSigned-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>\n---\n arch/parisc/kernel/pci.c | 10 ++++------\n 1 file changed, 4 insertions(+), 6 deletions(-)",
    "diff": "diff --git a/arch/parisc/kernel/pci.c b/arch/parisc/kernel/pci.c\nindex f99b20795d5a..f50be1a63c4c 100644\n--- a/arch/parisc/kernel/pci.c\n+++ b/arch/parisc/kernel/pci.c\n@@ -8,6 +8,7 @@\n  * Copyright (C) 1999-2001 Hewlett-Packard Company\n  * Copyright (C) 1999-2001 Grant Grundler\n  */\n+#include <linux/align.h>\n #include <linux/eisa.h>\n #include <linux/init.h>\n #include <linux/module.h>\n@@ -200,7 +201,7 @@ resource_size_t pcibios_align_resource(void *data, const struct resource *res,\n \t\t\t\t       resource_size_t size,\n \t\t\t\t       resource_size_t alignment)\n {\n-\tresource_size_t mask, align, start = res->start;\n+\tresource_size_t align, start = res->start;\n \n \tDBG_RES(\"pcibios_align_resource(%s, (%p) [%lx,%lx]/%x, 0x%lx, 0x%lx)\\n\",\n \t\tpci_name(((struct pci_dev *) data)),\n@@ -209,11 +210,8 @@ resource_size_t pcibios_align_resource(void *data, const struct resource *res,\n \n \t/* If it's not IO, then it's gotta be MEM */\n \talign = (res->flags & IORESOURCE_IO) ? PCIBIOS_MIN_IO : PCIBIOS_MIN_MEM;\n-\n-\t/* Align to largest of MIN or input size */\n-\tmask = max(alignment, align) - 1;\n-\tstart += mask;\n-\tstart &= ~mask;\n+\tif (align > alignment)\n+\t\tstart = ALIGN(start, align);\n \n \treturn start;\n }\n",
    "prefixes": [
        "07/10"
    ]
}