get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2128625,
    "url": "http://patchwork.ozlabs.org/api/patches/2128625/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20250827182705.64488-1-ben.wolsieffer@hefring.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": "<20250827182705.64488-1-ben.wolsieffer@hefring.com>",
    "list_archive_url": null,
    "date": "2025-08-27T18:27:05",
    "name": "net: designware: avoid regulator enable failure",
    "commit_ref": "bf82aa8ae07ef5573701fbf7bb924a3c9fb3d777",
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "9ec5b5ce20db676bac9c5682e23660819ebaf59b",
    "submitter": {
        "id": 84579,
        "url": "http://patchwork.ozlabs.org/api/people/84579/?format=api",
        "name": "Ben Wolsieffer",
        "email": "ben.wolsieffer@hefring.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/20250827182705.64488-1-ben.wolsieffer@hefring.com/mbox/",
    "series": [
        {
            "id": 471050,
            "url": "http://patchwork.ozlabs.org/api/series/471050/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=471050",
            "date": "2025-08-27T18:27:05",
            "name": "net: designware: avoid regulator enable failure",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/471050/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2128625/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2128625/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=hefring-com.20230601.gappssmtp.com\n header.i=@hefring-com.20230601.gappssmtp.com header.a=rsa-sha256\n header.s=20230601 header.b=hASnlZDD;\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=none (p=none dis=none) header.from=hefring.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=hefring-com.20230601.gappssmtp.com\n header.i=@hefring-com.20230601.gappssmtp.com header.b=\"hASnlZDD\";\n\tdkim-atps=neutral",
            "phobos.denx.de;\n dmarc=none (p=none dis=none) header.from=hefring.com",
            "phobos.denx.de;\n spf=none smtp.mailfrom=ben.wolsieffer@hefring.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) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4cByxw1Hmfz1xxS\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 28 Aug 2025 07:55:16 +1000 (AEST)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 8E8F3831B4;\n\tWed, 27 Aug 2025 23:55:09 +0200 (CEST)",
            "by phobos.denx.de (Postfix, from userid 109)\n id 08456831BB; Wed, 27 Aug 2025 20:27:12 +0200 (CEST)",
            "from mail-qk1-x729.google.com (mail-qk1-x729.google.com\n [IPv6:2607:f8b0:4864:20::729])\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 DC04983106\n for <u-boot@lists.denx.de>; Wed, 27 Aug 2025 20:27:09 +0200 (CEST)",
            "by mail-qk1-x729.google.com with SMTP id\n af79cd13be357-7f722cb35c4so22428685a.3\n for <u-boot@lists.denx.de>; Wed, 27 Aug 2025 11:27:09 -0700 (PDT)",
            "from dell-xps-15-9500.lan ([2601:18c:8002:3d40:f314:c442:b04f:971c])\n by smtp.gmail.com with ESMTPSA id\n af79cd13be357-7ebee415f6dsm930315185a.27.2025.08.27.11.27.07\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Wed, 27 Aug 2025 11:27:07 -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_NONE autolearn=ham\n autolearn_force=no version=3.4.2",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=hefring-com.20230601.gappssmtp.com; s=20230601; t=1756319228; x=1756924028;\n darn=lists.denx.de;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:from:to:cc:subject:date:message-id:reply-to;\n bh=KcLfShX/m63O0YfnHjaNbjT6mjA+CF/ks49OLrPS60g=;\n b=hASnlZDDHxaRQpXzbpzLgIDRwG9VEeU3DJEsjfpfrHV7n7yP1E/z1Uqa5Ypm2ZTzeB\n 4gR29/zU5aZbXt3R9TeDmGIthXsYWk35xFn2D2H7cMsuizq50VZdNoiG9lMLSBq1JswB\n 8gvNPisgpROeGxMZJtnd9KGn9gdx+3Ulrume6/nKjHWZKZnxzA9JIPjGIym6NjkYFuj3\n 1fp87XKXDIBg6OZ9Px1ks8dC4bQIAzrK6x+Z5VhZklzVhIPjUVdvY5l0zb3tJDvilaEP\n nWFNgOqNn1gP4jKYbZGY35EXu8oKXLGP53FN2wAQ3wN10AaWMeYUiXV6A5q2RmK1BF+x\n sRAQ==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1756319228; x=1756924028;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:x-gm-message-state:from:to:cc:subject:date:message-id\n :reply-to;\n bh=KcLfShX/m63O0YfnHjaNbjT6mjA+CF/ks49OLrPS60g=;\n b=CT1IhcBgexDTsEOEvQZL9TpxU56Y/SY0lP72NAqRxNqM2CVUQxYDb217l4y778Bjn4\n hAIwfR26WkAzobE4PhM77ixD3eampdzUKySXP9jchp+xtGyOM9cvyothnJU0RMlWUF5R\n 2uLlZi326kpyMZl4tfxmSffPPHs5qvdy083Ds26mEDFZeXLwaxAoaTNKk/TEtXCbJeGJ\n pvf8vH54SvOmAWafN/th9aE9MAl6w+kmn9mWd7YZT894MhD1ACrqHl9kqV82pAiHdKl4\n C9zVYxJyL8yvrNgCnS4c0XqVHU7Y/BQhXw60tiJsUBsxE5mCxTL07Ac9Ri30I3fd4NGI\n 7Vkw==",
        "X-Gm-Message-State": "AOJu0YzWRxpldEYiad399yMRckWwBDyfNZ2gwqC0blNa6nTvF6qQCktm\n 2OuyOItraHJYxqervGJnIZygGreLviZchwBMLTvXet4/lK1fTSKUsSqp30qj4bLAasRdk7wkDIP\n VUQi6",
        "X-Gm-Gg": "ASbGnctVZlhu+Pk21p8eSR1yRUnZNMi+a6c76+WwQLW0abjzMdjFT4gwWP8Z1V3QmmZ\n 7HB9PldLuHl4MOu7fikqqJk4kaKhAlzruQGiyhHHUWUb2STt8E9FCjtiBvrGmdVAo9I4GOFLwKN\n xJHUg0mgexCVTOiIYwOoMih/DrM8oFbeKYBQJIQ5U8JVB5FcSkQo0+6id3GllCwhjBPgJd43G8t\n eLm8MXf3AE1/O7FNz62Oy6oY69ZGGhAvMOQlgXmMg2iMSjwQoDvWaGN8qXQrn4H1lOysoQFoiuu\n fSn0epDj+UAlbSKDKtzN7Pq5fDe1UWjudvQQMVhbhhJfm+M3TfrW/qD0ushKw6bUd2kXKvCFqTm\n pEaQJw1IPt9D5m9CIPB4O3yx2VFvPEcSER3vrc8gfiWzz6NZnpbfgGUnx6A==",
        "X-Google-Smtp-Source": "\n AGHT+IEBiUK3mOHtDmZlN4xxN5C/EpmWZQgI0r3B3e94feSm+KJbblT7FMaEOyJxCXx4xsSAW50klw==",
        "X-Received": "by 2002:a05:620a:414d:b0:7f9:d31c:784 with SMTP id\n af79cd13be357-7f9d31c10camr6881785a.51.1756319228478;\n Wed, 27 Aug 2025 11:27:08 -0700 (PDT)",
        "From": "Ben Wolsieffer <ben.wolsieffer@hefring.com>",
        "To": "u-boot@lists.denx.de",
        "Cc": "Tom Rini <trini@konsulko.com>, Ramon Fried <rfried.dev@gmail.com>,\n Joe Hershberger <joe.hershberger@ni.com>,\n Ben Wolsieffer <ben.wolsieffer@hefring.com>",
        "Subject": "[PATCH] net: designware: avoid regulator enable failure",
        "Date": "Wed, 27 Aug 2025 14:27:05 -0400",
        "Message-ID": "<20250827182705.64488-1-ben.wolsieffer@hefring.com>",
        "X-Mailer": "git-send-email 2.50.1",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-Mailman-Approved-At": "Wed, 27 Aug 2025 23:55:07 +0200",
        "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": "Use regulator_set_enable_if_allowed() to avoid failure if regulator is\nshared between multiple devices.\n\nSigned-off-by: Ben Wolsieffer <ben.wolsieffer@hefring.com>\n---\n drivers/net/designware.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/net/designware.c b/drivers/net/designware.c\nindex fce3ef910cb..b0979e621f6 100644\n--- a/drivers/net/designware.c\n+++ b/drivers/net/designware.c\n@@ -894,7 +894,7 @@ int designware_eth_probe(struct udevice *dev)\n \tif (ret) {\n \t\tdebug(\"%s: No phy supply\\n\", dev->name);\n \t} else {\n-\t\tret = regulator_set_enable(phy_supply, true);\n+\t\tret = regulator_set_enable_if_allowed(phy_supply, true);\n \t\tif (ret) {\n \t\t\tputs(\"Error enabling phy supply\\n\");\n \t\t\treturn ret;\n",
    "prefixes": []
}