get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2227828,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2227828/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20260424103604.2616657-2-johan@kernel.org/",
    "project": {
        "id": 2,
        "url": "http://patchwork.ozlabs.org/api/1.1/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/"
    },
    "msgid": "<20260424103604.2616657-2-johan@kernel.org>",
    "date": "2026-04-24T10:36:02",
    "name": "[1/3] powerpc/ps3: switch to dynamic system bus root device",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "4fd1b4a3cbe5f551518d02a990885821f99e4f52",
    "submitter": {
        "id": 64666,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/64666/?format=api",
        "name": "Johan Hovold",
        "email": "johan@kernel.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20260424103604.2616657-2-johan@kernel.org/mbox/",
    "series": [
        {
            "id": 501340,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/501340/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=501340",
            "date": "2026-04-24T10:36:03",
            "name": "powerpc: switch to dynamic root devices",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/501340/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2227828/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2227828/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "\n <linuxppc-dev+bounces-20066-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=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=sL16H7ey;\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-20066-incoming=patchwork.ozlabs.org@lists.ozlabs.org;\n receiver=patchwork.ozlabs.org)",
            "lists.ozlabs.org;\n arc=none smtp.remote-ip=172.105.4.254",
            "lists.ozlabs.org;\n dmarc=pass (p=quarantine dis=none) header.from=kernel.org",
            "lists.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=sL16H7ey;\n\tdkim-atps=neutral",
            "lists.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=kernel.org\n (client-ip=172.105.4.254; helo=tor.source.kernel.org;\n envelope-from=johan@kernel.org; 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 4g28Wn0h6wz1yHv\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 24 Apr 2026 20:36:21 +1000 (AEST)",
            "from boromir.ozlabs.org (localhost [127.0.0.1])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 4g28Wm69VGz2ynH;\n\tFri, 24 Apr 2026 20:36:20 +1000 (AEST)",
            "from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n\t(No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 4g28Wl4jFJz2xnl\n\tfor <linuxppc-dev@lists.ozlabs.org>; Fri, 24 Apr 2026 20:36:19 +1000 (AEST)",
            "from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58])\n\tby tor.source.kernel.org (Postfix) with ESMTP id A7AE1600CB;\n\tFri, 24 Apr 2026 10:36:17 +0000 (UTC)",
            "by smtp.kernel.org (Postfix) with ESMTPSA id 59B25C4AF09;\n\tFri, 24 Apr 2026 10:36:17 +0000 (UTC)",
            "from johan by xi.lan with local (Exim 4.98.2)\n\t(envelope-from <johan@kernel.org>)\n\tid 1wGDtP-0000000AyiZ-0pJG;\n\tFri, 24 Apr 2026 12:36:15 +0200"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1777026980;\n\tcv=none;\n b=oT8ZiA++PUBnKeGXxdhipZhwbLOyx9g2w+fnkEQgCvQQFDnTeewRrL5TNyAn3nQz15pIvYxvD5A/PchDbCbSJTL2KntEx/nNGadHw80qNRKORa9adrNumCUV4KdmOJGAMh9QVlmgIBPSnagooCkaMkInvrhQrMlsgDN1KH1B6CjWt7Z/tfLxvQNK5PvBNZVTgMKQmqiRy2If9P51/Jb/kWjrcxazrEck5pKAscOHNo5GBc086Y4slzjLLKgayy3RC/jpcpeBxjNnWjeD1GdsKSe8xph3UcYrx7rNw5uoA+a3INuXM8F0E+86xBfzZ0fghFrSggxunEZ2jFA7eyFbgQ==",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707;\n\tt=1777026980; c=relaxed/relaxed;\n\tbh=P1nJG/WlxpA7oGG2+Q8e3ef+sd4zfXvCwzoI+e/Kg3c=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=QRcDhO91Z2LMGAqukYEaZwGwO+ndG+uFo1wrXIPMF5TMBWc+tEDXzz4eUZzmTveNT7hkKxe583qFKPnVGsuvwv7gzLCmIbA9d5S3WNwW7xQAf+9nm/kDHc3ShyhZyw0Xl3q3CvS0+Nh+GJLIJZh2GJWYG7cnf84zNh1tRUzTkmtT9ERihODYm6VUbUnJV/vS0U5tsv9/v7Oym+HU1Hte9gGxm44z189fI/aBROgq6LRNhNP+mNuprRyeixT1sqioD6IwSqbxoTk7LNjbFKcxh/jSgtKqIothndC5BQrUVxneSrkhOdsCufRI7H0HnjSlIJVydqX2dKIB0IkXtnXJwA==",
        "ARC-Authentication-Results": "i=1; lists.ozlabs.org;\n dmarc=pass (p=quarantine dis=none) header.from=kernel.org;\n dkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=sL16H7ey; dkim-atps=neutral;\n spf=pass (client-ip=172.105.4.254; helo=tor.source.kernel.org;\n envelope-from=johan@kernel.org;\n receiver=lists.ozlabs.org) smtp.mailfrom=kernel.org",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org;\n\ts=k20201202; t=1777026977;\n\tbh=OpjYnvUINC0m/fERNUlL4a3+lpA8IFC0Re5p9y/suRY=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=sL16H7ey7V/GQEHl49RxmPmxt0qMuYIyx0svxOyJm+9h1kOYKKLw9BM5O/tJcdefi\n\t TywbChtKKDhRwkerWWpcn4wDAoi283d5Vbu5HLmkM+GOLJpVBih2esZPHSK/48tx5C\n\t CGAO4rl9o3e5dV9+QbsLQA2tGNFzPydSEK+9OBhFMXrl6VPZjUeawlsAPaOv/SJZ/E\n\t 8Lrw85IlKNzhwxRAByN9iZPVt349gQ3RROklPaMr1HtwhXzqWVWOWzc2pqZI55PuXh\n\t 3l8o/F/VS4cOddU52Qeo3PFccE23xjwXqGEwhXbhgeKSBtTZHqZhFH+4VbIaR+kJVW\n\t 98jdb1H3VGMuw==",
        "From": "Johan Hovold <johan@kernel.org>",
        "To": "Geoff Levand <geoff@infradead.org>,\n\tMadhavan Srinivasan <maddy@linux.ibm.com>,\n\tMichael Ellerman <mpe@ellerman.id.au>",
        "Cc": "Nicholas Piggin <npiggin@gmail.com>,\n\tChristophe Leroy <chleroy@kernel.org>,\n\tGreg Kroah-Hartman <gregkh@linuxfoundation.org>,\n\tlinuxppc-dev@lists.ozlabs.org,\n\tlinux-kernel@vger.kernel.org,\n\tJohan Hovold <johan@kernel.org>",
        "Subject": "[PATCH 1/3] powerpc/ps3: switch to dynamic system bus root device",
        "Date": "Fri, 24 Apr 2026 12:36:02 +0200",
        "Message-ID": "<20260424103604.2616657-2-johan@kernel.org>",
        "X-Mailer": "git-send-email 2.53.0",
        "In-Reply-To": "<20260424103604.2616657-1-johan@kernel.org>",
        "References": "<20260424103604.2616657-1-johan@kernel.org>",
        "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-Transfer-Encoding": "8bit",
        "X-Spam-Status": "No, score=-0.2 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED,\n\tDKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS\n\tautolearn=disabled version=4.0.1 OzLabs 8",
        "X-Spam-Checker-Version": "SpamAssassin 4.0.1 (2024-03-25) on lists.ozlabs.org"
    },
    "content": "Driver core expects devices to be dynamically allocated and will, for\nexample, complain loudly if a device that lacks a release function\nis ever freed.\n\nUse root_device_register() to allocate and register the root device\ninstead of open coding using a static device.\n\nSigned-off-by: Johan Hovold <johan@kernel.org>\n---\n arch/powerpc/platforms/ps3/system-bus.c | 10 ++++------\n 1 file changed, 4 insertions(+), 6 deletions(-)",
    "diff": "diff --git a/arch/powerpc/platforms/ps3/system-bus.c b/arch/powerpc/platforms/ps3/system-bus.c\nindex 0537a678a32f..4ead6ccea259 100644\n--- a/arch/powerpc/platforms/ps3/system-bus.c\n+++ b/arch/powerpc/platforms/ps3/system-bus.c\n@@ -20,9 +20,7 @@\n \n #include \"platform.h\"\n \n-static struct device ps3_system_bus = {\n-\t.init_name = \"ps3_system\",\n-};\n+static struct device *ps3_system_bus;\n \n /* FIXME: need device usage counters! */\n static struct {\n@@ -486,8 +484,8 @@ static int __init ps3_system_bus_init(void)\n \n \tmutex_init(&usage_hack.mutex);\n \n-\tresult = device_register(&ps3_system_bus);\n-\tBUG_ON(result);\n+\tps3_system_bus = root_device_register(\"ps3_system\");\n+\tBUG_ON(IS_ERR(ps3_system_bus));\n \n \tresult = bus_register(&ps3_system_bus_type);\n \tBUG_ON(result);\n@@ -744,7 +742,7 @@ int ps3_system_bus_device_register(struct ps3_system_bus_device *dev)\n \tstatic unsigned int dev_lpm_count;\n \n \tif (!dev->core.parent)\n-\t\tdev->core.parent = &ps3_system_bus;\n+\t\tdev->core.parent = ps3_system_bus;\n \tdev->core.bus = &ps3_system_bus_type;\n \tdev->core.release = ps3_system_bus_release_device;\n \n",
    "prefixes": [
        "1/3"
    ]
}