Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2231359/?format=api
{ "id": 2231359, "url": "http://patchwork.ozlabs.org/api/patches/2231359/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-pci/patch/20260430161254.40278-11-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-11-18255117159@163.com>", "list_archive_url": null, "date": "2026-04-30T16:12:48", "name": "[10/16] PCI: eswin: Use FIELD_MODIFY()", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "7071b7efd32f9ccff3164cdca8e7f84249a63e6a", "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-11-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/2231359/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2231359/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linux-pci+bounces-53499-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=hvXzZo2Q;\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-53499-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=\"hvXzZo2Q\"", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=220.197.31.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 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 4g5zsN5yVNz1yJr\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 01 May 2026 02:19:52 +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 763DB304D705\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 30 Apr 2026 16:14:07 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 464BC47278A;\n\tThu, 30 Apr 2026 16:13:53 +0000 (UTC)", "from m16.mail.163.com (m16.mail.163.com [220.197.31.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 E082B39C00C;\n\tThu, 30 Apr 2026 16:13:49 +0000 (UTC)", "from zhb.. (unknown [])\n\tby gzga-smtp-mtada-g0-4 (Coremail) with SMTP id\n _____wDnbymkf_NpTNe+Cg--.31297S12;\n\tFri, 01 May 2026 00:13:31 +0800 (CST)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777565633; cv=none;\n b=ugU7GfcpHCwJ3rFB0uHmGnMyYo5MogWSSgMWUf/1kJi160n+CxLyLK7ULKxpQZWkKxZegKp+FZLvjd+VKcFq4fVuSBClEqMKHJ1OCE00rUUuXh6j9VVge2XIFbL+vrQgCetVQiu4/4KM76gIDeJL9Frm+VK8m0tjACVxw21Gz6k=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777565633; c=relaxed/simple;\n\tbh=srG+yZobwtkFs3Ykezmyljr7KjBdK21EgkvzAZGf7oE=;\n\th=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:\n\t MIME-Version;\n b=BBh83z8Wofo3MyzWQYloe82KUrJTmw/EGFew/BSslVJJc1EZf2oVQt3575vFSM9fNvP06J14e6G2AVuTGhiUoPmDsfuRztLHmjeyCVBTfMvj0QCzSljnaYCBgkx0Eayorb6y20ALapTF3mY1QmVRoWM6xhiX46RN3Y49pYVkza4=", "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=hvXzZo2Q; arc=none smtp.client-ip=220.197.31.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=5+\n\tp21yOHzM6HhEIEW/ME4J11uHV07Opa5IXiJKuYTnA=; b=hvXzZo2Q0zewptnF8B\n\tmJCwTfwJOSrBaVTI4fKyjgYMPUpXy2jwVg/zbiq2eMUj/oVUIYODcqtZcXjPSq7E\n\tktWwj/hqKqWquK/3iMiHVe+7wEDOv9E1OkQJKq27hZn3kzt1eJc674Qjwvuzhv7e\n\tQPjUEf/s6Rat4EVx0eaG6Zh7s=", "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 10/16] PCI: eswin: Use FIELD_MODIFY()", "Date": "Fri, 1 May 2026 00:12:48 +0800", "Message-Id": "<20260430161254.40278-11-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--.31297S12", "X-Coremail-Antispam": "1Uf129KBjvdXoWrur17Kr1UAw15tr13GF4kWFg_yoWDAFbEvr\n\tyUCF47Ar4DGrySk340kw1rJr9xA3Z7Xw40gas5tFs3ZF97Kr15WFyvvrZ8tFy3CF1rJFyk\n\ttr1vqrWxCFy7JjkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT\n\t9fnUUvcSsGvfC2KfnxnUUI43ZEXa7sRiFksDUUUUU==", "X-CM-SenderInfo": "rpryjkyvrrlimvzbiqqrwthudrp/xtbCwwthBWnzf6v2WAAA3M" }, "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/dwc/pcie-eswin.c | 3 +--\n 1 file changed, 1 insertion(+), 2 deletions(-)", "diff": "diff --git a/drivers/pci/controller/dwc/pcie-eswin.c b/drivers/pci/controller/dwc/pcie-eswin.c\nindex 2845832b3824..ce8d64f8a395 100644\n--- a/drivers/pci/controller/dwc/pcie-eswin.c\n+++ b/drivers/pci/controller/dwc/pcie-eswin.c\n@@ -211,8 +211,7 @@ static int eswin_pcie_host_init(struct dw_pcie_rp *pp)\n \n \t/* Configure Root Port type */\n \tval = readl_relaxed(pci->elbi_base + PCIEELBI_CTRL0_OFFSET);\n-\tval &= ~PCIEELBI_CTRL0_DEV_TYPE;\n-\tval |= FIELD_PREP(PCIEELBI_CTRL0_DEV_TYPE, PCI_EXP_TYPE_ROOT_PORT);\n+\tFIELD_MODIFY(PCIEELBI_CTRL0_DEV_TYPE, &val, PCI_EXP_TYPE_ROOT_PORT);\n \twritel_relaxed(val, pci->elbi_base + PCIEELBI_CTRL0_OFFSET);\n \n \tlist_for_each_entry(port, &pcie->ports, list) {\n", "prefixes": [ "10/16" ] }