get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2197808,
    "url": "http://patchwork.ozlabs.org/api/1.0/patches/2197808/?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": "<20260218-lpuart-fix-rxfe-offset-v1-2-86a78b224f13@armadeus.com>",
    "date": "2026-02-18T14:59:19",
    "name": "[2/2] serial: lpuart: handle Overrun flag",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": false,
    "hash": "181bee80656514d275be300db05b2723f57eafe9",
    "submitter": {
        "id": 47919,
        "url": "http://patchwork.ozlabs.org/api/1.0/people/47919/?format=api",
        "name": "Sébastien Szymanski",
        "email": "sebastien.szymanski@armadeus.com"
    },
    "delegate": {
        "id": 151988,
        "url": "http://patchwork.ozlabs.org/api/1.0/users/151988/?format=api",
        "username": "festevam",
        "first_name": "Fabio",
        "last_name": "Estevam",
        "email": "festevam@gmail.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260218-lpuart-fix-rxfe-offset-v1-2-86a78b224f13@armadeus.com/mbox/",
    "series": [
        {
            "id": 492566,
            "url": "http://patchwork.ozlabs.org/api/1.0/series/492566/?format=api",
            "date": "2026-02-18T14:59:17",
            "name": "serial: lpuart: fix RXFE filed offset and handle Overrun flag",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/492566/mbox/"
        }
    ],
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2197808/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=armadeus.com header.i=@armadeus.com header.a=rsa-sha256\n header.s=ovhmo103079-selector1 header.b=L00mYFCq;\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=armadeus.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=armadeus.com header.i=@armadeus.com\n header.b=\"L00mYFCq\";\n\tdkim-atps=neutral",
            "phobos.denx.de;\n dmarc=none (p=none dis=none) header.from=armadeus.com",
            "phobos.denx.de; spf=pass\n smtp.mailfrom=sebastien.szymanski@armadeus.com",
            "garm.ovh; auth=pass\n (GARM-110S00444eeeb47-015e-422b-b338-c6c3197b9520,\n BCC414E58A87BDF8F3171654DA18834A20810328)\n smtp.auth=sebastien.szymanski@armadeus.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 4fGKS15pbsz1xpl\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 19 Feb 2026 02:00:01 +1100 (AEDT)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id C68E083D5D;\n\tWed, 18 Feb 2026 15:59:44 +0100 (CET)",
            "by phobos.denx.de (Postfix, from userid 109)\n id 2A88A802C1; Wed, 18 Feb 2026 15:59:42 +0100 (CET)",
            "from 8.mo561.mail-out.ovh.net (8.mo561.mail-out.ovh.net\n [87.98.172.249])\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 E7E8E83AC5\n for <u-boot@lists.denx.de>; Wed, 18 Feb 2026 15:59:37 +0100 (CET)",
            "from director7.ghost.mail-out.ovh.net (unknown [10.109.254.71])\n by mo561.mail-out.ovh.net (Postfix) with ESMTP id 4fGKRY3XGPz5yMZ\n for <u-boot@lists.denx.de>; Wed, 18 Feb 2026 14:59:37 +0000 (UTC)",
            "from ghost-submission-7d8d68f679-62b48 (unknown [10.110.101.145])\n by director7.ghost.mail-out.ovh.net (Postfix) with ESMTPS id 2ADF5C01C9;\n Wed, 18 Feb 2026 14:59:37 +0000 (UTC)",
            "from armadeus.com ([37.59.142.110])\n by ghost-submission-7d8d68f679-62b48 with ESMTPSA\n id hnYEB9jTlWnVjAAAa7HxRw:T3\n (envelope-from <sebastien.szymanski@armadeus.com>);\n Wed, 18 Feb 2026 14:59:37 +0000"
        ],
        "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 RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,\n RCVD_IN_VALIDITY_RPBL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham\n autolearn_force=no version=3.4.2",
        "X-OVh-ClientIp": "86.243.239.229",
        "From": "=?utf-8?q?S=C3=A9bastien_Szymanski?= <sebastien.szymanski@armadeus.com>",
        "Date": "Wed, 18 Feb 2026 15:59:19 +0100",
        "Subject": "[PATCH 2/2] serial: lpuart: handle Overrun flag",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "8bit",
        "Message-Id": "<20260218-lpuart-fix-rxfe-offset-v1-2-86a78b224f13@armadeus.com>",
        "References": "<20260218-lpuart-fix-rxfe-offset-v1-0-86a78b224f13@armadeus.com>",
        "In-Reply-To": "<20260218-lpuart-fix-rxfe-offset-v1-0-86a78b224f13@armadeus.com>",
        "To": "u-boot@lists.denx.de",
        "Cc": "Tom Rini <trini@konsulko.com>, Peng Fan <peng.fan@nxp.com>,\n  Andrew Goodbody <andrew.goodbody@linaro.org>,\n  Kory Maincent <kory.maincent@bootlin.com>,\n  Julien Boibessot <julien.boibessot@armadeus.com>, =?utf-8?q?S=C3=A9bastien?=\n\t=?utf-8?q?_Szymanski?= <sebastien.szymanski@armadeus.com>",
        "X-Mailer": "b4 0.14.3",
        "x-ovh-tracer-id": "15265232415330326217",
        "X-VR-SPAMSTATE": "OK",
        "X-VR-SPAMSCORE": "-100",
        "X-VR-SPAMCAUSE": "\n dmFkZTGcdss9VIj/m/mQGm7b1Z6eoMkur1vDkfIGe5Y4nnkgxx0BvfE5VBX1jNQMlL7rU0Vdj70IrRf6iM1l38tVWhCJpsRRULLGaFMla95dOQFPtBf8mgT9OImbd3e9nxDTWWVRke8mu7zedMcVmgoroOkzzRhgfFz4xkiyjWkuhADrBmInZg8ByJFX8dlo7TyjdupzitPbrcrbeZeC+wlfbFFKDlKYdueZaEgZH+wS9Rp9XbOsXMIobp1zG/rybsn2hSjKXdc7C87iYXe0J5NbRKA5k9lLmE/ay54DViP6pBSycUyXfcJ/H+TUtURyDzbUuROI1QH08FdNYbPb3P4GkZTdPBD64aLphV4i+Mg8fv4E31NVHyB/3nTcqGHSCmpunnAPch211Yw/jVz3hbdt0ZoxERTwMnS+u8/wfA+EVGx1fhybXLH5sgL/SAPwqpweMU2ln6rziPC8xn67lmEXGc8+cZgtyB42i2H25e178Ivn0g10FBou5saN3ekC6UKyiZDV8f97CgdOkyll3ChSXIV5eeRHooHFaXh4APQoEfMP1UquZj+i+xq+T5OnP1JCH26Cwi2BYvJI2p7Osd3Q2xO+fpml38agKYl6egSeuW6+Hz5melax8X9j9vAY0w5XPyfwZOqfUC3qdabCeo7B0gRIjqLAXBGoZcBP/UyP0TD8pQ",
        "DKIM-Signature": "a=rsa-sha256; bh=XLBcE69QgulgZeJPg45m/GWR90yIvjwGuO3jd7zFZ44=;\n c=relaxed/relaxed; d=armadeus.com; h=From;\n s=ovhmo103079-selector1; t=1771426777; v=1;\n b=L00mYFCq6q1fJgIVnzVQScaaTaJHCutnbgr5wFYw26iSuEYQFoEiGQldeht+uea/2e0cKhtf\n aEX1qepOavRC8IoUB8LrCdUJGXLc0L5dsk0GkVQ6pd9Enywdhsy7c+vXwoM7w9Y4cz+z+dj4Gwg\n 8R8hx7fe+7QXqa98HCPZFOmPTC3KELCsNGHFK/j9G6G9Tw1pNi2T0x0Xiho48OKKAeZjV+jDawR\n If9Fnw15iJiEtbeFE/Ohgugp58K0lvP6Tlfg5SvmatS8QeTvCotjeBSRx5f5N0r1f1hQ/DN5hZp\n W0ABsl05ngWqPW0iFnzDzhTRpEvIk+imHYDMh046RXDhQ==",
        "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 receive FIFO may overflow if data are sent while U-Boot is still\nbooting. In that case, the Overrun flag (STAT[19]) is set and no\nadditional data is stored in the receive FIFO and the user cannot get\naccess to the U-Boot prompt.\n\nFix this by clearing the Overrun flag in _lpuart32_serial_tstc()\n\nSigned-off-by: Sébastien Szymanski <sebastien.szymanski@armadeus.com>\n---\n drivers/serial/serial_lpuart.c | 7 +++++--\n 1 file changed, 5 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/drivers/serial/serial_lpuart.c b/drivers/serial/serial_lpuart.c\nindex bbce59443388..0728feccd131 100644\n--- a/drivers/serial/serial_lpuart.c\n+++ b/drivers/serial/serial_lpuart.c\n@@ -367,10 +367,13 @@ static int _lpuart32_serial_putc(struct lpuart_serial_plat *plat,\n static int _lpuart32_serial_tstc(struct lpuart_serial_plat *plat)\n {\n \tstruct lpuart_fsl_reg32 *base = plat->reg;\n-\tu32 water;\n+\tu32 water, stat;\n \n-\tlpuart_read32(plat->flags, &base->water, &water);\n+\tlpuart_read32(plat->flags, &base->stat, &stat);\n+\tif (stat & STAT_OR)\n+\t\tlpuart_write32(plat->flags, &base->stat, STAT_OR);\n \n+\tlpuart_read32(plat->flags, &base->water, &water);\n \tif ((water >> 24) == 0)\n \t\treturn 0;\n \n",
    "prefixes": [
        "2/2"
    ]
}