get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2221962,
    "url": "http://patchwork.ozlabs.org/api/patches/2221962/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260410-topic-am33-evm-oftree-v2026-01-v5-10-4b9c7aca0e3e@baylibre.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": "<20260410-topic-am33-evm-oftree-v2026-01-v5-10-4b9c7aca0e3e@baylibre.com>",
    "list_archive_url": null,
    "date": "2026-04-10T13:31:50",
    "name": "[v5,10/12] am33xx: Support upstream devicetree USB device",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": false,
    "hash": "c49ae6b4109167b573ad6e5a0b47f3fd5c2f7607",
    "submitter": {
        "id": 82333,
        "url": "http://patchwork.ozlabs.org/api/people/82333/?format=api",
        "name": "Markus Schneider-Pargmann",
        "email": "msp@baylibre.com"
    },
    "delegate": {
        "id": 3651,
        "url": "http://patchwork.ozlabs.org/api/users/3651/?format=api",
        "username": "trini",
        "first_name": "Tom",
        "last_name": "Rini",
        "email": "trini@ti.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260410-topic-am33-evm-oftree-v2026-01-v5-10-4b9c7aca0e3e@baylibre.com/mbox/",
    "series": [
        {
            "id": 499460,
            "url": "http://patchwork.ozlabs.org/api/series/499460/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=499460",
            "date": "2026-04-10T13:31:40",
            "name": "arm: am335x: Switch to upstream devicetree",
            "version": 5,
            "mbox": "http://patchwork.ozlabs.org/series/499460/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2221962/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2221962/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=RegMYqpx;\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=\"RegMYqpx\";\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)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fsd7j6rrQz1y2d\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 10 Apr 2026 23:34:25 +1000 (AEST)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id EED1884201;\n\tFri, 10 Apr 2026 15:33:07 +0200 (CEST)",
            "by phobos.denx.de (Postfix, from userid 109)\n id A917A84228; Fri, 10 Apr 2026 15:33:05 +0200 (CEST)",
            "from mail-wr1-x429.google.com (mail-wr1-x429.google.com\n [IPv6:2a00:1450:4864:20::429])\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 B7BBF84099\n for <u-boot@lists.denx.de>; Fri, 10 Apr 2026 15:33:03 +0200 (CEST)",
            "by mail-wr1-x429.google.com with SMTP id\n ffacd0b85a97d-43cf5ad500fso1695489f8f.0\n for <u-boot@lists.denx.de>; Fri, 10 Apr 2026 06:33:03 -0700 (PDT)",
            "from localhost ([2001:4091:a246:8598:4c79:7b44:ca74:c5de])\n by smtp.gmail.com with ESMTPSA id\n ffacd0b85a97d-43d63deb904sm8275291f8f.9.2026.04.10.06.33.02\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Fri, 10 Apr 2026 06:33:02 -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=1775827983;\n x=1776432783;\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=hYyxbWXOTpIsYP21GviHDjwzXuyMqtz6kllMl4D+u8k=;\n b=RegMYqpxuNU4J4q2ygbwSLk8bj4P0LpTjpbRUAomYKJFee+Lbq1gOXDVnoKREiRW77\n AuDZl0dVZZLPEDXLOoLIqWsAvXmDz0/18wpt9Ivxh8fOAKdWoWcEHosfUOcKaNMx2Fej\n ny3TerOh+SaCGCgSKp5VwH0X5yIAOTTqYWnFXzZUfJEONpJGvmJGuSvjkH8h28fw8KXS\n 26/MUaoUiOny6oyHGzoA7xVQLL0xJnZYROpRYkYqO+7ZiyjCgDwHGw/FZqzTagjwKiaG\n PKz9udBII+eSGSnocltsZWA+jGQ5hEqLFJDuP1dRCsY0g88r14RNbaVQSqZ8eQeUZl0m\n M/HQ==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1775827983; x=1776432783;\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=hYyxbWXOTpIsYP21GviHDjwzXuyMqtz6kllMl4D+u8k=;\n b=l0B9sNxXSf/JrYAbRoYK0uDP+MLDzaMi8bzvf4SHXveULtGSioOXOeqSf2Zfy3/+qA\n kD0oFe2lfsFR4TqVFICepsa57aAu9nGqYSjMH86c+0MLO6w0TQcvwGpkk2tocgWwwszx\n YJMZStrtI4LpR52wAQBLjNUIK047YpuAExXA37/1oPb7JJ/F4sFW+tMSIpetonqAQb5q\n 4mMGEb1h9nESye6F6Smdd6N9tHfPy7tbvDTq1kPNAwEPySAwNLJX+dBbVSxpGiwLTbVw\n iQMxBnbeSyJ5PL8KR8InjkTUDwXlp6JvkzqIQZ/mhLSq1IPt9z28OBAH54pE317+u5xE\n 9Rjg==",
        "X-Gm-Message-State": "AOJu0YwVQmLmd3UvvBQpTcEaJGYGktUlrbmQSuLcaL+xo1TUQ0Q90HrR\n MKw2EecolhKv3Mw0psfijlIcHuo31FctrxM/OuXrqhPBB4vUaOLcby+ZY/QzWPzHyJM=",
        "X-Gm-Gg": "AeBDievino0CQC9JsOypG19Z4q8M5m84vnvCsUG6YPi37DfNBzLsnIKK9g+Ea892P21\n sbK7Vu74IxgJKiPyb8BqvvjDaWvAAMS8BioufeIo8zivfTH1MOnw/o3WWrNUsd8zekq9bnXT8uX\n VJJqP2RclHTmRqnJyfDJgoEVi5kFs6+5uuajZI8WKcvCy+1By3N3m9XpDGyxYwHKiuLvz+a92/F\n l1q2FKH+z3Zx4VnHtM6CR9IoTH7wDy+rnyhq37os69S+l0kUn1VxtTAw/PJb85EnICuDAtU9pd8\n LR01dTfxNkJ346YEoJi91nIi7sUpc/34QlsuT9mUkXSBSMfLF3OnX7sIURYcb/bapShy5BwYqnl\n QD9B8tx7DHLfNJQ5MkPC2nLvu4W6De+Q2L8V4BQuQuyziFjN5hntxJ7X2PSO52qZi9HiMWJ9Dog\n mNkR8C2a6hkFpl5b/qCUpd",
        "X-Received": "by 2002:a05:6000:1869:b0:43b:4e13:221f with SMTP id\n ffacd0b85a97d-43d642da684mr4869321f8f.47.1775827983107;\n Fri, 10 Apr 2026 06:33:03 -0700 (PDT)",
        "From": "\"Markus Schneider-Pargmann (TI)\" <msp@baylibre.com>",
        "Date": "Fri, 10 Apr 2026 15:31:50 +0200",
        "Subject": "[PATCH v5 10/12] am33xx: Support upstream devicetree USB device",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "7bit",
        "Message-Id": "\n <20260410-topic-am33-evm-oftree-v2026-01-v5-10-4b9c7aca0e3e@baylibre.com>",
        "References": "\n <20260410-topic-am33-evm-oftree-v2026-01-v5-0-4b9c7aca0e3e@baylibre.com>",
        "In-Reply-To": "\n <20260410-topic-am33-evm-oftree-v2026-01-v5-0-4b9c7aca0e3e@baylibre.com>",
        "To": "u-boot@lists.denx.de, Marc Murphy <marc.murphy@sancloud.com>",
        "Cc": "Tom Rini <trini@konsulko.com>, Rasmus Villemoes <ravi@prevas.dk>,\n Kory Maincent <kory.maincent@bootlin.com>,\n Marek Vasut <marek.vasut+renesas@mailbox.org>,\n Romain Gantois <romain.gantois@bootlin.com>,\n Parvathi Pudi <parvathi@couthit.com>,\n Basharath Hussain Khaja <basharath@couthit.com>,\n Paul Barker <paul.barker@sancloud.com>, \"Andrew F. Davis\" <afd@ti.com>,\n Simon Glass <sjg@chromium.org>, Anshul Dalal <anshuld@ti.com>,\n Michael Trimarchi <michael@amarulasolutions.com>,\n \"Markus Schneider-Pargmann (TI)\" <msp@baylibre.com>",
        "X-Mailer": "b4 0.14.2",
        "X-Developer-Signature": "v=1; a=openpgp-sha256; l=1690; i=msp@baylibre.com;\n h=from:subject:message-id; bh=q3wYaGY0+aA2jhNMP0CNM/HhLVRpzNZtCwxxFigoQOw=;\n b=owGbwMvMwCXWejAsc4KoVzDjabUkhswbvz99D/HWXCr9d0XzonaZP/arfnNoKs1rf73eZqZH+\n uHNxy6f7ShlYRDjYpAVU2TpTAxN+y+/81jyomWbYeawMoEMYeDiFICJFGoyMjyPr71y+/SEpfkG\n Zq2ZT3/OmrPJUN09lpdVmHlC9NI3JZaMDNfDlpm+jjthubchY2VpRQrb0raroqGdz7db9Jlv+Xb\n gMwcA",
        "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": "Support musb being probed by ti,musb-am33xx. The non-upstream DT probing\nused a wrapper driver that probed ti-musb-peripheral and ti-musb-host.\nThis wrapper registered as UCLASS_MISC, which is why it is requested in\nthis board.c file.\n\nWith the new devicetree the wrapper that registers as UCLASS_MISC is\ngone, instead the UCLASS_USB and UCLASS_USB_GADGET_GENERIC have to be\nrequested.\n\nReviewed-by: Kory Maincent <kory.maincent@bootlin.com>\nSigned-off-by: Markus Schneider-Pargmann (TI) <msp@baylibre.com>\n---\n arch/arm/mach-omap2/am33xx/board.c | 16 +++++++++++-----\n 1 file changed, 11 insertions(+), 5 deletions(-)",
    "diff": "diff --git a/arch/arm/mach-omap2/am33xx/board.c b/arch/arm/mach-omap2/am33xx/board.c\nindex c3931900622957a5499fe6483473c61e3a62fff0..20556b8fb5f1eb469469006b3483003f716146b8 100644\n--- a/arch/arm/mach-omap2/am33xx/board.c\n+++ b/arch/arm/mach-omap2/am33xx/board.c\n@@ -266,11 +266,17 @@ int arch_misc_init(void)\n \tstruct udevice *dev;\n \tint ret;\n \n-\t/*\n-\t * Trigger probe of the UCLASS_MISC device which is a USB wrapper driver\n-\t * ti-musb-wrapper that handles all usb host and gadget devices.\n-\t */\n-\tret = uclass_first_device_err(UCLASS_MISC, &dev);\n+\tif (IS_ENABLED(CONFIG_OF_UPSTREAM)) {\n+\t\tuclass_first_device_err(UCLASS_USB, &dev);\n+\t\tret = uclass_first_device_err(UCLASS_USB_GADGET_GENERIC, &dev);\n+\t} else {\n+\t\t/*\n+\t\t * Trigger probe of the UCLASS_MISC device which is a USB\n+\t\t * wrapper driver ti-musb-wrapper that handles all usb host and\n+\t\t * gadget devices.\n+\t\t */\n+\t\tret = uclass_first_device_err(UCLASS_MISC, &dev);\n+\t}\n \tif (ret)\n \t\tprintf(\"Failed probing USB %d, continue without USB\\n\", ret);\n \n",
    "prefixes": [
        "v5",
        "10/12"
    ]
}