get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2230277,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2230277/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260429144615.142350-1-joaomarcos.costa@bootlin.com/",
    "project": {
        "id": 18,
        "url": "http://patchwork.ozlabs.org/api/1.1/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
    },
    "msgid": "<20260429144615.142350-1-joaomarcos.costa@bootlin.com>",
    "date": "2026-04-29T14:46:15",
    "name": "scripts/dtc: drop yaml in DT validation",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "d6d7362f78fead23c436a3dcc62be0342a55aacf",
    "submitter": {
        "id": 78653,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/78653/?format=api",
        "name": "Joao Marcos Costa",
        "email": "joaomarcos.costa@bootlin.com"
    },
    "delegate": {
        "id": 3651,
        "url": "http://patchwork.ozlabs.org/api/1.1/users/3651/?format=api",
        "username": "trini",
        "first_name": "Tom",
        "last_name": "Rini",
        "email": "trini@ti.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260429144615.142350-1-joaomarcos.costa@bootlin.com/mbox/",
    "series": [
        {
            "id": 502084,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/502084/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=502084",
            "date": "2026-04-29T14:46:15",
            "name": "scripts/dtc: drop yaml in DT validation",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/502084/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2230277/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2230277/checks/",
    "tags": {},
    "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=bootlin.com header.i=@bootlin.com header.a=rsa-sha256\n header.s=dkim header.b=uZkIW3KQ;\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=pass (p=reject dis=none) header.from=bootlin.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=bootlin.com header.i=@bootlin.com header.b=\"uZkIW3KQ\";\n\tdkim-atps=neutral",
            "phobos.denx.de;\n dmarc=pass (p=reject dis=none) header.from=bootlin.com",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=joaomarcos.costa@bootlin.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 4g5KrR1JD4z1yHX\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 30 Apr 2026 00:46:47 +1000 (AEST)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 1E714848BF;\n\tWed, 29 Apr 2026 16:46:45 +0200 (CEST)",
            "by phobos.denx.de (Postfix, from userid 109)\n id 9877D848C5; Wed, 29 Apr 2026 16:46:43 +0200 (CEST)",
            "from smtpout-04.galae.net (smtpout-04.galae.net [185.171.202.116])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id 171F1848BF\n for <u-boot@lists.denx.de>; Wed, 29 Apr 2026 16:46:41 +0200 (CEST)",
            "from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233])\n by smtpout-04.galae.net (Postfix) with ESMTPS id CF89CC5EF2A\n for <u-boot@lists.denx.de>; Wed, 29 Apr 2026 14:47:24 +0000 (UTC)",
            "from mail.galae.net (mail.galae.net [212.83.136.155])\n by smtpout-01.galae.net (Postfix) with ESMTPS id 9AE06601DF;\n Wed, 29 Apr 2026 14:46:40 +0000 (UTC)",
            "from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon)\n with ESMTPSA id 0797410729F63;\n Wed, 29 Apr 2026 16:46:38 +0200 (CEST)"
        ],
        "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,RCVD_IN_DNSWL_BLOCKED,\n SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim;\n t=1777473999; h=from:subject:date:message-id:to:cc:mime-version:content-type:\n content-transfer-encoding; bh=Y/AgHeXrmyda9GTcDIbQ262lNG8IfGJLIDQkjT+gQoM=;\n b=uZkIW3KQoimINfN66pHGczkq/70eyLZHwPWVpyIlXfO6YV7//uvyP6MaUWq+JT10sy0G8+\n df4CcM5UCKhRe75IUrM+DirVI6wNAAA4Qj6tQtrKMqa6sAyAB+vq9wZJRYYqJAgrIcZ4Hc\n acpa0P/6MCO/iGg9LgCEk9w9wPGs7oOWlD2shN+PxdOg9wa4z9VblVZ8WQugT5X3k3JGG/\n En+kfKFQgJwoNXNE/g08cHeugSU5Zj+nINmdv2Galb41U4ba0L2SJ8wOO3FeqWw4Thb8cv\n aSbDr/hNS5yPXOtcwoexCPJSxrOZC+SIi2xCTZTOrw0AH2RrrSKDAMVs5aJeAA==",
        "From": "=?utf-8?q?Jo=C3=A3o_Marcos_Costa?= <joaomarcos.costa@bootlin.com>",
        "To": "u-boot@lists.denx.de",
        "Cc": "thomas.petazzoni@bootlin.com, quentin.schulz@cherry.de,\n marek.vasut@mailbox.org,\n =?utf-8?q?Jo=C3=A3o_Marcos_Costa?= <joaomarcos.costa@bootlin.com>",
        "Subject": "[PATCH] scripts/dtc: drop yaml in DT validation",
        "Date": "Wed, 29 Apr 2026 16:46:15 +0200",
        "Message-ID": "<20260429144615.142350-1-joaomarcos.costa@bootlin.com>",
        "X-Mailer": "git-send-email 2.47.0",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=UTF-8",
        "Content-Transfer-Encoding": "8bit",
        "X-Last-TLS-Session-Version": "TLSv1.3",
        "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 build issues found in dtc/yamltree were partially mitigated by a\nprevious commit (807bcd844a: \"scripts/dtc: Fix pkg-config behavior under\nsysroot\"), but upstream dtc simply disabled yaml, and the same should be\ndone here in order to permanently avoid those issues.\n\nBackport the change below from Linux v5.18 [1]:\n\nef8795f3f1c (\"dt-bindings: kbuild: Use DTB files for validation\")\n\nI tested this patch with a couple Yocto builds: u-boot and u-boot-tools,\nusing the current master branch (rev. \"c53b0708f9\"), having removed\nlibyaml-native from u-boot-tools's dependencies.\n\n[1] https://git.kernel.org/linus/ef8795f3f1ce\n\nSigned-off-by: João Marcos Costa <joaomarcos.costa@bootlin.com>\n---\n scripts/Makefile.lib             | 6 ------\n scripts/dtc/Makefile             | 8 --------\n scripts/dtc/update-dtc-source.sh | 2 +-\n 3 files changed, 1 insertion(+), 15 deletions(-)",
    "diff": "diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib\nindex b8969b7de54..d66f1ed13b1 100644\n--- a/scripts/Makefile.lib\n+++ b/scripts/Makefile.lib\n@@ -86,12 +86,6 @@ base-dtb-y := $(foreach m, $(multi-dtb-y), $(firstword $(call suffix-search, $m,\n extra-y\t\t\t\t+= $(dtb-y)\n extra-$(CONFIG_OF_ALL_DTBS)\t+= $(dtb-)\n \n-# U-Boot specific\n-ifneq ($(CHECK_DTBS),)\n-extra-y += $(patsubst %.dtb,%.dt.yaml, $(dtb-y))\n-extra-$(CONFIG_OF_ALL_DTBS) += $(patsubst %.dtb,%.dt.yaml, $(dtb-))\n-endif\n-\n # Add subdir path\n \n extra-y\t\t:= $(addprefix $(obj)/,$(extra-y))\ndiff --git a/scripts/dtc/Makefile b/scripts/dtc/Makefile\nindex 6f309b37e08..2ba8dba03be 100644\n--- a/scripts/dtc/Makefile\n+++ b/scripts/dtc/Makefile\n@@ -17,15 +17,7 @@ fdtoverlay-objs\t:= $(libfdt) fdtoverlay.o util.o\n # Source files need to get at the userspace version of libfdt_env.h to compile\n HOST_EXTRACFLAGS := -I$(srctree)/$(src)/libfdt\n \n-ifeq ($(wildcard $(PKG_CONFIG_SYSROOT_DIR)/usr/include/yaml.h),)\n HOST_EXTRACFLAGS += -DNO_YAML\n-else\n-dtc-objs\t+= yamltree.o\n-# To include <yaml.h> installed in a non-default path\n-HOSTCFLAGS_yamltree.o := $(shell pkg-config --cflags yaml-0.1)\n-# To link libyaml installed in a non-default path\n-HOSTLDLIBS_dtc\t:= $(shell pkg-config --libs yaml-0.1)\n-endif\n \n # Generated files need one more search path to include headers in source tree\n HOSTCFLAGS_dtc-lexer.lex.o := -I$(src)\ndiff --git a/scripts/dtc/update-dtc-source.sh b/scripts/dtc/update-dtc-source.sh\nindex 32ff17ffd08..94627541533 100755\n--- a/scripts/dtc/update-dtc-source.sh\n+++ b/scripts/dtc/update-dtc-source.sh\n@@ -32,7 +32,7 @@ DTC_UPSTREAM_PATH=`pwd`/../dtc\n DTC_LINUX_PATH=`pwd`/scripts/dtc\n \n DTC_SOURCE=\"checks.c data.c dtc.c dtc.h flattree.c fstree.c livetree.c srcpos.c \\\n-\t\tsrcpos.h treesource.c util.c util.h version_gen.h yamltree.c \\\n+\t\tsrcpos.h treesource.c util.c util.h version_gen.h \\\n \t\tdtc-lexer.l dtc-parser.y\"\n LIBFDT_SOURCE=\"fdt.c fdt.h fdt_addresses.c fdt_empty_tree.c \\\n \t\tfdt_overlay.c fdt_ro.c fdt_rw.c fdt_strerror.c fdt_sw.c \\\n",
    "prefixes": []
}