get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2175796,
    "url": "http://patchwork.ozlabs.org/api/1.0/patches/2175796/?format=api",
    "project": {
        "id": 18,
        "url": "http://patchwork.ozlabs.org/api/1.0/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": "<20251218232255.3934258-2-trini@konsulko.com>",
    "date": "2025-12-18T23:10:13",
    "name": "[RFC,1/9] lzma: Add Kconfig options to optimize for size",
    "commit_ref": null,
    "pull_url": null,
    "state": "rfc",
    "archived": false,
    "hash": "a1d39dc22ddb77c8706f2ea73cbe4bbec733968a",
    "submitter": {
        "id": 65875,
        "url": "http://patchwork.ozlabs.org/api/1.0/people/65875/?format=api",
        "name": "Tom Rini",
        "email": "trini@konsulko.com"
    },
    "delegate": {
        "id": 3651,
        "url": "http://patchwork.ozlabs.org/api/1.0/users/3651/?format=api",
        "username": "trini",
        "first_name": "Tom",
        "last_name": "Rini",
        "email": "trini@ti.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20251218232255.3934258-2-trini@konsulko.com/mbox/",
    "series": [
        {
            "id": 485929,
            "url": "http://patchwork.ozlabs.org/api/1.0/series/485929/?format=api",
            "date": "2025-12-18T23:10:12",
            "name": "Update lzma to current version of LZMA SDK",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/485929/mbox/"
        }
    ],
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2175796/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 (1024-bit key;\n unprotected) header.d=konsulko.com header.i=@konsulko.com header.a=rsa-sha256\n header.s=google header.b=e9rkJIZE;\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=konsulko.com",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de",
            "phobos.denx.de;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=konsulko.com header.i=@konsulko.com\n header.b=\"e9rkJIZE\";\n\tdkim-atps=neutral",
            "phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=konsulko.com",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=trini@konsulko.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)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4dXRYG0vFnz1xty\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 19 Dec 2025 10:23:14 +1100 (AEDT)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 806C483642;\n\tFri, 19 Dec 2025 00:23:07 +0100 (CET)",
            "by phobos.denx.de (Postfix, from userid 109)\n id BF9888367F; Fri, 19 Dec 2025 00:23:04 +0100 (CET)",
            "from mail-oi1-x22d.google.com (mail-oi1-x22d.google.com\n [IPv6:2607:f8b0:4864:20::22d])\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 32C46800AB\n for <u-boot@lists.denx.de>; Fri, 19 Dec 2025 00:23:01 +0100 (CET)",
            "by mail-oi1-x22d.google.com with SMTP id\n 5614622812f47-44fe6771b2dso324006b6e.1\n for <u-boot@lists.denx.de>; Thu, 18 Dec 2025 15:23:01 -0800 (PST)",
            "from bill-the-cat.. (fixed-189-203-103-235.totalplay.net.\n [189.203.103.235]) by smtp.gmail.com with ESMTPSA id\n 5614622812f47-457b3cc0928sm295333b6e.10.2025.12.18.15.22.59\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Thu, 18 Dec 2025 15:22:59 -0800 (PST)"
        ],
        "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_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=konsulko.com; s=google; t=1766100180; x=1766704980; darn=lists.denx.de;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=iKAxKj5LoBPRCCu2ngsT/CSQv4EloClSMlWNBL52PnA=;\n b=e9rkJIZEZKVeu+ppGj1ONivR2wvMkwNWvs5XnRYp+UaQvNs/fEp+UxZcucJ0LAlzjq\n E9Wm90s3BHf5CfUR3nSgf8dEaHHxtB62TMYe50IFhv8ijBA/CPpcEO2m7wNBcfbRurFN\n xBUAWQ5MbQeatfwQfZU88oxN8iwXsCsZN93nQ=",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1766100180; x=1766704980;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n :to:cc:subject:date:message-id:reply-to;\n bh=iKAxKj5LoBPRCCu2ngsT/CSQv4EloClSMlWNBL52PnA=;\n b=b+yXhuXjzoFRvdBYzmO8rURUEdOb+eeXgqqwWGGiUg2xItjvj37v34/fnr56HGOUYY\n W7F3u92oPHppmZ2pGNFnB8UoV6ZD1KMPcKp9EVm1/uM1cxzGG5HaCRYS7ssnYuQeixxq\n 2LRxI81h3fgcihlkrU4EtlRW5QGWFd1RBejm9gX8Yi2XlzKyRId3i+yBtGljr4nig+bD\n 2D0gELBEl+s7tV6q06U3KpUrpr6TkUxHrc3I9gRDE10tw58pQetl49w07Oh3+djymdr2\n gPvS704RsMUW+N9ym5Ht0odLy4CKZIzq4zGN7MD48C+l1GoFKxhQWyue2gBDOEXYnyX7\n eCIw==",
        "X-Gm-Message-State": "AOJu0YzMuDzi0HqDHzomWfPYhsNiZxVb6wij73UuRKo0cWX4ncAHYcml\n Uxqieuus8Aiy+NQV3U3il8yyNWlW6jiaQs6fzT0XQKfcHtzlLmm9gEYIgCRf9oQjcePbtS88Zsq\n hQWQLN0I=",
        "X-Gm-Gg": "AY/fxX73hD65Sjqy3rsR2A01ckxM+vJFyDFyAtG97qx4OfffpIUOrLQSupuOLUsS9eS\n tUE94h+PYeLbZJP6wNjacDdRJEmVCyhHJCY4QgquFnDhJvXL0HuhtNVaYtbzvtxelgIpSpyU7sd\n pwNo9nCMRVyzfxpiUCfQP9B58taG9rr409VKCjZXSZ3C/+8hKMquOc0KI2peqqUIQx/++bCNkN1\n lBG7eX+f1zT7OSYyyajxa0YnqE3ZQ5F1e5pVx1CWpaclbPX0BLiEfkorPjhA3bY1i10Lo2DtWHu\n 2AFASDH0g7QyHpGRrYr2pjBpkCAe3AK1DXy/u39v4V/Ec57ldnsynKTrD1Dc9TsxGR+4JWo57iL\n a4OLaIsmQcLzlsWxtEEWVwI5hkNShZ++BChlq+ssErCAP45vUkO2gvzcMv8m/cPs+2nZ2cReMwv\n EOBNb3zHVdOApwfWPM62JiMxOlpUCuwEJQnWLJKIm3ZblswFu1OoKv",
        "X-Google-Smtp-Source": "\n AGHT+IHSW4zeUdhL35+EWHkAWWv1q/LoHuV0lCi1lv4j6i0c2Uugv/xhA/QK8RwjtX303i/gLrrSAA==",
        "X-Received": "by 2002:a05:6808:4f5f:b0:450:1d1a:5d9c with SMTP id\n 5614622812f47-457b2185330mr603539b6e.33.1766100179884;\n Thu, 18 Dec 2025 15:22:59 -0800 (PST)",
        "From": "Tom Rini <trini@konsulko.com>",
        "To": "u-boot@lists.denx.de",
        "Cc": "Darek <x64x6a@gmail.com>,\n\tStefan Roese <stefan.roese@mailbox.org>",
        "Subject": "[RFC PATCH 1/9] lzma: Add Kconfig options to optimize for size",
        "Date": "Thu, 18 Dec 2025 17:10:13 -0600",
        "Message-ID": "<20251218232255.3934258-2-trini@konsulko.com>",
        "X-Mailer": "git-send-email 2.43.0",
        "In-Reply-To": "<20251218232255.3934258-1-trini@konsulko.com>",
        "References": "<20251218232255.3934258-1-trini@konsulko.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": "Currently, our LZMA library has an option for optimizing for size,\nrather than speed. It is a minimal savings today, and has not been worth\nenabling. As this will change in the near future, add options now to\nallow disabling it in full U-Boot or in SPL, and enable these on\ngardena-smart-gateway-mt7688 which is very close to the size limit\ntoday.\n\nSigned-off-by: Tom Rini <trini@konsulko.com>\n---\nCc: Stefan Roese <stefan.roese@mailbox.org>\n---\n configs/gardena-smart-gateway-mt7688_defconfig |  2 ++\n lib/Kconfig                                    | 14 ++++++++++++++\n lib/lzma/Makefile                              |  1 +\n 3 files changed, 17 insertions(+)",
    "diff": "diff --git a/configs/gardena-smart-gateway-mt7688_defconfig b/configs/gardena-smart-gateway-mt7688_defconfig\nindex 3c2bcc6a3c44..aba8a2ffd1de 100644\n--- a/configs/gardena-smart-gateway-mt7688_defconfig\n+++ b/configs/gardena-smart-gateway-mt7688_defconfig\n@@ -101,4 +101,6 @@ CONFIG_MT7621_SPI=y\n CONFIG_WDT=y\n CONFIG_WDT_MT7621=y\n CONFIG_LZMA=y\n+CONFIG_LZMA_SIZE_OPTIMIZATION=y\n CONFIG_SPL_LZMA=y\n+CONFIG_SPL_LZMA_SIZE_OPTIMIZATION=y\ndiff --git a/lib/Kconfig b/lib/Kconfig\nindex fe0b878a206b..96032eaddf95 100644\n--- a/lib/Kconfig\n+++ b/lib/Kconfig\n@@ -838,6 +838,13 @@ config LZMA\n \t  ratio and fairly fast decompression speed. See also\n \t  CONFIG_CMD_LZMADEC which provides a decode command.\n \n+config LZMA_SIZE_OPTIMIZATION\n+\tbool \"Optimize the LZMA algorithm for smaller binary size\"\n+\thelp\n+\t  This enables building the LZMA library optimized for size, rather\n+\t  than performance. This can be a loss of 15-20% in decompression\n+\t  speed, but a savings of close to two kilobytes in many cases.\n+\n config LZO\n \tbool \"Enable LZO decompression support\"\n \thelp\n@@ -932,6 +939,13 @@ config SPL_LZMA\n \thelp\n \t  This enables support for LZMA compression algorithm for SPL boot.\n \n+config SPL_LZMA_SIZE_OPTIMIZATION\n+\tbool \"Optimize the LZMA algorithm for smaller binary size in SPL\"\n+\thelp\n+\t  This enables building the LZMA library optimized for size, rather\n+\t  than performance. This can be a loss of 15-20% in decompression\n+\t  speed, but a savings of close to two kilobytes in many cases.\n+\n config TPL_LZMA\n \tbool \"Enable LZMA decompression support for TPL build\"\n \tdepends on TPL\ndiff --git a/lib/lzma/Makefile b/lib/lzma/Makefile\nindex c2fd3e494541..b8ad570ab1c2 100644\n--- a/lib/lzma/Makefile\n+++ b/lib/lzma/Makefile\n@@ -7,5 +7,6 @@\n # Wolfgang Denk, DENX Software Engineering, wd@denx.de.\n \n ccflags-y += -D_LZMA_PROB32\n+ccflags-$(CONFIG_$(PHASE_)LZMA_SIZE_OPTIMIZATION) += -D_LZMA_SIZE_OPT\n \n obj-y += LzmaDec.o LzmaTools.o\n",
    "prefixes": [
        "RFC",
        "1/9"
    ]
}