get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2120191,
    "url": "http://patchwork.ozlabs.org/api/patches/2120191/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20250807052832.2169422-1-JJLIU0@nuvoton.com/",
    "project": {
        "id": 18,
        "url": "http://patchwork.ozlabs.org/api/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": "<20250807052832.2169422-1-JJLIU0@nuvoton.com>",
    "list_archive_url": null,
    "date": "2025-08-07T05:28:32",
    "name": "[v2] net: designware: Fix get_timer value overflow",
    "commit_ref": "59ec495f6c645c80d934034ffe48adb2ea75839a",
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "0589039c373b947ef9c66ee25a68f2ad609e588a",
    "submitter": {
        "id": 83586,
        "url": "http://patchwork.ozlabs.org/api/people/83586/?format=api",
        "name": "Jim Liu",
        "email": "jim.t90615@gmail.com"
    },
    "delegate": {
        "id": 157425,
        "url": "http://patchwork.ozlabs.org/api/users/157425/?format=api",
        "username": "jforissier",
        "first_name": "Jerome",
        "last_name": "Forissier",
        "email": "jerome.forissier@linaro.org"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20250807052832.2169422-1-JJLIU0@nuvoton.com/mbox/",
    "series": [
        {
            "id": 468216,
            "url": "http://patchwork.ozlabs.org/api/series/468216/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=468216",
            "date": "2025-08-07T05:28:32",
            "name": "[v2] net: designware: Fix get_timer value overflow",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/468216/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2120191/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2120191/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 (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20230601 header.b=SED6gD1v;\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=gmail.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=gmail.com header.i=@gmail.com header.b=\"SED6gD1v\";\n\tdkim-atps=neutral",
            "phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=gmail.com",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=jim.t90615@gmail.com"
        ],
        "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 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4byG1T4r86z1xvJ\n\tfor <incoming@patchwork.ozlabs.org>; Thu,  7 Aug 2025 15:29:17 +1000 (AEST)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id E816D83BD2;\n\tThu,  7 Aug 2025 07:29:21 +0200 (CEST)",
            "by phobos.denx.de (Postfix, from userid 109)\n id 403C383BDF; Thu,  7 Aug 2025 07:29:15 +0200 (CEST)",
            "from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com\n [IPv6:2607:f8b0:4864:20::62a])\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 7E53A83BC9\n for <u-boot@lists.denx.de>; Thu,  7 Aug 2025 07:28:57 +0200 (CEST)",
            "by mail-pl1-x62a.google.com with SMTP id\n d9443c01a7336-2406fe901fcso6152085ad.3\n for <u-boot@lists.denx.de>; Wed, 06 Aug 2025 22:28:57 -0700 (PDT)",
            "from cs20-buildserver.lan ([2402:7500:400:60db:2e0:4cff:fe68:863])\n by smtp.gmail.com with ESMTPSA id\n d9443c01a7336-241d1f0e7d8sm174192685ad.42.2025.08.06.22.28.53\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Wed, 06 Aug 2025 22:28:55 -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=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,\n DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT,\n FREEMAIL_FROM,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS\n autolearn=ham autolearn_force=no version=3.4.2",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20230601; t=1754544536; x=1755149336; 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=lg3NMZvC4u7rUhSAg1d7YNCwHdT9VdSv/A65meP55u4=;\n b=SED6gD1v36DQ3wVayXJsByF45RRXfcTsdKs/n7Su6MxBCxt0nNo8dYgxlz5HuIqWzk\n cF2l2EQY5F6oiHCZCVIwVQEdEJVd9HQo4/1Q7rMihyS/O/Lai+4MRWgejdNzKmj2KKjN\n pq67AQ1jnqyoj48nA1Nd1uq/Q/kV2SbILxL/Sb6Mix1aCZ6Y9qiUD6WfBS/LBRbX/xXW\n acBY2lziGSwteBlGHVh7kLFKldplv1PqStNU3mqCajhgzqfiZbLyxp3CF7HczvMr0oqf\n wgFsd5VDL6RcMWCNg9VCRBYxDrLUjnTw/zjMe5WzhuVRV1mdIWcmL0XyriqU8aOzAtwu\n /Cpw==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1754544536; x=1755149336;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:x-gm-message-state:from:to:cc:subject:date:message-id\n :reply-to;\n bh=lg3NMZvC4u7rUhSAg1d7YNCwHdT9VdSv/A65meP55u4=;\n b=FJZi1BYEJqytpsjvdV4ujW80PSIAyj6ZlvLz584qax3Y//tB1ljLT4MN93DtHW4yjf\n 6731DebU6dXOjz26bMe+pefz63GQQzjgFBBlJei1seJ8wI6mGZgJqC8TYZcQf2y/df1Z\n qrmEgJuSOx9Wt1zINZT+Htb0bIKhLhtOZjuPHMLvZG02sPz+DH7gR92YfbHIVT4n/9Y2\n XP6gdsN8ym4eNMKrt0yN7x8wL/Vh5POsYf8zTNPC4HCpLr55NB5QC0ed0U5KtLnM2c1w\n vVbPlINZ26cfa+uyczy/jhMHTRjosegIY/9CYoIe/pkbxa9VOXVcdHqaEl+tVzupOyiq\n lb0w==",
        "X-Gm-Message-State": "AOJu0YyCZt6pQirSKNLHqFsisP35VsbUfvZazkXYySQSYaY6AclcISNJ\n J+0P9b+/mTA/eZmK1Y2pK0Cz4wV9Ir8C+XNVSu2SxjCoWQD8ZRxijI04",
        "X-Gm-Gg": "ASbGncur2WIUD/Mg37eLQysC9/aEGbvgdTJsChaoU0imRIVyjzogyHbeg26rRlz9iQ9\n I4G+Z3/lCvEtN6y+vUJVBwLVfY0ChkhiMRbg+KpJ0jp6SHnjR95rbTyYEgXUmfM1IFlmfRvBytu\n lP5KW9wl9pRy5//J6kHN85AeQ8nlVvQpSTOeoSv3xRxzpGlh44DeAGRYHqbossQ3AtgzY5kJVqb\n rCMKCU+te//1qQayTPVs/3qHl4azF9G11kKcRYFGP2Y/nS7u2IOWS72OrwW1wbXICjfozVyaKkd\n Eu2hWzK8+g0nU4mbLqt6WraNgi9wPlZPug4ZiUZpPMKztqEFGrwFB8DUf+4syeDoP7MEeDJNixJ\n JMIC6MLORHCA4XeH0SBpSYMrKvtL9brR7wQ==",
        "X-Google-Smtp-Source": "\n AGHT+IFK/+DKmAdRV0MfyFUmS6e0/Hcx3WYbqwv4h6pejnltkMPo7nmeK6kUx1ZCL7NLdbqNvY/Wrw==",
        "X-Received": "by 2002:a17:902:e54b:b0:240:7fcf:ced7 with SMTP id\n d9443c01a7336-242a0aa6bd7mr82459105ad.21.1754544535759;\n Wed, 06 Aug 2025 22:28:55 -0700 (PDT)",
        "From": "Jim Liu <jim.t90615@gmail.com>",
        "X-Google-Original-From": "Jim Liu <JJLIU0@nuvoton.com>",
        "To": "JJLIU0@nuvoton.com, jim.t90615@gmail.com, trini@konsulko.com,\n joe.hershberger@ni.com, rfried.dev@gmail.com",
        "Cc": "u-boot@lists.denx.de,\n\tStanley Chu <yschu@nuvoton.com>",
        "Subject": "[PATCH v2] net: designware: Fix get_timer value overflow",
        "Date": "Thu,  7 Aug 2025 13:28:32 +0800",
        "Message-Id": "<20250807052832.2169422-1-JJLIU0@nuvoton.com>",
        "X-Mailer": "git-send-email 2.34.1",
        "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": "get_timer returns a ulong value representing system time in ms.\nOn a 64-bit system, this ulong value is 64 bits long. However,\nthe driver stores it in a 32-bit unsigned integer, which overflows\nafter 49 days up time, causing the driver to get an incorrect time.\n\nReplace the unsigned int variable with a ulong type to properly store\nthe value returned by get_timer.\n\nSigned-off-by: Stanley Chu <yschu@nuvoton.com>\nSigned-off-by: Jim Liu <JJLIU0@nuvoton.com>\n---\n drivers/net/designware.c | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/drivers/net/designware.c b/drivers/net/designware.c\nindex fce3ef910cb..7ecedc3d7f0 100644\n--- a/drivers/net/designware.c\n+++ b/drivers/net/designware.c\n@@ -486,7 +486,7 @@ static int dw_adjust_link(struct dw_eth_dev *priv, struct eth_mac_regs *mac_p,\n \n #ifdef CONFIG_ARCH_NPCM8XX\n \tif (phydev->interface == PHY_INTERFACE_MODE_SGMII) {\n-\t\tunsigned int start;\n+\t\tulong start;\n \n \t\t/* Indirect access to VR_MII_MMD registers */\n \t\twritew((VR_MII_MMD >> 9), PCS_BA + PCS_IND_AC);\n@@ -532,7 +532,7 @@ int designware_eth_init(struct dw_eth_dev *priv, u8 *enetaddr)\n {\n \tstruct eth_mac_regs *mac_p = priv->mac_regs_p;\n \tstruct eth_dma_regs *dma_p = priv->dma_regs_p;\n-\tunsigned int start;\n+\tulong start;\n \tint ret;\n \n \twritel(readl(&dma_p->busmode) | DMAMAC_SRST, &dma_p->busmode);\n",
    "prefixes": [
        "v2"
    ]
}