get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2140026,
    "url": "http://patchwork.ozlabs.org/api/patches/2140026/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20250920161013.31799-4-ansuelsmth@gmail.com/",
    "project": {
        "id": 18,
        "url": "http://patchwork.ozlabs.org/api/projects/18/?format=api",
        "name": "U-Boot",
        "link_name": "uboot",
        "list_id": "u-boot.lists.denx.de",
        "list_email": "u-boot@lists.denx.de",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20250920161013.31799-4-ansuelsmth@gmail.com>",
    "list_archive_url": null,
    "date": "2025-09-20T16:09:43",
    "name": "[v2,3/5] net: mediatek: mt7988: free allocated MDIO bus on cleanup",
    "commit_ref": "ca4264db44c1ece69d208f63c4bfe607c60751d9",
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "6da2034f13f7960ddba69184aaac3bf38835129c",
    "submitter": {
        "id": 71108,
        "url": "http://patchwork.ozlabs.org/api/people/71108/?format=api",
        "name": "Christian Marangi",
        "email": "ansuelsmth@gmail.com"
    },
    "delegate": {
        "id": 157425,
        "url": "http://patchwork.ozlabs.org/api/users/157425/?format=api",
        "username": "jforissier",
        "first_name": "Jerome",
        "last_name": "Forissier",
        "email": "jerome.forissier@linaro.org"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20250920161013.31799-4-ansuelsmth@gmail.com/mbox/",
    "series": [
        {
            "id": 474528,
            "url": "http://patchwork.ozlabs.org/api/series/474528/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=474528",
            "date": "2025-09-20T16:09:40",
            "name": "net: mediatek: mt7988: various fixup + MDIO detach",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/474528/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2140026/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2140026/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<u-boot-bounces@lists.denx.de>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20230601 header.b=GcND70t2;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org)",
            "phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=gmail.com",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de",
            "phobos.denx.de;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.b=\"GcND70t2\";\n\tdkim-atps=neutral",
            "phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=gmail.com",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=ansuelsmth@gmail.com"
        ],
        "Received": [
            "from phobos.denx.de (phobos.denx.de\n [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange X25519 server-signature ECDSA (secp384r1))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4cTZ9Q2Y0vz1y24\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 21 Sep 2025 02:10:50 +1000 (AEST)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 2C8118340C;\n\tSat, 20 Sep 2025 18:10:28 +0200 (CEST)",
            "by phobos.denx.de (Postfix, from userid 109)\n id 028CC833E9; Sat, 20 Sep 2025 18:10:26 +0200 (CEST)",
            "from mail-wm1-x332.google.com (mail-wm1-x332.google.com\n [IPv6:2a00:1450:4864:20::332])\n (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id 1197A83335\n for <u-boot@lists.denx.de>; Sat, 20 Sep 2025 18:10:24 +0200 (CEST)",
            "by mail-wm1-x332.google.com with SMTP id\n 5b1f17b1804b1-45decc9e83eso30905295e9.3\n for <u-boot@lists.denx.de>; Sat, 20 Sep 2025 09:10:24 -0700 (PDT)",
            "from Ansuel-XPS24 (host-95-249-236-54.retail.telecomitalia.it.\n [95.249.236.54]) by smtp.googlemail.com with ESMTPSA id\n 5b1f17b1804b1-45f325cec0fsm105878675e9.4.2025.09.20.09.10.22\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Sat, 20 Sep 2025 09:10:23 -0700 (PDT)"
        ],
        "X-Spam-Checker-Version": "SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de",
        "X-Spam-Level": "",
        "X-Spam-Status": "No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,\n DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,\n RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham\n autolearn_force=no version=3.4.2",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20230601; t=1758384623; x=1758989423; darn=lists.denx.de;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:to:from:from:to:cc:subject:date:message-id\n :reply-to; bh=1627wziuut/QBMKwokWChBJZPJlHKysuhDms1cLBnkI=;\n b=GcND70t2qCstNyJBSig+sopght4k/H7a/DN+2lLZjK8buvqUpq+v7HbP1InTpHZhqm\n H6MR/tMUvHurvGFCPJJeGxRx8GFekF/nxpZZpenGpz8C2f+dHucHU2tAHjd9skjlNMeb\n pmBV3pMt/6a6m3xf0lJEotkp2urH9sHBiXiUEMO/qN0o1BMAn4/V8ieByVW7UgWnprr5\n AwbW3kFZp2e9PSKvZQitUzugJWUmT0k9Q7bh5icqDzdrpVvipi/69xTp3oRAuPD5n2Sy\n OVmQLfYN7Jt2OYlspQrMvhxl23kMBcaBtq8nybDvXkL2ogemjcpfQlD6v9zgGtM2z5dj\n qxpQ==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1758384623; x=1758989423;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:to:from:x-gm-message-state:from:to:cc\n :subject:date:message-id:reply-to;\n bh=1627wziuut/QBMKwokWChBJZPJlHKysuhDms1cLBnkI=;\n b=OjlsX82oC+UX4YvEqKAjxW+8uN5dJC3X9ECNaBXXKZzgE3VO38Pv+/NF8sP1oshwQK\n bvh4sIYkvAJ2pWDlRRhrHVCJ3fKGLAeY1x9d2n6Ooy53uT4uv23tRFq+WGDHULwfaxGK\n dEcukctb1bYYUE0FHbhr7G6n9aADtIaMF7I47cBteXq61H2AuzYLTY25pNcTZdIaPFvP\n t5tfRPQATGhqCkTgpOz5TWVjf0wzJLwvnYnBCQSL8MQH684FwixK2BcsFK5ETi0UUgkW\n mj5Rp/Iu6ifT8bCYb/7uAkiDmrn0gkA5JBvvNMRGPy9m2IX13kS02foUhSqDBBw4BfDG\n wLUw==",
        "X-Forwarded-Encrypted": "i=1;\n AJvYcCVl2O3jfuhlUBmzHC+JkwH3VNxoDY7dFo2ua7OmxSfxDpLd3HxlVLArvIRgGibU63Iz8VED2lQ=@lists.denx.de",
        "X-Gm-Message-State": "AOJu0Yy9h/tO6ectaqQe59KA6pOEMgAYtZoOsb2fB61fMnPA0plu+fEI\n SCDfARz+1gI3ug5gOaPD1xk8shu3Dds9zOSDkayL8otNd4wG5CAnPAu9",
        "X-Gm-Gg": "ASbGncvWzoJ+OP31wAPgW5Si3/rw9N0VXHMxK22kMZDFpL6QlXcorVGJdka8k+gokb1\n udWyEXqwvxv/CaLObizLRyHdpj5EQkalunYqRf6Cq3HT/ag15ICnS3P9Bm+SRdM8fJ72I76IBYi\n QnQyHCkWostU4PHdGlUwG2v0WSl4PFPvL1yBORx8yceFEbveota/YgXOJR1kgsp+ji9U+uSPwk+\n upGtazajygv0eBuftTY7HYayWFDsH75kXuNZ2/QgPySuC5U2QU4nWkKWL+PQ0CbkSXTfKvmyDsH\n wuTDNDT8o051O6IGu4CB34JiWjP/KccX/r3DbNKUDV4n6RU4tc+d10PZn+0BZ4QpMTPnFuRE3qs\n tlD3lJOKhRyJwag9g+nofM68Xit2CO3lOvZK8vezCUplbn+NH7Mfh5LyVU4kh6jXGRQmt0RA=",
        "X-Google-Smtp-Source": "\n AGHT+IEv47RnbucJpi3U3YBPqnmrNL/GBHxFXLFpwUNu7uyHiMz6V84MrRg3LpUzeLdEbcLGs8K7uQ==",
        "X-Received": "by 2002:a05:600c:6288:b0:45b:86ee:415f with SMTP id\n 5b1f17b1804b1-467e63be254mr62397675e9.6.1758384623438;\n Sat, 20 Sep 2025 09:10:23 -0700 (PDT)",
        "From": "Christian Marangi <ansuelsmth@gmail.com>",
        "To": "Tom Rini <trini@konsulko.com>, Joe Hershberger <joe.hershberger@ni.com>,\n Ramon Fried <rfried.dev@gmail.com>, Weijie Gao <weijie.gao@mediatek.com>,\n Christian Marangi <ansuelsmth@gmail.com>, u-boot@lists.denx.de",
        "Subject": "[PATCH v2 3/5] net: mediatek: mt7988: free allocated MDIO bus on\n cleanup",
        "Date": "Sat, 20 Sep 2025 18:09:43 +0200",
        "Message-ID": "<20250920161013.31799-4-ansuelsmth@gmail.com>",
        "X-Mailer": "git-send-email 2.51.0",
        "In-Reply-To": "<20250920161013.31799-1-ansuelsmth@gmail.com>",
        "References": "<20250920161013.31799-1-ansuelsmth@gmail.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-BeenThere": "u-boot@lists.denx.de",
        "X-Mailman-Version": "2.1.39",
        "Precedence": "list",
        "List-Id": "U-Boot discussion <u-boot.lists.denx.de>",
        "List-Unsubscribe": "<https://lists.denx.de/options/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=unsubscribe>",
        "List-Archive": "<https://lists.denx.de/pipermail/u-boot/>",
        "List-Post": "<mailto:u-boot@lists.denx.de>",
        "List-Help": "<mailto:u-boot-request@lists.denx.de?subject=help>",
        "List-Subscribe": "<https://lists.denx.de/listinfo/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=subscribe>",
        "Errors-To": "u-boot-bounces@lists.denx.de",
        "Sender": "\"U-Boot\" <u-boot-bounces@lists.denx.de>",
        "X-Virus-Scanned": "clamav-milter 0.103.8 at phobos.denx.de",
        "X-Virus-Status": "Clean"
    },
    "content": "Correctly free the MDIO Bus on calling cleanup function. While at it\nalso fix a copy-paste error and rename the cleanup function name to the\nmore specific name.\n\nSigned-off-by: Christian Marangi <ansuelsmth@gmail.com>\n---\n drivers/net/mtk_eth/mt7988.c | 8 +++++---\n 1 file changed, 5 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/drivers/net/mtk_eth/mt7988.c b/drivers/net/mtk_eth/mt7988.c\nindex 06bbe049da3..b77660be55c 100644\n--- a/drivers/net/mtk_eth/mt7988.c\n+++ b/drivers/net/mtk_eth/mt7988.c\n@@ -142,11 +142,13 @@ static int mt7988_setup(struct mtk_eth_switch_priv *swpriv)\n \treturn mt7531_mdio_register(priv);\n }\n \n-static int mt7531_cleanup(struct mtk_eth_switch_priv *swpriv)\n+static int mt7988_cleanup(struct mtk_eth_switch_priv *swpriv)\n {\n \tstruct mt753x_switch_priv *priv = (struct mt753x_switch_priv *)swpriv;\n+\tstruct mii_dev *mdio_bus = priv->mdio_bus;\n \n-\tmdio_unregister(priv->mdio_bus);\n+\tmdio_unregister(mdio_bus);\n+\tmdio_free(mdio_bus);\n \n \treturn 0;\n }\n@@ -158,6 +160,6 @@ MTK_ETH_SWITCH(mt7988) = {\n \t.reset_wait_time = 50,\n \n \t.setup = mt7988_setup,\n-\t.cleanup = mt7531_cleanup,\n+\t.cleanup = mt7988_cleanup,\n \t.mac_control = mt7988_mac_control,\n };\n",
    "prefixes": [
        "v2",
        "3/5"
    ]
}