get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2231953,
    "url": "http://patchwork.ozlabs.org/api/1.2/patches/2231953/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-pci/patch/20260501161010.71688-5-18255117159@163.com/",
    "project": {
        "id": 28,
        "url": "http://patchwork.ozlabs.org/api/1.2/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": "<20260501161010.71688-5-18255117159@163.com>",
    "list_archive_url": null,
    "date": "2026-05-01T16:10:10",
    "name": "[4/4] PCI: keembay: Use common mode field in struct dw_pcie",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "e48e398ea5a50dfb9423d510fb5bac9f3386fd71",
    "submitter": {
        "id": 89937,
        "url": "http://patchwork.ozlabs.org/api/1.2/people/89937/?format=api",
        "name": "Hans Zhang",
        "email": "18255117159@163.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-pci/patch/20260501161010.71688-5-18255117159@163.com/mbox/",
    "series": [
        {
            "id": 502479,
            "url": "http://patchwork.ozlabs.org/api/1.2/series/502479/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-pci/list/?series=502479",
            "date": "2026-05-01T16:10:06",
            "name": "PCI: dwc: designware-plat: Use common mode field in struct dw_pcie",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/502479/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2231953/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2231953/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <linux-pci+bounces-53585-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=163.com header.i=@163.com header.a=rsa-sha256\n header.s=s110527 header.b=f18Eybwg;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c04:e001:36c::12fc:5321; helo=tor.lore.kernel.org;\n envelope-from=linux-pci+bounces-53585-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)",
            "smtp.subspace.kernel.org;\n\tdkim=pass (1024-bit key) header.d=163.com header.i=@163.com\n header.b=\"f18Eybwg\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=117.135.210.4",
            "smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=163.com",
            "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=163.com"
        ],
        "Received": [
            "from tor.lore.kernel.org (tor.lore.kernel.org\n [IPv6:2600:3c04:e001:36c::12fc:5321])\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 4g6bg86hbzz1xqf\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 02 May 2026 02:13:08 +1000 (AEST)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby tor.lore.kernel.org (Postfix) with ESMTP id 51A3B3056EEA\n\tfor <incoming@patchwork.ozlabs.org>; Fri,  1 May 2026 16:11:02 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id B60AE3F789A;\n\tFri,  1 May 2026 16:11:01 +0000 (UTC)",
            "from m16.mail.163.com (m16.mail.163.com [117.135.210.4])\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 C0B8D3F7892;\n\tFri,  1 May 2026 16:10:51 +0000 (UTC)",
            "from zhb.. (unknown [])\n\tby gzga-smtp-mtada-g1-4 (Coremail) with SMTP id\n _____wDnj5Fk0PRprTQgCw--.53438S6;\n\tSat, 02 May 2026 00:10:16 +0800 (CST)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777651859; cv=none;\n b=NfUDtLWZwLtPrEg29YuIiHxbNkC1b0FtO77UmlgM/rHY5jUw345OGVV5nijAvaHaGJUkY6VK0JIGPchzM78lIVLCX++4ddM7Q63xtP76vw43iy47hjKJj/aGBzANe5InapUlMzgQTNABD4XA7o/mKQX/ntGHve14+kxF+5XOfg4=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777651859; c=relaxed/simple;\n\tbh=rAsj4u2tfgRsmxLm9NtQ/qWrh9K4qsQPxZFdIUeP/Lo=;\n\th=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:\n\t MIME-Version;\n b=hMMUI3CY3OWbahMn0lyq/jbLZpGadlCzvc/GieHDjcAN5vk6a4ovQpzBmdQV97JolyF1pgjmoke0L1agpMUD4IDJrGwX6FTZvRY+kdNthbPKOw2yXTR7TRkOzDVr7KpZ/MpABfRnDWZIRQDInxbC9kbhWpOozJXS/NHANboCWYU=",
        "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=163.com;\n spf=pass smtp.mailfrom=163.com;\n dkim=pass (1024-bit key) header.d=163.com header.i=@163.com\n header.b=f18Eybwg; arc=none smtp.client-ip=117.135.210.4",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com;\n\ts=s110527; h=From:To:Subject:Date:Message-Id:MIME-Version; bh=8u\n\tiX4L3xeKeeisliCglYutoH5NPUyLqLrb+hkDqZi3E=; b=f18EybwgPy0o82TzKL\n\tC/26IAmCRrjPORQJk2Xb3oNwjNiPT8PiZEt1ytZFc+VXT6V53X9c9KVQDYpme6lK\n\t5phe4bYML3lOX4Oyr5sia4DPfU+wjm7+ly5Upjs7KekBQNsArIhKFhkg7Qf87SJd\n\tr3r8pl4WqeWsljwnAkuhjsIiI=",
        "From": "Hans Zhang <18255117159@163.com>",
        "To": "lpieralisi@kernel.org,\n\tkwilczynski@kernel.org,\n\tbhelgaas@google.com,\n\tjingoohan1@gmail.com,\n\tmani@kernel.org,\n\tvigneshr@ti.com",
        "Cc": "xrobh@kernel.org,\n\tlinux-pci@vger.kernel.org,\n\tlinux-kernel@vger.kernel.org,\n\tHans Zhang <18255117159@163.com>",
        "Subject": "[PATCH 4/4] PCI: keembay: Use common mode field in struct dw_pcie",
        "Date": "Sat,  2 May 2026 00:10:10 +0800",
        "Message-Id": "<20260501161010.71688-5-18255117159@163.com>",
        "X-Mailer": "git-send-email 2.34.1",
        "In-Reply-To": "<20260501161010.71688-1-18255117159@163.com>",
        "References": "<20260501161010.71688-1-18255117159@163.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",
        "X-CM-TRANSID": "_____wDnj5Fk0PRprTQgCw--.53438S6",
        "X-Coremail-Antispam": "1Uf129KBjvJXoW7ur1UZFy5Xr1fGw4fur1Dtrb_yoW8CF1xpa\n\ty5WayFk3WrJa4ru3WfA3Z8Zr1avFs0va4jkrsruwn2qa4agry7GF18KFyUtas3KrW8tw17\n\ttw1ayFWxua13tFUanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2\n\t9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x0pE_-PUUUUUU=",
        "X-CM-SenderInfo": "rpryjkyvrrlimvzbiqqrwthudrp/xtbCxAjliWn00GiLjwAA3B"
    },
    "content": "Remove the redundant mode field from struct keembay_pcie and use the\nexisting mode field in struct dw_pcie instead.\n\nThis avoids duplication and prevents potential inconsistencies between\nthe two mode fields.\n\nSigned-off-by: Hans Zhang <18255117159@163.com>\n---\n drivers/pci/controller/dwc/pcie-keembay.c | 9 ++++-----\n 1 file changed, 4 insertions(+), 5 deletions(-)",
    "diff": "diff --git a/drivers/pci/controller/dwc/pcie-keembay.c b/drivers/pci/controller/dwc/pcie-keembay.c\nindex 7cf2c312ecec..2459c4d66b88 100644\n--- a/drivers/pci/controller/dwc/pcie-keembay.c\n+++ b/drivers/pci/controller/dwc/pcie-keembay.c\n@@ -58,7 +58,6 @@\n struct keembay_pcie {\n \tstruct dw_pcie\t\tpci;\n \tvoid __iomem\t\t*apb_base;\n-\tenum dw_pcie_device_mode mode;\n \n \tstruct clk\t\t*clk_master;\n \tstruct clk\t\t*clk_aux;\n@@ -117,7 +116,7 @@ static int keembay_pcie_start_link(struct dw_pcie *pci)\n \tu32 val;\n \tint ret;\n \n-\tif (pcie->mode == DW_PCIE_EP_TYPE)\n+\tif (pcie->pci.mode == DW_PCIE_EP_TYPE)\n \t\treturn 0;\n \n \tkeembay_pcie_ltssm_set(pcie, false);\n@@ -409,7 +408,7 @@ static int keembay_pcie_probe(struct platform_device *pdev)\n \tpci->dev = dev;\n \tpci->ops = &keembay_pcie_ops;\n \n-\tpcie->mode = mode;\n+\tpcie->pci.mode = mode;\n \n \tpcie->apb_base = devm_platform_ioremap_resource_byname(pdev, \"apb\");\n \tif (IS_ERR(pcie->apb_base))\n@@ -417,7 +416,7 @@ static int keembay_pcie_probe(struct platform_device *pdev)\n \n \tplatform_set_drvdata(pdev, pcie);\n \n-\tswitch (pcie->mode) {\n+\tswitch (pcie->pci.mode) {\n \tcase DW_PCIE_RC_TYPE:\n \t\tif (!IS_ENABLED(CONFIG_PCIE_KEEMBAY_HOST))\n \t\t\treturn -ENODEV;\n@@ -443,7 +442,7 @@ static int keembay_pcie_probe(struct platform_device *pdev)\n \n \t\tbreak;\n \tdefault:\n-\t\tdev_err(dev, \"Invalid device type %d\\n\", pcie->mode);\n+\t\tdev_err(dev, \"Invalid device type %d\\n\", pcie->pci.mode);\n \t\treturn -ENODEV;\n \t}\n \n",
    "prefixes": [
        "4/4"
    ]
}