Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.2/patches/2207236/?format=api
{ "id": 2207236, "url": "http://patchwork.ozlabs.org/api/1.2/patches/2207236/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260309105110.672832-1-daniel@0x0f.com/", "project": { "id": 18, "url": "http://patchwork.ozlabs.org/api/1.2/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": "<20260309105110.672832-1-daniel@0x0f.com>", "list_archive_url": null, "date": "2026-03-09T10:51:08", "name": "[v2,1/3] serial: goldfish: Add debug uart support", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "e5e4030f0c567ac81baf18cc5ba6ccc4a076dde1", "submitter": { "id": 74011, "url": "http://patchwork.ozlabs.org/api/1.2/people/74011/?format=api", "name": "Daniel Palmer", "email": "daniel@0x0f.com" }, "delegate": { "id": 14103, "url": "http://patchwork.ozlabs.org/api/1.2/users/14103/?format=api", "username": "spectrum", "first_name": "Angelo", "last_name": "Dureghello", "email": "sysamfw@gmail.com" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260309105110.672832-1-daniel@0x0f.com/mbox/", "series": [ { "id": 494987, "url": "http://patchwork.ozlabs.org/api/1.2/series/494987/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=494987", "date": "2026-03-09T10:51:08", "name": "[v2,1/3] serial: goldfish: Add debug uart support", "version": 2, "mbox": "http://patchwork.ozlabs.org/series/494987/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2207236/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2207236/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 (1024-bit key;\n unprotected) header.d=0x0f.com header.i=@0x0f.com header.a=rsa-sha256\n header.s=google header.b=mmyiwpIC;\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=none (p=none dis=none) header.from=0x0f.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=0x0f.com header.i=@0x0f.com header.b=\"mmyiwpIC\";\n\tdkim-atps=neutral", "phobos.denx.de;\n dmarc=none (p=none dis=none) header.from=0x0f.com", "phobos.denx.de; spf=pass smtp.mailfrom=daniel@0x0f.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 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fTv2n27wmz1y04\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 09 Mar 2026 21:51:45 +1100 (AEDT)", "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id D4A6283A8C;\n\tMon, 9 Mar 2026 11:51:35 +0100 (CET)", "by phobos.denx.de (Postfix, from userid 109)\n id 6699C83CDF; Mon, 9 Mar 2026 11:51:34 +0100 (CET)", "from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com\n [IPv6:2607:f8b0:4864:20::1036])\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 6E568839DF\n for <u-boot@lists.denx.de>; Mon, 9 Mar 2026 11:51:31 +0100 (CET)", "by mail-pj1-x1036.google.com with SMTP id\n 98e67ed59e1d1-358d80f60ccso6076692a91.3\n for <u-boot@lists.denx.de>; Mon, 09 Mar 2026 03:51:31 -0700 (PDT)", "from shiro (p1766150-ipxg00e01sizuokaden.shizuoka.ocn.ne.jp.\n [153.167.218.150]) by smtp.googlemail.com with ESMTPSA id\n 98e67ed59e1d1-359bbbaf51bsm5491921a91.1.2026.03.09.03.51.29\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Mon, 09 Mar 2026 03:51:29 -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 autolearn=ham autolearn_force=no version=3.4.2", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=0x0f.com; s=google; t=1773053490; x=1773658290; darn=lists.denx.de;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:from:to:cc:subject:date:message-id:reply-to;\n bh=7gQ3mzbMD8EZ6zwEAtIofxwXLpbb0wlEmsFdlXsfUv8=;\n b=mmyiwpICBtXDtsN/nSiMgM59I0Ao/GYMCT50HHBmFTuwnO6zIDBrcQqs5+9NuXYt1f\n tbO/ieTgSUe5ay2IRa6eH5emHSAQG6elFdfM9lYtJP1Y8Io3P/PCB2pErsmRP/xpdRnR\n HJYk+1t2MDVczVOAb95Mmrgt8ScSC6ULdmHLE=", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1773053490; x=1773658290;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n :message-id:reply-to;\n bh=7gQ3mzbMD8EZ6zwEAtIofxwXLpbb0wlEmsFdlXsfUv8=;\n b=X7D8HMQ2mEq0TWKeeY4fY1u4xdd8pYs44Bufbv/e5cfIkFgvesYT7tQUNkXon/1QhO\n 1kSNinGFm+pVS4bkyhV+kUSOvMRdv4PXQOaM98koZnzX8iCrYueVgi2IF2C4R9xbKZYy\n Wm73THxlxmYGEX8alXdebCWG6uf6tZa1ZR3krQl0115ENeeSAkIC1CnIB7N52E1UQeeB\n qR/VR1EdaK7I349w0wKxsLiy1cHQESfVDepPSTPkWaQbrNbsbn+5dqv8zNsj4UsNuYbo\n S6NR2r25C+SCKWtXuYlIwGBjOljK5fY7D20UcC7hO0kap67ZmddcegURHFWfuz5F/aIA\n K0hg==", "X-Gm-Message-State": "AOJu0YyVZM60GcHEdYXucp7C+VaL/b23tWtrs4KGRlcV2iWX2fmAXfI9\n m8/ZnLwh6avshh1poXmWIhB/LbtPMdaeorUeWD/vbW/hovuV2X01/ajjDDYVDhVekwo=", "X-Gm-Gg": "ATEYQzxQrDqQ/YslzXuOPVQC/RnGrgoImmkH4hy5pAQeHYq6+vJ8l1yihrAqLw1c6s5\n vZVx39oJWRvLqSIegy46TzzcDUJryYhsCienlll/mOeRyxFJQhWX2RhWI91barPKmcTVLVUwKBu\n S/KS8hvf0sjj8xdMKBMzuNwinS3yWKnbexBPlKm5dM7oJ+QHUatw15/QgvHT6mjgbxGW2GcMxe3\n q7QmRqOBUrflF7J2BrhPNuhSJWrqqu1/X08R29uxkuq9XUBJ954Tc/PsbEg7TIlM/VBZWet3gpJ\n czOzO7m5kxOwfE+QIV1vGahBF6flIzJ31DL58KVC4/CAvJXDJuUXKyMiheu6MXg77zLskl0svG3\n LADDZRDLDM+i2B8JTiNa/8Vvkmep0iMapG+/72DeSuERLMddlEGxf8rPYSec9rnJyPdJjeXywzz\n L7Eu/jQG3Fq02VvUPZJV9F4lbYGheqXRJAN/CzwGjL48pMNqYTcW14yn0JIS/PLxNt1w==", "X-Received": "by 2002:a17:90b:3810:b0:343:7714:4caa with SMTP id\n 98e67ed59e1d1-359be27b694mr10458221a91.3.1773053489821;\n Mon, 09 Mar 2026 03:51:29 -0700 (PDT)", "From": "Daniel Palmer <daniel@0x0f.com>", "To": "visitorckw@gmail.com", "Cc": "u-boot@lists.denx.de,\n\tDaniel Palmer <daniel@0x0f.com>", "Subject": "[PATCH v2 1/3] serial: goldfish: Add debug uart support", "Date": "Mon, 9 Mar 2026 19:51:08 +0900", "Message-ID": "<20260309105110.672832-1-daniel@0x0f.com>", "X-Mailer": "git-send-email 2.51.0", "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": "Add debug support for the goldfish tty so it can be used for\nearly debugging. This will be really useful when adding support\nfor relocation to the m68k qemu virt machine.\n\nSigned-off-by: Daniel Palmer <daniel@0x0f.com>\n---\n drivers/serial/Kconfig | 8 ++++++++\n drivers/serial/serial_goldfish.c | 18 ++++++++++++++++++\n 2 files changed, 26 insertions(+)", "diff": "diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig\nindex b84cb9ec781d..f6a696e6c94c 100644\n--- a/drivers/serial/Kconfig\n+++ b/drivers/serial/Kconfig\n@@ -510,6 +510,14 @@ config DEBUG_UART_XTENSA_SEMIHOSTING\n \t start up driver model. The driver will be available until the real\n \t driver model serial is running.\n \n+config DEBUG_UART_GOLDFISH\n+\tbool \"Goldfish TTY\"\n+\thelp\n+\t Select this to enable the debug UART using the Goldfish TTY driver.\n+\t This provides basic serial output from the console without needing to\n+\t start up driver model. The driver will be available until the real\n+\t driver model serial is running.\n+\n endchoice\n \n config DEBUG_UART_BASE\ndiff --git a/drivers/serial/serial_goldfish.c b/drivers/serial/serial_goldfish.c\nindex 4ac2cfb62315..91dc040fcf26 100644\n--- a/drivers/serial/serial_goldfish.c\n+++ b/drivers/serial/serial_goldfish.c\n@@ -115,3 +115,21 @@ U_BOOT_DRIVER(serial_goldfish) = {\n \t.priv_auto = sizeof(struct goldfish_tty_priv),\n \t.flags\t= DM_FLAG_PRE_RELOC,\n };\n+\n+#ifdef CONFIG_DEBUG_UART_GOLDFISH\n+\n+#include <debug_uart.h>\n+\n+static inline void _debug_uart_init(void)\n+{\n+}\n+\n+static inline void _debug_uart_putc(int ch)\n+{\n+\tvoid __iomem *base = (void __iomem *)CONFIG_VAL(DEBUG_UART_BASE);\n+\n+\t__raw_writel(ch, base + GOLDFISH_TTY_PUT_CHAR);\n+}\n+\n+DEBUG_UART_FUNCS\n+#endif\n", "prefixes": [ "v2", "1/3" ] }