get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2234876,
    "url": "http://patchwork.ozlabs.org/api/1.2/patches/2234876/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260508082132.25476-6-Alexander.Feilke@ew.tq-group.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": "<20260508082132.25476-6-Alexander.Feilke@ew.tq-group.com>",
    "list_archive_url": null,
    "date": "2026-05-08T08:21:29",
    "name": "[5/8] rtc: pcf85063: keep the divider chain in reset during set_time",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "e24e4cfba175f54e2ce9ff677e08c5991f3c6a54",
    "submitter": {
        "id": 92142,
        "url": "http://patchwork.ozlabs.org/api/1.2/people/92142/?format=api",
        "name": "Feilke, Alexander",
        "email": "Alexander.Feilke@ew.tq-group.com"
    },
    "delegate": {
        "id": 3651,
        "url": "http://patchwork.ozlabs.org/api/1.2/users/3651/?format=api",
        "username": "trini",
        "first_name": "Tom",
        "last_name": "Rini",
        "email": "trini@ti.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260508082132.25476-6-Alexander.Feilke@ew.tq-group.com/mbox/",
    "series": [
        {
            "id": 503347,
            "url": "http://patchwork.ozlabs.org/api/1.2/series/503347/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=503347",
            "date": "2026-05-08T08:21:24",
            "name": "rtc: pcf85036: improve spec coherence and extend features",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/503347/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2234876/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2234876/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=fail reason=\"signature verification failed\" (2048-bit key;\n unprotected) header.d=ew.tq-group.com header.i=@ew.tq-group.com\n header.a=rsa-sha256 header.s=default2602 header.b=JxBACRTY;\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=fail (p=quarantine dis=none) header.from=ew.tq-group.com",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de",
            "phobos.denx.de;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n unprotected) header.d=ew.tq-group.com header.i=@ew.tq-group.com\n header.b=\"JxBACRTY\";\n\tdkim-atps=neutral",
            "phobos.denx.de; dmarc=pass (p=quarantine dis=none)\n header.from=ew.tq-group.com",
            "phobos.denx.de; spf=pass\n smtp.mailfrom=Alexander.Feilke@ew.tq-group.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 4gBhtQ4KcFz1yJq\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 08 May 2026 18:22:06 +1000 (AEST)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 06B8584C19;\n\tFri,  8 May 2026 10:21:46 +0200 (CEST)",
            "by phobos.denx.de (Postfix, from userid 109)\n id AD98E84C5C; Fri,  8 May 2026 10:21:45 +0200 (CEST)",
            "from www537.your-server.de (www537.your-server.de [188.40.3.216])\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 8F26184C22\n for <u-boot@lists.denx.de>; Fri,  8 May 2026 10:21:42 +0200 (CEST)",
            "from sslproxy06.your-server.de ([78.46.172.3])\n by www537.your-server.de with esmtpsa  (TLS1.3) tls TLS_AES_256_GCM_SHA384\n (Exim 4.96.2) (envelope-from <Alexander.Feilke@ew.tq-group.com>)\n id 1wLGSs-0005oC-0L; Fri, 08 May 2026 10:21:42 +0200",
            "from localhost ([127.0.0.1])\n by sslproxy06.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384\n (Exim 4.96) (envelope-from <Alexander.Feilke@ew.tq-group.com>)\n id 1wLGSs-000P5H-0k; Fri, 08 May 2026 10:21:41 +0200"
        ],
        "X-Spam-Checker-Version": "SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de",
        "X-Spam-Level": "",
        "X-Spam-Status": "No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,\n DKIM_VALID,DKIM_VALID_AU,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; q=dns/txt; c=relaxed/relaxed;\n d=ew.tq-group.com; s=default2602; h=Content-Transfer-Encoding:MIME-Version:\n References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:\n Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From:\n Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID;\n bh=Y/GFjdU0NvDdO5Ny7GyGr5iO7AShRAK7kbaytdNmgM8=; b=JxBACRTYl3Oz6DglSdzmR0nyyx\n I2OWJwkvadOBwLT9uHe7ruqMM8qLBAtia0wcuICCkaiCr5Tm19eRL/7vMIlgZFzElKIl7aPfIkqI4\n 3oyCWlRU64/vcRx8a/hivyiTL/WCIymUhBdtAvoLZxVnFGCvYJtpXb4FinH9qh+sQU0XaQJMgdWkC\n E8aIs0aAuwSoJW3R1DWr5mmsBdXCL/C4tM06oixoMmNZhTmSnyweGkbmUF3W/gVlHlYEiPEvJ5GCg\n MFsffyEC0L6VoU441Nfa+CXlXe8203+sIq+ZAFUZ0ViRBWrhjEfR7uHCoGPR7qhA8mcEa2myzQRbs\n eYO0Fjkg==;",
        "From": "Alexander Feilke <Alexander.Feilke@ew.tq-group.com>",
        "To": "u-boot@lists.denx.de",
        "Cc": "u-boot@ew.tq-group.com,\n Alexander Feilke <alexander.feilke@ew.tq-group.com>,\n Tom Rini <trini@konsulko.com>",
        "Subject": "[PATCH 5/8] rtc: pcf85063: keep the divider chain in reset during\n set_time",
        "Date": "Fri,  8 May 2026 10:21:29 +0200",
        "Message-Id": "<20260508082132.25476-6-Alexander.Feilke@ew.tq-group.com>",
        "X-Mailer": "git-send-email 2.34.1",
        "In-Reply-To": "<20260508082132.25476-1-Alexander.Feilke@ew.tq-group.com>",
        "References": "<20260508082132.25476-1-Alexander.Feilke@ew.tq-group.com>",
        "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": "From: Alexander Feilke <alexander.feilke@ew.tq-group.com>\n\nSync from upstream linux v6.19.\n\nSigned-off-by: Alexander Feilke <alexander.feilke@ew.tq-group.com>\n---\n drivers/rtc/pcf85063.c | 25 ++++++++++++++++++++++++-\n 1 file changed, 24 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/rtc/pcf85063.c b/drivers/rtc/pcf85063.c\nindex 06c85d939e0..0b336b8c5ee 100644\n--- a/drivers/rtc/pcf85063.c\n+++ b/drivers/rtc/pcf85063.c\n@@ -68,12 +68,25 @@ static int pcf85063_get_time(struct udevice *dev, struct rtc_time *tm)\n static int pcf85063_set_time(struct udevice *dev, const struct rtc_time *tm)\n {\n \tu8 regs[7];\n+\tint rc;\n \n \tif (tm->tm_year < 2000 || tm->tm_year > 2099) {\n \t\tdev_err(dev, \"Year must be between 2000 and 2099.\\n\");\n \t\treturn -EINVAL;\n \t}\n \n+\t/*\n+\t * to accurately set the time, reset the divider chain and keep it in\n+\t * reset state until all time/date registers are written\n+\t */\n+\trc = dm_i2c_reg_clrset(dev, PCF85063_REG_CTRL1,\n+\t\t\t       PCF85063_REG_CTRL1_EXT_TEST |\n+\t\t\t       PCF85063_REG_CTRL1_STOP,\n+\t\t\t       PCF85063_REG_CTRL1_STOP);\n+\n+\tif (rc)\n+\t\treturn rc;\n+\n \t/* hours, minutes and seconds */\n \tregs[0] = bin2bcd(tm->tm_sec) & (~PCF85063_REG_SC_OS);\n \n@@ -91,7 +104,17 @@ static int pcf85063_set_time(struct udevice *dev, const struct rtc_time *tm)\n \t/* adjust register to match rtc_time spec */\n \tregs[6] = bin2bcd(tm->tm_year % 100);\n \n-\treturn dm_i2c_write(dev, PCF85063_REG_SC, regs, sizeof(regs));\n+\trc = dm_i2c_write(dev, PCF85063_REG_SC, regs, sizeof(regs));\n+\tif (rc)\n+\t\treturn rc;\n+\n+\t/*\n+\t * Write the control register as a separate action since the size of\n+\t * the register space is different between the PCF85063TP and\n+\t * PCF85063A devices. The rollover point can not be used.\n+\t */\n+\treturn dm_i2c_reg_clrset(dev, PCF85063_REG_CTRL1,\n+\t\t\t\t PCF85063_REG_CTRL1_STOP, 0);\n }\n \n static int pcf85063_reset(struct udevice *dev)\n",
    "prefixes": [
        "5/8"
    ]
}