get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2221768,
    "url": "http://patchwork.ozlabs.org/api/1.2/patches/2221768/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260410-topic-cpsw-switch-v2026-07-next-v1-2-c914724b13e4@baylibre.com/",
    "project": {
        "id": 18,
        "url": "http://patchwork.ozlabs.org/api/1.2/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": "<20260410-topic-cpsw-switch-v2026-07-next-v1-2-c914724b13e4@baylibre.com>",
    "list_archive_url": null,
    "date": "2026-04-10T11:04:04",
    "name": "[2/4] net: cpsw: Remove compat string argument",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "e8d0fe6da7b013db8d65685e0e35a8d72089c733",
    "submitter": {
        "id": 82333,
        "url": "http://patchwork.ozlabs.org/api/1.2/people/82333/?format=api",
        "name": "Markus Schneider-Pargmann (TI)",
        "email": "msp@baylibre.com"
    },
    "delegate": {
        "id": 157425,
        "url": "http://patchwork.ozlabs.org/api/1.2/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/20260410-topic-cpsw-switch-v2026-07-next-v1-2-c914724b13e4@baylibre.com/mbox/",
    "series": [
        {
            "id": 499440,
            "url": "http://patchwork.ozlabs.org/api/1.2/series/499440/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=499440",
            "date": "2026-04-10T11:04:02",
            "name": "net: cpsw: Add cpsw-switch DT binding support",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/499440/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2221768/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2221768/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=baylibre-com.20251104.gappssmtp.com\n header.i=@baylibre-com.20251104.gappssmtp.com header.a=rsa-sha256\n header.s=20251104 header.b=gGpkUAoX;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=85.214.62.61; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org)",
            "phobos.denx.de;\n dmarc=none (p=none dis=none) header.from=baylibre.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=baylibre-com.20251104.gappssmtp.com\n header.i=@baylibre-com.20251104.gappssmtp.com header.b=\"gGpkUAoX\";\n\tdkim-atps=neutral",
            "phobos.denx.de;\n dmarc=none (p=none dis=none) header.from=baylibre.com",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=msp@baylibre.com"
        ],
        "Received": [
            "from phobos.denx.de (phobos.denx.de [85.214.62.61])\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 4fsYqL6Kz4z1yGS\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 10 Apr 2026 21:05:02 +1000 (AEST)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 7BEDB84106;\n\tFri, 10 Apr 2026 13:04:48 +0200 (CEST)",
            "by phobos.denx.de (Postfix, from userid 109)\n id BD6248414B; Fri, 10 Apr 2026 13:04:39 +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 0A1738414B\n for <u-boot@lists.denx.de>; Fri, 10 Apr 2026 13:04:36 +0200 (CEST)",
            "by mail-wm1-x332.google.com with SMTP id\n 5b1f17b1804b1-482f454be5bso20156555e9.0\n for <u-boot@lists.denx.de>; Fri, 10 Apr 2026 04:04:36 -0700 (PDT)",
            "from localhost ([2001:4091:a246:8598:4c79:7b44:ca74:c5de])\n by smtp.gmail.com with ESMTPSA id\n 5b1f17b1804b1-488d5d768afsm28377985e9.2.2026.04.10.04.04.34\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Fri, 10 Apr 2026 04:04:35 -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=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,\n DKIM_VALID,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=baylibre-com.20251104.gappssmtp.com; s=20251104; t=1775819075;\n x=1776423875;\n darn=lists.denx.de;\n h=cc:to:in-reply-to:references:message-id:content-transfer-encoding\n :mime-version:subject:date:from:from:to:cc:subject:date:message-id\n :reply-to; bh=ZN1OzbWillfz+ozJwlcO6+S3o8uAqfaCBfcAyAtiL6Q=;\n b=gGpkUAoXKiiaS5rVrqBh7V3y8o7q+Jm6FJIvTqx8GOqverxA6mseV3H7KXhszcujnc\n K5HqOwbR9HS9Vx1gWDwjIsWYhMEEm/md2j3csgwwGz6gRFLQ5tkV4yCZumecvHumCAOc\n ini1KUwFZDb9kG+W9tmj3ijeTmlG8PANVgv+CNY0yMDjVo1zgaBmKs2Z0B+1M5/lAVlz\n xuAzz443cdy1yMS5vr7g5GCaPrF8q0/pe7J6mvfrhTgVt/NtLNiYAdvpQI8pqhGmRUEU\n fBzZbUjQK3Cy/fTodCNYT0zS/QZqBWAQaTuy78bRWK8DqOdbqMVPstY4kCI/HUnFHmhz\n HXtw==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1775819075; x=1776423875;\n h=cc:to:in-reply-to:references:message-id:content-transfer-encoding\n :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to\n :cc:subject:date:message-id:reply-to;\n bh=ZN1OzbWillfz+ozJwlcO6+S3o8uAqfaCBfcAyAtiL6Q=;\n b=gzPtsH1WS2OO7Y894HxH7siAHKPyWRunQINRTrbXxrpwICyTldFzf3rdShgRT3hu9z\n NURURZZfR8cXzAHLJuMY381YIFlMoKjaaMF6chGS8pDiclMHQKptYa16V3cekR7nxTGD\n NZwRJL4G8Y5G1nZJMUlAhulxN92UKr8qoQ8zLvOQOSs6iSlIW1V2g/NxwQL5bmMdDE5I\n KX2579Y4yTtOQMiE23YTaHN3ygWuSzsoa2V0+7wPdyuod8x/tqIX8qFqEdok6itKQkaz\n XcZILXUopMVHiDXlINQt6i4uMtIOroxxbblcVS506hfnm3au1nQ+vAZTq2+r7Gh9WcAJ\n aVkw==",
        "X-Gm-Message-State": "AOJu0YzIrmxAPLjQAH11FdX5nhbKOT23+G6XSquDkNUre8GNsJpCYS+4\n Ox987ASXgYS4edrACqY/ulxnFuN06OXi1o+zm5imgKg6Vn7oUWYQmHcwF9IdSqMZfp8=",
        "X-Gm-Gg": "AeBDietx80qz7aF+4jQqYJv1N2lsbKd+xZyfqkR5uMWWAzKcQO3NBqB+6jSynn1ls2O\n TqkQNrqxlorOhF8RiCRh3AtnvcdItBnJPFnBFZZWk3wP6yb4HgDwQEuKfQZaWUwM2cMiAUy+lH0\n mX7wo7zlmiOhww+/CeFdZ1VXNQHjrRMjfk28h7B5VzuTWwxVbaAOLrYtiNi5vuEgkkJQHyHMYds\n 7AjeJstDm39MexfHEpYRtkGKA/qAyjMCuJIzrT/tf58UeFZ/dslVbr4H2Z5z0AoBfQk+L/9dfz2\n Zx+6pPEfbTUTXy0nzLxI4diJJKf1AoKJT08lBm2Yr88aaT33oXLGwf8RtG6kncz5SfT5oON34XR\n hwJvwMpFAeOmIaNqbZmaLFdGfClCXPi/nA1pxOCOOXNIxgQN/wLdsA007xQDq2JOWW3Xw04aKjo\n QnTlAqWpWle/Oc8KiO1oOZHkx/fVtbr9M=",
        "X-Received": "by 2002:a05:600c:a105:b0:485:fbd2:f72 with SMTP id\n 5b1f17b1804b1-488d681701fmr21942875e9.1.1775819075381;\n Fri, 10 Apr 2026 04:04:35 -0700 (PDT)",
        "From": "\"Markus Schneider-Pargmann (TI)\" <msp@baylibre.com>",
        "Date": "Fri, 10 Apr 2026 13:04:04 +0200",
        "Subject": "[PATCH 2/4] net: cpsw: Remove compat string argument",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "7bit",
        "Message-Id": "\n <20260410-topic-cpsw-switch-v2026-07-next-v1-2-c914724b13e4@baylibre.com>",
        "References": "\n <20260410-topic-cpsw-switch-v2026-07-next-v1-0-c914724b13e4@baylibre.com>",
        "In-Reply-To": "\n <20260410-topic-cpsw-switch-v2026-07-next-v1-0-c914724b13e4@baylibre.com>",
        "To": "u-boot@lists.denx.de",
        "Cc": "Jerome Forissier <jerome.forissier@arm.com>,\n Tom Rini <trini@konsulko.com>,\n \"Markus Schneider-Pargmann (TI)\" <msp@baylibre.com>",
        "X-Mailer": "b4 0.14.2",
        "X-Developer-Signature": "v=1; a=openpgp-sha256; l=1350; i=msp@baylibre.com;\n h=from:subject:message-id; bh=AFVzrkSTekVVI2V8UuqK6GvlQiF948dHfr88q4+k02w=;\n b=owGbwMvMwCXWejAsc4KoVzDjabUkhswbN41+Kx/tmi7Lfu2biz6/t9ZUU9kldxvOhVnf5tjBV\n yg7e/bpjlIWBjEuBlkxRZbOxNC0//I7jyUvWrYZZg4rE8gQBi5OAZjIui5Ghm0BCRL5Vetmrv0R\n e0TsfM/M7QmyBiaXn5rO8cg5rT3r92OGv+ISd5X0/r3OnGL1qs35c6BMVuKSh/UeS777zN26uFH\n xBzsA",
        "X-Developer-Key": "i=msp@baylibre.com; a=openpgp;\n fpr=BADD88DB889FDC3E8A3D5FE612FA6A01E0A45B41",
        "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": "The string is already in the priv struct, remove it from the argument\nlist.\n\nSigned-off-by: Markus Schneider-Pargmann (TI) <msp@baylibre.com>\n---\n drivers/net/ti/cpsw.c | 8 ++++----\n 1 file changed, 4 insertions(+), 4 deletions(-)",
    "diff": "diff --git a/drivers/net/ti/cpsw.c b/drivers/net/ti/cpsw.c\nindex 6bfdbb60091ac1cb7ef5a0bb3ad5221c2c11206f..c844416d50ca3db9bb0d9ffe56cd9c352b8c58b0 100644\n--- a/drivers/net/ti/cpsw.c\n+++ b/drivers/net/ti/cpsw.c\n@@ -1064,9 +1064,10 @@ static void cpsw_gmii_sel_dra7xx(struct cpsw_priv *priv,\n \twritel(reg, priv->data->gmii_sel);\n }\n \n-static void cpsw_phy_sel(struct cpsw_priv *priv, const char *compat,\n-\t\t\t phy_interface_t phy_mode)\n+static void cpsw_phy_sel(struct cpsw_priv *priv, phy_interface_t phy_mode)\n {\n+\tconst char *compat = priv->data->phy_sel_compat;\n+\n \tif (!strcmp(compat, \"ti,am3352-cpsw-phy-sel\"))\n \t\tcpsw_gmii_sel_am3352(priv, phy_mode);\n \tif (!strcmp(compat, \"ti,am43xx-cpsw-phy-sel\"))\n@@ -1084,8 +1085,7 @@ static int cpsw_eth_probe(struct udevice *dev)\n \tpriv->data = pdata->priv_pdata;\n \tti_cm_get_macid(dev, priv->data, pdata->enetaddr);\n \t/* Select phy interface in control module */\n-\tcpsw_phy_sel(priv, priv->data->phy_sel_compat,\n-\t\t     pdata->phy_interface);\n+\tcpsw_phy_sel(priv, pdata->phy_interface);\n \n \treturn _cpsw_register(priv);\n }\n",
    "prefixes": [
        "2/4"
    ]
}