get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2224129,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2224129/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-pci/patch/20260416213909.705753-2-ramesh@linux.ibm.com/",
    "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": "<20260416213909.705753-2-ramesh@linux.ibm.com>",
    "date": "2026-04-16T21:39:09",
    "name": "[v2,1/1] PCI/hotplug: Add 'uevent' sysfs attribute to trigger slot events",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "4e0f7affba05d0dca251326756f301df43521819",
    "submitter": {
        "id": 91783,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/91783/?format=api",
        "name": "Ramesh Errabolu",
        "email": "ramesh@linux.ibm.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-pci/patch/20260416213909.705753-2-ramesh@linux.ibm.com/mbox/",
    "series": [
        {
            "id": 500209,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/500209/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-pci/list/?series=500209",
            "date": "2026-04-16T21:39:08",
            "name": "PCI/hotplug: Add 'uevent' sysfs attribute to trigger slot events",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/500209/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2224129/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2224129/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "\n <linux-pci+bounces-52656-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=ibm.com header.i=@ibm.com header.a=rsa-sha256\n header.s=pp1 header.b=TN/gJUMr;\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-52656-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)",
            "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com\n header.b=\"TN/gJUMr\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=148.163.158.5",
            "smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=linux.ibm.com",
            "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=linux.ibm.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 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fxWgw4Grpz1yGt\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 17 Apr 2026 07:42:20 +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 93A94303CE02\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 16 Apr 2026 21:39:29 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 14CAA35BDB2;\n\tThu, 16 Apr 2026 21:39:28 +0000 (UTC)",
            "from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com\n [148.163.158.5])\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 A6C96390C83;\n\tThu, 16 Apr 2026 21:39:26 +0000 (UTC)",
            "from pps.filterd (m0356516.ppops.net [127.0.0.1])\n\tby mx0a-001b2d01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id\n 63GJBMMN1860717;\n\tThu, 16 Apr 2026 21:39:25 GMT",
            "from ppma21.wdc07v.mail.ibm.com\n (5b.69.3da9.ip4.static.sl-reverse.com [169.61.105.91])\n\tby mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 4dh89pppcm-1\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n\tThu, 16 Apr 2026 21:39:24 +0000 (GMT)",
            "from pps.filterd (ppma21.wdc07v.mail.ibm.com [127.0.0.1])\n\tby ppma21.wdc07v.mail.ibm.com (8.18.1.2/8.18.1.2) with ESMTP id\n 63GK1aNF003610;\n\tThu, 16 Apr 2026 21:39:23 GMT",
            "from smtprelay03.wdc07v.mail.ibm.com ([172.16.1.70])\n\tby ppma21.wdc07v.mail.ibm.com (PPS) with ESMTPS id 4dg1mnmpda-1\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n\tThu, 16 Apr 2026 21:39:23 +0000",
            "from smtpav01.dal12v.mail.ibm.com (smtpav01.dal12v.mail.ibm.com\n [10.241.53.100])\n\tby smtprelay03.wdc07v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id\n 63GLcudd24773120\n\t(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);\n\tThu, 16 Apr 2026 21:38:56 GMT",
            "from smtpav01.dal12v.mail.ibm.com (unknown [127.0.0.1])\n\tby IMSVA (Postfix) with ESMTP id 299C258059;\n\tThu, 16 Apr 2026 21:39:22 +0000 (GMT)",
            "from smtpav01.dal12v.mail.ibm.com (unknown [127.0.0.1])\n\tby IMSVA (Postfix) with ESMTP id B1F8358057;\n\tThu, 16 Apr 2026 21:39:21 +0000 (GMT)",
            "from IBM-GVXK264.ibm.com (unknown [9.61.246.192])\n\tby smtpav01.dal12v.mail.ibm.com (Postfix) with ESMTP;\n\tThu, 16 Apr 2026 21:39:21 +0000 (GMT)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1776375568; cv=none;\n b=QpMuH32hTn5DKo4r8vJG08PGpQ44H+vzZeWjkANsGiEJft9J8cjLeRlo7vEJLZpCFe+ZFQo8ShRZ0EwD8JmfYMf1KdVkZ4rf1bbjPDWStNxuE/3DXLf6bT4UIPD+g/rlAd5LhF3KCm2CoKIJh2IzzeEuJ7G1uyCUL7mh21ORx50=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1776375568; c=relaxed/simple;\n\tbh=vEX2YgnVtzG/kWcq17f0/dxZGqpGdFexUjQZXcgX1Ng=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=FHkcXh4faAFTurr3HSqCHQuii607ZdO9SY8mmSa9BCSWeZ1IxSm1AoVJealreTy1Jj4OLUVmbWq3GsYasL0jQUUJNW133ICxkAJo2Ezj4bL0P71jbPZjuM/jNAo7mUu99qLp1Tfb6jqEvqbAg+uUJFTSg0UL8ubRZdz8quPoIok=",
        "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=linux.ibm.com;\n spf=pass smtp.mailfrom=linux.ibm.com;\n dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com\n header.b=TN/gJUMr; arc=none smtp.client-ip=148.163.158.5",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc\n\t:content-transfer-encoding:date:from:in-reply-to:message-id\n\t:mime-version:references:subject:to; s=pp1; bh=CpOcsvGu0vq9yafPL\n\tMd8795CqxepEPd0x1m5IZSMpAw=; b=TN/gJUMrR0fe3CPMQ6gfew5ECjscyYUOr\n\t9aZEe4LG6hNbmgaJ8TVEnUYQoLO47G5T5tJu5Hkj0SMJPNSiq8Icf8Pkk0xdOcg+\n\tFKmrN/nFwBPq8+CU27CJlQl6x/zIz+Szik2E1c0TzLhhC8XiwKAhCBb5iaAHH/4Z\n\tB308D+j+CQiJJ+CbmM0sFAGzusxXU29RqFbgYQrNRzEGbgCIDFGze7rcczCoSRx5\n\tE2/glO2a4wHTF2T+cYuzofaXVNojw1s2UdHo1ojPUWyVhXtn5/hL4t8UFnNvC34H\n\td30CMqW7yzTcH1X9xN8cahz+ZZGhAq5+xIlRRTIYpByERfHMx5Xbw==",
        "From": "Ramesh Errabolu <ramesh@linux.ibm.com>",
        "To": "linux-pci@vger.kernel.org",
        "Cc": "linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org,\n        Bjorn Helgaas <bhelgaas@google.com>, Lukas Wunner <lukas@wunner.de>,\n        Niklas Schnelle <schnelle@linux.ibm.com>,\n        Peter Oberparleiter <oberpar@linux.ibm.com>,\n        Matthew Rosato <mjrosato@linux.ibm.com>,\n        Gerd Bayer <gbayer@linux.ibm.com>, Heiko Carstens <hca@linux.ibm.com>,\n        Vasily Gorbik <gor@linux.ibm.com>,\n        Alexander Gordeev <agordeev@linux.ibm.com>,\n        Ramesh Errabolu <ramesh@linux.ibm.com>",
        "Subject": "[PATCH v2 1/1] PCI/hotplug: Add 'uevent' sysfs attribute to trigger\n slot events",
        "Date": "Thu, 16 Apr 2026 16:39:09 -0500",
        "Message-ID": "<20260416213909.705753-2-ramesh@linux.ibm.com>",
        "X-Mailer": "git-send-email 2.43.0",
        "In-Reply-To": "<20260416213909.705753-1-ramesh@linux.ibm.com>",
        "References": "<20260416213909.705753-1-ramesh@linux.ibm.com>",
        "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-TM-AS-GCONF": "00",
        "X-Proofpoint-Reinject": "loops=2 maxloops=12",
        "X-Proofpoint-GUID": "NF6MTuV5Mf8VJ2-Eel-WDikZuXEc9FZz",
        "X-Proofpoint-ORIG-GUID": "BMop2iUy01dMTHm49ru5Y80RheRUHDyv",
        "X-Authority-Analysis": "v=2.4 cv=WbE8rUhX c=1 sm=1 tr=0 ts=69e1570c cx=c_pps\n a=GFwsV6G8L6GxiO2Y/PsHdQ==:117 a=GFwsV6G8L6GxiO2Y/PsHdQ==:17\n a=A5OVakUREuEA:10 a=VkNPw1HP01LnGYTKEx00:22 a=RnoormkPH1_aCDwRdu11:22\n a=Y2IxJ9c9Rs8Kov3niI8_:22 a=VnNF1IyMAAAA:8 a=CMxJa-TJIm8yq2BzSosA:9",
        "X-Proofpoint-Spam-Details-Enc": "AW1haW4tMjYwNDE2MDIwMSBTYWx0ZWRfX1VENHlwvzd8b\n YNs4DXZheBpO/l5ecA4G1rsWZ9xZn/7FvkoJUJPPPDFmScB9UKu4oCgrFKEH8qx5SLJ2EQLJXav\n lSCSAiYV3X8lB4utyjR3F+/CXWU7hVwI1pcmB0rxbIhQLvhqCqYgwqWsNVXWI1Vmr2SOxAmCTQa\n kDYUk9Bo57RdOEkFCJA8nqNT4Op1KkUoFXnVWngZs1NDbA50SHSwFelG3VlLTT00bSiUeOaScyd\n QBGkOCnFzvftYwx4010iAaCJnFvN+IcPjH2pINXgBo17Dnkv2rY7mpO+GDAczqIBohBoqGSnpXU\n +s4Rnk+9B83fEC4v+9r18Y67NU0dzjaydkvlEpT5vJi9Gfx0BZdooLYSVXAhts5xJEX5K+JXxsN\n OyHU3L8eqzs6TjZsGA202k5NGK0zMEvDX7XgaucHp62HhP0j+LlCMQMx3MZfFl7fY1mq/jrQEaT\n HMeBtR02LKE2RE1Gpxg==",
        "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-16_03,2026-04-16_03,2025-10-01_01",
        "X-Proofpoint-Spam-Details": "rule=outbound_notspam policy=outbound score=0\n suspectscore=0 bulkscore=0 priorityscore=1501 spamscore=0 clxscore=1015\n phishscore=0 impostorscore=0 adultscore=0 malwarescore=0 lowpriorityscore=0\n classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0\n reason=mlx scancount=1 engine=8.22.0-2604070000 definitions=main-2604160201"
    },
    "content": "Add a write-only 'uevent' sysfs attribute for synthesizing\nuevents for a PCI slot. This extends the existing uevent\nsupport which emits a KOBJ_ADD uevent in pci_hp_add() with\nthe ability to replay such uevents for cold plugged devices.\nAs such events are only emitted by hotplug capable PCI slots\nso is the support for synthesizing them.\n\nThe change was validated by manually triggering 'add' uevent\nfor a specific hotplug PCI slot:\n\n    $ echo \"add $(uuidgen)\" | sudo tee   \\\n                /sys/bus/pci/slots/<slot-id>/uevent\n\nSigned-off-by: Ramesh Errabolu <ramesh@linux.ibm.com>\n---\n drivers/pci/hotplug/pci_hotplug_core.c | 25 +++++++++++++++++++++++++\n 1 file changed, 25 insertions(+)",
    "diff": "diff --git a/drivers/pci/hotplug/pci_hotplug_core.c b/drivers/pci/hotplug/pci_hotplug_core.c\nindex fadcf98a8a66..c3634b1cc7a8 100644\n--- a/drivers/pci/hotplug/pci_hotplug_core.c\n+++ b/drivers/pci/hotplug/pci_hotplug_core.c\n@@ -176,6 +176,21 @@ static struct pci_slot_attribute hotplug_slot_attr_presence = {\n \t.show = presence_read_file,\n };\n \n+static ssize_t uevent_write_file(struct pci_slot *slot,\n+\t\t\t\t const char *buf, size_t len)\n+{\n+\tint rc;\n+\n+\trc = kobject_synth_uevent(&slot->kobj, buf, len);\n+\treturn rc ? rc : len;\n+}\n+\n+static struct pci_slot_attribute hotplug_slot_attr_uevent = {\n+\t.attr = {.name = \"uevent\", .mode = S_IFREG | 0200},\n+\t.show = NULL,\n+\t.store = uevent_write_file\n+};\n+\n static ssize_t test_write_file(struct pci_slot *pci_slot, const char *buf,\n \t\t\t       size_t count)\n {\n@@ -254,6 +269,11 @@ static int fs_add_slot(struct hotplug_slot *slot, struct pci_slot *pci_slot)\n \t\tkobject_put(kobj);\n \t}\n \n+\tretval = sysfs_create_file(&pci_slot->kobj,\n+\t\t\t\t   &hotplug_slot_attr_uevent.attr);\n+\tif (retval)\n+\t\tgoto exit_uevent;\n+\n \tif (has_power_file(slot)) {\n \t\tretval = sysfs_create_file(&pci_slot->kobj,\n \t\t\t\t\t   &hotplug_slot_attr_power.attr);\n@@ -306,6 +326,9 @@ static int fs_add_slot(struct hotplug_slot *slot, struct pci_slot *pci_slot)\n \tif (has_power_file(slot))\n \t\tsysfs_remove_file(&pci_slot->kobj, &hotplug_slot_attr_power.attr);\n exit_power:\n+\tsysfs_remove_file(&pci_slot->kobj,\n+\t\t\t  &hotplug_slot_attr_uevent.attr);\n+exit_uevent:\n \tsysfs_remove_link(&pci_slot->kobj, \"module\");\n exit:\n \treturn retval;\n@@ -313,6 +336,8 @@ static int fs_add_slot(struct hotplug_slot *slot, struct pci_slot *pci_slot)\n \n static void fs_remove_slot(struct hotplug_slot *slot, struct pci_slot *pci_slot)\n {\n+\tsysfs_remove_file(&pci_slot->kobj, &hotplug_slot_attr_uevent.attr);\n+\n \tif (has_power_file(slot))\n \t\tsysfs_remove_file(&pci_slot->kobj, &hotplug_slot_attr_power.attr);\n \n",
    "prefixes": [
        "v2",
        "1/1"
    ]
}