Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2218486/?format=api
{ "id": 2218486, "url": "http://patchwork.ozlabs.org/api/patches/2218486/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-pci/patch/20260401-pcie-intel-gw-v3-3-63b008c5b7b2@dev.tdt.de/", "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": "<20260401-pcie-intel-gw-v3-3-63b008c5b7b2@dev.tdt.de>", "list_archive_url": null, "date": "2026-04-01T09:31:39", "name": "[v3,3/7] PCI: intel-gw: Move interrupt enable to own function", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "6d9de3514c54a43a4ace14177a8656cd965eac4e", "submitter": { "id": 72238, "url": "http://patchwork.ozlabs.org/api/people/72238/?format=api", "name": "Florian Eckert", "email": "fe@dev.tdt.de" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-pci/patch/20260401-pcie-intel-gw-v3-3-63b008c5b7b2@dev.tdt.de/mbox/", "series": [ { "id": 498301, "url": "http://patchwork.ozlabs.org/api/series/498301/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-pci/list/?series=498301", "date": "2026-04-01T09:31:36", "name": "PCI: intel-gw: Fixes to make the driver working again", "version": 3, "mbox": "http://patchwork.ozlabs.org/series/498301/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2218486/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2218486/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linux-pci+bounces-51663-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=temperror header.d=dev.tdt.de header.i=@dev.tdt.de header.a=rsa-sha256\n header.s=z1-selector1 header.b=wrmjRpu3;\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-51663-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)", "smtp.subspace.kernel.org;\n\tdkim=temperror (0-bit key) header.d=dev.tdt.de header.i=@dev.tdt.de\n header.b=\"wrmjRpu3\"", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=194.37.255.70", "smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=dev.tdt.de", "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=dev.tdt.de" ], "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 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fm0WV5Fggz1yGH\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 01 Apr 2026 20:47:02 +1100 (AEDT)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sin.lore.kernel.org (Postfix) with ESMTP id B95EF3006207\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 1 Apr 2026 09:32:00 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id BC97D3D16E4;\n\tWed, 1 Apr 2026 09:31:55 +0000 (UTC)", "from mxout70.expurgate.net (mxout70.expurgate.net [194.37.255.70])\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 7C9F33CA4AA;\n\tWed, 1 Apr 2026 09:31:53 +0000 (UTC)", "from [194.37.255.9] (helo=mxout.expurgate.net)\n\tby relay.expurgate.net with smtp (Exim 4.92)\n\t(envelope-from <prvs=65659f006e=fe@dev.tdt.de>)\n\tid 1w7rvM-001Syv-I2; Wed, 01 Apr 2026 11:31:44 +0200", "from [195.243.126.94] (helo=securemail.tdt.de)\n\tby relay.expurgate.net with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)\n\t(Exim 4.92)\n\t(envelope-from <fe@dev.tdt.de>)\n\tid 1w7rvL-001SxQ-WA; Wed, 01 Apr 2026 11:31:44 +0200", "from securemail.tdt.de (localhost [127.0.0.1])\n\tby securemail.tdt.de (Postfix) with ESMTP id 88570240047;\n\tWed, 1 Apr 2026 11:31:43 +0200 (CEST)", "from mail.dev.tdt.de (unknown [10.2.4.42])\n\tby securemail.tdt.de (Postfix) with ESMTP id 7AFD1240041;\n\tWed, 1 Apr 2026 11:31:43 +0200 (CEST)", "from [10.2.3.40] (unknown [10.2.3.40])\n\tby mail.dev.tdt.de (Postfix) with ESMTPSA id 5853C23C7E;\n\tWed, 1 Apr 2026 11:31:43 +0200 (CEST)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1775035915; cv=none;\n b=NnYsE1ArJOgwMWPQVXsWXik761LbyQZFudIaUSXuxOCUqurRJS9jvvmj/nz/YKEKwhf6jSNaWpE3qXXqbJ0S7YAd76jrqwxI1Px0u2xxP0xZvQ11TrlsLDhNOOk66lptoOCjO5zINZfHAnHJFPNHnTTeX89SoBsmMGeW4eE9FWc=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1775035915; c=relaxed/simple;\n\tbh=agN87K+CDzqSq8A3CtdiM5qsSgnm7chk8ZFt0OrwmeU=;\n\th=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References:\n\t In-Reply-To:To:Cc;\n b=BP69w54Bc4Ahvbc8MjT22ospziaR2ht8flgpJjTmF8TWgxsyPVER6BLrOmaKV85kp8g1dPEeenZbCs4KEzaDNahM1tPDNMvH+Ht26Sx3tfUhyRUk8v3M2Bn4IsLNAstV+mAbuM+XMGqgVzKPKNILTi6O+Zaiz4AL/dPj2gIzm/E=", "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=dev.tdt.de;\n spf=pass smtp.mailfrom=dev.tdt.de;\n dkim=temperror (0-bit key) header.d=dev.tdt.de header.i=@dev.tdt.de\n header.b=wrmjRpu3; arc=none smtp.client-ip=194.37.255.70", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=dev.tdt.de;\n\ts=z1-selector1; t=1775035903;\n\tbh=lMn3lFGeOL2LbKYJ5BgVNUmk+cjNqBsZKKuwLQ+o6aA=;\n\th=From:Date:Subject:References:In-Reply-To:To:Cc:From;\n\tb=wrmjRpu3VDTGccvL6SPrOCVaxczMwgvMZWq4nL+cFiSJwOj1Wl4wFbg+/SdON/DAL\n\t KF1XmslnSpTX10v2GFcbnUX8LkmuLCw4PMejxT0KkRZf9Moydmd3m5FhFR+U1hj2zS\n\t jK5Md5aG/x1NLUzaWp69YDKRxjy8jok244qP9Lp4bR55ZdXbB8oVyUaPa8Dpsi6Wrn\n\t 1OPfPbncBndECbJuOEeVoHCOnet4y78p8ED85l8kkeEi/RbeTT5RhlA5lr0ewJ1tqp\n\t LxeehWnlP+xudJfze+Nlm08YxCLlJ89ORuX/ifOAqqZijY+8xCTIEXA4ZyXm4yN4Gj\n\t KSzuXTIaxFBoQ==", "From": "Florian Eckert <fe@dev.tdt.de>", "Date": "Wed, 01 Apr 2026 11:31:39 +0200", "Subject": "[PATCH v3 3/7] PCI: intel-gw: Move interrupt enable to own\n function", "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-Type": "text/plain; charset=\"utf-8\"", "Message-ID": "<20260401-pcie-intel-gw-v3-3-63b008c5b7b2@dev.tdt.de>", "References": "<20260401-pcie-intel-gw-v3-0-63b008c5b7b2@dev.tdt.de>", "In-Reply-To": "<20260401-pcie-intel-gw-v3-0-63b008c5b7b2@dev.tdt.de>", "To": "Lorenzo Pieralisi <lpieralisi@kernel.org>, =?utf-8?q?Krzysztof_Wilczy?=\n\t=?utf-8?q?=C5=84ski?= <kwilczynski@kernel.org>,\n Manivannan Sadhasivam <mani@kernel.org>, Rob Herring <robh@kernel.org>,\n Bjorn Helgaas <bhelgaas@google.com>, Johan Hovold <johan+linaro@kernel.org>,\n Sajid Dalvi <sdalvi@google.com>, Ajay Agarwal <ajayagarwal@google.com>,\n Krzysztof Kozlowski <krzk+dt@kernel.org>, Conor Dooley <conor+dt@kernel.org>,\n Rahul Tanwar <rtanwar@maxlinear.com>", "Cc": "linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org,\n\tdevicetree@vger.kernel.org, Florian Eckert <fe@dev.tdt.de>,\n\tEckert.Florian@googlemail.com, ms@dev.tdt.de", "X-Mailer": "b4 0.14.2", "X-Developer-Signature": "v=1; a=ed25519-sha256; t=1775035902; l=2285;\n i=fe@dev.tdt.de; s=20260205; h=from:subject:message-id;\n bh=lb6QCw9gymNGaU3gwgLeUyGUNWDhF66pmRRGTrBntko=;\n b=rQwgFl4Y3u/zaLO2KM+VswviHpotzPnuC+xI0b58CHgFIm11ys7/5UjGdP05TPMsmXWNUhOLt\n QKS4JTQYyIkBDPaDMZxphq0t5C1D5yxeQvJqqSmaI3rQF9Y3L6AB48m", "X-Developer-Key": "i=fe@dev.tdt.de; a=ed25519;\n pk=q7Pvv3Au2sAVRhBz5UF7ZqUPNxUwXQ78Jdqu8E6Negk=", "Content-Transfer-Encoding": "quoted-printable", "X-purgate-ID": "151534::1775035904-3CFC5233-7AC93786/0/0", "X-purgate": "clean", "X-purgate-type": "clean" }, "content": "To improve the readability of the code, move the interrupt enable\ninstructions to a separate function. That is already done for the disable\ninterrupt instruction.\n\nIn addtion, all pending interrupts are cleared and disabled, just as this\nis done in the disable function 'intel_pcie_core_irq_disable()'. After\nthat, all relevant interrupts are enabled again. The 'PCIE_APP_IRNEN'\ndefinition contains all the relevant interrupts that are of interest.\n\nThis change is also done in the Maxlinear SDK [1]. As I unfortunately\ndon’t have any documentation for this IP core, I suspect that the\nintention is to set the IP core for interrupt handling to a specific\nstate. Perhaps the problem was that the IP core did not reinitialize the\ninterrupt register properly after a power cycle.\n\nIn my view, it can’t do any harm to switch the interrupt off and then on\nagain to set them to a specific state.\n\n[1] https://github.com/maxlinear/linux/blob/updk_9.1.90/drivers/pci/controller/dwc/pcie-intel-gw.c#L431\n\nSigned-off-by: Florian Eckert <fe@dev.tdt.de>\n---\n drivers/pci/controller/dwc/pcie-intel-gw.c | 11 ++++++++---\n 1 file changed, 8 insertions(+), 3 deletions(-)", "diff": "diff --git a/drivers/pci/controller/dwc/pcie-intel-gw.c b/drivers/pci/controller/dwc/pcie-intel-gw.c\nindex 80d1607c46cbbb1e274b37a0bb9377a877678f5d..e88b8243cc41c607c39e4d58c4dcd8c8c082e8b0 100644\n--- a/drivers/pci/controller/dwc/pcie-intel-gw.c\n+++ b/drivers/pci/controller/dwc/pcie-intel-gw.c\n@@ -195,6 +195,13 @@ static void intel_pcie_device_rst_deassert(struct intel_pcie *pcie)\n \tgpiod_set_value_cansleep(pcie->reset_gpio, 0);\n }\n \n+static void intel_pcie_core_irq_enable(struct intel_pcie *pcie)\n+{\n+\tpcie_app_wr(pcie, PCIE_APP_IRNEN, 0);\n+\tpcie_app_wr(pcie, PCIE_APP_IRNCR, PCIE_APP_IRN_INT);\n+\tpcie_app_wr(pcie, PCIE_APP_IRNEN, PCIE_APP_IRN_INT);\n+}\n+\n static void intel_pcie_core_irq_disable(struct intel_pcie *pcie)\n {\n \tpcie_app_wr(pcie, PCIE_APP_IRNEN, 0);\n@@ -316,9 +323,7 @@ static int intel_pcie_host_setup(struct intel_pcie *pcie)\n \tif (ret)\n \t\tgoto app_init_err;\n \n-\t/* Enable integrated interrupts */\n-\tpcie_app_wr_mask(pcie, PCIE_APP_IRNEN, PCIE_APP_IRN_INT,\n-\t\t\t PCIE_APP_IRN_INT);\n+\tintel_pcie_core_irq_enable(pcie);\n \n \treturn 0;\n \n", "prefixes": [ "v3", "3/7" ] }