get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2217922,
    "url": "http://patchwork.ozlabs.org/api/patches/2217922/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-pci/patch/20260330230248.646900-3-anthony.l.nguyen@intel.com/",
    "project": {
        "id": 28,
        "url": "http://patchwork.ozlabs.org/api/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,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260330230248.646900-3-anthony.l.nguyen@intel.com>",
    "list_archive_url": null,
    "date": "2026-03-30T23:02:31",
    "name": "[net-next,02/15] igc: Let the PCI core deal with the PM resume flow",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "400b4f53832a717c97d86bcc480c2b0568dc6885",
    "submitter": {
        "id": 68875,
        "url": "http://patchwork.ozlabs.org/api/people/68875/?format=api",
        "name": "Tony Nguyen",
        "email": "anthony.l.nguyen@intel.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-pci/patch/20260330230248.646900-3-anthony.l.nguyen@intel.com/mbox/",
    "series": [
        {
            "id": 498113,
            "url": "http://patchwork.ozlabs.org/api/series/498113/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-pci/list/?series=498113",
            "date": "2026-03-30T23:02:30",
            "name": "[net-next,01/15] igc: Call netif_queue_set_napi() with rtnl locked",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/498113/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2217922/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2217922/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <linux-pci+bounces-51507-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=intel.com header.i=@intel.com header.a=rsa-sha256\n header.s=Intel header.b=CBQH/bhM;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c04:e001:36c::12fc:5321; helo=tor.lore.kernel.org;\n envelope-from=linux-pci+bounces-51507-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)",
            "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com\n header.b=\"CBQH/bhM\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=198.175.65.10",
            "smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=intel.com",
            "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=intel.com"
        ],
        "Received": [
            "from tor.lore.kernel.org (tor.lore.kernel.org\n [IPv6:2600:3c04:e001:36c::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 4fl6HK6QDYz1y1q\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 31 Mar 2026 10:03:25 +1100 (AEDT)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby tor.lore.kernel.org (Postfix) with ESMTP id BDD8B3044647\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 30 Mar 2026 23:03:03 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 140A63B4E9A;\n\tMon, 30 Mar 2026 23:02:57 +0000 (UTC)",
            "from mgamail.intel.com (mgamail.intel.com [198.175.65.10])\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 6F6B6382361;\n\tMon, 30 Mar 2026 23:02:55 +0000 (UTC)",
            "from orviesa002.jf.intel.com ([10.64.159.142])\n  by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 30 Mar 2026 16:02:52 -0700",
            "from anguy11-upstream.jf.intel.com ([10.166.9.133])\n  by orviesa002.jf.intel.com with ESMTP; 30 Mar 2026 16:02:52 -0700"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1774911777; cv=none;\n b=DGHvm/SDzr7SGQrQiTYYxdeh5jSUFtWBOsOw+tjqEfOgvKVJoGdZf0JhYXHprEKEITf99rEvHeYAaqNWS0Q8k5knp/qgd+WPn2KPyKf95DvuKk0EDshV7SD+SFqy5OkNvmmeHwrwPhkaYAYNuRQPYsDJ5WZO5JOGJ18Pg+8/1+k=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1774911777; c=relaxed/simple;\n\tbh=StCsVXFtilgxDwmQumd/9OlNzZNm50bY5SkQdRGSzQI=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=VkSpQeU/e2k7kGR7itKXY3vr+sn1TK9ATkdTn5LK4hF2xWofxhn5bvb9wfblGxGvq+3DnHvPK8bjSAwxuG/bBV4fHthvb1T94JCbsli+OD8bDQ/jHfF+6QqDM4YXonJDNexnQjz05Yh6s8cuvfC9me//y1plPS7/QU8HfrPIfVg=",
        "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=intel.com;\n spf=pass smtp.mailfrom=intel.com;\n dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com\n header.b=CBQH/bhM; arc=none smtp.client-ip=198.175.65.10",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n  d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n  t=1774911775; x=1806447775;\n  h=from:to:cc:subject:date:message-id:in-reply-to:\n   references:mime-version:content-transfer-encoding;\n  bh=StCsVXFtilgxDwmQumd/9OlNzZNm50bY5SkQdRGSzQI=;\n  b=CBQH/bhM+ZO4OYObY28+E67UIBDfTE7PcU0jS43+qSprc1nSEN0UWvD3\n   NrdeJMWUB5SdLynmWuNTqMkxUpdiwIm+WMzzEUiBF7JU8D887BlpA9Zgu\n   0QTvXDgs/btw3/3nfiPX7P3yXGopUERiZ6qZYyev8nDyUNNJsQKeE1kGI\n   Oe6wj7cG2kZbx2b2OkFjEaYDQMnbij/lSeZrlVYCXzmAImYcjTKh14Pld\n   H3i99xbhQBuMca5lNX8bBW16ryZ3xHO10OCrxx3RFD6fUAXuCq2N6oMEt\n   6sScJux388PfqVd9RhCPmtvJM65Klu8zs2Ittjry4GAZamMO0mUftHu0Z\n   w==;",
        "X-CSE-ConnectionGUID": [
            "homnb37RTIW1EBwRYH9KpQ==",
            "YAt7oqhWQrmoXpmTwYJfqQ=="
        ],
        "X-CSE-MsgGUID": [
            "/vzQENSeSVWaJLi7mrEURg==",
            "/GR8r7ItSS6Hke8ALKTCaA=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6800,10657,11744\"; a=\"93297549\"",
            "E=Sophos;i=\"6.23,150,1770624000\";\n   d=\"scan'208\";a=\"93297549\"",
            "E=Sophos;i=\"6.23,150,1770624000\";\n   d=\"scan'208\";a=\"256687707\""
        ],
        "X-ExtLoop1": "1",
        "From": "Tony Nguyen <anthony.l.nguyen@intel.com>",
        "To": "davem@davemloft.net,\n\tkuba@kernel.org,\n\tpabeni@redhat.com,\n\tedumazet@google.com,\n\tandrew+netdev@lunn.ch,\n\tnetdev@vger.kernel.org",
        "Cc": "Mika Westerberg <mika.westerberg@linux.intel.com>,\n\tanthony.l.nguyen@intel.com,\n\tandriy.shevchenko@intel.com,\n\tilpo.jarvinen@linux.intel.com,\n\tdima.ruinskiy@intel.com,\n\tmbloch@nvidia.com,\n\tleon@kernel.org,\n\tlinux-pci@vger.kernel.org,\n\tsaeedm@nvidia.com,\n\ttariqt@nvidia.com,\n\tlukas@wunner.de,\n\tbhelgaas@google.com,\n\trichardcochran@gmail.com,\n\tVinicius Costa Gomes <vinicius.gomes@intel.com>,\n\tJacob Keller <jacob.e.keller@intel.com>,\n\tAvigail Dahan <avigailx.dahan@intel.com>",
        "Subject": "[PATCH net-next 02/15] igc: Let the PCI core deal with the PM resume\n flow",
        "Date": "Mon, 30 Mar 2026 16:02:31 -0700",
        "Message-ID": "<20260330230248.646900-3-anthony.l.nguyen@intel.com>",
        "X-Mailer": "git-send-email 2.47.1",
        "In-Reply-To": "<20260330230248.646900-1-anthony.l.nguyen@intel.com>",
        "References": "<20260330230248.646900-1-anthony.l.nguyen@intel.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"
    },
    "content": "From: Mika Westerberg <mika.westerberg@linux.intel.com>\n\nCurrently igc driver calls pci_set_power_state() and pci_restore_state()\nand the like to bring the device back from low power states. However,\nPCI core handles all this on behalf of the driver. Furthermore with PTM\nenabled the PCI core re-enables it on resume but the driver calls\npci_restore_state() which ends up disabling it again.\n\nFor this reason let the PCI core handle the common PM resume flow.\n\nSigned-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>\nReviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>\nAcked-by: Vinicius Costa Gomes <vinicius.gomes@intel.com>\nReviewed-by: Jacob Keller <jacob.e.keller@intel.com>\nTested-by: Avigail Dahan <avigailx.dahan@intel.com>\nSigned-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>\n---\n drivers/net/ethernet/intel/igc/igc_main.c | 6 ------\n 1 file changed, 6 deletions(-)",
    "diff": "diff --git a/drivers/net/ethernet/intel/igc/igc_main.c b/drivers/net/ethernet/intel/igc/igc_main.c\nindex 98024b46789f..0e785af0a3a3 100644\n--- a/drivers/net/ethernet/intel/igc/igc_main.c\n+++ b/drivers/net/ethernet/intel/igc/igc_main.c\n@@ -7544,9 +7544,6 @@ static int __igc_resume(struct device *dev)\n \tstruct igc_hw *hw = &adapter->hw;\n \tu32 err, val;\n \n-\tpci_set_power_state(pdev, PCI_D0);\n-\tpci_restore_state(pdev);\n-\n \tif (!pci_device_is_present(pdev))\n \t\treturn -ENODEV;\n \terr = pci_enable_device_mem(pdev);\n@@ -7556,9 +7553,6 @@ static int __igc_resume(struct device *dev)\n \t}\n \tpci_set_master(pdev);\n \n-\tpci_enable_wake(pdev, PCI_D3hot, 0);\n-\tpci_enable_wake(pdev, PCI_D3cold, 0);\n-\n \tif (igc_is_device_id_i226(hw))\n \t\tpci_disable_link_state(pdev, PCIE_LINK_STATE_L1_2);\n \n",
    "prefixes": [
        "net-next",
        "02/15"
    ]
}