get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2175768,
    "url": "http://patchwork.ozlabs.org/api/1.0/patches/2175768/?format=api",
    "project": {
        "id": 14,
        "url": "http://patchwork.ozlabs.org/api/1.0/projects/14/?format=api",
        "name": "QEMU Development",
        "link_name": "qemu-devel",
        "list_id": "qemu-devel.nongnu.org",
        "list_email": "qemu-devel@nongnu.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": ""
    },
    "msgid": "<20251218213053.61665-2-philmd@linaro.org>",
    "date": "2025-12-18T21:30:51",
    "name": "[1/3] hw/avr: Mark AVR-specific peripherals as little-endian",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "eedf90cf9a0ab301a4fc51350eb08f875239166a",
    "submitter": {
        "id": 85046,
        "url": "http://patchwork.ozlabs.org/api/1.0/people/85046/?format=api",
        "name": "Philippe Mathieu-Daudé",
        "email": "philmd@linaro.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20251218213053.61665-2-philmd@linaro.org/mbox/",
    "series": [
        {
            "id": 485919,
            "url": "http://patchwork.ozlabs.org/api/1.0/series/485919/?format=api",
            "date": "2025-12-18T21:30:50",
            "name": "target/avr: Stop using the legacy native-endian APIs",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/485919/mbox/"
        }
    ],
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2175768/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>",
        "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=EcQ1fzci;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org\n (client-ip=209.51.188.17; helo=lists.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)"
        ],
        "Received": [
            "from lists.gnu.org (lists.gnu.org [209.51.188.17])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4dXP4J4FnMz1xpw\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 19 Dec 2025 08:31:28 +1100 (AEDT)",
            "from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1vWLah-0003gm-6j; Thu, 18 Dec 2025 16:31:20 -0500",
            "from eggs.gnu.org ([2001:470:142:3::10])\n by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <philmd@linaro.org>) id 1vWLaW-0003Y9-CC\n for qemu-devel@nongnu.org; Thu, 18 Dec 2025 16:31:10 -0500",
            "from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)\n (Exim 4.90_1) (envelope-from <philmd@linaro.org>) id 1vWLaU-00008V-5z\n for qemu-devel@nongnu.org; Thu, 18 Dec 2025 16:31:07 -0500",
            "by mail-wr1-x42b.google.com with SMTP id\n ffacd0b85a97d-431048c4068so653895f8f.1\n for <qemu-devel@nongnu.org>; Thu, 18 Dec 2025 13:31:05 -0800 (PST)",
            "from localhost.localdomain (88-187-86-199.subs.proxad.net.\n [88.187.86.199]) by smtp.gmail.com with ESMTPSA id\n ffacd0b85a97d-4324ea225fcsm1080630f8f.16.2025.12.18.13.31.02\n (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256);\n Thu, 18 Dec 2025 13:31:02 -0800 (PST)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=linaro.org; s=google; t=1766093464; x=1766698264; darn=nongnu.org;\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=HmxQ9WEy0hVu6WpWDaVL5nWcD5VfHXcTym/HYUrgzEE=;\n b=EcQ1fzcijpqfo3EYaZRWi0oYFpQOjfvu1FBP5p1GJ7DZlhT1xHCQEfE+DcjK5rtnAI\n 3vjVneZYecmUIIFe0QHTVhSIr7TXOaJ5dgoRvkCpDlczZEfEl9HaOTiYkXxPXqItu7ZY\n jCPVP4kQqtRUb/+bw0kIBTzq+Kdye4rhyvghocAupQS1mmo4J3zc4/jGyW4V8GMC9mcm\n UHn60DHPxqCDjZSBO+F2sV/1RTWNImVV35py8fjmRT8Oo0WIUWa+r2pBaVm7MepyYG9D\n sC96lb6nHVnhBFHyQNmhSjj9cuHjRLYodYGvDUpxkYaPJBUIQIqV98sy4Qb7VGYSOlOJ\n W6TQ==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1766093464; x=1766698264;\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=HmxQ9WEy0hVu6WpWDaVL5nWcD5VfHXcTym/HYUrgzEE=;\n b=AaIZPL7YamvYZub3px9u6+UeXKX7uQ/4rI+plgmgkDP8W8GzavvUuFIVVaTX+ncjA6\n 5iF28N+hp3PwksL3QnHwl6frJOue+F7xhH2s8aTIkfUiD2Ic8uHGm56L/XjEzhekeQTd\n rSmgPxz/kFZOBPdbrcHR3+WC1uv+mlXtJnujouFGyWpeiR5UUPyDKN+lOF08tPXlInYE\n h1KXs7qmjFXbB9f2+V9PWqRlfJ2DjMqm7/OvpueVbwhN+CrMrX6RB3J7flBa3g7CVOhc\n CRm4BfQdsF5cavjZKJjUbkJPnLNxSxNfGNJeiRqSs3hzvcncvTet2snOM4vcMJBjvJgu\n xiUQ==",
        "X-Gm-Message-State": "AOJu0YxPvPWYHOugaSKcu1CCviaPwBhI5S6tg0OCtThMw1BXYnMBv3zM\n xwwTNEsW4V6MjgBmp9uyTdZrQFy9SIakP2/BfJtc4cGSG2q8wY0+J/D8NDvLlZlS0qJoJQZRX5L\n TnH/7Bgs=",
        "X-Gm-Gg": "AY/fxX7HW/SSqTBSVNbxnPEt1h07EusooeW1lC3iPeWEoXiTXT6BQDa+Aojvb2J13J3\n CzIpRySRvce9a+n79XKN6eRaeMGkcLHCPudmOB3JQWS3CnYz2wlDe8iGvgmdIfPUdk0cPOz9Bfm\n hAcIMo8Fio53tCCINcmxciLyqq5/nM/2hP6T3Q1cP0CYyq59NiRpD4hBEZtWZabm15qZ3HDHTfK\n 4PljKPjkZjQyuOk+FZOE4kXomK7Ix4TWdHYolP8lzqY+WUed+qfcxEXhDXDbL0gTIObPypfGLUZ\n Y9wDm/DLyEu0+xaw8jKd0tuhld/y08jA6DzFfULfC096pGjpe0wgp2OJ72djRH5aacJ/zKof1bY\n Fg0qaaGSVt7npF8z7tZ8gOOwkOZHMYcRyihW7Mz4a3IuNf5GUIzDnL9i8wkefixMa6kKxbEDd/2\n rTfB21yQvDXGKFYra8Pur9/VGI2MGTMe2NNNs21eGUWMpuJT+tHSIw4eXI5TKgoSxIpzRefqs=",
        "X-Google-Smtp-Source": "\n AGHT+IHPFi0lGdv5boIEXPENW6VdZtAQmmkzBdlqJKEsVX9deS0vPY2/+B++rekJL/pG0+rtimWa1w==",
        "X-Received": "by 2002:a05:6000:230d:b0:430:fb00:108a with SMTP id\n ffacd0b85a97d-4324e3ebfddmr1413915f8f.2.1766093464121;\n Thu, 18 Dec 2025 13:31:04 -0800 (PST)",
        "From": "=?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org>",
        "To": "qemu-devel@nongnu.org",
        "Cc": "=?utf-8?q?Marc-Andr=C3=A9_Lureau?= <marcandre.lureau@redhat.com>,\n Paolo Bonzini <pbonzini@redhat.com>,\n Daniel Henrique Barboza <daniel.barboza@oss.qualcomm.com>,\n Richard Henderson <richard.henderson@linaro.org>,\n Pierrick Bouvier <pierrick.bouvier@linaro.org>,\n Michael Rolnik <mrolnik@gmail.com>, Anton Johansson <anjo@rev.ng>,\n\t=?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org>",
        "Subject": "[PATCH 1/3] hw/avr: Mark AVR-specific peripherals as little-endian",
        "Date": "Thu, 18 Dec 2025 22:30:51 +0100",
        "Message-ID": "<20251218213053.61665-2-philmd@linaro.org>",
        "X-Mailer": "git-send-email 2.52.0",
        "In-Reply-To": "<20251218213053.61665-1-philmd@linaro.org>",
        "References": "<20251218213053.61665-1-philmd@linaro.org>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=UTF-8",
        "Content-Transfer-Encoding": "8bit",
        "Received-SPF": "pass client-ip=2a00:1450:4864:20::42b;\n envelope-from=philmd@linaro.org; helo=mail-wr1-x42b.google.com",
        "X-Spam_score_int": "-20",
        "X-Spam_score": "-2.1",
        "X-Spam_bar": "--",
        "X-Spam_report": "(-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,\n DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,\n RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,\n SPF_PASS=-0.001 autolearn=ham autolearn_force=no",
        "X-Spam_action": "no action",
        "X-BeenThere": "qemu-devel@nongnu.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "<qemu-devel.nongnu.org>",
        "List-Unsubscribe": "<https://lists.nongnu.org/mailman/options/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>",
        "List-Archive": "<https://lists.nongnu.org/archive/html/qemu-devel>",
        "List-Post": "<mailto:qemu-devel@nongnu.org>",
        "List-Help": "<mailto:qemu-devel-request@nongnu.org?subject=help>",
        "List-Subscribe": "<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=subscribe>",
        "Errors-To": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org",
        "Sender": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org"
    },
    "content": "These devices are only used by the AVR target, which is only\nbuilt as little-endian. Therefore the DEVICE_NATIVE_ENDIAN\ndefinition expand to DEVICE_LITTLE_ENDIAN (besides, the\nDEVICE_BIG_ENDIAN case isn't tested). Simplify directly\nusing DEVICE_LITTLE_ENDIAN.\n\nSigned-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>\n---\n hw/char/avr_usart.c    | 2 +-\n hw/misc/avr_power.c    | 2 +-\n hw/timer/avr_timer16.c | 6 +++---\n target/avr/helper.c    | 4 ++--\n 4 files changed, 7 insertions(+), 7 deletions(-)",
    "diff": "diff --git a/hw/char/avr_usart.c b/hw/char/avr_usart.c\nindex fae15217e9f..5510dd3f487 100644\n--- a/hw/char/avr_usart.c\n+++ b/hw/char/avr_usart.c\n@@ -255,7 +255,7 @@ static void avr_usart_write(void *opaque, hwaddr addr, uint64_t value,\n static const MemoryRegionOps avr_usart_ops = {\n     .read = avr_usart_read,\n     .write = avr_usart_write,\n-    .endianness = DEVICE_NATIVE_ENDIAN,\n+    .endianness = DEVICE_LITTLE_ENDIAN,\n     .impl = {.min_access_size = 1, .max_access_size = 1}\n };\n \ndiff --git a/hw/misc/avr_power.c b/hw/misc/avr_power.c\nindex 411f016c997..d8e0d918519 100644\n--- a/hw/misc/avr_power.c\n+++ b/hw/misc/avr_power.c\n@@ -69,7 +69,7 @@ static void avr_mask_write(void *opaque, hwaddr offset,\n static const MemoryRegionOps avr_mask_ops = {\n     .read = avr_mask_read,\n     .write = avr_mask_write,\n-    .endianness = DEVICE_NATIVE_ENDIAN,\n+    .endianness = DEVICE_LITTLE_ENDIAN,\n     .impl = {\n         .max_access_size = 1,\n     },\ndiff --git a/hw/timer/avr_timer16.c b/hw/timer/avr_timer16.c\nindex 012d8290018..110bcd58163 100644\n--- a/hw/timer/avr_timer16.c\n+++ b/hw/timer/avr_timer16.c\n@@ -524,21 +524,21 @@ static void avr_timer16_ifr_write(void *opaque, hwaddr offset,\n static const MemoryRegionOps avr_timer16_ops = {\n     .read = avr_timer16_read,\n     .write = avr_timer16_write,\n-    .endianness = DEVICE_NATIVE_ENDIAN,\n+    .endianness = DEVICE_LITTLE_ENDIAN,\n     .impl = {.max_access_size = 1}\n };\n \n static const MemoryRegionOps avr_timer16_imsk_ops = {\n     .read = avr_timer16_imsk_read,\n     .write = avr_timer16_imsk_write,\n-    .endianness = DEVICE_NATIVE_ENDIAN,\n+    .endianness = DEVICE_LITTLE_ENDIAN,\n     .impl = {.max_access_size = 1}\n };\n \n static const MemoryRegionOps avr_timer16_ifr_ops = {\n     .read = avr_timer16_ifr_read,\n     .write = avr_timer16_ifr_write,\n-    .endianness = DEVICE_NATIVE_ENDIAN,\n+    .endianness = DEVICE_LITTLE_ENDIAN,\n     .impl = {.max_access_size = 1}\n };\n \ndiff --git a/target/avr/helper.c b/target/avr/helper.c\nindex 365c8c60e19..9ee0a558ea7 100644\n--- a/target/avr/helper.c\n+++ b/target/avr/helper.c\n@@ -256,7 +256,7 @@ static void avr_cpu_trap_write(void *opaque, hwaddr addr,\n const MemoryRegionOps avr_cpu_reg1 = {\n     .read = avr_cpu_reg1_read,\n     .write = avr_cpu_trap_write,\n-    .endianness = DEVICE_NATIVE_ENDIAN,\n+    .endianness = DEVICE_LITTLE_ENDIAN,\n     .valid.min_access_size = 1,\n     .valid.max_access_size = 1,\n };\n@@ -264,7 +264,7 @@ const MemoryRegionOps avr_cpu_reg1 = {\n const MemoryRegionOps avr_cpu_reg2 = {\n     .read = avr_cpu_reg2_read,\n     .write = avr_cpu_trap_write,\n-    .endianness = DEVICE_NATIVE_ENDIAN,\n+    .endianness = DEVICE_LITTLE_ENDIAN,\n     .valid.min_access_size = 1,\n     .valid.max_access_size = 1,\n };\n",
    "prefixes": [
        "1/3"
    ]
}