get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2219526,
    "url": "http://patchwork.ozlabs.org/api/1.0/patches/2219526/?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": "<20260403090109.3564638-4-ilias.apalodimas@linaro.org>",
    "date": "2026-04-03T09:01:05",
    "name": "[v1,3/4] common: Clean up setup_dest_addr()",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "a4ee8def16e1f03513431499af63790bcb852c8b",
    "submitter": {
        "id": 74147,
        "url": "http://patchwork.ozlabs.org/api/1.0/people/74147/?format=api",
        "name": "Ilias Apalodimas",
        "email": "ilias.apalodimas@linaro.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260403090109.3564638-4-ilias.apalodimas@linaro.org/mbox/",
    "series": [
        {
            "id": 498607,
            "url": "http://patchwork.ozlabs.org/api/1.0/series/498607/?format=api",
            "date": "2026-04-03T09:01:02",
            "name": "Relocate U-Boot in the last bank",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/498607/mbox/"
        }
    ],
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2219526/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=linaro.org header.i=@linaro.org header.a=rsa-sha256\n header.s=google header.b=Dr+FUCQV;\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=none dis=none) header.from=linaro.org",
            "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=linaro.org header.i=@linaro.org header.b=\"Dr+FUCQV\";\n\tdkim-atps=neutral",
            "phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=linaro.org",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=ilias.apalodimas@linaro.org"
        ],
        "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 4fnCQP2MPvz1yCt\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 03 Apr 2026 20:01:49 +1100 (AEDT)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 7B83783DC9;\n\tFri,  3 Apr 2026 11:01:30 +0200 (CEST)",
            "by phobos.denx.de (Postfix, from userid 109)\n id 7D04084120; Fri,  3 Apr 2026 11:01:29 +0200 (CEST)",
            "from mail-wm1-x333.google.com (mail-wm1-x333.google.com\n [IPv6:2a00:1450:4864:20::333])\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 76B2983CF5\n for <u-boot@lists.denx.de>; Fri,  3 Apr 2026 11:01:27 +0200 (CEST)",
            "by mail-wm1-x333.google.com with SMTP id\n 5b1f17b1804b1-4888375f735so14142675e9.3\n for <u-boot@lists.denx.de>; Fri, 03 Apr 2026 02:01:27 -0700 (PDT)",
            "from hera ([94.131.143.12]) by smtp.gmail.com with ESMTPSA id\n 5b1f17b1804b1-4887e967badsm332528545e9.14.2026.04.03.02.01.25\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Fri, 03 Apr 2026 02:01:26 -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=-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=linaro.org; s=google; t=1775206887; x=1775811687; 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=RdwpaU6iUhDzdUkX2+r8JBDyihxWgAxxLFJEAUYC6Fo=;\n b=Dr+FUCQVw0l1qgyALDH22kGymfXszbJXawYOTs0R2G3HrwvjobYSCw+PtDQhrLSzD0\n ejv1MVeJpMzQaWQf/UvInOAFm7MgEtrHrYoYgsBgYvDxx06aCkrhgQ2vQy6g8LHnZe9J\n PwiZx2bS3xK7zDSZTmT1JO9uOdNVu73GxTW2Y6ijVmHYmK5j3TFO/Psx11f/wiPKPdtu\n DsKY3tH2VjIpr0pZVnSQbhoICLzQJVwUFUP3rVhJTuoywgvg5EtnmJkP92csfdzTA7Sw\n lbDSQT79ggcTWPFIY82kZ6qVudffwHeqZii84j+BviRkqlZj5AvDi3cilGUDqkAUmu8l\n 3O0A==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1775206887; x=1775811687;\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=RdwpaU6iUhDzdUkX2+r8JBDyihxWgAxxLFJEAUYC6Fo=;\n b=U6NiYJxRfO5d+Nz98DVDn/VX4lmsejtQb0Mi/etixrRTQNFSN7fCgoAL5RQEzWMoot\n m7v3WFtOcN+bB0xru8O2d+MQd8RuZbyL+wYgNyWIfM87GIrxmYfHZQzBJNg256cH7jJ4\n F2pYbeFtRdthezIYx+G66Dpeasflb6uGwoWKht4IRhdOe/uvZTDL1jz6wfHuhFfhlqo+\n B1W5PhS0C7MyksDEEBYqNI5glAQDrYwz7KqHydmWJCLfKmeA80bRpE2EqjCSRDqcEpXa\n nATBKTHNaxF+mgWFl5lB6BwOM+WfLmxjHJSLHW3dlnAJ5Md2iuiKgLcqp2spJCQtxwQv\n CCRA==",
        "X-Forwarded-Encrypted": "i=1;\n AJvYcCWjC6i18hyDwqlKZi6a6ys/jw539jNmeOFBrhPrBJfYoWM3TryzBc3c+32F5c2/Ez/jgljtJX0=@lists.denx.de",
        "X-Gm-Message-State": "AOJu0YxKYwBv7b74Gsp/wlpCmzDTCasHA6nPM43/ea7JGyljZVk2psvI\n WndEESmfdiR0/PevC62AELgSlFSo5/jVQlkBFfc1awtiSqt1C59tff7uJG4V6hLak0Y=",
        "X-Gm-Gg": "ATEYQzwoDYx/b7QNlNhbTW+/2f52cPs3MP+4RSJ327+1mR5AEoeFRXMlzkRrPWPsoN8\n MMtXoVexZBScbNxIc/PBho4F5tFmiFOglg1PggYzzeW7fqoTDSrXvykNKHOPCk4QQ2oeWjUiJE5\n gDClqA1UKEH8TQN2MBwXMAuvtjtNP+29Kj7Quf1mrCfwlxiahBgfHVnHjrMyx7AbIDDF9bVBdY9\n NjgqHY2/OpqOm3V3IO4lbrt3SZjxq5q9Rlet/7a9QVV3EJUTsL2ztYBEUygi5HSK3iMO9x9n74F\n x2wEGzKI8ux4IlSUDB7DYJuB9+cSkg7yulBCy7jZDWb8qwAe5ViLE9hmJMCIFouxqI7dylVSuio\n NldotuuvrDN57SNNnvVhIXc20RdZGGe4EZHEAV9ViNln0MAxdDv4Srx8yhkvWSYjqUGp3lqJarW\n U5AJkc+7Ttt1pAKt5NXIW6tVKEhIX35jl309hjOibjAb20L5DEX4MblsuY6wAQeIJOYmEcVwhiK\n yesKVLp2rqEAv0HQUm8IoVaDhFkkUP/0BIfR/FpVHBDx+GI1SZ4i0PnqzjM7D8BLkdtXZup9ogQ\n 6/GwhA3O1y+iLnERl559shrnOocf1sFMIKfNK57ZpGwfPraSZcKH5e/g3nvX+c8I3ITYDKfe0FG\n 6Wt1KHTFlpT0xQ3dx8GEtMjBXh87uYtxKO5E2XV4YRwvzN89lHNFntPpoJwmFEuGlPMnS3iNR2m\n Q/ns1wNUmeHukAwrowyI4DkIYVzX1PcAPM3aP+y2Q4GBhaDF5TQ9uYcWgOYyu2",
        "X-Received": "by 2002:a05:600d:1:b0:485:3c8f:e4d9 with SMTP id\n 5b1f17b1804b1-488997ddc40mr29168215e9.26.1775206886764;\n Fri, 03 Apr 2026 02:01:26 -0700 (PDT)",
        "From": "Ilias Apalodimas <ilias.apalodimas@linaro.org>",
        "To": "trini@konsulko.com",
        "Cc": "marek.vasut+renesas@mailbox.org, jonas@kwiboo.se, anshuld@ti.com,\n sjg@chromium.org, Ilias Apalodimas <ilias.apalodimas@linaro.org>,\n u-boot@lists.denx.de",
        "Subject": "[PATCH v1 3/4] common: Clean up setup_dest_addr()",
        "Date": "Fri,  3 Apr 2026 12:01:05 +0300",
        "Message-ID": "<20260403090109.3564638-4-ilias.apalodimas@linaro.org>",
        "X-Mailer": "git-send-email 2.53.0",
        "In-Reply-To": "<20260403090109.3564638-1-ilias.apalodimas@linaro.org>",
        "References": "<20260403090109.3564638-1-ilias.apalodimas@linaro.org>",
        "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": "Right now the function does\n- Re-adjust the ram_size based on Kconfig options\n- Set ram_top\n- Set the relocation address\n\nIt also does not set the ram_size in case ram_top grew\nfrom it's initial value. But ram_top and ram_size should\nalways be changed together.\n\nSo let's make things a bit cleaner and move the ram calculations\nin their own INITCALL\n\nSigned-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>\n---\n common/board_f.c | 18 ++++++++++++------\n 1 file changed, 12 insertions(+), 6 deletions(-)",
    "diff": "diff --git a/common/board_f.c b/common/board_f.c\nindex 7df92281c35a..dd5518b60db4 100644\n--- a/common/board_f.c\n+++ b/common/board_f.c\n@@ -337,13 +337,9 @@ static int setup_ram_base(void)\n \treturn 0;\n }\n \n-static int setup_dest_addr(void)\n+static int setup_ram_config(void)\n {\n \tdebug(\"Monitor len: %08x\\n\", gd->mon_len);\n-\t/*\n-\t * Ram is setup, size stored in gd !!\n-\t */\n-\tdebug(\"Ram size: %08llX\\n\", (unsigned long long)gd->ram_size);\n #if CONFIG_VAL(SYS_MEM_TOP_HIDE)\n \t/*\n \t * Subtract specified amount of memory to hide so that it won't\n@@ -359,8 +355,17 @@ static int setup_dest_addr(void)\n #endif\n \tgd->ram_top = gd->ram_base + get_effective_memsize();\n \tgd->ram_top = board_get_usable_ram_top(gd->mon_len);\n-\tgd->relocaddr = gd->ram_top;\n+\n \tdebug(\"Ram top: %08llX\\n\", (unsigned long long)gd->ram_top);\n+\tdebug(\"Ram size: %08llX\\n\", (unsigned long long)gd->ram_size);\n+\n+\treturn 0;\n+}\n+\n+static int setup_dest_addr(void)\n+{\n+\tgd->relocaddr = gd->ram_top;\n+\tdebug(\"Reloc addr: %08llX\\n\", (unsigned long long)gd->relocaddr);\n \n \treturn arch_setup_dest_addr();\n }\n@@ -966,6 +971,7 @@ static void initcall_run_f(void)\n \t *  - board info struct\n \t */\n \tINITCALL(setup_ram_base);\n+\tINITCALL(setup_ram_config);\n \tINITCALL(setup_dest_addr);\n #if CONFIG_IS_ENABLED(OF_BOARD_FIXUP) && \\\n     !CONFIG_IS_ENABLED(OF_INITIAL_DTB_READONLY)\n",
    "prefixes": [
        "v1",
        "3/4"
    ]
}