Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2231364/?format=api
{ "id": 2231364, "url": "http://patchwork.ozlabs.org/api/patches/2231364/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-pci/patch/20260430161254.40278-3-18255117159@163.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": "<20260430161254.40278-3-18255117159@163.com>", "list_archive_url": null, "date": "2026-04-30T16:12:40", "name": "[02/16] PCI/PTM: Use FIELD_MODIFY()", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "f28423e93ceb6bc6f743323c23d1be53877bb67a", "submitter": { "id": 89937, "url": "http://patchwork.ozlabs.org/api/people/89937/?format=api", "name": "Hans Zhang", "email": "18255117159@163.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-pci/patch/20260430161254.40278-3-18255117159@163.com/mbox/", "series": [ { "id": 502337, "url": "http://patchwork.ozlabs.org/api/series/502337/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-pci/list/?series=502337", "date": "2026-04-30T16:12:44", "name": "PCI: Use FIELD_MODIFY() to simplify bitfield operations", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/502337/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2231364/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2231364/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linux-pci+bounces-53502-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=163.com header.i=@163.com header.a=rsa-sha256\n header.s=s110527 header.b=EKMKGnT9;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c15:e001:75::12fc:5321; helo=sin.lore.kernel.org;\n envelope-from=linux-pci+bounces-53502-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)", "smtp.subspace.kernel.org;\n\tdkim=pass (1024-bit key) header.d=163.com header.i=@163.com\n header.b=\"EKMKGnT9\"", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=117.135.210.5", "smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=163.com", "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=163.com" ], "Received": [ "from sin.lore.kernel.org (sin.lore.kernel.org\n [IPv6:2600:3c15:e001:75::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 4g5zvp64P3z1xqf\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 01 May 2026 02:21:58 +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 C41F23040D1A\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 30 Apr 2026 16:14:32 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 6F7D7478842;\n\tThu, 30 Apr 2026 16:13:55 +0000 (UTC)", "from m16.mail.163.com (m16.mail.163.com [117.135.210.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 BAAED472764;\n\tThu, 30 Apr 2026 16:13:51 +0000 (UTC)", "from zhb.. (unknown [])\n\tby gzga-smtp-mtada-g0-4 (Coremail) with SMTP id\n _____wDnbymkf_NpTNe+Cg--.31297S4;\n\tFri, 01 May 2026 00:13:26 +0800 (CST)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777565635; cv=none;\n b=Cb7Hps++RSNy9ptNTfS0CjBwEnuOokjvx2rE1D8NIlMHJRe3mFoUZ/aVOXb2LSkSTNRo2MeRz+1i4cBHKePxWtPfYWQI6/3hMZE+rzUmyt6oDe1RE16obOCTUp6eNGEadsySbAk76eUMsQdnq6LmIr7GI89oQOSHKaC9oKhJjF4=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777565635; c=relaxed/simple;\n\tbh=HG6wMmNzqQr/vAz/9YVXg/XRCGn+6x3TvxKDdZcRqNI=;\n\th=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:\n\t MIME-Version;\n b=qNHfgGKQOu11KrqcGlehk/oTAFWK4rOR4YXL2+d1vMFhxyCGa3lWpnvyd02GzloYYhDcjH52GvnuC9rRha3SeW1DEOPdktQkRdG/cG/AIPxrKUS3Plc5LkH4GfxOOMxfj5MhJYjgyubt1cl7faY0fGsJjlKim9C/ZN7PrHUsuXA=", "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=163.com;\n spf=pass smtp.mailfrom=163.com;\n dkim=pass (1024-bit key) header.d=163.com header.i=@163.com\n header.b=EKMKGnT9; arc=none smtp.client-ip=117.135.210.5", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com;\n\ts=s110527; h=From:To:Subject:Date:Message-Id:MIME-Version; bh=/i\n\tSkfsxQrBPqbPvZDhBTwfrh6nYXLR6KjN3mR6Z7XlI=; b=EKMKGnT9bPw3JYVSS3\n\t5ax9NVAtVeM0B6aYcQIOp/4/emZvGl3qcARzH/N9GI+7R/aWbFCdEZcte4e70C59\n\tzB7lPehIvs00xBQxhpY6mtjStxDf5F+C4ydV80Z4icGoTg2loL656ZsOit4zToyV\n\tUDHNhADGw/g3Tk0gRQxxN6M1A=", "From": "Hans Zhang <18255117159@163.com>", "To": "bhelgaas@google.com,\n\tlpieralisi@kernel.org,\n\tkwilczynski@kernel.org,\n\tmani@kernel.org,\n\tjingoohan1@gmail.com", "Cc": "robh@kernel.org,\n\ts32@nxp.com,\n\tlinux-pci@vger.kernel.org,\n\tlinux-kernel@vger.kernel.org,\n\tHans Zhang <18255117159@163.com>", "Subject": "[PATCH 02/16] PCI/PTM: Use FIELD_MODIFY()", "Date": "Fri, 1 May 2026 00:12:40 +0800", "Message-Id": "<20260430161254.40278-3-18255117159@163.com>", "X-Mailer": "git-send-email 2.34.1", "In-Reply-To": "<20260430161254.40278-1-18255117159@163.com>", "References": "<20260430161254.40278-1-18255117159@163.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-CM-TRANSID": "_____wDnbymkf_NpTNe+Cg--.31297S4", "X-Coremail-Antispam": "1Uf129KBjvdXoWrur17tw4fAr17Aw4rJr1fWFg_yoW3Krb_WF\n\t18Zr13Ar1UJrn8Cw45Can7X3s0k3WqgFs7ZFs29F15CFy7Zrn8Wa9Yv34kJr15uF43GryF\n\tkasFqrykCFySkjkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT\n\t9fnUUvcSsGvfC2KfnxnUUI43ZEXa7sRMWrWDUUUUU==", "X-CM-SenderInfo": "rpryjkyvrrlimvzbiqqrwthudrp/xtbCwwZgBGnzf6b1twAA3g" }, "content": "Use FIELD_MODIFY() to remove open-coded bit manipulation.\nNo functional change intended.\n\nSigned-off-by: Hans Zhang <18255117159@163.com>\n---\n drivers/pci/pcie/ptm.c | 3 +--\n 1 file changed, 1 insertion(+), 2 deletions(-)", "diff": "diff --git a/drivers/pci/pcie/ptm.c b/drivers/pci/pcie/ptm.c\nindex a41ffd1914de..bd3bd39f6372 100644\n--- a/drivers/pci/pcie/ptm.c\n+++ b/drivers/pci/pcie/ptm.c\n@@ -152,8 +152,7 @@ static int __pci_enable_ptm(struct pci_dev *dev)\n \tpci_read_config_dword(dev, ptm + PCI_PTM_CTRL, &ctrl);\n \n \tctrl |= PCI_PTM_CTRL_ENABLE;\n-\tctrl &= ~PCI_PTM_GRANULARITY_MASK;\n-\tctrl |= FIELD_PREP(PCI_PTM_GRANULARITY_MASK, dev->ptm_granularity);\n+\tFIELD_MODIFY(PCI_PTM_GRANULARITY_MASK, &ctrl, dev->ptm_granularity);\n \tif (dev->ptm_root)\n \t\tctrl |= PCI_PTM_CTRL_ROOT;\n \n", "prefixes": [ "02/16" ] }