get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2227431,
    "url": "http://patchwork.ozlabs.org/api/patches/2227431/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-ide/patch/20260423164329.1541337-2-cassel@kernel.org/",
    "project": {
        "id": 13,
        "url": "http://patchwork.ozlabs.org/api/projects/13/?format=api",
        "name": "Linux IDE development",
        "link_name": "linux-ide",
        "list_id": "linux-ide.vger.kernel.org",
        "list_email": "linux-ide@vger.kernel.org",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260423164329.1541337-2-cassel@kernel.org>",
    "list_archive_url": null,
    "date": "2026-04-23T16:43:30",
    "name": "ata: libahci: use ahci_nr_ports() helper",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "7f64b38ef751634f9c8a553c7d1757b398932456",
    "submitter": {
        "id": 87751,
        "url": "http://patchwork.ozlabs.org/api/people/87751/?format=api",
        "name": "Niklas Cassel",
        "email": "cassel@kernel.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-ide/patch/20260423164329.1541337-2-cassel@kernel.org/mbox/",
    "series": [
        {
            "id": 501224,
            "url": "http://patchwork.ozlabs.org/api/series/501224/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-ide/list/?series=501224",
            "date": "2026-04-23T16:43:30",
            "name": "ata: libahci: use ahci_nr_ports() helper",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/501224/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2227431/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2227431/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <linux-ide+bounces-5521-incoming=patchwork.ozlabs.org@vger.kernel.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "linux-ide@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=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=V2LSsSwc;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=104.64.211.4; helo=sin.lore.kernel.org;\n envelope-from=linux-ide+bounces-5521-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)",
            "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org\n header.b=\"V2LSsSwc\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=10.30.226.201"
        ],
        "Received": [
            "from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])\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 4g1jDH27mTz1y2d\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 24 Apr 2026 03:06:23 +1000 (AEST)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sin.lore.kernel.org (Postfix) with ESMTP id 9B4C0302293C\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 23 Apr 2026 16:43:39 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id F18B5382F1C;\n\tThu, 23 Apr 2026 16:43:33 +0000 (UTC)",
            "from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org\n [10.30.226.201])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id CED01381B08\n\tfor <linux-ide@vger.kernel.org>; Thu, 23 Apr 2026 16:43:33 +0000 (UTC)",
            "by smtp.kernel.org (Postfix) with ESMTPSA id 83394C2BCB3;\n\tThu, 23 Apr 2026 16:43:32 +0000 (UTC)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1776962613; cv=none;\n b=sWNNEKIVmeoLkfkLKtBqmZH4xg+4sNwFMCGEOQKQc+7pl9ELhou9Bf+QfbV2Cdd5T9Uz4nherRFiPboKbxX8Q/oGjXuTOeEaQ/+NkMC3hkSZsujaUTnzPf7ko9v/Tg/7V52X35RFZQRM0RYqbBZhFAI9vyOyLxT8XTu2YACD4/A=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1776962613; c=relaxed/simple;\n\tbh=Mj4nOBRfej/BaMPaoOnah8ivfMpDlepKNgt1eAFdS+I=;\n\th=From:To:Cc:Subject:Date:Message-ID:MIME-Version;\n b=IkbOaqpMjKXC35vPWU+pndQ7GzdBYZRUCJkwWZ2pNrtIpkAxpZpTXlFVnVTf6nXfioko/EPGIvlyHkfdaKaRHjlPfTWZ/qPctUvjG45edv2OLSFxnJ+/1fXH3yzgXl7fvDE7Kz+As1Mm38dcmzPWp7Ux2zCatOpTvXpAvV2BnyQ=",
        "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org\n header.b=V2LSsSwc; arc=none smtp.client-ip=10.30.226.201",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org;\n\ts=k20201202; t=1776962613;\n\tbh=Mj4nOBRfej/BaMPaoOnah8ivfMpDlepKNgt1eAFdS+I=;\n\th=From:To:Cc:Subject:Date:From;\n\tb=V2LSsSwcNUYImv8Z0o4VtrQVm4Hx29+5qqqESQqSHMbKqhA/XMuuUsOmd/q6gp3k7\n\t dYn983DQTZhn5AgYF3/xjt9h95eMAtetoioRyqvyjT0ca9LdyvFTi2q3QHivksxZxr\n\t QHc5gBR9qZx3C5coGHIK4ADw33eqJrHrC9LJrM7xch9ireKbFIoITb3I0rqowkBAav\n\t xuXCQS3An2bVQ7pikSpsddkgISKUACkPTFXZbN7FkBUEcAfLkF5nFd8imzGiuPQs+I\n\t zE+6Z9+AVv6Ut5/72K019kjaNKfgII1t1oCFE5AXNGCnaCY6OFJf+9Jtx+jArnnEuO\n\t IlQllGyo04IiQ==",
        "From": "Niklas Cassel <cassel@kernel.org>",
        "To": "Damien Le Moal <dlemoal@kernel.org>,\n\tNiklas Cassel <cassel@kernel.org>",
        "Cc": "linux-ide@vger.kernel.org",
        "Subject": "[PATCH] ata: libahci: use ahci_nr_ports() helper",
        "Date": "Thu, 23 Apr 2026 18:43:30 +0200",
        "Message-ID": "<20260423164329.1541337-2-cassel@kernel.org>",
        "X-Mailer": "git-send-email 2.53.0",
        "Precedence": "bulk",
        "X-Mailing-List": "linux-ide@vger.kernel.org",
        "List-Id": "<linux-ide.vger.kernel.org>",
        "List-Subscribe": "<mailto:linux-ide+subscribe@vger.kernel.org>",
        "List-Unsubscribe": "<mailto:linux-ide+unsubscribe@vger.kernel.org>",
        "MIME-Version": "1.0",
        "X-Developer-Signature": "v=1; a=openpgp-sha256; l=595; i=cassel@kernel.org;\n h=from:subject; bh=Mj4nOBRfej/BaMPaoOnah8ivfMpDlepKNgt1eAFdS+I=;\n b=owGbwMvMwCV2MsVw8cxjvkWMp9WSGDJf+Ri+Z2vf/80rq/HDSfGD2T/OuB1Va5gWJDLBbtNqp\n nOxwZNOdJSyMIhxMciKKbL4/nDZX9ztPuW44h0bmDmsTCBDGLg4BWAiJ98yMvxMrbFbGBDoZhuY\n 1PZKlpFLIEzRrHtx7u4PNv6c9r5yfgz/gxm5zh/qzlq14NmDtkgp6/BNjosjYpW85jDe2bMz/90\n fbgA=",
        "X-Developer-Key": "i=cassel@kernel.org; a=openpgp;\n fpr=5ADE635C0E631CBBD5BE065A352FE6582ED9B5DA",
        "Content-Transfer-Encoding": "8bit"
    },
    "content": "Use ahci_nr_ports() helper instead of open coding the same.\n\nNo functional change.\n\nSigned-off-by: Niklas Cassel <cassel@kernel.org>\n---\n drivers/ata/libahci.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/ata/libahci.c b/drivers/ata/libahci.c\nindex c79abdfcd7a9..7169e9e89034 100644\n--- a/drivers/ata/libahci.c\n+++ b/drivers/ata/libahci.c\n@@ -2636,7 +2636,7 @@ void ahci_print_info(struct ata_host *host, const char *scc_s)\n \t\t,\n \n \t\thweight32(impl),\n-\t\t(cap & 0x1f) + 1,\n+\t\tahci_nr_ports(cap),\n \t\timpl);\n \n \tdev_info(host->dev,\n",
    "prefixes": []
}