get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2221808,
    "url": "http://patchwork.ozlabs.org/api/patches/2221808/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20260410120318.386500288@kernel.org/",
    "project": {
        "id": 2,
        "url": "http://patchwork.ozlabs.org/api/projects/2/?format=api",
        "name": "Linux PPC development",
        "link_name": "linuxppc-dev",
        "list_id": "linuxppc-dev.lists.ozlabs.org",
        "list_email": "linuxppc-dev@lists.ozlabs.org",
        "web_url": "https://github.com/linuxppc/wiki/wiki",
        "scm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git",
        "webscm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/",
        "list_archive_url": "https://lore.kernel.org/linuxppc-dev/",
        "list_archive_url_format": "https://lore.kernel.org/linuxppc-dev/{}/",
        "commit_url_format": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?id={}"
    },
    "msgid": "<20260410120318.386500288@kernel.org>",
    "list_archive_url": "https://lore.kernel.org/linuxppc-dev/20260410120318.386500288@kernel.org/",
    "date": "2026-04-10T12:19:27",
    "name": "[12/38] wifi: wil6210: Replace get_cyles() usage",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "134f8c09e0c54abde3e18cd89f27338d0ef386e8",
    "submitter": {
        "id": 92397,
        "url": "http://patchwork.ozlabs.org/api/people/92397/?format=api",
        "name": "Thomas Gleixner",
        "email": "tglx@kernel.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20260410120318.386500288@kernel.org/mbox/",
    "series": [
        {
            "id": 499449,
            "url": "http://patchwork.ozlabs.org/api/series/499449/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=499449",
            "date": "2026-04-10T12:18:27",
            "name": "treewide: Cleanup LATCH, CLOCK_TICK_RATE and get_cycles() [ab]use",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/499449/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2221808/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2221808/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <linuxppc-dev+bounces-19582-incoming=patchwork.ozlabs.org@lists.ozlabs.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "linuxppc-dev@lists.ozlabs.org"
        ],
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=Bpuk5rSR;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org\n (client-ip=112.213.38.117; helo=lists.ozlabs.org;\n envelope-from=linuxppc-dev+bounces-19582-incoming=patchwork.ozlabs.org@lists.ozlabs.org;\n receiver=patchwork.ozlabs.org)",
            "lists.ozlabs.org;\n arc=none smtp.remote-ip=172.105.4.254",
            "lists.ozlabs.org;\n dmarc=pass (p=quarantine dis=none) header.from=kernel.org",
            "lists.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=Bpuk5rSR;\n\tdkim-atps=neutral",
            "lists.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=kernel.org\n (client-ip=172.105.4.254; helo=tor.source.kernel.org;\n envelope-from=tglx@kernel.org; receiver=lists.ozlabs.org)"
        ],
        "Received": [
            "from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117])\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 4fsbTq4qwcz1yGS\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 10 Apr 2026 22:19:59 +1000 (AEST)",
            "from boromir.ozlabs.org (localhost [127.0.0.1])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 4fsbTK0p8Nz30RN;\n\tFri, 10 Apr 2026 22:19:33 +1000 (AEST)",
            "from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254])\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 lists.ozlabs.org (Postfix) with ESMTPS id 4fsbTJ1kLvz2yhD\n\tfor <linuxppc-dev@lists.ozlabs.org>; Fri, 10 Apr 2026 22:19:32 +1000 (AEST)",
            "from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58])\n\tby tor.source.kernel.org (Postfix) with ESMTP id 51A166091C;\n\tFri, 10 Apr 2026 12:19:30 +0000 (UTC)",
            "by smtp.kernel.org (Postfix) with ESMTPSA id 4B4F4C2BCB0;\n\tFri, 10 Apr 2026 12:19:29 +0000 (UTC)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1775823573;\n\tcv=none;\n b=e1sRnKoVQUbwrIx/iWwkoCyYSh68w7refIFRpr2Tnu4fiMzA4jfI3/xcrmTvah16JRnT4u8CgUGXIE26fri8FMkz2iA7PgTrWYPDqdiYbxpe1/tZWEmPKzKlL/CfL0TNpIDmXjsajZlUQOHrDbuZMsKagBwh2JCQTHHUoLMJM7H5+V2mfiLQue+VWQ3Z8lGJyExcolqUHGDIAieqoLJlbu3nsKrCAHYmarUNZyaSz9sw+lmwgCyHCmFE37WHm/GRaF0NxBgwiBlK9FnCMBV/K7SGtBizU3xnpD0qADcL2QV38culRJOxsZfeBwB9AFo5LDEw6DEl0kh9XPknStFDAQ==",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707;\n\tt=1775823573; c=relaxed/relaxed;\n\tbh=AhOSzTxD+cV4MqoaDbRxHefm2I22dte0YETJ6P0JjKI=;\n\th=Date:Message-ID:From:To:Cc:Subject:References:MIME-Version:\n\t Content-Type;\n b=C0viS0JWl9bDGJ535UbIor3ni9d7YaicEc/5Jy4bi13CB7AyhmtU7SJgt02tzEVAPomFLeOjPDRC9GBoYrfQqt6F13vr3dempLftPJAUZJRQhc2k/sj1hzaTj/gf1qV2SMit3hwqIDMSsRv0LLLiJqi/IwHvDFp4QwtZjUv2VeJSjKZmo2tRfgqpN5bKCoZ+7mzoMUwI+lA3Jx0/s0KuFpEaEmiI7LbuxIYbd9UhGoUPS8EspjzWIPLqcDfXF2hP/GNGuKTqZ02n1KXz0OBOhQXUIVVACK1rrz/0hd30xGubN5P7m+aT6vFp9PO9ztNHF0+KcWSPd7UfRiiPMlSGiw==",
        "ARC-Authentication-Results": "i=1; lists.ozlabs.org;\n dmarc=pass (p=quarantine dis=none) header.from=kernel.org;\n dkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=Bpuk5rSR; dkim-atps=neutral;\n spf=pass (client-ip=172.105.4.254; helo=tor.source.kernel.org;\n envelope-from=tglx@kernel.org;\n receiver=lists.ozlabs.org) smtp.mailfrom=kernel.org",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org;\n\ts=k20201202; t=1775823570;\n\tbh=gx3RztExl/RgjhE+RVjeBSM72TbSvLK5CUYrt3EY96I=;\n\th=Date:From:To:Cc:Subject:References:From;\n\tb=Bpuk5rSRR/rs1jSmitZH/KfJL+3TNuP+dz9xwjVC8e1YVix0oW3s2Pp/y+L8X9oHD\n\t FfGXk8B3TY0jbEAZNS2FVq5qwscSTPNozRdmP6S1az7QsSRwh37CnHDegYmWg/dUhl\n\t oXkQ09dlNxtpDlZfCfFVBtb5yeQYcj5dZxd8vIShSLkbr1gWWPlcdAHe/FZpu8mplV\n\t u5Y93dLHQf7k/6QZkYgksDu7FYlgnX/m++LNPEYIEnDd7dRmUlTkWsJQwVidroG1Bi\n\t MdGUi4KzTqg9X+Zn0ce3HiuHIaE9YE1XVzPbK1ak8XvacDL5nVhYnRULjmYf5QSMQ0\n\t DvaPTMl303Xmg==",
        "Date": "Fri, 10 Apr 2026 14:19:27 +0200",
        "Message-ID": "<20260410120318.386500288@kernel.org>",
        "User-Agent": "quilt/0.68",
        "From": "Thomas Gleixner <tglx@kernel.org>",
        "To": "LKML <linux-kernel@vger.kernel.org>",
        "Cc": "linux-wireless@vger.kernel.org,\n Arnd Bergmann <arnd@arndb.de>,\n x86@kernel.org,\n Lu Baolu <baolu.lu@linux.intel.com>,\n iommu@lists.linux.dev,\n Michael Grzeschik <m.grzeschik@pengutronix.de>,\n netdev@vger.kernel.org,\n Herbert Xu <herbert@gondor.apana.org.au>,\n linux-crypto@vger.kernel.org,\n Vlastimil Babka <vbabka@kernel.org>,\n linux-mm@kvack.org,\n David Woodhouse <dwmw2@infradead.org>,\n Bernie Thompson <bernie@plugable.com>,\n linux-fbdev@vger.kernel.org,\n \"Theodore Tso\" <tytso@mit.edu>,\n linux-ext4@vger.kernel.org,\n Andrew Morton <akpm@linux-foundation.org>,\n Uladzislau Rezki <urezki@gmail.com>,\n Marco Elver <elver@google.com>,\n Dmitry Vyukov <dvyukov@google.com>,\n kasan-dev@googlegroups.com,\n Andrey Ryabinin <ryabinin.a.a@gmail.com>,\n Thomas Sailer <t.sailer@alumni.ethz.ch>,\n linux-hams@vger.kernel.org,\n \"Jason A. Donenfeld\" <Jason@zx2c4.com>,\n Richard Henderson <richard.henderson@linaro.org>,\n linux-alpha@vger.kernel.org,\n Russell King <linux@armlinux.org.uk>,\n linux-arm-kernel@lists.infradead.org,\n Catalin Marinas <catalin.marinas@arm.com>,\n Huacai Chen <chenhuacai@kernel.org>,\n loongarch@lists.linux.dev,\n Geert Uytterhoeven <geert@linux-m68k.org>,\n linux-m68k@lists.linux-m68k.org,\n Dinh Nguyen <dinguyen@kernel.org>,\n Jonas Bonn <jonas@southpole.se>,\n linux-openrisc@vger.kernel.org,\n Helge Deller <deller@gmx.de>,\n linux-parisc@vger.kernel.org,\n Michael Ellerman <mpe@ellerman.id.au>,\n linuxppc-dev@lists.ozlabs.org,\n Paul Walmsley <pjw@kernel.org>,\n linux-riscv@lists.infradead.org,\n Heiko Carstens <hca@linux.ibm.com>,\n linux-s390@vger.kernel.org,\n \"David S. Miller\" <davem@davemloft.net>,\n sparclinux@vger.kernel.org",
        "Subject": "[patch 12/38] wifi: wil6210: Replace get_cyles() usage",
        "References": "<20260410120044.031381086@kernel.org>",
        "X-Mailing-List": "linuxppc-dev@lists.ozlabs.org",
        "List-Id": "<linuxppc-dev.lists.ozlabs.org>",
        "List-Help": "<mailto:linuxppc-dev+help@lists.ozlabs.org>",
        "List-Owner": "<mailto:linuxppc-dev+owner@lists.ozlabs.org>",
        "List-Post": "<mailto:linuxppc-dev@lists.ozlabs.org>",
        "List-Archive": "<https://lore.kernel.org/linuxppc-dev/>,\n  <https://lists.ozlabs.org/pipermail/linuxppc-dev/>",
        "List-Subscribe": "<mailto:linuxppc-dev+subscribe@lists.ozlabs.org>,\n  <mailto:linuxppc-dev+subscribe-digest@lists.ozlabs.org>,\n  <mailto:linuxppc-dev+subscribe-nomail@lists.ozlabs.org>",
        "List-Unsubscribe": "<mailto:linuxppc-dev+unsubscribe@lists.ozlabs.org>",
        "Precedence": "list",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=UTF-8",
        "X-Spam-Status": "No, score=-0.2 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED,\n\tDKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS\n\tautolearn=disabled version=4.0.1 OzLabs 8",
        "X-Spam-Checker-Version": "SpamAssassin 4.0.1 (2024-03-25) on lists.ozlabs.org"
    },
    "content": "There is no reason why this debug code requires to use get_cycles() for\ntiming purposes.\n\nUse ktime_get() instead.\n\nSigned-off-by: Thomas Gleixner <tglx@kernel.org>\nCc: linux-wireless@vger.kernel.org\n---\n drivers/net/wireless/ath/wil6210/debugfs.c   |    2 +-\n drivers/net/wireless/ath/wil6210/txrx.c      |    6 +++---\n drivers/net/wireless/ath/wil6210/txrx_edma.c |    4 ++--\n drivers/net/wireless/ath/wil6210/wil6210.h   |    3 ++-\n 4 files changed, 8 insertions(+), 7 deletions(-)",
    "diff": "--- a/drivers/net/wireless/ath/wil6210/debugfs.c\n+++ b/drivers/net/wireless/ath/wil6210/debugfs.c\n@@ -151,7 +151,7 @@ static int ring_show(struct seq_file *s,\n \t\t\tchar name[10];\n \t\t\tchar sidle[10];\n \t\t\t/* performance monitoring */\n-\t\t\tcycles_t now = get_cycles();\n+\t\t\tktime_t now = ktime_get();\n \t\t\tuint64_t idle = txdata->idle * 100;\n \t\t\tuint64_t total = now - txdata->begin;\n \n--- a/drivers/net/wireless/ath/wil6210/txrx.c\n+++ b/drivers/net/wireless/ath/wil6210/txrx.c\n@@ -1976,7 +1976,7 @@ static int __wil_tx_vring_tso(struct wil\n \tused = wil_ring_used_tx(vring);\n \tif (wil_val_in_range(wil->ring_idle_trsh,\n \t\t\t     used, used + descs_used)) {\n-\t\ttxdata->idle += get_cycles() - txdata->last_idle;\n+\t\ttxdata->idle += ktime_get() - txdata->last_idle;\n \t\twil_dbg_txrx(wil,  \"Ring[%2d] not idle %d -> %d\\n\",\n \t\t\t     vring_index, used, used + descs_used);\n \t}\n@@ -2129,7 +2129,7 @@ static int __wil_tx_ring(struct wil6210_\n \tused = wil_ring_used_tx(ring);\n \tif (wil_val_in_range(wil->ring_idle_trsh,\n \t\t\t     used, used + nr_frags + 1)) {\n-\t\ttxdata->idle += get_cycles() - txdata->last_idle;\n+\t\ttxdata->idle += ktime_get() - txdata->last_idle;\n \t\twil_dbg_txrx(wil,  \"Ring[%2d] not idle %d -> %d\\n\",\n \t\t\t     ring_index, used, used + nr_frags + 1);\n \t}\n@@ -2531,7 +2531,7 @@ int wil_tx_complete(struct wil6210_vif *\n \t\t\t     used_new, used_before_complete)) {\n \t\twil_dbg_txrx(wil, \"Ring[%2d] idle %d -> %d\\n\",\n \t\t\t     ringid, used_before_complete, used_new);\n-\t\ttxdata->last_idle = get_cycles();\n+\t\ttxdata->last_idle = ktime_get();\n \t}\n \n \t/* shall we wake net queues? */\n--- a/drivers/net/wireless/ath/wil6210/txrx_edma.c\n+++ b/drivers/net/wireless/ath/wil6210/txrx_edma.c\n@@ -1286,7 +1286,7 @@ int wil_tx_sring_handler(struct wil6210_\n \t\t\t\t     used_new, used_before_complete)) {\n \t\t\twil_dbg_txrx(wil, \"Ring[%2d] idle %d -> %d\\n\",\n \t\t\t\t     ring_id, used_before_complete, used_new);\n-\t\t\ttxdata->last_idle = get_cycles();\n+\t\t\ttxdata->last_idle = ktime_get();\n \t\t}\n \n again:\n@@ -1499,7 +1499,7 @@ static int __wil_tx_ring_tso_edma(struct\n \tused = wil_ring_used_tx(ring);\n \tif (wil_val_in_range(wil->ring_idle_trsh,\n \t\t\t     used, used + descs_used)) {\n-\t\ttxdata->idle += get_cycles() - txdata->last_idle;\n+\t\ttxdata->idle += ktime_get() - txdata->last_idle;\n \t\twil_dbg_txrx(wil,  \"Ring[%2d] not idle %d -> %d\\n\",\n \t\t\t     ring_index, used, used + descs_used);\n \t}\n--- a/drivers/net/wireless/ath/wil6210/wil6210.h\n+++ b/drivers/net/wireless/ath/wil6210/wil6210.h\n@@ -14,6 +14,7 @@\n #include <linux/timex.h>\n #include <linux/types.h>\n #include <linux/irqreturn.h>\n+#include <linux/timekeeping.h>\n #include \"wmi.h\"\n #include \"wil_platform.h\"\n #include \"fw.h\"\n@@ -632,7 +633,7 @@ struct wil_txrx_ops {\n struct wil_ring_tx_data {\n \tbool dot1x_open;\n \tint enabled;\n-\tcycles_t idle, last_idle, begin;\n+\tktime_t idle, last_idle, begin;\n \tu8 agg_wsize; /* agreed aggregation window, 0 - no agg */\n \tu16 agg_timeout;\n \tu8 agg_amsdu;\n",
    "prefixes": [
        "12/38"
    ]
}