get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2195012,
    "url": "http://patchwork.ozlabs.org/api/patches/2195012/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-pci/patch/20260210113041.138430-10-john.madieu.xa@bp.renesas.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": "<20260210113041.138430-10-john.madieu.xa@bp.renesas.com>",
    "list_archive_url": null,
    "date": "2026-02-10T11:30:33",
    "name": "[v5,09/16] PCI: rzg3s-host: Reorder reset assertion during suspend",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "8650eb0bad7bd13661e161e5974bb8358144c712",
    "submitter": {
        "id": 89876,
        "url": "http://patchwork.ozlabs.org/api/people/89876/?format=api",
        "name": "John Madieu",
        "email": "john.madieu.xa@bp.renesas.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-pci/patch/20260210113041.138430-10-john.madieu.xa@bp.renesas.com/mbox/",
    "series": [
        {
            "id": 491658,
            "url": "http://patchwork.ozlabs.org/api/series/491658/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-pci/list/?series=491658",
            "date": "2026-02-10T11:30:24",
            "name": "PCI: renesas: Add RZ/G3E PCIe controller support",
            "version": 5,
            "mbox": "http://patchwork.ozlabs.org/series/491658/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2195012/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2195012/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <linux-pci+bounces-47076-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 spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=172.232.135.74; helo=sto.lore.kernel.org;\n envelope-from=linux-pci+bounces-47076-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=210.160.252.171",
            "smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=bp.renesas.com",
            "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=bp.renesas.com"
        ],
        "Received": [
            "from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])\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 4f9KF63dwqz1xwH\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 10 Feb 2026 22:33:14 +1100 (AEDT)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sto.lore.kernel.org (Postfix) with ESMTP id 92159301114C\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 10 Feb 2026 11:33:11 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 1E85E3191B2;\n\tTue, 10 Feb 2026 11:33:08 +0000 (UTC)",
            "from relmlie5.idc.renesas.com (relmlor1.renesas.com\n [210.160.252.171])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 78740A59;\n\tTue, 10 Feb 2026 11:33:05 +0000 (UTC)",
            "from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152])\n  by relmlie5.idc.renesas.com with ESMTP; 10 Feb 2026 20:33:05 +0900",
            "from ubuntu.adwin.renesas.com (unknown [10.226.92.55])\n\tby relmlir6.idc.renesas.com (Postfix) with ESMTP id CE73941A1194;\n\tTue, 10 Feb 2026 20:32:59 +0900 (JST)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1770723188; cv=none;\n b=MqaaSHmLGhO6br1ZmObjSL7jWzt0P+CnNYftlLOpTQiXA7KCcq/H8Mb5lIgOjFeDlrBkXOdWic6h3xJDYeRfIKmyt5DwEPkwzUqZ0XFP+nj5VnBQ9tECBrtSspNl1HClJXmfYEZtPyzg+BGzU6pzVp8FVjO7GKd+cBoHTUhkp10=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1770723188; c=relaxed/simple;\n\tbh=gyD2GddNRbRndZTHvvcPWERZvEYMrh+98j+N4x2Cj8Q=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=b4I5paJSrHBlN+Uo5blKvQ/3GtQM9S/WW+3snTOBI219j+uf4RTreSGVUusFo3z93/LU6jAXG7upDZ/0XO8dGgl93uPx1MaZ7GUc4oWiN/ueOzoUDc5TK9fgujHqo4QdqnXAOngDNDLUoEF1LWcxgpY/p1Cw4leZFZxwGffFZGI=",
        "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=bp.renesas.com;\n spf=pass smtp.mailfrom=bp.renesas.com;\n arc=none smtp.client-ip=210.160.252.171",
        "X-CSE-ConnectionGUID": "XSZ/40ryQkebgkqcw6spdg==",
        "X-CSE-MsgGUID": "pjN9xG4wQBORudTQfSYuWw==",
        "From": "John Madieu <john.madieu.xa@bp.renesas.com>",
        "To": "claudiu.beznea.uj@bp.renesas.com,\n\tlpieralisi@kernel.org,\n\tkwilczynski@kernel.org,\n\tmani@kernel.org,\n\tgeert+renesas@glider.be,\n\tkrzk+dt@kernel.org",
        "Cc": "robh@kernel.org,\n\tbhelgaas@google.com,\n\tconor+dt@kernel.org,\n\tmagnus.damm@gmail.com,\n\tbiju.das.jz@bp.renesas.com,\n\tlinux-pci@vger.kernel.org,\n\tlinux-renesas-soc@vger.kernel.org,\n\tdevicetree@vger.kernel.org,\n\tlinux-clk@vger.kernel.org,\n\tjohn.madieu@gmail.com,\n\tJohn Madieu <john.madieu.xa@bp.renesas.com>",
        "Subject": "[PATCH v5 09/16] PCI: rzg3s-host: Reorder reset assertion during\n suspend",
        "Date": "Tue, 10 Feb 2026 12:30:33 +0100",
        "Message-ID": "<20260210113041.138430-10-john.madieu.xa@bp.renesas.com>",
        "X-Mailer": "git-send-email 2.43.0",
        "In-Reply-To": "<20260210113041.138430-1-john.madieu.xa@bp.renesas.com>",
        "References": "<20260210113041.138430-1-john.madieu.xa@bp.renesas.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": "Reorder the reset assertion sequence during suspend from\npower_resets -> cfg_resets to cfg_resets -> power_resets.\nThis change ensures the suspend sequence follows the reverse order\nof the probe/init sequence, where power_resets are deasserted first\nfollowed by cfg_resets.\n\nAdditionally, this ordering is required for RZ/G3E support where\ncfg resets are controlled through PCIe AXI registers (offset 0x310h).\nAccording to the RZ/G3E hardware manual (Rev.1.15, section 6.6.6.1.1\n\"Changing the Initial Values of the Registers\"), AXI register access\nrequires ARESETn to be de-asserted and the clock to be supplied.\nSince ARESETn is part of power_resets, cfg_resets must be asserted\nbefore power_resets, otherwise the AXI registers become inaccessible.\n\nFor RZ/G3S, both reset types are CPG-controlled, so the order change\nhas no functional impact.\n\nSigned-off-by: John Madieu <john.madieu.xa@bp.renesas.com>\n---\n\nChanges:\n\nv5: New patch as per Claudiu requirement\n\n drivers/pci/controller/pcie-rzg3s-host.c | 18 +++++++++---------\n 1 file changed, 9 insertions(+), 9 deletions(-)",
    "diff": "diff --git a/drivers/pci/controller/pcie-rzg3s-host.c b/drivers/pci/controller/pcie-rzg3s-host.c\nindex b3b7db93298d..2cac4b68c0cb 100644\n--- a/drivers/pci/controller/pcie-rzg3s-host.c\n+++ b/drivers/pci/controller/pcie-rzg3s-host.c\n@@ -1662,31 +1662,31 @@ static int rzg3s_pcie_suspend_noirq(struct device *dev)\n \n \tclk_disable_unprepare(port->refclk);\n \n-\tret = reset_control_bulk_assert(data->num_power_resets,\n-\t\t\t\t\thost->power_resets);\n+\tret = reset_control_bulk_assert(data->num_cfg_resets,\n+\t\t\t\t\thost->cfg_resets);\n \tif (ret)\n \t\tgoto refclk_restore;\n \n-\tret = reset_control_bulk_assert(data->num_cfg_resets,\n-\t\t\t\t\thost->cfg_resets);\n+\tret = reset_control_bulk_assert(data->num_power_resets,\n+\t\t\t\t\thost->power_resets);\n \tif (ret)\n-\t\tgoto power_resets_restore;\n+\t\tgoto cfg_resets_restore;\n \n \tret = regmap_update_bits(sysc->regmap, sysc->info->rst_rsm_b.offset,\n \t\t\t\t sysc->info->rst_rsm_b.mask,\n \t\t\t\t field_prep(sysc->info->rst_rsm_b.mask, 0));\n \tif (ret)\n-\t\tgoto cfg_resets_restore;\n+\t\tgoto power_resets_restore;\n \n \treturn 0;\n \n \t/* Restore the previous state if any error happens */\n-cfg_resets_restore:\n-\treset_control_bulk_deassert(data->num_cfg_resets,\n-\t\t\t\t    host->cfg_resets);\n power_resets_restore:\n \treset_control_bulk_deassert(data->num_power_resets,\n \t\t\t\t    host->power_resets);\n+cfg_resets_restore:\n+\treset_control_bulk_deassert(data->num_cfg_resets,\n+\t\t\t\t    host->cfg_resets);\n refclk_restore:\n \tclk_prepare_enable(port->refclk);\n \tpm_runtime_resume_and_get(dev);\n",
    "prefixes": [
        "v5",
        "09/16"
    ]
}