Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2231394/?format=api
{ "id": 2231394, "url": "http://patchwork.ozlabs.org/api/patches/2231394/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-pci/patch/20260430162420.42839-17-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": "<20260430162420.42839-17-18255117159@163.com>", "list_archive_url": null, "date": "2026-04-30T16:24:20", "name": "[RESEND,16/16] PCI: mediatek-gen3: Use FIELD_MODIFY()", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "91e0d55185acf14cf524045db41d67b4c1184990", "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/20260430162420.42839-17-18255117159@163.com/mbox/", "series": [ { "id": 502340, "url": "http://patchwork.ozlabs.org/api/series/502340/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-pci/list/?series=502340", "date": "2026-04-30T16:24:06", "name": "PCI: Use FIELD_MODIFY() to simplify bitfield operations", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/502340/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2231394/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2231394/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linux-pci+bounces-53523-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=fpuQhOZp;\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-53523-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=\"fpuQhOZp\"", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=117.135.210.2", "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 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 4g606J4swkz1yGq\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 01 May 2026 02:31:04 +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 0EF5D30C84DC\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 30 Apr 2026 16:25:48 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 6621847B436;\n\tThu, 30 Apr 2026 16:25:06 +0000 (UTC)", "from m16.mail.163.com (m16.mail.163.com [117.135.210.2])\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 9411945BD57;\n\tThu, 30 Apr 2026 16:25:02 +0000 (UTC)", "from zhb.. (unknown [])\n\tby gzga-smtp-mtada-g1-4 (Coremail) with SMTP id\n _____wBnTp9HgvNpIh98Cg--.30330S2;\n\tFri, 01 May 2026 00:24:40 +0800 (CST)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777566306; cv=none;\n b=oQTL+2pmJ0veDRi7Sgp7sbkz87HM2ZLjkIOspm9SsWU74jvupgNsy7hN5lfaqdhztOkP9W3EskeR5eD0HctUpmycpE85eqy305XpVgMFVgMaU0lPQ7ElET0NRTOy8BJK3vV6cX7ZxR/W0yxYnfPMGbIoqeJXir5drvMdh7g9TcM=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777566306; c=relaxed/simple;\n\tbh=zGya12c0o5aRiDVzH50QTYenNbVMFV+ylKxK3Bd8OSs=;\n\th=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:\n\t MIME-Version;\n b=H9JeCFy+NMsFhiV7Ime8OC4wI1LwzDZvPB43lBVySTmV4Wn1CjLYYLfqudgLDyBil8j8IaRWShusTzPQ3SElusZH1RmoqE9nZDf6KKjUD6wZwWjJ5nn4qo6przXDOYM2r6dzi7+19epkL5pRrQ8ABAxtVY3ANGRjnwyqYPIn3+A=", "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=fpuQhOZp; arc=none smtp.client-ip=117.135.210.2", "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=SK\n\tnNKCXhsL/SUQcuaVtsiDGDwFzkCFIi96zkjl1hpAY=; b=fpuQhOZpaGB6/bScYo\n\teQZsM/1Lqg0tg6XacRT3Xt5i9rQMIk0fpwYK+pPVCTkb1keV/2VyK+WZlL2MHsUa\n\td17UeYsn9BjkfDpjwcilaJA8fBMeuZ9u6RVeJ9djsRFDss5hGZujoFsy0RGOzwFG\n\t+BDAQlrTAnOO4Ig+Iuo8Y1x0k=", "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": "[RESEND PATCH 16/16] PCI: mediatek-gen3: Use FIELD_MODIFY()", "Date": "Fri, 1 May 2026 00:24:20 +0800", "Message-Id": "<20260430162420.42839-17-18255117159@163.com>", "X-Mailer": "git-send-email 2.34.1", "In-Reply-To": "<20260430162420.42839-1-18255117159@163.com>", "References": "<20260430162420.42839-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": "_____wBnTp9HgvNpIh98Cg--.30330S2", "X-Coremail-Antispam": "1Uf129KBjvdXoWrur17Kr18WF4xtFyrXw1xuFg_yoWDKrXE93\n\t9rJF4fC34DKryfG39YkryrAr9Yka4xWw10y3WrtF1SyayxuF1Fqr9avrWDX3Z8CFsxJF43\n\tt3WDCF18AFyxCjkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT\n\t9fnUUvcSsGvfC2KfnxnUUI43ZEXa7VUUb_-PUUUUU==", "X-CM-SenderInfo": "rpryjkyvrrlimvzbiqqrwthudrp/xtbC7AgKrWnzgkhPPgAA3i" }, "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/controller/pcie-mediatek-gen3.c | 3 +--\n 1 file changed, 1 insertion(+), 2 deletions(-)", "diff": "diff --git a/drivers/pci/controller/pcie-mediatek-gen3.c b/drivers/pci/controller/pcie-mediatek-gen3.c\nindex b0accd828589..f36a616a8b52 100644\n--- a/drivers/pci/controller/pcie-mediatek-gen3.c\n+++ b/drivers/pci/controller/pcie-mediatek-gen3.c\n@@ -494,8 +494,7 @@ static int mtk_pcie_startup_port(struct mtk_gen3_pcie *pcie)\n \t/* Set Link Control 2 (LNKCTL2) speed restriction, if any */\n \tif (pcie->max_link_speed) {\n \t\tval = readl_relaxed(pcie->base + PCIE_CONF_LINK2_CTL_STS);\n-\t\tval &= ~PCIE_CONF_LINK2_LCR2_LINK_SPEED;\n-\t\tval |= FIELD_PREP(PCIE_CONF_LINK2_LCR2_LINK_SPEED, pcie->max_link_speed);\n+\t\tFIELD_MODIFY(PCIE_CONF_LINK2_LCR2_LINK_SPEED, &val, pcie->max_link_speed);\n \t\twritel_relaxed(val, pcie->base + PCIE_CONF_LINK2_CTL_STS);\n \t}\n \n", "prefixes": [ "RESEND", "16/16" ] }