Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.1/patches/2227760/?format=api
{ "id": 2227760, "url": "http://patchwork.ozlabs.org/api/1.1/patches/2227760/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-pci/patch/1777017460-243543-8-git-send-email-shawn.lin@rock-chips.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": "<1777017460-243543-8-git-send-email-shawn.lin@rock-chips.com>", "date": "2026-04-24T07:57:40", "name": "[v4,7/7] PCI: vmd: Replace pci_alloc_irq_vectors() with pcim_alloc_irq_vectors()", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "3906c59ff39b1a84b431a7bcc02f2ed5dd1cadfe", "submitter": { "id": 66993, "url": "http://patchwork.ozlabs.org/api/1.1/people/66993/?format=api", "name": "Shawn Lin", "email": "shawn.lin@rock-chips.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-pci/patch/1777017460-243543-8-git-send-email-shawn.lin@rock-chips.com/mbox/", "series": [ { "id": 501313, "url": "http://patchwork.ozlabs.org/api/1.1/series/501313/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-pci/list/?series=501313", "date": "2026-04-24T07:57:33", "name": "Add Devres managed IRQ vectors allocation", "version": 4, "mbox": "http://patchwork.ozlabs.org/series/501313/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2227760/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2227760/checks/", "tags": {}, "headers": { "Return-Path": "\n <linux-pci+bounces-53124-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 (1024-bit key;\n unprotected) header.d=rock-chips.com header.i=@rock-chips.com\n header.a=rsa-sha256 header.s=default header.b=YmpNSMVx;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c09:e001:a7::12fc:5321; helo=sto.lore.kernel.org;\n envelope-from=linux-pci+bounces-53124-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)", "smtp.subspace.kernel.org;\n\tdkim=pass (1024-bit key) header.d=rock-chips.com header.i=@rock-chips.com\n header.b=\"YmpNSMVx\"", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=220.197.32.90", "smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=rock-chips.com", "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=rock-chips.com" ], "Received": [ "from sto.lore.kernel.org (sto.lore.kernel.org\n [IPv6:2600:3c09:e001:a7::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 4g25rQ6vqPz1yD5\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 24 Apr 2026 18:35:34 +1000 (AEST)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sto.lore.kernel.org (Postfix) with ESMTP id 43C973003611\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 24 Apr 2026 08:35:32 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 1B9F6342535;\n\tFri, 24 Apr 2026 08:35:29 +0000 (UTC)", "from mail-m3290.qiye.163.com (mail-m3290.qiye.163.com\n [220.197.32.90])\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 EC206344DA2\n\tfor <linux-pci@vger.kernel.org>; Fri, 24 Apr 2026 08:35:21 +0000 (UTC)", "from localhost.localdomain (unknown [61.154.14.86])\n\tby smtp.qiye.163.com (Hmail) with ESMTP id 3c02205ba;\n\tFri, 24 Apr 2026 15:59:33 +0800 (GMT+08:00)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777019728; cv=none;\n b=KDB2HlKsRW/2sUrhy+VSGMmVaI2XLXK3DPy5WbEcZRjT4VQNPV9g5zbh1Krz+IsDbvjSqCJqNokNxlGoANfs0w7MzTggwsNOtLMCNds3a7oLvERcxsNo8/WNi8M+lAxkU6o6gzEjvmqjqH2zDhqFrD1qEMaqhNb05H254wiIuSU=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777019728; c=relaxed/simple;\n\tbh=yjhCYWJW6ULXxHB0lofHnJJCx6lVO0ezPzzYKhL0fr0=;\n\th=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References;\n b=HHxftbWe8mi6zTox43Dsyd2n+/In57CUqcf/kDOFNU8MboJqKEMrFFqQHaN/eDfKm4yYzEdUvOp/4gjGdyQV/MLnfQBTa2UQcuEqsMckEN7DcZRlCXjGI+Y07Qzq6GlBrU3l+3OuFD6rQfbNPOQfE+QH1vc2Uwc9uDadpv8VOT4=", "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=rock-chips.com;\n spf=pass smtp.mailfrom=rock-chips.com;\n dkim=pass (1024-bit key) header.d=rock-chips.com header.i=@rock-chips.com\n header.b=YmpNSMVx; arc=none smtp.client-ip=220.197.32.90", "From": "Shawn Lin <shawn.lin@rock-chips.com>", "To": "Bjorn Helgaas <bhelgaas@google.com>", "Cc": "Nirmal Patel <nirmal.patel@linux.intel.com>,\n\tJonathan Derrick <jonathan.derrick@linux.dev>,\n\tKurt Schwemmer <kurt.schwemmer@microsemi.com>,\n\tLogan Gunthorpe <logang@deltatee.com>,\n\tPhilipp Stanner <phasta@kernel.org>,\n\tlinux-pci@vger.kernel.org,\n\tShawn Lin <shawn.lin@rock-chips.com>", "Subject": "[PATCH v4 7/7] PCI: vmd: Replace pci_alloc_irq_vectors() with\n pcim_alloc_irq_vectors()", "Date": "Fri, 24 Apr 2026 15:57:40 +0800", "Message-Id": "<1777017460-243543-8-git-send-email-shawn.lin@rock-chips.com>", "X-Mailer": "git-send-email 2.7.4", "In-Reply-To": "<1777017460-243543-1-git-send-email-shawn.lin@rock-chips.com>", "References": "<1777017460-243543-1-git-send-email-shawn.lin@rock-chips.com>", "X-HM-Tid": "0a9dbe8050de09cckunm66d640875ecf8", "X-HM-MType": "1", "X-HM-Spam-Status": "e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly\n\ttZV1koWUFITzdXWRgWCB1ZQUpXWS1ZQUlXWQ8JGhUIEh9ZQVkaGkkeVk4ZSkpCSUtKSBhJQlYVFA\n\tkWGhdVEwETFhoSFyQUDg9ZV1kYEgtZQVlNSlVKTk9VSk9VQ01ZV1kWGg8SFR0UWUFZT0tIVUpLSU\n\t9PT0hVSktLVUpCS0tZBg++", "DKIM-Signature": "a=rsa-sha256;\n\tb=YmpNSMVx5YRCkkuSiKt8mny6c95KBtoPCzuBUMah7dMy6pCGDbI+zr8Q2QBe/hVDZfENhTfs3m2+0UP5PEO9bYKjM4CptV9y/0k5JM9LH3q7N0ZD58x5X1faYdEgXruYeV8vVahzXJP9UKaAWZoHMsAxMyeFhyt3O83HB53HUjs=;\n c=relaxed/relaxed; s=default; d=rock-chips.com; v=1;\n\tbh=47IkHF4aJA+TODcabLDZ2iXJs9epIzBWf4fkeb+JCTk=;\n\th=date:mime-version:subject:message-id:from;", "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>" }, "content": "Replace pci_alloc_irq_vectors() with pcim_alloc_irq_vectors() to\nexplicitly request devres-managed interrupt vectors. This makes the\ndriver's intention clear and avoids the ambiguous implicit management\npreviously provided by pcim_enable_device().\n\nThe change prepares the driver for the eventual removal of the hybrid\nIRQ management pattern from pcim_enable_device(), ensuring consistent\nresource management through devres.\n\nSigned-off-by: Shawn Lin <shawn.lin@rock-chips.com>\n---\n\nChanges in v4: None\nChanges in v3: None\nChanges in v2: None\n\n drivers/pci/controller/vmd.c | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)", "diff": "diff --git a/drivers/pci/controller/vmd.c b/drivers/pci/controller/vmd.c\nindex d4ae250..d8de63a 100644\n--- a/drivers/pci/controller/vmd.c\n+++ b/drivers/pci/controller/vmd.c\n@@ -684,8 +684,8 @@ static int vmd_alloc_irqs(struct vmd_dev *vmd)\n \tif (vmd->msix_count < 0)\n \t\treturn -ENODEV;\n \n-\tvmd->msix_count = pci_alloc_irq_vectors(dev, vmd->first_vec + 1,\n-\t\t\t\t\t\tvmd->msix_count, PCI_IRQ_MSIX);\n+\tvmd->msix_count = pcim_alloc_irq_vectors(dev, vmd->first_vec + 1,\n+\t\t\t\t\t\t vmd->msix_count, PCI_IRQ_MSIX);\n \tif (vmd->msix_count < 0)\n \t\treturn vmd->msix_count;\n \n", "prefixes": [ "v4", "7/7" ] }