get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2220503,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2220503/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-pci/patch/20260407124421.282766-2-mani@kernel.org/",
    "project": {
        "id": 28,
        "url": "http://patchwork.ozlabs.org/api/1.1/projects/28/?format=api",
        "name": "Linux PCI development",
        "link_name": "linux-pci",
        "list_id": "linux-pci.vger.kernel.org",
        "list_email": "linux-pci@vger.kernel.org",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null
    },
    "msgid": "<20260407124421.282766-2-mani@kernel.org>",
    "date": "2026-04-07T12:44:20",
    "name": "[1/2] PCI: endpoint: pci-epf-vntb: Add check to detect 'db_count' value of 0",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "00b3c170af2f4696ee31b3d8fa74dc790f10a078",
    "submitter": {
        "id": 91273,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/91273/?format=api",
        "name": "Manivannan Sadhasivam",
        "email": "manivannan.sadhasivam@oss.qualcomm.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-pci/patch/20260407124421.282766-2-mani@kernel.org/mbox/",
    "series": [
        {
            "id": 498977,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/498977/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-pci/list/?series=498977",
            "date": "2026-04-07T12:44:19",
            "name": "PCI: endpoint: pci-epf-{v}ntb: A couple of fixes",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/498977/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2220503/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2220503/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "\n <linux-pci+bounces-52054-incoming=patchwork.ozlabs.org@vger.kernel.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "linux-pci@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=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256\n header.s=qcppdkim1 header.b=K9TzzWs7;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com\n header.a=rsa-sha256 header.s=google header.b=D9OWOMKv;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org;\n envelope-from=linux-pci+bounces-52054-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)",
            "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com\n header.b=\"K9TzzWs7\";\n\tdkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com\n header.b=\"D9OWOMKv\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=205.220.180.131",
            "smtp.subspace.kernel.org;\n dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com",
            "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=oss.qualcomm.com"
        ],
        "Received": [
            "from sea.lore.kernel.org (sea.lore.kernel.org\n [IPv6:2600:3c0a:e001:db::12fc:5321])\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 4fqmCs3Y2cz1yD3\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 07 Apr 2026 22:46:33 +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 04F7330398AB\n\tfor <incoming@patchwork.ozlabs.org>; Tue,  7 Apr 2026 12:44:49 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 776B63B47E5;\n\tTue,  7 Apr 2026 12:44:48 +0000 (UTC)",
            "from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com\n [205.220.180.131])\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 3811E3B3C18\n\tfor <linux-pci@vger.kernel.org>; Tue,  7 Apr 2026 12:44:47 +0000 (UTC)",
            "from pps.filterd (m0279871.ppops.net [127.0.0.1])\n\tby mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id\n 6376tmoJ2009900\n\tfor <linux-pci@vger.kernel.org>; Tue, 7 Apr 2026 12:44:46 GMT",
            "from mail-pg1-f197.google.com (mail-pg1-f197.google.com\n [209.85.215.197])\n\tby mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4dcmrrtrbh-1\n\t(version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT)\n\tfor <linux-pci@vger.kernel.org>; Tue, 07 Apr 2026 12:44:46 +0000 (GMT)",
            "by mail-pg1-f197.google.com with SMTP id\n 41be03b00d2f7-c76b6db8bb2so2276486a12.3\n        for <linux-pci@vger.kernel.org>; Tue, 07 Apr 2026 05:44:46 -0700 (PDT)",
            "from work ([120.60.133.76])\n        by smtp.gmail.com with ESMTPSA id\n d2e1a72fcca58-82cf9c3ce13sm18262551b3a.38.2026.04.07.05.44.38\n        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n        Tue, 07 Apr 2026 05:44:43 -0700 (PDT)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1775565888; cv=none;\n b=FMBPz4giN4IQIW1iZBpo1ecsubEwekf8Dry8uNqgr2rFmruphwDW+5rGQdw08y699KbNy6nc1FCk5BdM+8i/i5m0ufoctGCil3KcVnU1vHGwsXj3D4swAnAaohPdCaeIyyPAxIJL9KsvvRz2IHBD3GltPWYR4vISTyDaW4CuATA=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1775565888; c=relaxed/simple;\n\tbh=D0TB0jvRuzPNWEFrFeMfVdBNym4lEMVlSbrtCDCSGSA=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=aP4IC0N0V9fgG8dvvu/iEyTUJ+iFvO2bhnmzxxf1kIOIkmk7cT5sBuqwlmGgV53M25dRkfoHDPaIGNUymqnJSLQyLBxIYm2HgsSVZM8IaCUdV9g8pjw+sC2oRA79+KT/TmUnITDwz3PAU+CZ9Y+FvimHUL3gpGgYNPvSEaHd2Jo=",
        "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com;\n spf=pass smtp.mailfrom=oss.qualcomm.com;\n dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com\n header.b=K9TzzWs7;\n dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com\n header.b=D9OWOMKv; arc=none smtp.client-ip=205.220.180.131",
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h=\n\tcc:content-transfer-encoding:date:from:in-reply-to:message-id\n\t:mime-version:references:subject:to; s=qcppdkim1; bh=KcSF6GhUxpn\n\thWCwDbVDLTRbgA+EkufOMYvemBFzcsX4=; b=K9TzzWs7MGakwir+T4NmySrzIWT\n\tuwZ9V6LGYz9nbTgLNtfK9EZk/2KFDlacwc8hngf63x9a2eZhxbpG95W+2ngwLdmB\n\tsM0sSkXuw3C7tHEq3J2aCv0b7IZuPNepdD8w2eCBZ8UOZJ0RY0bcXDO1ULJNFYwy\n\tZpR+fuEqMFkQm2kM0qPqH6QxU7zZsnIT+bQdKd57PElvx5xlov+46AzAzhsPtZ/I\n\tMIByhIxtk39OB1fA3TAgNeT3lijgakYMs7Sv27DaqUCb74GwgrZXQsIfjt1sfq2N\n\toSUzmzhNVyrFkDdd9wV6qPvsMNN0rxXt7tepc68T7K4dz8uo4pEjTpp9Bkw==",
            "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=oss.qualcomm.com; s=google; t=1775565885; x=1776170685;\n darn=vger.kernel.org;\n        h=content-transfer-encoding:mime-version:references:in-reply-to\n         :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n         :message-id:reply-to;\n        bh=KcSF6GhUxpnhWCwDbVDLTRbgA+EkufOMYvemBFzcsX4=;\n        b=D9OWOMKvyYMKypWuqUlPnfjRB6/+WPixwulRn/C9LFA5LSrH9LxefQkcNMtC135ncH\n         1zX9QUNMZ9DaB80M20O+ysHFFOx6m15ZVrwDJz67nSS/bxjlIxtjWNkNgHRAw/rE/g9B\n         OT6OlRybRM3eDI+G3C4e5wQlRgz2DC5kKWkoUtbaZN4cMWz78AGBRgTv5As+tebGrRP9\n         a+q4Ur/gt8CmitRISe3xXvilyibYw+DzZS2lcTxEmRZ+MhfZ+I9uAOmqQHRlgLCxQI7o\n         nHYSUsU7r6jfSS/r0QrfV2z/GgqikEBIgYhBObODYFSYBurQAQaxIhIysdPGQVfPWFHU\n         m48w=="
        ],
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20251104; t=1775565885; x=1776170685;\n        h=content-transfer-encoding:mime-version:references:in-reply-to\n         :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n         :to:cc:subject:date:message-id:reply-to;\n        bh=KcSF6GhUxpnhWCwDbVDLTRbgA+EkufOMYvemBFzcsX4=;\n        b=YmdC/OTjtfXzqRUUuNPEm49AyqEH0IJiAXnrz2hTIOWYgPWo0GySAp/qjxfHcFoF2C\n         EsdnRsa6w5TtrEZsdittb9fJHXFxAugMSjHepnSpJGQj72FwygIfQHpEQmXhCUkk+nzj\n         JL+4cD0ofgZlaUsmGbSMyxaxI6aztWuMWXuZfowWDPTkDjsq2aZ0N+Sr/pCKgjGWqKaY\n         iYD9rzLULBH19+OFHxLV4N0Yc3PB41e1/ReVYYJubG7ChF5+8pqV6cyHdxt5dE/ZaY4p\n         cdrUpJ+rU6snkt4QysKFoQoM0zmFWdepfe8yFMKFhErjG9D6OZf4V786RA5to3nBQSAA\n         oCYA==",
        "X-Forwarded-Encrypted": "i=1;\n AJvYcCUjDV1vDEEUMVB4BNWWT9Ts13ITSA8MRDFu1eSe8KnZ6BZZ1Sd3S3z0KzqUWV9CHxyCrbU7YBfLILg=@vger.kernel.org",
        "X-Gm-Message-State": "AOJu0YyQjMXDqN57g4PPVT6w6UijrzxnaXx3dXERfdb6SqRUVAzPtzDx\n\tsUyPd9hh0fR4T8CruX78rLwSEeSo+fBROl/fkLEWeXWoRXPqPaUFoO7CISnxaaKB2mJJXpJkaB5\n\tvwH5wWqFIUhyOqJClmPB+fbIYDyQrNmEl7RBlo0Eu3zZb7sUp3OQzIBSSQ+PXgSI=",
        "X-Gm-Gg": "AeBDietM1gvD2y9SLaaQry4b/0DAoH8sET6AixjteFxnRvqY3NZbUI5qNc3lMl8HQqE\n\tkNdRJy9mra4axkJVmLeD3bhJiQl0AbT2DdIbi2PfrRgqbTXGY8c60t85CGp9IpV4PbI6SGA3Rm4\n\tmbSClP22mLjJ+qvSE3kDVQ/2zhhIIHHyQpvaMx7jXlJZXiKR0TUXhmhvgaeFAJTzmpaMlXYhqec\n\tV3VNbTYbaRhAtWPA+BHORDrt72p+lWZoMyQCthDhI8xwlSBHS8ViB0olS+D+vQy8pdKNBT4GImb\n\t/q5gesbD/f1d+pUo42zCF3quxjMWxDVjmynyNWG842CUIxf9m+9H5g+cnzwSKN8owdwCgJKyR+v\n\teLB0VMw==",
        "X-Received": [
            "by 2002:a05:6a00:a0f:b0:829:8a84:b9fc with SMTP id\n d2e1a72fcca58-82d0da33e8fmr15483564b3a.8.1775565885130;\n        Tue, 07 Apr 2026 05:44:45 -0700 (PDT)",
            "by 2002:a05:6a00:a0f:b0:829:8a84:b9fc with SMTP id\n d2e1a72fcca58-82d0da33e8fmr15483524b3a.8.1775565884435;\n        Tue, 07 Apr 2026 05:44:44 -0700 (PDT)"
        ],
        "From": "Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>",
        "X-Google-Original-From": "Manivannan Sadhasivam <mani@kernel.org>",
        "To": "mani@kernel.org, kwilczynski@kernel.org, kishon@kernel.org,\n        bhelgaas@google.com",
        "Cc": "jdmason@kudzu.us, dave.jiang@intel.com, allenbh@gmail.com,\n        ntb@lists.linux.dev, linux-pci@vger.kernel.org,\n        linux-kernel@vger.kernel.org, den@valinux.co.jp, Frank.li@nxp.com,\n        Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>",
        "Subject": "[PATCH 1/2] PCI: endpoint: pci-epf-vntb: Add check to detect\n 'db_count' value of 0",
        "Date": "Tue,  7 Apr 2026 18:14:20 +0530",
        "Message-ID": "<20260407124421.282766-2-mani@kernel.org>",
        "X-Mailer": "git-send-email 2.51.0",
        "In-Reply-To": "<20260407124421.282766-1-mani@kernel.org>",
        "References": "<20260407124421.282766-1-mani@kernel.org>",
        "Precedence": "bulk",
        "X-Mailing-List": "linux-pci@vger.kernel.org",
        "List-Id": "<linux-pci.vger.kernel.org>",
        "List-Subscribe": "<mailto:linux-pci+subscribe@vger.kernel.org>",
        "List-Unsubscribe": "<mailto:linux-pci+unsubscribe@vger.kernel.org>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-Proofpoint-Spam-Details-Enc": "AW1haW4tMjYwNDA3MDExOSBTYWx0ZWRfXwFypcZNOQGSK\n 6yTjW6RCTsQ4IVQ4q4zkzJP2RAohWIwDuX+iQ8ZbK1fB/kKMrdYDxEu3LcrB0nLdkSyVbajcN7N\n +Ile5X4/zwuyFrtOMTOPd8wpsbtqf3urLbcurkjmiCl9EpXpyUTUageDpyEGJaPywav4VKipzvN\n Iwxwlgk1zxnbIx8FPqHwFDgkJJrxHpQ5KeOTsoGWgmQOVJH5KSAbs5LlI//3t7ZoPZjAK/73TnE\n c+I0lh8kem7XY0rY5mmL7sYJgR4ph5K1E7IBMvIb0aCx4M9C0n2fPxG6wBLAg5C6gaQqzWVH4L9\n dXXe1iH9RjIaZUpwmM4UiisQbGTrxDgOHWbxoqS97asfmWWd8LjXi8bxkmRjBkJxKYkSTEthQkB\n gJTkGdnILFNgslPmlJXmAU9QLLo5mLyrfQFYwEAExQ5416YQ9AJzPxBXA8cmnwH3yaxdT01h/AW\n x+5dNqlMem/NTQAzzjg==",
        "X-Proofpoint-GUID": "ql3heDl3LxYvV8klx5KQ9WADbjt7gZVI",
        "X-Proofpoint-ORIG-GUID": "ql3heDl3LxYvV8klx5KQ9WADbjt7gZVI",
        "X-Authority-Analysis": "v=2.4 cv=LquiDHdc c=1 sm=1 tr=0 ts=69d4fc3e cx=c_pps\n a=rz3CxIlbcmazkYymdCej/Q==:117 a=yDxY/ZQAnAaCL67VaoekCQ==:17\n a=A5OVakUREuEA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22\n a=u7WPNUs3qKkmUXheDGA7:22 a=3WHJM1ZQz_JShphwDgj5:22 a=EUspDBNiAAAA:8\n a=PxpW6Q19wR3HJFGb5M4A:9 a=bFCP_H2QrGi7Okbo017w:22",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49\n definitions=2026-04-07_02,2026-04-07_02,2025-10-01_01",
        "X-Proofpoint-Spam-Details": "rule=outbound_notspam policy=outbound score=0\n lowpriorityscore=0 priorityscore=1501 adultscore=0 phishscore=0\n impostorscore=0 spamscore=0 suspectscore=0 clxscore=1015 bulkscore=0\n malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc=\n route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2604010000\n definitions=main-2604070119"
    },
    "content": "From: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>\n\nepf_ntb::db_count value should be within 1 to MAX_DB_COUNT. Current code\nonly checks for the upper bound, while the lower bound is unchecked. This\ncan cause a lot of issues in the driver if the user passes 'db_count' as 0.\n\nSo add a check for 0 also. While at it, remove the redundant 'db_count'\nassignment.\n\nFixes: e35f56bb0330 (\"PCI: endpoint: Support NTB transfer between RC and EP\")\nSigned-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>\n---\n drivers/pci/endpoint/functions/pci-epf-vntb.c | 9 +++------\n 1 file changed, 3 insertions(+), 6 deletions(-)",
    "diff": "diff --git a/drivers/pci/endpoint/functions/pci-epf-vntb.c b/drivers/pci/endpoint/functions/pci-epf-vntb.c\nindex 2256c3062b1a..3d30aa4dbb84 100644\n--- a/drivers/pci/endpoint/functions/pci-epf-vntb.c\n+++ b/drivers/pci/endpoint/functions/pci-epf-vntb.c\n@@ -483,7 +483,6 @@ static int epf_ntb_configure_interrupt(struct epf_ntb *ntb)\n {\n \tconst struct pci_epc_features *epc_features;\n \tstruct device *dev;\n-\tu32 db_count;\n \tint ret;\n \n \tdev = &ntb->epf->dev;\n@@ -495,14 +494,12 @@ static int epf_ntb_configure_interrupt(struct epf_ntb *ntb)\n \t\treturn -EINVAL;\n \t}\n \n-\tdb_count = ntb->db_count;\n-\tif (db_count > MAX_DB_COUNT) {\n-\t\tdev_err(dev, \"DB count cannot be more than %d\\n\", MAX_DB_COUNT);\n+\tif (!ntb->db_count || ntb->db_count > MAX_DB_COUNT) {\n+\t\tdev_err(dev, \"DB count %d out of range (1 - %d)\\n\",\n+\t\t\tntb->db_count, MAX_DB_COUNT);\n \t\treturn -EINVAL;\n \t}\n \n-\tntb->db_count = db_count;\n-\n \tif (epc_features->msi_capable) {\n \t\tret = pci_epc_set_msi(ntb->epf->epc,\n \t\t\t\t      ntb->epf->func_no,\n",
    "prefixes": [
        "1/2"
    ]
}