get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2223579,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2223579/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/rtc-linux/patch/20260415160610.127155-2-apokusinski01@gmail.com/",
    "project": {
        "id": 9,
        "url": "http://patchwork.ozlabs.org/api/1.1/projects/9/?format=api",
        "name": "Linux RTC development",
        "link_name": "rtc-linux",
        "list_id": "linux-rtc.vger.kernel.org",
        "list_email": "linux-rtc@vger.kernel.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": ""
    },
    "msgid": "<20260415160610.127155-2-apokusinski01@gmail.com>",
    "date": "2026-04-15T16:06:11",
    "name": "rtc: abx80x: fix the RTC_VL_CLR clearing all status flags",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "2479db4923881bbebdea9cf6f953b54479249fb0",
    "submitter": {
        "id": 89248,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/89248/?format=api",
        "name": "Antoni Pokusinski",
        "email": "apokusinski01@gmail.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/rtc-linux/patch/20260415160610.127155-2-apokusinski01@gmail.com/mbox/",
    "series": [
        {
            "id": 500012,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/500012/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/rtc-linux/list/?series=500012",
            "date": "2026-04-15T16:06:11",
            "name": "rtc: abx80x: fix the RTC_VL_CLR clearing all status flags",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/500012/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2223579/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2223579/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "\n <linux-rtc+bounces-6342-incoming=patchwork.ozlabs.org@vger.kernel.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "linux-rtc@vger.kernel.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=20251104 header.b=HhLb7LuM;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=172.234.253.10; helo=sea.lore.kernel.org;\n envelope-from=linux-rtc+bounces-6342-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)",
            "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com\n header.b=\"HhLb7LuM\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=209.85.128.44",
            "smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com",
            "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=gmail.com"
        ],
        "Received": [
            "from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])\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 4fwmMn1qxXz1yCv\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 16 Apr 2026 02:10:45 +1000 (AEST)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sea.lore.kernel.org (Postfix) with ESMTP id BEF54300FED4\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 15 Apr 2026 16:08:43 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 4ECEB31AAA8;\n\tWed, 15 Apr 2026 16:08:43 +0000 (UTC)",
            "from mail-wm1-f44.google.com (mail-wm1-f44.google.com\n [209.85.128.44])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id F1EEA381AE0\n\tfor <linux-rtc@vger.kernel.org>; Wed, 15 Apr 2026 16:08:41 +0000 (UTC)",
            "by mail-wm1-f44.google.com with SMTP id\n 5b1f17b1804b1-488aa77a06eso114639645e9.0\n        for <linux-rtc@vger.kernel.org>; Wed, 15 Apr 2026 09:08:41 -0700 (PDT)",
            "from antoniarch ([37.163.125.81])\n        by smtp.gmail.com with ESMTPSA id\n 5b1f17b1804b1-488f0ec6cc6sm23482975e9.29.2026.04.15.09.08.38\n        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n        Wed, 15 Apr 2026 09:08:39 -0700 (PDT)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1776269323; cv=none;\n b=KUsO/J7dcbJDSmLVcxxzMJbWPmU3YMV8Cl9VsBnb4l0lhZnxLNL4SOWSY1d/rZlEAL0xc9cCb+5IrWa6n01TZuOJXrt3DyhoP/NzSKAKvwqdOs/zXs3snLW5UUrDDicrneb3FDYr1ZZjUtmQD+VUcVpQpjTvUZo4rneMUcTAK7g=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1776269323; c=relaxed/simple;\n\tbh=jMqQvHDH2lwJH+8MK75B6OZ9tIA2KP8DnA2nTclqSbk=;\n\th=From:To:Cc:Subject:Date:Message-ID:MIME-Version;\n b=dpbiM8/s5Nzchn8MCLY1cFwlXd/CKjJrVBB2Upi7BCIj/5ZV3utljNclnDMqQei9o7sw5cS8Tjxog2uGrgNH22R8zVgrZUWK53nQFtuVjJuspuqt3uCMyFobmu2Ml+Xr9XkJUidaxrPC7xtZh1VnRsaPTHq27H8rMXpEos5v7Nw=",
        "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com;\n spf=pass smtp.mailfrom=gmail.com;\n dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com\n header.b=HhLb7LuM; arc=none smtp.client-ip=209.85.128.44",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=gmail.com; s=20251104; t=1776269320; x=1776874120;\n darn=vger.kernel.org;\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=0nGy8cs9TuK82zOcS8+ppBLbL8+nzVMmWL3xkF4nuKs=;\n        b=HhLb7LuMp/wRTe33M6tsZTVkRNbXO8IePy0FHMJBJ2me+iwByr+nkMY84gsV+hXhkX\n         qTDp8Go6j73eyd0xm2VlMlQhXxdZTJDLsFfNE6zwm4uTow0KsycLFfTOiNnJhcpUA+iQ\n         BqgWI5l5iGNUJHt0TTxQjEhCmEMY+Czhgk36oFkW9FhHsfN04FhuW4xUdG07+2lIWHr4\n         TBmgDExv0w2w8bH78N5hCl6jIW8XSp7DlhNI+CZ/2u4tnm01m3QoMoz44mDdCUr46dgL\n         PtZHnKb8NEWcINGCNZncUJB5xU35rS+fV5TJtA6BJu3Xkctp/RigpAmv7a1PToDx3k9C\n         KmTA==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20251104; t=1776269320; x=1776874120;\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=0nGy8cs9TuK82zOcS8+ppBLbL8+nzVMmWL3xkF4nuKs=;\n        b=d8NvZAKPqvhBl/lLjFkHoAlcScb399wfSKeszU0i25j8xjS2RBSGKsRLkPcxEEgSgu\n         o2pzPB6Wv83mj+GCmJgPYNAFH8n3Yb+gXrXqBq8+ZXWcs3jbs6pFWjeCQWUvSz10lxcg\n         +qKa8jFa0yXXHbZvOYJUOduuHQwKcJzE003jwEHy5tMyNATz9J310WMI8L8ox5vud2mi\n         edruQu1uLpSLcHxTaHCB0sS2g8ST8cGCPyEnq3YTq1BlDifbR0VExJ8hSD+Glm9G5hEA\n         llYSfQhfTPfUlN04b0w7k+PtI/Ra9Z1ypHDOmPu8/2wa8DMg5hhB/Ln+9QcTeDHG8aff\n         103g==",
        "X-Forwarded-Encrypted": "i=1;\n AFNElJ+uoqWCPkvWWz2fOHIOQaFPuf/sXntbruaLoH40jGvuncyRD+gOb9eKUcM695/oYGuK10R0onUDrss=@vger.kernel.org",
        "X-Gm-Message-State": "AOJu0YwYBpTbSqewN3hJMkMvWuj5ZxPGnmE34tENBe+TU1jVwgKcBgHa\n\tvdBBFT/LV8k45PXp3z+9y7nWpl5Rvd5ICagT9ayHXkFsHjAyMETpk/UfZHQC+Zh/",
        "X-Gm-Gg": "AeBDietYgqLqHlZ61THfF4CkTr9turq96S0jhC7nJhT679SwQ4LDbS61FgSQxIf5jyG\n\t2GfdaPchMy+3Yg1CEz0FxOyq0rKK7ui2DGQ8BKAieBe12scVXr6CuCuuoiSMqB4F+3fr2C+1bsI\n\tu67FPFzWN6D1iQDMFqV0RXpjNOVvSJvKMsN7E/7rJ6Khv9vXi1xFUOGtxFwtEmdpUwJnLXGVLbs\n\tLKOw8Q8Vy8jI02DM/stJgpIhu0Mw2aXpJvqA7t74/G6ICysV22WtI7KXlhxyShDPTdy54jNA/XJ\n\tNKq9CPnWjruNWBgbi42xd0juapjnuSWYa/MVP7S9a3sFK6m71A0O1gn0RfS+hASwLg3ZlAp1cGY\n\tz/zPX1ckFV9Wi9de+7Z+SgihWdCe6M/0AsGu+6d818Esm7BnMdxBBxmxysGQuZ1QAOVBYpeBJ6/\n\td7sgDpQSrWHQKsFrCKXBbi3unJeg==",
        "X-Received": "by 2002:a05:600c:1f83:b0:488:a82f:bba9 with SMTP id\n 5b1f17b1804b1-488d6864dd2mr310638985e9.22.1776269320058;\n        Wed, 15 Apr 2026 09:08:40 -0700 (PDT)",
        "From": "Antoni Pokusinski <apokusinski01@gmail.com>",
        "To": "alexandre.belloni@bootlin.com",
        "Cc": "marex@denx.de,\n\tlinux-rtc@vger.kernel.org,\n\tlinux-kernel@vger.kernel.org,\n\tAntoni Pokusinski <apokusinski01@gmail.com>",
        "Subject": "[PATCH] rtc: abx80x: fix the RTC_VL_CLR clearing all status flags",
        "Date": "Wed, 15 Apr 2026 18:06:11 +0200",
        "Message-ID": "<20260415160610.127155-2-apokusinski01@gmail.com>",
        "X-Mailer": "git-send-email 2.53.0",
        "Precedence": "bulk",
        "X-Mailing-List": "linux-rtc@vger.kernel.org",
        "List-Id": "<linux-rtc.vger.kernel.org>",
        "List-Subscribe": "<mailto:linux-rtc+subscribe@vger.kernel.org>",
        "List-Unsubscribe": "<mailto:linux-rtc+unsubscribe@vger.kernel.org>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit"
    },
    "content": "The RTC_VL_CLR ioctl intends to clear only the battery low flag (BLF),\nhowever the current implementation writes 0 to the status register,\nclearing all status bits.\n\nFix this by writing back the masked status value so that only BLF is\ncleared, preserving other status flags.\n\nFixes: ffe1c5a2d427 (\"rtc: abx80x: Implement RTC_VL_READ,CLR ioctls\")\nSigned-off-by: Antoni Pokusinski <apokusinski01@gmail.com>\n---\n drivers/rtc/rtc-abx80x.c | 3 ++-\n 1 file changed, 2 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/rtc/rtc-abx80x.c b/drivers/rtc/rtc-abx80x.c\nindex 3fee27914ba8..5c2424a00b7e 100644\n--- a/drivers/rtc/rtc-abx80x.c\n+++ b/drivers/rtc/rtc-abx80x.c\n@@ -545,7 +545,8 @@ static int abx80x_ioctl(struct device *dev, unsigned int cmd, unsigned long arg)\n \n \t\tstatus &= ~ABX8XX_STATUS_BLF;\n \n-\t\ttmp = i2c_smbus_write_byte_data(client, ABX8XX_REG_STATUS, 0);\n+\t\ttmp = i2c_smbus_write_byte_data(client, ABX8XX_REG_STATUS,\n+\t\t\t\t\t\tstatus);\n \t\tif (tmp < 0)\n \t\t\treturn tmp;\n \n",
    "prefixes": []
}